BotMenuButton

class pyrogram.raw.types.BotMenuButton

Bot menu button that opens a web app when clicked.

Constructor of BotMenuButton.

Details:
  • Layer: 223

  • ID: C7B57CE6

Parameters:
  • text (str) – Title to be displayed on the menu button instead of ‘Menu’

  • url (str) – URL of a web app to open when the user clicks on the button

Functions:

This object can be returned by 1 function.

bots.GetBotMenuButton

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
├── textstring
└── urlstring

Example

BotMenuButton(
    text="Open",
    url="https://google.com",
)