stories.ReadStories
- class pyrogram.raw.functions.stories.ReadStories
Mark all stories up to a certain ID as read, for a given peer; will emit an updateReadStories update to all logged-in sessions.
- Details:
Layer:
223ID:
A556DAC8
- Parameters:
peer (
InputPeer) – The peer whose stories should be marked as read.max_id (
int32-bit) – Mark all stories up to and including this ID as read
- Returns:
List of
int32-bit
TL Schema
stories.readStories#a556dac8
peer:InputPeer
max_id:int
= Vector<int>
Parameter Tree
ReadStories
├── 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└── max_id →
intExample
await app.invoke(
ReadStories(
peer=await app.resolve_peer(chat_id),
max_id=0,
)
)