Find a file
Alexey Skobkin ec6d707a56
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
telegram. Code style changes.
2022-05-02 23:45:45 +03:00
telegram telegram. Code style changes. 2022-05-02 23:45:45 +03:00
.drone.yml pylama. Hiding pylama installation in Drone CI logs. 2022-05-02 18:30:21 +03:00
.gitignore Adding venv. 'pyTelegramBotAPI' already included. 2022-05-02 01:45:55 +03:00
bot.py telegram. Code style changes. 2022-05-02 23:45:45 +03:00
pylama.ini telegram. Some pylama tweaks. 2022-05-02 18:11:20 +03:00
README.md telegram. Implementing Telegram bot run script. 2022-05-02 19:14:12 +03:00
requirements.txt telegram. Implementing Telegram bot run script. 2022-05-02 19:14:12 +03:00

Telegram RSS Bot

Build Status

Setting up virtual environment

To be able to isolate project environment we'll use Python's venv.

Setting up new environment and installing dependencies

# Create VirtualEnv directory
python -m venv ./.venv
# Loading environment
source .venv/bin/activate
# Installing dependencies
pip install -r requirements.txt

Adding dependencies

# Installing new dependency
pip install somedependency
# Rewriting dependency file
pip freeze > requirements.txt

Do not forget to install the latest dependencies before adding new dependencies and rewriting the requirements.txt file. Otherwise old dependencies could be lost.

Running the bot

export TELEGRAM_TOKEN=xxx
python bot.py