How to hide ReplyKeyboardMarkup after user click in Telegram Bot API

后端 未结 3 1883
野趣味
野趣味 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:25

    Found it.

    Here is a solution:

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

提交回复
热议问题