feat(gateway): introduce GATEWAY_TELEGRAM_INTAKE_MODE for Telegram integration

This commit is contained in:
Anish Sarkar 2026-05-28 05:02:07 +05:30
parent 7ff0120fc9
commit c958fe5bc6
5 changed files with 53 additions and 14 deletions

View file

@ -46,7 +46,7 @@ async def start_byo_long_poll_supervisors() -> None:
"""Start one BYO long-poll supervisor per active non-system Telegram account."""
global _shutdown_event
if not config.GATEWAY_BYO_LONGPOLL_ENABLED:
if config.GATEWAY_TELEGRAM_INTAKE_MODE != "longpoll":
return
if _tasks:
return