Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This is implemented by the getChatMember(chat_id, user_id) method, where:
chat_id - id of the channel (or group, supergroup);
user_id - user id.
If the user is subscribed to the channel, the method returns a ChatMember object containing all user data. Accordingly, check the user with this method, and if the method does not return a successful response, then the user is not subscribed to the channel.
By-design cannot get a list of users who are subscribed to a channel.
If you need to check if the user is in the channel, you will have to do it somehow indirectly.
At the level of "click on such and such a button on such and such a post"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question