messages.BotApp

class pyrogram.raw.types.messages.BotApp

Contains information about a direct link Mini App

Constructor of BotApp.

Details:
  • Layer: 223

  • ID: EB50ADF5

Parameters:
  • app (BotApp) – Bot app information

  • inactive (bool, optional) – Whether the web app was never used by the user, and confirmation must be asked from the user before opening it.

  • request_write_access (bool, optional) – The bot is asking permission to send messages to the user: if the user agrees, set the write_allowed flag when invoking messages.requestAppWebView.

  • has_settings (bool, optional) – Deprecated flag, can be ignored.

Functions:

This object can be returned by 1 function.

messages.GetBotApp

Obtain information about a direct link Mini App

TL Schema

messages.botApp#eb50adf5
flags:#
inactive:flags.0?true
request_write_access:flags.1?true
has_settings:flags.2?true
app:BotApp

= messages.BotApp

Parameter Tree

BotApp
├── inactivetrue (optional)
├── request_write_accesstrue (optional)
├── has_settingstrue (optional)
└── appBotApp
└── 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

BotApp(
    app=BotAppNotModified(),
)