tg_rss_bot/telegram/notifier.py
Alexey Skobkin aa75492716
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Telegram package draft.
2022-05-02 15:54:31 +03:00

12 lines
247 B
Python

import telebot
class Notifier:
bot: telebot.TeleBot
def __init__(self, token: str):
self.bot = telebot.TeleBot(token)
def notify(self, chat_id: int):
self.bot.send_message(chat_id=chat_id, text="Notification stub")