BotInfo

class pyrogram.raw.types.BotInfo

Info about bots (available bot commands, etc)

Constructor of BotInfo.

Details:
  • Layer: 227

  • ID: 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 (int 64-bit, optional) – ID of the bot

  • description (str, optional) – Description of the bot

  • description_photo (Photo, optional) – Description photo

  • description_document (Document, optional) – Description animation in MPEG4 format

  • commands (List of BotCommand, optional) – Bot commands that can be used in the chat

  • menu_button (BotMenuButton, optional) – Indicates the action to execute when pressing the in-UI menu button for bots

  • privacy_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 » settings

  • verifier_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

BotInfo
├── has_preview_medias → true (optional)
├── user_id → long (optional)
├── description → string (optional)
├── description_photo → Photo (optional)
│ ├── PhotoEmpty
│ │ └── id → long
│ └── Photo
│ ├── has_stickers → true (optional)
│ ├── id → long
│ ├── access_hash → long
│ ├── file_reference → bytes
│ ├── date → int
│ ├── sizes → Vector < PhotoSize >
│ │ ├── PhotoSizeEmpty
│ │ │ └── type → string
│ │ ├── PhotoSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── size → int
│ │ ├── PhotoCachedSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── bytes → bytes
│ │ ├── PhotoStrippedSize
│ │ │ ├── type → string
│ │ │ └── bytes → bytes
│ │ ├── PhotoSizeProgressive
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── sizes → Vector < int >
│ │ └── PhotoPathSize
│ │ ├── type → string
│ │ └── bytes → bytes
│ ├── video_sizes → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ ├── size → int
│ │ │ └── video_start_ts → double (optional)
│ │ ├── VideoSizeEmojiMarkup
│ │ │ ├── emoji_id → long
│ │ │ └── background_colors → Vector < int >
│ │ └── VideoSizeStickerMarkup
│ │ ├── stickerset → InputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── sticker_id → long
│ │ └── background_colors → Vector < int >
│ └── dc_id → int
├── description_document → Document (optional)
│ ├── DocumentEmpty
│ │ └── id → long
│ └── Document
│ ├── id → long
│ ├── access_hash → long
│ ├── file_reference → bytes
│ ├── date → int
│ ├── mime_type → string
│ ├── size → long
│ ├── thumbs → Vector < PhotoSize > (optional)
│ │ ├── PhotoSizeEmpty
│ │ │ └── type → string
│ │ ├── PhotoSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── size → int
│ │ ├── PhotoCachedSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── bytes → bytes
│ │ ├── PhotoStrippedSize
│ │ │ ├── type → string
│ │ │ └── bytes → bytes
│ │ ├── PhotoSizeProgressive
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── sizes → Vector < int >
│ │ └── PhotoPathSize
│ │ ├── type → string
│ │ └── bytes → bytes
│ ├── video_thumbs → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ ├── size → int
│ │ │ └── video_start_ts → double (optional)
│ │ ├── VideoSizeEmojiMarkup
│ │ │ ├── emoji_id → long
│ │ │ └── background_colors → Vector < int >
│ │ └── VideoSizeStickerMarkup
│ │ ├── stickerset → InputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── sticker_id → long
│ │ └── background_colors → Vector < int >
│ ├── dc_id → int
│ └── attributes → Vector < DocumentAttribute >
│ │ ├── w → int
│ │ └── h → int
│ │ ├── mask → true (optional)
│ │ ├── alt → string
│ │ ├── stickerset → InputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ └── mask_coords → MaskCoords (optional)
│ │ └── MaskCoords
│ │ ├── round_message → true (optional)
│ │ ├── supports_streaming → true (optional)
│ │ ├── nosound → true (optional)
│ │ ├── duration → double
│ │ ├── w → int
│ │ ├── h → int
│ │ ├── preload_prefix_size → int (optional)
│ │ ├── video_start_ts → double (optional)
│ │ └── video_codec → string (optional)
│ │ ├── voice → true (optional)
│ │ ├── duration → int
│ │ ├── title → string (optional)
│ │ ├── performer → string (optional)
│ │ └── waveform → bytes (optional)
│ │ └── file_name → string
│ ├── free → true (optional)
│ ├── text_color → true (optional)
│ ├── alt → string
│ └── stickerset → InputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ ├── InputStickerSetDice
├── commands → Vector < BotCommand > (optional)
│ └── BotCommand
│ ├── command → string
│ └── description → string
├── menu_button → BotMenuButton (optional)
│ ├── BotMenuButtonDefault
│ ├── BotMenuButtonCommands
│ └── BotMenuButton
│ ├── text → string
│ └── url → string
├── privacy_policy_url → string (optional)
├── app_settings → BotAppSettings (optional)
│ └── BotAppSettings
│ ├── placeholder_path → bytes (optional)
│ ├── background_color → int (optional)
│ ├── background_dark_color → int (optional)
│ ├── header_color → int (optional)
│ └── header_dark_color → int (optional)
└── verifier_settings → BotVerifierSettings (optional)
├── can_modify_custom_description → true (optional)
├── icon → long
├── company → string
└── custom_description → string (optional)

Example

BotInfo(
)