[GH-ISSUE #3363] Telegram Bot polling conflict and high latency in 3x-ui v25.8.3 (getUpdates 409) #2281

Closed
opened 2026-10-31 20:24:26 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @shmanage52 on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3363

Describe the bug

I can't use the Telegram bot properly inside 3x-ui: the bot receiver repeatedly logs a 409 Conflict from Telegram when calling getUpdates, and the control panel's bot features are effectively unusable because of repeated retries and high latency.

How to repeat the problem?

  1. Deploy 3x-ui (tested on v25.8.3) with the Telegram Bot enabled (default polling).
  2. Start the container (or restart the 3x-ui service).
  3. Observe container logs for the bot receiver.

=========================
Environment (important details)

  • Deployment: Docker (Portainer stack)
  • VPS location: France (IPv4)
  • Reverse proxy: Nginx / Nginx Proxy Manager in front of 3x-ui (port 2503)
  • DNS configured: 8.8.8.8, 1.1.1.1
  • Observed when using default polling; token regenerated and issue persists.

Additional info / Troubleshooting performed

  • Confirmed only one container/instance is running (docker ps shows single 3x-ui container).
  • Regenerated Bot Token via @BotFather (did not resolve the issue).
  • Logs explicitly show 409 Conflict: terminated by other getUpdates request repeatedly.
  • Rolling back to older image (suggested) resolves the issue for several users — suspected regression in v25.8.x that spawns duplicate polling loops.
  • User suggests that downgrading to v25.7.6 or enabling webhook should be considered workarounds.

Expected action

  • The Telegram bot receiver should use a single polling loop (or properly use webhook) and must not start multiple overlapping getUpdates calls that trigger Telegram API 409 Conflict.
  • Bot should connect reliably and not continuously retry due to internal duplicate polling.

Received action

  • Even with a single container instance, the bot appears to start multiple polling loops or overlapping getUpdates requests, causing Telegram to respond with 409 Conflict and the client to continually retry (high latency, poor UX).

======================================
Observed logs (relevant excerpts):
INFO - Web server running HTTPS on [::]:2503
INFO - Telegram bot receiver started
[Mon Aug 18 09:38:44 +0330 2025] ERROR Getting updates: telego: getUpdates: api: 409 "Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"
[Mon Aug 18 09:38:44 +0330 2025] ERROR Retrying getting updates in 8s...
[Mon Aug 18 09:38:52 +0330 2025] ERROR Getting updates: telego: getUpdates: api: 409 "Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"

3x-ui Version

2.6.6

Xray-core Version

25.8.3

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @shmanage52 on GitHub (Aug 18, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3363 ### Describe the bug I can't use the Telegram bot properly inside 3x-ui: the bot receiver repeatedly logs a `409 Conflict` from Telegram when calling getUpdates, and the control panel's bot features are effectively unusable because of repeated retries and high latency. ### How to repeat the problem? 1. Deploy 3x-ui (tested on v25.8.3) with the Telegram Bot enabled (default polling). 2. Start the container (or restart the 3x-ui service). 3. Observe container logs for the bot receiver. ========================= Environment (important details) - Deployment: Docker (Portainer stack) - VPS location: France (IPv4) - Reverse proxy: Nginx / Nginx Proxy Manager in front of 3x-ui (port 2503) - DNS configured: 8.8.8.8, 1.1.1.1 - Observed when using default polling; token regenerated and issue persists. Additional info / Troubleshooting performed - Confirmed only one container/instance is running (docker ps shows single 3x-ui container). - Regenerated Bot Token via @BotFather (did not resolve the issue). - Logs explicitly show `409 Conflict: terminated by other getUpdates request` repeatedly. - Rolling back to older image (suggested) resolves the issue for several users — suspected regression in v25.8.x that spawns duplicate polling loops. - User suggests that downgrading to `v25.7.6` or enabling webhook should be considered workarounds. ### Expected action - The Telegram bot receiver should use a single polling loop (or properly use webhook) and **must not** start multiple overlapping getUpdates calls that trigger Telegram API `409 Conflict`. - Bot should connect reliably and not continuously retry due to internal duplicate polling. ### Received action - Even with a single container instance, the bot appears to start multiple polling loops or overlapping getUpdates requests, causing Telegram to respond with `409 Conflict` and the client to continually retry (high latency, poor UX). ====================================== **Observed logs (relevant excerpts):** INFO - Web server running HTTPS on [::]:2503 INFO - Telegram bot receiver started [Mon Aug 18 09:38:44 +0330 2025] ERROR Getting updates: telego: getUpdates: api: 409 "Conflict: terminated by other getUpdates request; make sure that only one bot instance is running" [Mon Aug 18 09:38:44 +0330 2025] ERROR Retrying getting updates in 8s... [Mon Aug 18 09:38:52 +0330 2025] ERROR Getting updates: telego: getUpdates: api: 409 "Conflict: terminated by other getUpdates request; make sure that only one bot instance is running" ### 3x-ui Version 2.6.6 ### Xray-core Version 25.8.3 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:24:26 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2281
No description provided.