messages.ReadDiscussion
- class pyrogram.raw.functions.messages.ReadDiscussion
Mark a thread as read
- Details:
Layer:
223ID:
F731A9F4
- Parameters:
peer (
InputPeer) – Group IDmsg_id (
int32-bit) – ID of message that started the threadread_max_id (
int32-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│ ├──
InputPeerUserFromMessage│ │ ├── 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 →
intExample
await app.invoke(
ReadDiscussion(
peer=await app.resolve_peer(chat_id),
msg_id=0,
read_max_id=0,
)
)