Initialize TelegramNotifier class Args: token (str): The telegram API token. chat_id (str): The chat ID you want the bot to send messages to.
(self, token, chat_id, parse_mode)
| 15 | """ |
| 16 | |
| 17 | def __init__(self, token, chat_id, parse_mode): |
| 18 | """Initialize TelegramNotifier class |
| 19 | |
| 20 | Args: |
| 21 | token (str): The telegram API token. |
| 22 | chat_id (str): The chat ID you want the bot to send messages to. |
| 23 | """ |
| 24 | |
| 25 | self.logger = structlog.get_logger() |
| 26 | self.bot = telegram.Bot(token=token) |
| 27 | self.chat_id = chat_id |
| 28 | self.parse_mode = parse_mode |
| 29 | |
| 30 | |
| 31 | @retry( |
nothing calls this directly
no outgoing calls
no test coverage detected