- Create a virtualenv using Python 3
python3 -m venv ~/venv
source ~/venv/bin/activateYou'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 $.
- Install dependencies
pip install -r requirements.txt-
Register a Telegram bot for testing using BotFather. See Creating a new bot section in the Telegram documentation. Make note of the API token.
-
Run the bot locally
python -m rating_bot -v --token YOUR-TOKEN-HEREAlternatively you can skip step 1 and use the system-wide python. In such case run python3 and pip3.