messages.deleteSavedHistory #

Deletes messages from a monoforum topic », or deletes messages forwarded from a specific peer to saved messages ».

Layer 223

messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
---functions---
messages.deleteSavedHistory#4dc5085f flags:# parent_peer:flags.0?InputPeer peer:InputPeer max_id:int min_date:flags.2?int max_date:flags.3?int = messages.AffectedHistory;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
parent_peerflags.0?InputPeerIf set, affects the messages of the passed monoforum topic », otherwise affects saved messages ».
peerInputPeerPeer, whose messages will be deleted from saved messages », or the ID of the topic.
max_idintMaximum ID of message to delete
min_dateflags.2?intDelete all messages newer than this UNIX timestamp
max_dateflags.3?intDelete all messages older than this UNIX timestamp

Result #

messages.AffectedHistory

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

Direct messages to channels #

Telegram supports direct messages to channels, which can also be used to suggest (even paid) channel posts.

Saved messages #

The Saved Messages chat allows users to bookmark messages and media: it's a personal cloud storage for any messages or media you may want to send or forward there.