channels.ReadMessageContents

class pyrogram.raw.functions.channels.ReadMessageContents

Mark channel/supergroup message contents as read, emitting an updateChannelReadMessagesContents.

Details:
  • Layer: 223

  • ID: EAB5DC38

Parameters:
  • channel (InputChannel) – Channel/supergroup

  • id (List of int 32-bit) – IDs of messages whose contents should be marked as read

Returns:

bool

TL Schema

channels.readMessageContents#eab5dc38
channel:InputChannel
id:Vector<int>

= Bool

Parameter Tree

ReadMessageContents
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── idVector < int >

Example

await app.invoke(
    ReadMessageContents(
        channel=await app.resolve_channel(chat_id),
        id=[0],
    )
)