channels.ReadHistory

class pyrogram.raw.functions.channels.ReadHistory

Mark channel/supergroup history as read

Details:
  • Layer: 223

  • ID: CC104937

Parameters:
  • channel (InputChannel) – Channel/supergroup

  • max_id (int 32-bit) – ID of message up to which messages should be marked as read

Returns:

bool

TL Schema

channels.readHistory#cc104937
channel:InputChannel
max_id:int

= Bool

Parameter Tree

ReadHistory
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── max_idint

Example

await app.invoke(
    ReadHistory(
        channel=await app.resolve_channel(chat_id),
        max_id=0,
    )
)