MessageActionBotAllowed

class pyrogram.raw.types.MessageActionBotAllowed

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

Constructor of MessageAction.

Details:
  • Layer: 223

  • 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_menutrue (optional)
├── from_requesttrue (optional)
├── domainstring (optional)
└── appBotApp (optional)
└── BotApp
├── idlong
├── access_hashlong
├── short_namestring
├── titlestring
├── descriptionstring
├── photoPhoto
│ ├── PhotoEmpty
│ │ └── idlong
│ └── Photo
│ ├── has_stickerstrue (optional)
│ ├── idlong
│ ├── access_hashlong
│ ├── file_referencebytes
│ ├── dateint
│ ├── sizesVector < PhotoSize >
│ │ ├── PhotoSizeEmpty
│ │ ├── PhotoSize
│ │ ├── PhotoCachedSize
│ │ ├── PhotoStrippedSize
│ │ ├── PhotoSizeProgressive
│ │ └── PhotoPathSize
│ ├── video_sizesVector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ ├── VideoSizeEmojiMarkup
│ │ └── VideoSizeStickerMarkup
│ └── dc_idint
├── documentDocument (optional)
│ ├── DocumentEmpty
│ │ └── idlong
│ └── Document
│ ├── idlong
│ ├── access_hashlong
│ ├── file_referencebytes
│ ├── dateint
│ ├── mime_typestring
│ ├── sizelong
│ ├── thumbsVector < PhotoSize > (optional)
│ │ ├── PhotoSizeEmpty
│ │ ├── PhotoSize
│ │ ├── PhotoCachedSize
│ │ ├── PhotoStrippedSize
│ │ ├── PhotoSizeProgressive
│ │ └── PhotoPathSize
│ ├── video_thumbsVector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ ├── VideoSizeEmojiMarkup
│ │ └── VideoSizeStickerMarkup
│ ├── dc_idint
│ └── attributesVector < DocumentAttribute >
└── hashlong

Example

MessageActionBotAllowed(
)