GramIO API Reference / gramio/dist / TelegramMenuButtonWebApp
Interface: TelegramMenuButtonWebApp
Defined in: @gramio/types/out/objects.d.ts:5304
Represents a menu button, which launches a Web App.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
text | string | Text on the button | @gramio/types/out/objects.d.ts:5312 |
type | "web_app" | Type of the button, must be web_app | @gramio/types/out/objects.d.ts:5308 |
web_app | TelegramWebAppInfo | Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link. | @gramio/types/out/objects.d.ts:5316 |