fix: Telegram idle() entfernt (PTB v21), WhatsApp-Polling-Intervall auf 10s erhöht
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user