BotInfo
- class pyrogram.raw.types.BotInfo
Info about bots (available bot commands, etc)
Constructor of
BotInfo.- Details:
Layer:
223ID:
4D8A0299
- Parameters:
has_preview_medias (
bool, optional) – 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.user_id (
int64-bit, optional) – ID of the botdescription (
str, optional) – Description of the botdescription_photo (
Photo, optional) – Description photodescription_document (
Document, optional) – Description animation in MPEG4 formatcommands (List of
BotCommand, optional) – Bot commands that can be used in the chatmenu_button (
BotMenuButton, optional) – Indicates the action to execute when pressing the in-UI menu button for botsprivacy_policy_url (
str, optional) – 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.app_settings (
BotAppSettings, optional) – Mini app » settingsverifier_settings (
BotVerifierSettings, optional) – This bot can verify peers: this field contains more info about the verification the bot can assign to peers.
TL Schema
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
Parameter Tree
true (optional)long (optional)string (optional)Photo (optional)PhotoEmptylongPhototrue (optional)longlongbytesintVector < PhotoSize >PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intDocument (optional)DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intVector < DocumentAttribute >intintDocumentAttributeStickertrue (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftsMaskCoords (optional)MaskCoordsDocumentAttributeVideotrue (optional)true (optional)true (optional)doubleintintint (optional)double (optional)string (optional)DocumentAttributeAudiotrue (optional)intstring (optional)string (optional)bytes (optional)stringtrue (optional)true (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetDiceInputStickerSetTonGiftsVector < BotCommand > (optional)BotCommandstringstringBotMenuButton (optional)BotMenuButtonDefaultBotMenuButtonCommandsBotMenuButtonstringstringstring (optional)BotAppSettings (optional)BotAppSettingsbytes (optional)int (optional)int (optional)int (optional)int (optional)BotVerifierSettings (optional)true (optional)longstringstring (optional)Example
BotInfo(
)