- pyTelegramBotAPI
- flask
- oauth2client
- gspread
- poetry
- On telegram app, go to botfather to make a telegram bot, then get API key and save into .env file
- Make google api: The gspread documentation explains how to create Google OAuth2.0 JWTs
- Save the JWTs file into working directory
- In the working directory, run
poetry install
to make the virtualenv. Thenpoetry shell
to activate virtual environment,poetry run python app.py
to run app in debug mode
- Install heroku cli
- Login to heroku by
heroku login
- Create new app
- Go to tab setting, choose
Reveal Config Vars
to set environment variables follow.env
file - Use command:
heroku container:push --app <PROJECT_NAME> web
to build and push docker file - Use command:
heroku container:release --app <PROJECT_NAME> web
to release this app - Done! Go to telegram bot to check the result.