K
K
Kirill Legend2020-02-11 16:56:23
In contact with
Kirill Legend, 2020-02-11 16:56:23

VkApi. Why doesn't the messages.getLongPollHistory method return messages from conversations?

Why doesn't the messages.getLongPollHistory method return messages from conversations? It returns from PM, but not from conversations. When I write something in conversations (given the admin panel, etc.), it returns:
{"response":{"history":[],"messages":{"count":0,"items":[]},"new_pts ":10005536,"from_pts":10005536,"conversations":[]}}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2020-02-11
@thelegend3553

To get messages from Conversations, apparently, you need to:

  1. through messages.getConversations() get a list of all conversations,
  2. using the messages.getConversationsById() method to get the desired Conversation object , where to find the id of unread messages, for example;
  3. using the messages.getByConversationMessageId() method to get the messages themselves

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question