messages.discardEncryption #

Cancels a request for creation and/or delete info on secret chat.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.discardEncryption#f393aea0 flags:# delete_history:flags.0?true chat_id:int = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
delete_historyflags.0?trueWhether to delete the entire chat history for the other user as well
chat_idintSecret chat ID

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ID_EMPTYThe provided chat ID is empty.
400ENCRYPTION_ALREADY_ACCEPTEDSecret chat already accepted.
400ENCRYPTION_ALREADY_DECLINEDThe secret chat was already declined.
400ENCRYPTION_ID_INVALIDThe provided secret chat ID is invalid.