messages.ReadDiscussion

class pyrogram.raw.functions.messages.ReadDiscussion

Mark a thread as read

Details:
  • Layer: 223

  • 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
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── msg_idint
└── read_max_idint

Example

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