read_encrypted_history()

async Client.read_encrypted_history()

Mark the history of a secret chat as read up to a given date.

Usable by Users Bots
Parameters:
  • peer (InputEncryptedChat) – The secret chat.

  • max_date (int) – The maximum message date to mark as read.

Returns:

bool – True on success.

Example

await app.read_encrypted_history(peer, max_date=1700000000)