BotMenuButton
- class pyrogram.raw.base.BotMenuButton
Indicates the action to execute when pressing the in-UI menu button for bots
- Constructors:
This base type has 3 constructors available.
Bot menu button that opens a web app when clicked.
Bot menu button that opens the bot command list when clicked.
Placeholder bot menu button never returned to users: see the docs for more info.
- Functions:
This object can be returned by 1 function.
Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton; users can see this information in the botInfo constructor.
TL Schema
botMenuButton#c7b57ce6
text:string
url:string
= BotMenuButton
Parameter Tree
BotMenuButton
├── text →
string└── url →
stringExample
BotMenuButton(
text="Open",
url="https://google.com",
)