messages.sendEncryptedService
Sends a service message to a secret chat.
Example
TL schema
Parameters
Name | Type | Description |
peer | Secret chat ID | |
random_id | Unique client message ID required to prevent message resending | |
data | TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization |
Result
Possible errors
Code | Type | Description |
400 | DATA_INVALID | Encrypted data invalid |
400 | ENCRYPTION_DECLINED | The secret chat was declined |
400 | ENCRYPTION_ID_INVALID | The provided secret chat ID is invalid |
400 | MSG_WAIT_FAILED | A waiting call returned an error |
403 | USER_IS_BLOCKED | You were blocked by this user |
Can bots use this methd ?
yes
Related pages
Object describes the contents of an encrypted message.
Last updated