Compulsory join Telegram Bot
Telegram Bot Application can be added users to Telegram Channel or Group compulsorily. in addition when a user wants to be using your Bot Service. the first of his to-do is joining. this Script creates by Hamed Mohammdavand. Software Engineer and Backend Developer.
pip install pyTelegramBotAPI
pip install telebo
pip install rich
in the above image, you can see 3 methods that have string parameters. you should change those are with your Telegram Bot information. First, input your token in Telebot. (). then from getID bot from telegram, get your CHAT ID and channel CHAT ID by forwarding a message for your specific channel or group. pay attention that using - first integer character.
- Note that You must give admin privileges to the robot in the desired group or channel