4
4
4anlol2019-03-24 13:34:26
Python
4anlol, 2019-03-24 13:34:26

How to check if a person is a member of a community (VK API, LONGPOLL)?

We need a python code to check if a person is in the community, I think it will be like this:
we get a message, if the id is in the conversation, then the code goes further, and if not: you are not subscribed, and so on.
How do I implement this? (PYTHON 3.7)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Payne, 2019-03-24
@YardalGedal

then the code goes further, and if not: you are not signed, and so on.

Firstly, if you do this, the community will be blocked.
Secondly, you need a code - write or pay someone who writes. We do not write code here, but we can suggest what I will do. Longpull returns the identifier of the person who sent the message (user_id / from_id). Next, you need to form and send a new request to the groups.isMember API method .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question