#
#
#yamynginx2020-02-23 23:26:20
API
#yamynginx, 2020-02-23 23:26:20

How to get a list of conversation admins when creating a conversation on behalf of a group?

Hello.
With the advent of new APIs, new problems arose.
I need to get the creator and admins of the conversation, in other words moderators who can add/exclude participants.
There is a conversation, it has one creator (wow) and a couple of administrators. And here is how they are "displayed" in the conversation:
5e52df06a53cb818921278.png
But through the API (messages.getConversationMembers), the creator community is no longer just a creator, but not even a member (is_member = 0), although it is in the list of conversation participants (??? ??????????!!!!!!!!!!!!!!!??????????!?!?!?!?!?!?!?!?!?? !). In the messages.getChat
5e52dfa572654722163668.png
method , there is only information about the creator of the conversation, but I also need administrators. Shortly speaking...
Et4qFSzOtIw.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2020-02-24
@sergiks

through the API messages.getConversationMembers, the creator community is no longer just a creator, but not even a participant (is_member = 0), although it is in the list of conversation participants

Look in the wrong place - instead of a field, groupslook at the field itemsand the property is_adminin it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question