|
@@ -59,10 +59,10 @@ class TelegramTradingBot:
|
|
|
|
|
|
async def send_message(self, text: str, parse_mode: str = 'HTML') -> None:
|
|
|
"""Send a message to the authorized chat."""
|
|
|
- if self.application and self.authorized_chat_id:
|
|
|
+ if self.application and Config.TELEGRAM_CHAT_ID:
|
|
|
try:
|
|
|
await self.application.bot.send_message(
|
|
|
- chat_id=self.authorized_chat_id,
|
|
|
+ chat_id=Config.TELEGRAM_CHAT_ID,
|
|
|
text=text,
|
|
|
parse_mode=parse_mode
|
|
|
)
|