messages
messages.deleteConversation
Deletes private messages in a conversation.
To call this method, you can use:
• community access token (access rights required: messages)
Parameters
user_id
integer
User ID.
peer_id
integer
Destination ID.
For user:
User ID, e.g. 12345.
For chat:
2000000000 + chat_id, e.g. 2000000001.
For community:
- community ID, e.g. -12345.
offset
positive
Offset needed to return a specific subset of messages.
count
positive
Number of messages to delete.
NOTE: If the number of messages exceeds the maximum, the method shall be called several times.
group_id
integer
Result
Returns 1.
Error codes
936
Contact not found
Common errors may occur during execution