channels.deleteMessages
Delete messages in a channel/supergroup
Delete messages in a [channel/supergroup](https://core.telegram.org/api/channel.md)
| Name | Type | Required | Description |
|---|---|---|---|
channel | InputChannel | Yes | [Channel/supergroup](https://core.telegram.org/api/channel.md) |
id | Vector<int> | Yes | IDs of messages to delete |
Responses
messages.AffectedMessages
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 406 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 420 · FROZEN_METHOD_INVALID — The current account is [frozen](https://core.telegram.org/api/auth.md#frozen-accounts), and thus cannot execute the specified action.
- 403 · MESSAGE_DELETE_FORBIDDEN — You can't delete one of the messages you tried to delete, most likely because it is a service message.
- 400 · MSG_ID_INVALID — Invalid message ID provided.