bots.CheckDownloadFileParams

class pyrogram.raw.functions.bots.CheckDownloadFileParams

Check if a mini app can request the download of a specific file: called when handling web_app_request_file_download events »

Details:
  • Layer: 227

  • ID: 50077589

Parameters:
  • bot (InputUser) – The bot that owns the mini app that requested the download

  • file_name (str) – The filename from the web_app_request_file_download event »

  • url (str) – The url from the web_app_request_file_download event »

Returns:

bool

TL Schema

bots.checkDownloadFileParams#50077589
bot:InputUser
file_name:string
url:string

= Bool

Parameter Tree

CheckDownloadFileParams
├── 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
├── file_name → string
└── url → string

Example

await app.invoke(
    CheckDownloadFileParams(
        bot=await app.resolve_user(chat_id),
        file_name="text",
        url="https://google.com",
    )
)