messages.BotApp

class pyrogram.raw.types.messages.BotApp

Contains information about a direct link Mini App

Constructor of BotApp.

Details:
  • Layer: 227

  • 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
├── inactive → true (optional)
├── request_write_access → true (optional)
├── has_settings → true (optional)
└── app → BotApp
└── 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

BotApp(
    app=BotAppNotModified(),
)