telegram api method · layer 229 · #f393aea0
messages.discardEncryption
Cancels a request for creation and/or delete info on secret chat.
definition
messages.discardEncryption#f393aea0 flags:# delete_history:flags.0?true chat_id:int = Bool;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
delete_history | true | Whether to delete the entire chat history for the other user as well |
chat_id | int | Secret chat ID |
returns
errors (6)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 8–229 · constructor id changed 1×
| id | layers |
|---|---|
| #edd923c5 | 8–122 |
| #f393aea0 | 123–229 |