tg_rss_bot/update.py
Miroslavsckaya 7c373c8f78
All checks were successful
continuous-integration/drone/push Build is passing
Fixes (#28)
Reviewed-on: #28
Reviewed-by: Alexey Skobkin <skobkin-ru@ya.ru>
2022-07-09 02:49:12 +03:00

19 lines
401 B
Python

import os
from rss import RssReader
from update_manager import UpdateManager
from database import Database
from telegram import Notifier
from dotenv import load_dotenv
load_dotenv()
token = os.getenv('TELEGRAM_TOKEN')
db_path = os.getenv('DATABASE_PATH')
db = Database(db_path)
notifier = Notifier(token)
rss_reader = RssReader()
updater = UpdateManager(db, notifier, rss_reader)
updater.update()