T
T
TowaXakin2021-02-05 16:47:06
API
TowaXakin, 2021-02-05 16:47:06

User.api.getDELETE?

I did everything as in the dock, I want the gs to remain and the message "here is important information, listen!" and the word purring when writing was deleted but gives an error.

a.bomj(/(?purr)\s?(.*)$/i,
function (context, next) {

context.sendAudioMessage(` https://psv4.userapi.com/ `).then(e=> {
context.send(`Here is some important information!`)
user.api.messages.getHistory({peer_id: message.peerId, count:200});
user.api.messages.delete({message_ids: message.conversationMessageId, spam : 0, delete_for_all: 1});
})

});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Kudrin, 2021-02-05
@HepkaPlay

Read better documentation VKontakte.
In the messages.delete method, the message_ids parameter says "list of identifiers".
List: Array, or [id, id1, id2]

user.api.messages.delete({message_ids: [message.conversationMessageId], spam: 0, delete_for_all: 1});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question