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: 223

  • 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
├── botInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── file_namestring
└── urlstring

Example

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