Answer the question
In order to leave comments, you need to log in
Why doesn't VK API Messages Delete work?
I'm using vk api, I want to delete messages from a conversation, through a community token (where the community is the administrator).
const { VK } = require('vk-io');
const vk = new VK({
token: 'токен'
});
vk.updates.on('message', next => {
vk.api.messages.delete({message_ids: next.conversationMessageId, delete_for_all: 1})
})
Answer the question
In order to leave comments, you need to log in
Bots don't seem to be able to delete messages for everyone. This only works in conversations created on behalf of the community.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question