mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-02 19:55:18 +02:00
feat(gateway): introduce GATEWAY_TELEGRAM_INTAKE_MODE for Telegram integration
This commit is contained in:
parent
7ff0120fc9
commit
c958fe5bc6
5 changed files with 53 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue