channels.ReadHistory
- class pyrogram.raw.functions.channels.ReadHistory
Mark channel/supergroup history as read
- Details:
Layer:
223ID:
CC104937
- Parameters:
channel (
InputChannel) – Channel/supergroupmax_id (
int32-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│ └──
InputChannelFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── max_id →
intExample
await app.invoke(
ReadHistory(
channel=await app.resolve_channel(chat_id),
max_id=0,
)
)