I am using Node.js telegram-bot-api.
Idea:
Found it.
Here is a solution:
bot.sendMessage({
chat_id: message.chat.id,
text: 'Some text...',
reply_markup: JSON.stringify({
hide_keyboard: true
})
});
You should use editMessageReplyMarkup and update that message's replyMarkup
with null string(''
) after client user's click recieved.
UPDATE this is applicable for inline keyboards.
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
})
});