messages.sendEncryptedService
Sends a service message to a secret chat.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
peer | InputEncryptedChat | はい | Secret chat ID |
random_id | long | はい | Unique client message ID required 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 |
レスポンス
messages.SentEncryptedMessage
MTProto RPC
- 400 · CHAT_ID_INVALID — The provided chat id is invalid.
- 400 · DATA_INVALID — Encrypted data invalid.
- 400 · DATA_TOO_LONG — Data too long.
- 400 · ENCRYPTION_DECLINED — The secret chat was declined.
- 400 · ENCRYPTION_ID_INVALID — The provided secret chat ID is invalid.
- 500 · MSG_WAIT_FAILED — A waiting call returned an error.
- 403 · USER_DELETED — You can't send this secret message because the other participant deleted their account.
- 403 · USER_IS_BLOCKED — You were blocked by this user.