Telegram inline keyboard and keyboard

人走茶凉 提交于 2019-12-04 00:23:00

问题


I have question about Telegram bot. I want keyboard and inline keyboard, Can I 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,



来源:https://stackoverflow.com/questions/41750066/telegram-inline-keyboard-and-keyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!