bots.GetPreviewInfo

class pyrogram.raw.functions.bots.GetPreviewInfo

Bot owners only, fetch main mini app preview information, see here » for more info.

Details:
  • Layer: 227

  • ID: 423AB3AD

Parameters:
  • bot (InputUser) – The bot that owns the Main Mini App.

  • lang_code (str) – Fetch previews for the specified ISO 639-1 language code.

Returns:

bots.PreviewInfo

TL Schema

bots.getPreviewInfo#423ab3ad
bot:InputUser
lang_code:string

= bots.PreviewInfo

Parameter Tree

GetPreviewInfo
├── bot → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
└── lang_code → string

Example

await app.invoke(
    GetPreviewInfo(
        bot=await app.resolve_user(chat_id),
        lang_code="text",
    )
)