messages.sendEncryptedFile
Sends a message with a file attachment to a secret chat
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
silent | true | لأ | Whether to send the file without triggering a notification |
peer | InputEncryptedChat | أيوه | Secret chat ID |
random_id | long | أيوه | Unique client message ID necessary to prevent message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |
data | bytes | أيوه | TL-serialization of [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) type, encrypted with a key generated during chat initialization |
file | InputEncryptedFile | أيوه | File attachment for the secret chat |
الردود
messages.SentEncryptedMessage
MTProto RPC
- 400 · CHAT_ID_INVALID — The provided chat id is invalid.
- 400 · DATA_TOO_LONG — Data too long.
- 400 · ENCRYPTION_DECLINED — The secret chat was declined.
- 400 · FILE_EMTPY — An empty file was provided.
- 400 · MD5_CHECKSUM_INVALID — The MD5 checksums do not match.
- 400 · MSG_WAIT_FAILED — A waiting call returned an error.