channels.deleteHistory
Delete the history of a supergroup
Delete the history of a [supergroup](https://core.telegram.org/api/channel.md)
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
for_everyone | true | いいえ | Whether the history should be deleted for everyone |
channel | InputChannel | はい | [Supergroup](https://core.telegram.org/api/channel.md) whose history must be deleted |
max_id | int | はい | ID of message **up to which** the history must be deleted |
レスポンス
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.