diff --git a/telegram_client.py b/telegram_client.py index be02181..21f24a1 100644 --- a/telegram_client.py +++ b/telegram_client.py @@ -49,7 +49,7 @@ class TelegramClient: self.client.add_handler(DisconnectHandler(self._on_disconnect)) logger.info("connection_handlers: connection handlers set up") - def _on_disconnect(self, _client): + async def _on_disconnect(self, _client): """Handles disconnection from Telegram servers""" self.disconnect_count += 1 logger.warning(f"connection_handler: connection lost (#{self.disconnect_count})")