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: 223

  • ID: A556DAC8

Parameters:
  • peer (InputPeer) – The peer whose stories should be marked as read.

  • max_id (int 32-bit) – Mark all stories up to and including this ID as read

Returns:

List of int 32-bit

TL Schema

stories.readStories#a556dac8
peer:InputPeer
max_id:int

= Vector<int>

Parameter Tree

ReadStories
├── 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
└── max_idint

Example

await app.invoke(
    ReadStories(
        peer=await app.resolve_peer(chat_id),
        max_id=0,
    )
)