gpt4 book ai didi

javascript - 电报 : 400 Bad Request: there is no live location in the message to edit

转载 作者:行者123 更新时间:2023-12-03 02:49:05 25 4
gpt4 key购买 nike

我想将我的实时位置发送给电报机器人用户,机器人我收到此错误:

ETELEGRAM: 400 Bad Request: there is no live location in the message to edit

应该如何解决?

模块: ( https://github.com/yagop/node-telegram-bot-api )

代码:

bot.on('callback_query', msg => {
if (msg.data == `ourlivelocation`) {
bot.editMessageLiveLocation(32.2624884, 53.4246188, {
parse_mode: 'Markdown',
message_id: msg.message.message_id,
chat_id: msg.message.chat.id,
reply_markup: {
inline_keyboard: livelocationKeyboard
}
});

}
});

最佳答案

您需要先发送实时位置。

sendLocation 方法与 live_period 结合使用,就像下面的实例一样:

Awesome Telegram Bot

关于javascript - 电报 : 400 Bad Request: there is no live location in the message to edit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47964216/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com