messages.deleteMessages
Deletes messages by their identifiers.
Example
TL schema
Parameters
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