channels.deleteHistory
Delete the history of a supergroup
Delete the history of a [supergroup](https://core.telegram.org/api/channel.md)
| Name | Type | Required | Description |
|---|---|---|---|
for_everyone | true | No | Whether the history should be deleted for everyone |
channel | InputChannel | Yes | [Supergroup](https://core.telegram.org/api/channel.md) whose history must be deleted |
max_id | int | Yes | ID of message **up to which** the history must be deleted |
Replies
Updates
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · CHANNEL_PARICIPANT_MISSING — The current user is not in the channel.
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · CHANNEL_TOO_BIG — This channel has too many participants (>1000) to be deleted.
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.