22

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

Abolfazl Mohajeri
  • 1,734
  • 2
  • 14
  • 26
Morteza Jalambadani
  • 2,190
  • 6
  • 21
  • 35

1 Answers1

37

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,

Sky
  • 4,244
  • 7
  • 54
  • 83