messages.DiscardEncryption

class pyrogram.raw.functions.messages.DiscardEncryption

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

Details:
  • Layer: 223

  • ID: F393AEA0

Parameters:
  • chat_id (int 32-bit) – Secret chat ID

  • delete_history (bool, optional) – Whether to delete the entire chat history for the other user as well

Returns:

bool

TL Schema

messages.discardEncryption#f393aea0
flags:#
delete_history:flags.0?true
chat_id:int

= Bool

Parameter Tree

DiscardEncryption
├── delete_historytrue (optional)
└── chat_idint

Example

await app.invoke(
    DiscardEncryption(
        delete_history=None,
        chat_id=0,
    )
)