簡體   English   中英

ETELEGRAM:400錯誤的請求:消息中沒有實時位置要編輯

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

我想將我的實時位置發送給電報機器人用戶,我收到此錯誤:

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
            }
        });

    }
});

您需要先發送實時位置。

live_period一起使用sendLocation方法,就像以下實例一樣:

很棒的電報機器人

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM