channels.ReadHistory

class pyrogram.raw.functions.channels.ReadHistory

Mark channel/supergroup history as read

Details:
  • Layer: 227

  • 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
├── channel → InputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── max_id → int

Example

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