Layer 220
MessagesBotApp
Contains information about a direct link Mini App
constructor
messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true has_settings:flags.2?true app:BotApp = messages.BotApp;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Inactive | flags.0?true | Whether the web app was never used by the user, and confirmation must be asked from the user before opening it. |
| RequestWriteAccess | flags.1?true | The bot is asking permission to send messages to the user: if the user agrees, set the write_allowed flag when invoking messages. request App Web View. |
| HasSettings | flags.2?true | Deprecated flag, can be ignored. |
| App | BotApp | Bot app information |
Returns
messages.BotAppGogram Example
// Creating MessagesBotApp constructor obj := &tg.MessagesBotApp{ App: &tg.BotApp{}, // Optional fields: // Inactive: true, // RequestWriteAccess: true, // HasSettings: true, }