telegram api method · layer 229 · #f393aea0

messages.discardEncryption

usable by users

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

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

returns

Bool

errors (6)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
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.
401AUTH_KEY_UNREGISTEREDThe 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×

idlayers
#edd923c58–122
#f393aea0123–229