Layer 224
BotMenuButtonObj
Bot menu button that opens a web app when clicked.
constructor
botMenuButton#c7b57ce6 text:string url:string = BotMenuButton;
Parameters
| Name | Type | Description |
|---|---|---|
| Text | string | Title to be displayed on the menu button instead of 'Menu' |
| Url | string | URL of a web app to open when the user clicks on the button |
Returns
BotMenuButtonGogram Example
// Creating BotMenuButtonObj constructor obj := &tg.BotMenuButtonObj{ Text: "Hello, World!", Url: "Hello, World!", }