F
F
fixik2015-11-21 23:31:54
Java
fixik, 2015-11-21 23:31:54

Messenger VK. How to separate chats and dialogs?

I want to write a small client for VK purely for communication. Faced with a trace. problems:
1. Separation of chats from dialogues (they come together)
2. Instant message receipt
Who faced or knows how to solve, please explain.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2015-11-22
@fixik

well, yes, the getDialogs method returns messages from both chats and dialogs.
But you can sort, because the chat also comes with the chat_id parameter.
So if chat_id came, it means chat, there is no parameter - it means dialogue

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question