messages.sendEncryptedFile
Sends a message with a file attachment to a secret chat
Example
TL schema
Parameters
Name
Type
Description
flags
silent
Whether to send the file without triggering a notification
peer
Secret chat ID
random_id
Unique client message ID necessary to prevent message resending
data
file
File attachment for the secret chat
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
Was this helpful?