messages.UploadEncryptedFile

class pyrogram.raw.functions.messages.UploadEncryptedFile

Upload encrypted file and associate it to a secret chat (without actually sending it to the chat).

Details:
  • Layer: 223

  • ID: 5057C497

Parameters:
Returns:

EncryptedFile

TL Schema

messages.uploadEncryptedFile#5057c497
peer:InputEncryptedChat
file:InputEncryptedFile

= EncryptedFile

Parameter Tree

UploadEncryptedFile
├── peerInputEncryptedChat
│ └── InputEncryptedChat
│ ├── chat_idint
│ └── access_hashlong
└── fileInputEncryptedFile
│ ├── idlong
│ ├── partsint
│ ├── md5_checksumstring
│ └── key_fingerprintint
│ ├── idlong
│ └── access_hashlong
├── idlong
├── partsint
└── key_fingerprintint

Example

await app.invoke(
    UploadEncryptedFile(
        peer=InputEncryptedChat(
            chat_id=0,
            access_hash=0
        ),
        file=InputEncryptedFileEmpty(),
    )
)