Telegram inline keyboard and keyboard

2019-02-13 03:31发布

问题:

I have question in Telegram bot. I want keyboard and inline keyboard , Can enable both of the features at the same time ?

回答1:

According to Telegram documentation, it's currently impossible to pass two or more objects for reply_markup at the same time. reply_markup only accepts one of these objects at the same time:

  1. InlineKeyboardMarkup
  2. ReplyKeyboardMarkup
  3. ReplyKeyboardRemove
  4. ForceReply

And of course you cannot combine two or more objects together. If you wanna show keyboard and have inline keyboard too, you can show the keyboard in a message and after that send another message with inline keyboard.

Cheers,