I Want to Send My Live Location to telegram bot users, Bot I got This Error:
ETELEGRAM: 400 Bad Request: there is no live location in the message to edit
How Should I Solve?
Module: ( https://github.com/yagop/node-telegram-bot-api )
Code:
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
}
});
}
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.