delete_message
To delete a message, use the command messages/delete_message:
svc=messages/delete_message¶ms={"msgIndex":<uint>}
You can find an example of this request in the sample messages.
Parameters
The required parameters are marked with an asterisk (*).
Name | Description |
---|---|
msgIndex* | Message index. |
Response
{} /* an empty object if the execution is successful; if not, an error code */
Error codes
Error code | Description |
---|---|
4 | There is no such message or this message is the last one and can't be deleted, or failed to fetch the unit. |
6 | Error deleting message. |
7 | User not found, or no rights on message deletion. |