-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a way that let the bot "unuseable" until the user subscribe to a specific channel #195
Comments
in here we mostly use command if I remember correctly, something like "/start" to trigger the event in your code, trigger event here meaning that you write a function in the "/start" command, so when the user click "/start" or "subs" then you trigger subscribe to the channel |
you don't understands me well, i will make it clear as an example
did you get the idea? i need the bot command not be working until the user subs to the channel |
u need a function to trigger or use conditional statement, if user != subs then disable the command |
How i can do this in Telebot ?
and how to make a code, that while the user not in the channel and keep talking to the bot
the bot till him that he has to subscribe to the channel
and when he does the subscribe, the bot work
The text was updated successfully, but these errors were encountered: