Telegram Bot to verify if users joining a group are human. The Bot sends an image captcha for each new user and kicks any of them who can't solve the captcha in a specified time.
I have made some changes in the code to avoid any need to modify the joincaptchabot.py file.
Now, the setup to use Heroku should only require to modify the next configurations in the settings.py file (or provide it as environment variables):
# Bot Webhook Host address
"CAPTCHABOT_WEBHOOK_HOST": "https://<appname>.herokuapp.com/",
# Bot Webhook Host Port
"CAPTCHABOT_WEBHOOK_PORT": os_environ.get("PORT", "80"),
# Bot Webhook Certificate (must be None for Heroku)
"CAPTCHABOT_WEBHOOK_CERT" : None,
# Bot Webhook Certificate private key (must be None for Heroku)
"CAPTCHABOT_WEBHOOK_CERT_PRIV_KEY" : None,
# Optionally, to verify request from Telegram Server
# (don't use the Bot Token, for security reason it must be other)
"CAPTCHABOT_WEBHOOK_SECRET_TOKEN" : None,
I have made some changes in the code to avoid any need to modify the joincaptchabot.py file.
Now, the setup to use Heroku should only require to modify the next configurations in the settings.py file (or provide it as environment variables):
Best Regard :)