fix: Telegram idle() entfernt (PTB v21), WhatsApp-Polling-Intervall auf 10s erhöht

This commit is contained in:
2026-03-13 13:59:17 +01:00
parent 4c45c8b17b
commit d67479309d
2 changed files with 6 additions and 4 deletions

View File

@@ -82,8 +82,9 @@ class TelegramChannel(BaseChannel):
"""Endlos-Polling im Hintergrund."""
try:
await self._app.updater.start_polling(allowed_updates=["message"])
# Warte bis gestoppt
await self._app.updater.idle()
# In PTB v20+ läuft der Updater als eigener asyncio-Task weiter
# wir warten hier einfach, bis der Task abgebrochen wird.
await asyncio.Event().wait()
except asyncio.CancelledError:
pass
except Exception as exc: