How to hide ReplyKeyboardMarkup after user click in Telegram Bot API

后端 未结 3 1886
野趣味
野趣味 2021-02-08 02:52

I am using Node.js telegram-bot-api.

Idea:

  1. Show a custom keyboard with one button - \"Share my phone number\".
  2. When user clicks this button, conta
3条回答
  •  深忆病人
    2021-02-08 03:32

    hide_keyboard has been renamed to remove_keyboard since API 2.3.

    bot.sendMessage({
        chat_id: message.chat.id,
        text: 'Some text...',
        reply_markup: JSON.stringify({
            remove_keyboard: true
        })
    });
    

提交回复
热议问题