Find a file
Alexey Skobkin af73458e29
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
#7 Removing unnecessary statement.
2022-05-30 03:35:16 +03:00
.drone.yml #11 pylama. Hiding pylama installation in Drone CI logs. 2022-05-30 00:36:17 +03:00
.gitignore Database module (#17) 2022-05-29 23:19:17 +03:00
bot.py #7 Database integration. All basic commands implemented in CommandProcessor. Two telegram update middlewares implemented (UserAuthMiddleware, ExceptionHandlerMiddleware). 2022-05-30 03:02:02 +03:00
database.py #6 #7 Adding feed operation methods to the Database class. Creating custom DisplayableException for future usage in CommandProcessor. Some PEP-8 code style changes. 2022-05-30 02:59:40 +03:00
exceptions.py #7 Removing unnecessary statement. 2022-05-30 03:35:16 +03:00
pylama.ini #7 Some pylama tweaks. 2022-05-30 00:36:16 +03:00
README.md #7 Implementing Telegram bot run script. 2022-05-30 00:36:17 +03:00
requirements.txt #7 Database integration. All basic commands implemented in CommandProcessor. Two telegram update middlewares implemented (UserAuthMiddleware, ExceptionHandlerMiddleware). 2022-05-30 03:02:02 +03:00
rss.py little codestyle changes 2022-05-29 23:11:23 +00:00
telegram.py #7 Notifier is now able to process real FeedItem objects. 2022-05-30 03:33:04 +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