messages.ReadEncryptedHistory

class pyrogram.raw.functions.messages.ReadEncryptedHistory

Marks message history within a secret chat as read.

Details:
  • Layer: 223

  • ID: 7F4B690A

Parameters:
  • peer (InputEncryptedChat) – Secret chat ID

  • max_date (int 32-bit) – Maximum date value for received messages in history

Returns:

bool

TL Schema

messages.readEncryptedHistory#7f4b690a
peer:InputEncryptedChat
max_date:int

= Bool

Parameter Tree

ReadEncryptedHistory
├── peerInputEncryptedChat
│ └── InputEncryptedChat
│ ├── chat_idint
│ └── access_hashlong
└── max_dateint

Example

await app.invoke(
    ReadEncryptedHistory(
        peer=InputEncryptedChat(
            chat_id=0,
            access_hash=0
        ),
        max_date=0,
    )
)