telegram api constructor · layer 229 · #4d8a0299

botInfo

Info about bots (available bot commands, etc)

definition

botInfo#4d8a0299 flags:# has_preview_medias:flags.6?true user_id:flags.0?long description:flags.1?string description_photo:flags.4?Photo description_document:flags.5?Document commands:flags.2?Vector<BotCommand> menu_button:flags.3?BotMenuButton privacy_policy_url:flags.7?string app_settings:flags.8?BotAppSettings verifier_settings:flags.9?BotVerifierSettings = BotInfo;

parameters

nametypedescription
flags#Flags, see TL conditional fields
has_preview_mediasflags.6?trueIf set, the bot has some preview medias for the configured Main Mini App, see here » for more info on Main Mini App preview medias.
user_idflags.0?longID of the bot
descriptionflags.1?stringDescription of the bot
description_photoflags.4?PhotoDescription photo
description_documentflags.5?DocumentDescription animation in MPEG4 format
commandsflags.2?Vector<BotCommand>Bot commands that can be used in the chat
menu_buttonflags.3?BotMenuButtonIndicates the action to execute when pressing the in-UI menu button for bots
privacy_policy_urlflags.7?stringThe 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.
app_settingsflags.8?BotAppSettingsMini app » settings
verifier_settingsflags.9?BotVerifierSettingsThis bot can verify peers: this field contains more info about the verification the bot can assign to peers.

type

BotInfo

history

present in layers 46–229 · constructor id changed 7×

idlayers
#09cf585d46
#98e81d3a62–132
#1b74b335133–139
#e4169b5d140–142
#8f300b57143–185
#82437e74186–192
#36607333193–195
#4d8a0299196–229