Skip to main content

botInfo

Info about bots (available bot commands, etc)

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

Fields

NameTypeRequiredDescription
HasPreviewMediasboolIf set, the bot has some preview medias for the configured Main Mini App, see here » for more info on Main Mini App preview medias.
UserIDint64ID of the bot
DescriptionstringDescription of the bot
DescriptionPhotoPhotoClassDescription photo
DescriptionDocumentDocumentClassDescription animation in MPEG4 format
Commands[]BotCommandBot commands that can be used in the chat
MenuButtonBotMenuButtonClassIndicates the action to execute when pressing the in-UI menu button for bots
PrivacyPolicyURLstringThe 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.
AppSettingsBotAppSettingsMini app » settings
VerifierSettingsBotVerifierSettingsThis bot can verify peers: this field contains more info about the verification the bot can assign to peers.

References