attachMenuBot
Represents a bot mini app that can be launched from the attachment/side menu » At least one of the show_in_attach_menu or the show_in_side_menu flags will always be set.
type tg.AttachMenuBot struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Inactive | bool | — | If set, before launching the mini app the client should ask the user to add the mini app to the attachment/side menu, and only if the user accepts, after invoking messages toggleBotInAttachMenu the app should be opened. |
HasSettings | bool | — | Deprecated flag, can be ignored. |
RequestWriteAccess | bool | — | Whether the bot would like to send messages to the user. |
ShowInAttachMenu | bool | — | Whether, when installed, an attachment menu entry should be shown for the Mini App. |
ShowInSideMenu | bool | — | Whether, when installed, an entry in the main view side menu should be shown for the Mini App. |
SideMenuDisclaimerNeeded | bool | — | If inactive if set and the user hasn't previously accepted the third-party mini apps Terms of Service for this bot, when showing the mini app installation prompt, an additional mandatory checkbox to accept the mini apps TOS and a disclaimer indicating that this Mini App is not affiliated to Telegram should be shown. |
BotID | int64 | yes | Bot ID |
ShortName | string | yes | Attachment menu item name |
PeerTypes | []AttachMenuPeerTypeClass | — | List of dialog types where this attachment menu entry should be shown |
Icons | []AttachMenuBotIcon | yes | List of platform-specific static icons and animations to use for the attachment menu button |
References
- Official documentation
- Generated Go reference
- TL definition:
attachMenuBot#d90d8dfe