messages.ReadDiscussion

class pyrogram.raw.functions.messages.ReadDiscussion

Mark a thread as read

Details:
  • Layer: 227

  • ID: F731A9F4

Parameters:
  • peer (InputPeer) – Group ID

  • msg_id (int 32-bit) – ID of message that started the thread

  • read_max_id (int 32-bit) – ID up to which thread messages were read

Returns:

bool

TL Schema

messages.readDiscussion#f731a9f4
peer:InputPeer
msg_id:int
read_max_id:int

= Bool

Parameter Tree

ReadDiscussion
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── msg_id → int
└── read_max_id → int

Example

await app.invoke(
    ReadDiscussion(
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        read_max_id=0,
    )
)