Answer the question
In order to leave comments, you need to log in
How to make normal buttons under the text field in telebot?
I am writing a telegram bot on a node. I am using the telebot module .
The problem is this:
If you create an inline keyboard via the .inlineKeyboard method and buttons to it via .inlineButton,
you can specify the {callback: "DATA"} parameter to pass data that falls into the bot.on('callbackQuery') route.
But, if you create "keyboard" buttons using the .keyboard and .button methods, you cannot specify a callback there.
How to act in such a situation?
You need to make a button with the text "Button" and the passed parameter "ACTION", as an example.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question