Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question