vitruviy
Member
Hello everyone.
I want my Telegram-bot to check the user's subscription to the specified channel before he could use this bot.
I want to make the following:
1. a user starts my Telegram-bot
2. he gets the message "To use this bot subscribe to the channel X" with 2 buttons: "Subscribe to X" and "Next"
3. after subscribing the user presses "Next"
4. if he didn't subscribe the "Next" button returns him the same message as in point 2
5. if he is subscribed the "Next" button lets him use the bot
6. if while using the bot he unsubscribes from the channel he loses the ability to use bot and it again sends him the same message as in point 2
I tried to use some modules but haven't found any mention about subscriptions to Telegram channels and checking whether the user subscribed to it or not.
Which modules should I use for making this functionality?
I want my Telegram-bot to check the user's subscription to the specified channel before he could use this bot.
I want to make the following:
1. a user starts my Telegram-bot
2. he gets the message "To use this bot subscribe to the channel X" with 2 buttons: "Subscribe to X" and "Next"
3. after subscribing the user presses "Next"
4. if he didn't subscribe the "Next" button returns him the same message as in point 2
5. if he is subscribed the "Next" button lets him use the bot
6. if while using the bot he unsubscribes from the channel he loses the ability to use bot and it again sends him the same message as in point 2
I tried to use some modules but haven't found any mention about subscriptions to Telegram channels and checking whether the user subscribed to it or not.
Which modules should I use for making this functionality?