discard_encryption()¶
- async Client.discard_encryption()¶
Discard/close a secret (end-to-end encrypted) chat.
Usable by Users Bots- Parameters:
chat_id (
int) – The secret chat ID to discard.delete_history (
bool, optional) – If True, delete the chat history.
- Returns:
bool– True on success.
Example
await app.discard_encryption(secret_chat_id)