Deletes messages from a monoforum topic », or deletes messages forwarded from a specific peer to saved messages ».
Method schema is available as of layer 204. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
parent_peer | flags.0?InputPeer | If set, affects the messages of the passed monoforum topic », otherwise affects saved messages ». |
peer | InputPeer | Peer, whose messages will be deleted from saved messages », or the ID of the topic. |
max_id | int | Maximum ID of message to delete |
min_date | flags.2?int | Delete all messages newer than this UNIX timestamp |
max_date | flags.3?int | Delete all messages older than this UNIX timestamp |
Code | Type | Description |
---|---|---|
400 | PEER_ID_INVALID | The provided peer id is invalid. |
Telegram supports direct messages to channels, which can also be used to suggest (even paid) channel posts.
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.