S
S
Stanislav1112019-02-20 18:36:21
JavaScript
Stanislav111, 2019-02-20 18:36:21

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

1 answer(s)
D
Dmitry, 2019-02-20
@Stanislav111

a regular button (keyboard) does not allow you to set any callbacks
https://core.telegram.org/bots/api#keyboardbutton

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question