messages.sendEncryptedFile
Sends a message with a file attachment to a secret chat
Example
TL schema
Parameters
Name
Type
Description
data
TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization
Result
Possible errors
Code
Type
Description
400
DATA_TOO_LONG
Data too long
400
ENCRYPTION_DECLINED
The secret chat was declined
400
MD5_CHECKSUM_INVALID
The MD5 checksums do not match
400
MSG_WAIT_FAILED
A waiting call returned an error
Can bots use this methd ?
yes
Related pages
Object describes the contents of an encrypted message.
Last updated