python-telegram-bot-example
An example of a Telegram bot using python-telegram-bot , webhooks (no polling!), Heroku for deplying it and with analytics thanks to botan.io
Usage
-
Create a heroku app
heroku apps:create mybot
-
Deploy this code:
git push heroku master
-
Register your bot in Telegram and get a token
-
Get a token from http://botan.io
-
Config some variables:
heroku config:set -a mybot TELEGRAM_TOKEN= HEROKU_BASE_URL=https://mybot.herokuapp.com BOTAN_TOKEN=