I’m trying create a news telegram bot. But iI can’t send messages with interactive buttons.
The reason why I use the buttons is to make a menu, I would appreciate if you could show an example of making an interactive menu instead of just adding it.
Using Language : Python 3.9 & Telebot Library
Like this:
3
Answers
Telebot provides the following types for InlineKeyboard:
InlineKeyboardMarkup
; The keyboardInlineKeyboardButton
; The markup buttonAn basic example would look like
Which will result in the following message send to
chat_id
:use callback query handler, there is example here:
https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/inline_keyboard_example.py