D
D
Daniil Nelyubin2020-01-08 20:59:33
In contact with
Daniil Nelyubin, 2020-01-08 20:59:33

How to get vk conversation participants via vk api?

yes-yes-yes, I know: go read the documentation.
was reading.
I write like this:
for event in longpoll.listen():
if event.type == VkBotEventType.MESSAGE_NEW:
if event.object.peer_id != event.object.from_id:
if event.object.text.lower() == "text ":
mems = vk.method(messages.getConversationMembers, {"peer_id": event.object.peer_id})
The console outputs:
[917] You don't have access to this chat
Bot responds to messages, has access to all correspondence.
What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pigeon1235, 2020-01-08
@aqz89

Check for administrator rights

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question