chore: moved out classes to files
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user