aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/telegram_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/telegram_handler.py b/src/telegram_handler.py
index 4ccc83e..649471d 100644
--- a/src/telegram_handler.py
+++ b/src/telegram_handler.py
@@ -16,8 +16,8 @@ class Telegram:
async def async_send_message(self, text):
- async with bot:
- await bot.send_message(text=text, chat_id=config['chat_id'])
+ async with self.bot:
+ await self.bot.send_message(text=text, chat_id=self.config['chat_id'])
async def init_bot(self):