ETELEGRAM:400 错误请求:消息中没有要编辑的实时位置
ETELEGRAM: 400 Bad Request: there is no live location in the message to edit
我想将我的实时位置发送给电报机器人用户,机器人我遇到了这个错误:
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
}
});
}
});
您需要先发送实时位置。
对live_period
使用sendLocation
方法,就像下面的例子:
我想将我的实时位置发送给电报机器人用户,机器人我遇到了这个错误:
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
}
});
}
});
您需要先发送实时位置。
对live_period
使用sendLocation
方法,就像下面的例子: