A
A
AlerX2020-02-16 21:07:58
JavaScript
AlerX, 2020-02-16 21:07:58

The getHistory method doesn't work in conversations, why?

I want to display the history of messages in a conversation in order to find out the message IDs.
I write code

let inf = await vk.api.call('messages.getHistory', {peer_id: message.peerId, count: 1})

Displays history in private messages,
Throws out Access Denied in conversations.
Why? Group token. Tried and off page

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question