diff --git a/src/lego_monitoring/alerting/alerts.py b/src/lego_monitoring/alerting/alerts.py index 2241b6e..dfa61a4 100644 --- a/src/lego_monitoring/alerting/alerts.py +++ b/src/lego_monitoring/alerting/alerts.py @@ -17,7 +17,7 @@ class Alert: async def get_client() -> TelegramClient: config = cvars.config.get() api_id, api_hash, bot_token = config.telegram.creds.split(",") - client = await TelegramClient(MemorySession(), api_id, api_hash).start(bot_token=bot_token) + client = await TelegramClient(MemorySession(), api_id, api_hash, connection_retries=None).start(bot_token=bot_token) client.parse_mode = "html" return client