【发布时间】:2017-12-25 22:26:59
【问题描述】:
我想将我的实时位置发送给电报机器人用户,机器人我收到了这个错误:
ETELEGRAM:400 错误请求:消息中没有要编辑的实时位置
我应该如何解决?
模块: (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
}
});
}
});
【问题讨论】:
-
livelocationKeyboard在哪里? -
const livelocationKeyboard = [[{ text: `????????`, callback_data: `en` }]],我不知道该怎么解决! -
发送位置码在哪里