messages.discardEncryption
Cancels a request for creation and/or delete info on secret chat.
| Name | Type | Required | Description |
|---|---|---|---|
delete_history | true | No | Whether to delete the entire chat history for the other user as well |
chat_id | int | Yes | Secret chat ID |
Responses
Bool
MTProto RPC
- 400 · CHAT_ID_EMPTY — The provided chat ID is empty.
- 400 · ENCRYPTION_ALREADY_ACCEPTED — Secret chat already accepted.
- 400 · ENCRYPTION_ALREADY_DECLINED — The secret chat was already declined.
- 400 · ENCRYPTION_ID_INVALID — The provided secret chat ID is invalid.