Telegram bot for tracking rating on rating.chgk.info
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
helm
rating_bot
.gitignore
Dockerfile
README.md
requirements.txt

README.md

CHGK rating bot for Telegram

Development

  1. Create a virtualenv using Python 3
python3 -m venv ~/venv
source ~/venv/bin/activate

You'll need to re-activate the virtualenv each time you open a new shell. Run source ~/venv/bin/activate again. The shell prompt should indicate the environment name e.g. (venv) user@host $.

  1. Install dependencies
pip install -r requirements.txt
  1. Register a Telegram bot for testing using BotFather. See Creating a new bot section in the Telegram documentation. Make note of the API token.

  2. Run the bot locally

python -m rating_bot -v --token YOUR-TOKEN-HERE

Alternatively you can skip step 1 and use the system-wide python. In such case run python3 and pip3.