Closed emobin closed 6 years ago
How can I create a ReplyKeyboardButton with a specified text, which sends a specified command when it is being clicked.
For example the text is "Yes" and when I click yes, it sends /1 as a command.
Following picture is from Telegram documentation which demonstrate the idea:
https://core.telegram.org/file/811140184/1/5YJxx-rostA/ad3f74094485fb97bd
From the Telegram Doc: KeyboardButton: text -> Text of the button. [...] it will be sent as a message when the button is pressed
So i guess the bot recognize the Text of the button as a command
How can I create a ReplyKeyboardButton with a specified text, which sends a specified command when it is being clicked.
For example the text is "Yes" and when I click yes, it sends /1 as a command.
Following picture is from Telegram documentation which demonstrate the idea:
https://core.telegram.org/file/811140184/1/5YJxx-rostA/ad3f74094485fb97bd