O
O
ojiekcahdp2021-02-25 16:30:14
JavaScript
ojiekcahdp, 2021-02-25 16:30:14

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})
})

There are no errors in the console, the bot does not delete the message.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WolfInChains, 2021-02-25
@ojiekcahdp

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 question

Ask a Question

731 491 924 answers to any question