Answer the question
In order to leave comments, you need to log in
How to get all messages from a dialog in vk.com?
Hello. I'm trying to figure out the messages.getHistory method, in particular while experimenting with their form for configuring settings. I can’t figure out where exactly to enter the id of the conversation (not a group, not a chat with a specific user, but a conversation where several users participate). I tried with the peer_id parameter (I entered both just id and, as in the documentation with 2000000000 (200000000013 for example)), I also tried to enter the conversation id in the user_id field ... In general, how to get a list of messages in a conversation correctly? Thanks to all.
Answer the question
In order to leave comments, you need to log in
Firstly, do not use the request generator built into the dock (it is buggy and requires you to specify an access_token)
Therefore, you need to directly manually (you can use the browser) create a get request in which you need to specify a peer_id equal to 2000000000 + conversation ID (not concatenation, but just addition). Also, be sure to specify the access_token (required with "messages" rights) and the version (at least 5.38, the latest one is better at the moment - 5.53)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question