Skip to main content

botInfo

Info about bots (available bot commands, etc)

type tg.BotInfo struct { /* ... */ }

Fields​

NameTypeRequiredDescription
HasPreviewMediasbool—If set, the bot has some preview medias for the configured Main Mini App, see here » for more info on Main Mini App preview medias.
UserIDint64—ID of the bot
Descriptionstring—Description of the bot
DescriptionPhotoPhotoClass—Description photo
DescriptionDocumentDocumentClass—Description animation in MPEG4 format
Commands[]BotCommand—Bot commands that can be used in the chat
MenuButtonBotMenuButtonClass—Indicates the action to execute when pressing the in-UI menu button for bots
PrivacyPolicyURLstring—The HTTP link to the privacy policy of the bot. If not set, then the /privacy command must be used, if supported by the bot (i.e. if it's present in the commands vector). If it isn't supported, then https://telegram.org/privacy-tpa must be opened, instead.
AppSettingsBotAppSettings—Mini app » settings
VerifierSettingsBotVerifierSettings—This bot can verify peers: this field contains more info about the verification the bot can assign to peers.

References​