channels.DeleteHistory
- class pyrogram.raw.functions.channels.DeleteHistory
Delete the history of a supergroup
- Details:
Layer:
223ID:
9BAA9647
- Parameters:
channel (
InputChannel) – Supergroup whose history must be deletedmax_id (
int32-bit) – ID of message up to which the history must be deletedfor_everyone (
bool, optional) – Whether the history should be deleted for everyone
- Returns:
TL Schema
channels.deleteHistory#9baa9647
flags:#
for_everyone:flags.0?true
channel:InputChannel
max_id:int
= Updates
Parameter Tree
DeleteHistory
├── for_everyone →
true (optional)├── 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(
DeleteHistory(
for_everyone=None,
channel=await app.resolve_channel(chat_id),
max_id=0,
)
)