Method getHistory does not work in conversations, why?

Want to get the history messages in the chat to find out the ID of the message.
Write code
let inf = await'messages.getHistory', {peer_id: message.peerId, count: 1})

Personal messages displays history,
In conversations throws Access Denied.
Why? A token from the group. Tried and from page
April 7th 20 at 15:21
0 answer

Find more questions by tags JavaScriptVKontakte