V
V
Vlad Tanashchuk2020-06-06 14:13:20
Python
Vlad Tanashchuk, 2020-06-06 14:13:20

How to get the ID of the creator of the conversation (or administrators)?

Hello, I'm having a problem getting the admins or creator ID. I use the "messages.getConversationMember" method and from it I was able to get the IDs of all the participants in the conversation, but I could not separate the IDs of the administrators and the creator from the main heap. How can I do that?
Now my script looks something like this:

get_id = session_api.messages.getById(message_ids=event.message_id)
admin_info = session_api.messages.getConversationMembers(peer_id=event.peer_id)
admin_items = admin_info["items"]
for item in admin_items:
    member_get = item["is_owner"]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question