S
S
shuzzixd2021-06-03 05:21:05
Bots
shuzzixd, 2021-06-03 05:21:05

How to remove all Inline buttons after clicking on the first button in a Telegram bot?

60b83bf5a4b63323849275.png
Need a code that removes inline buttons after clicking the "I subscribed"
telebot button

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Krostelev, 2021-06-03
@twistfire92

If you are using telebot then

bot.edit_message_reply_markup(chat_id=<Chat ID>, message_id=<Message ID>, reply_markup=None)

Edit reply_markup by passing None.

K
Kadabrov, 2021-06-03
@Kadabrov

In the right handler

del = telebot.types.ReplyKeyboardRemove()
 bot.send_message(message.from_user.id, 'текст сообщения', reply_markup=del)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question