messages.deleteMessages
Deletes messages by their identifiers.
Example
TL schema
Parameters
Name
Type
Description
flags
revoke
Whether to delete messages for all participants of the chat
id
Message ID list
Result
The method returns the list of successfully deleted messages in Vector[int](https://core.telegram.org/type/int).
Possible errors
Code
Type
Description
403
MESSAGE_DELETE_FORBIDDEN
You can't delete one of the messages you tried to delete, most likely because it is a service message.
Can bots use this methd ?
yes
Related pages
Last updated
Was this helpful?