tg_rss_bot/telegram/notifier.py

15 lines
353 B
Python
Raw Normal View History

2022-05-01 23:43:04 +00:00
import telebot
class Notifier:
"""Sends notifications to users about new RSS feed items."""
2022-05-01 23:43:04 +00:00
bot: telebot.TeleBot
def __init__(self, token: str):
self.bot = telebot.TeleBot(token)
"""Send notification to the user"""
2022-05-01 23:43:04 +00:00
def notify(self, chat_id: int):
self.bot.send_message(chat_id=chat_id, text="Notification stub")