tg_rss_bot/update.py

16 lines
355 B
Python
Raw Normal View History

2022-06-12 22:34:02 +00:00
import os
from rss import RssReader
from update_manager import UpdateManager
from database import Database
from telegram import Notifier
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)
2022-07-04 18:38:23 +00:00
updater.update()