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:
223ID:
5057C497
- Parameters:
peer (
InputEncryptedChat) – The secret chat to associate the file tofile (
InputEncryptedFile) – The file
- Returns:
TL Schema
messages.uploadEncryptedFile#5057c497
peer:InputEncryptedChat
file:InputEncryptedFile
= EncryptedFile
Parameter Tree
UploadEncryptedFile
├── peer →
InputEncryptedChat│ └──
InputEncryptedChat│ ├── chat_id →
int│ └── access_hash →
long└── file →
InputEncryptedFile│ ├── id →
long│ ├── parts →
int│ ├── md5_checksum →
string│ └── key_fingerprint →
int│ ├── id →
long│ └── access_hash →
long├── id →
long├── parts →
int└── key_fingerprint →
intExample
await app.invoke(
UploadEncryptedFile(
peer=InputEncryptedChat(
chat_id=0,
access_hash=0
),
file=InputEncryptedFileEmpty(),
)
)