tg_rss_bot/telegram/notifier.py
Alexey Skobkin a3a38a856e
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
telegram. Registering handlers in CommandProcessor. Some docstrings added.
2022-05-02 18:18:13 +03:00

15 lines
353 B
Python

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