Z
Z
zer02021-01-07 16:04:47
Python
zer0, 2021-01-07 16:04:47

How to check if a user is subscribed to a specific channel?

I am writing telegram bots on the PyTelegramBotApi (telebot) library and I need to make the bot work only if the user has subscribed to a specific channel. I know that the bot needs to be added to the group and made the admin, but I don't know how to write such a script that will check if the user is signed in.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-01-07
@KESNHIN

Check via getChatMember

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question