chore: moved out classes to files

This commit is contained in:
kbe
2025-07-20 03:43:27 +02:00
parent 6c8647b11c
commit 1fd4463314
6 changed files with 718 additions and 507 deletions

View File

@@ -56,7 +56,7 @@ class SessionNotifier:
message (str): The message content to be sent in the Telegram chat
"""
# Create a Bot instance with the provided token
bot = Bot(token=self.telegram_credentials['token'])
bot = Bot(token=self.telegram_credentials['token'], base_url=self.telegram_credentials.get('base_url', 'https://api.telegram.org'))
# Send the message to the specified chat ID
bot.send_message(chat_id=self.telegram_credentials['chat_id'], text=message)