UpdateChannelReadMessagesContents

class pyrogram.raw.types.UpdateChannelReadMessagesContents

The specified channel/supergroup messages were read (emitted specifically for messages like voice messages or video, only once the media is watched and marked as read using channels.readMessageContents)

Constructor of Update.

Details:
  • Layer: 223

  • ID: 25F324F7

Parameters:
  • channel_id (int 64-bit) – Channel/supergroup ID

  • messages (List of int 32-bit) – IDs of messages that were read

  • top_msg_id (int 32-bit, optional) – Forum topic ID.

  • saved_peer_id (Peer, optional) – If set, the messages were read within the specified monoforum topic ».

TL Schema

updateChannelReadMessagesContents#25f324f7
flags:#
channel_id:long
top_msg_id:flags.0?int
saved_peer_id:flags.1?Peer
messages:Vector<int>

= Update

Parameter Tree

UpdateChannelReadMessagesContents
├── channel_idlong
├── top_msg_idint (optional)
├── saved_peer_idPeer (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
└── messagesVector < int >

Example

UpdateChannelReadMessagesContents(
    channel_id=0,
    messages=[0],
)