MessageActionBotAllowed

class pyrogram.raw.types.MessageActionBotAllowed

We have given the bot permission to send us direct messages.

Constructor of MessageAction.

Details:
  • Layer: 227

  • ID: C516D679

Parameters:
  • attach_menu (bool, optional) – We have authorized the bot to send us messages by installing the bot’s attachment menu.

  • from_request (bool, optional) – We have allowed the bot to send us messages using bots.allowSendMessage ».

  • domain (str, optional) – We have authorized the bot to send us messages by logging into a website via Telegram Login »; this field contains the domain name of the website on which the user has logged in.

  • app (BotApp, optional) – We have authorized the bot to send us messages by opening the specified bot mini app.

TL Schema

messageActionBotAllowed#c516d679
flags:#
attach_menu:flags.1?true
from_request:flags.3?true
domain:flags.0?string
app:flags.2?BotApp

= MessageAction

Parameter Tree

MessageActionBotAllowed
├── attach_menu → true (optional)
├── from_request → true (optional)
├── domain → string (optional)
└── app → BotApp (optional)
└── BotApp
├── id → long
├── access_hash → long
├── short_name → string
├── title → string
├── description → string
├── photo → Photo
│ ├── PhotoEmpty
│ │ └── id → long
│ └── Photo
│ ├── has_stickers → true (optional)
│ ├── id → long
│ ├── access_hash → long
│ ├── file_reference → bytes
│ ├── date → int
│ ├── sizes → Vector < PhotoSize >
│ │ ├── PhotoSizeEmpty
│ │ ├── PhotoSize
│ │ ├── PhotoCachedSize
│ │ ├── PhotoStrippedSize
│ │ ├── PhotoSizeProgressive
│ │ └── PhotoPathSize
│ ├── video_sizes → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ ├── VideoSizeEmojiMarkup
│ │ └── VideoSizeStickerMarkup
│ └── dc_id → int
├── 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
│ │ ├── PhotoSize
│ │ ├── PhotoCachedSize
│ │ ├── PhotoStrippedSize
│ │ ├── PhotoSizeProgressive
│ │ └── PhotoPathSize
│ ├── video_thumbs → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ ├── VideoSizeEmojiMarkup
│ │ └── VideoSizeStickerMarkup
│ ├── dc_id → int
│ └── attributes → Vector < DocumentAttribute >
└── hash → long

Example

MessageActionBotAllowed(
)