View Code? Open in Web Editor
NEW
Reading comments of members of telegram's chat group. Splitting all orders relying on regex then save the information to google sheets.
Dockerfile 1.76%
Python 95.89%
Shell 2.35%
python-orders-collector-bot's Introduction
This is a telegram bot to collect data of order in a chat room
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. Then poetry 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.
python-orders-collector-bot's People
Contributors
Stargazers
Watchers