[GH-ISSUE #4942] [Bug]: Telegram bot Not work 3.2.7 #3460

Closed
opened 2026-10-31 20:32:36 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @usamirali on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4942

Describe the bug

i config the telegram bot
but its not work

How to reproduce the problem

i use 2 different api token and 2 telegram account and its not work
in bot i start and it not work
my server is on hetzner
and i use socks for it
it didnt work neither

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.2.7

Xray-core version

26.6.1

How did you install 3x-ui?

install.sh script

Operating system

ubuntu26

Which parts of the panel are affected?

Telegram bot

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @usamirali on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4942 ### Describe the bug i config the telegram bot but its not work ### How to reproduce the problem i use 2 different api token and 2 telegram account and its not work in bot i start and it not work my server is on hetzner and i use socks for it it didnt work neither ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.2.7 ### Xray-core version 26.6.1 ### How did you install 3x-ui? install.sh script ### Operating system ubuntu26 ### Which parts of the panel are affected? Telegram bot ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:32:36 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 5, 2026):

Thanks for the report. A few things to check before we can diagnose further:

Checklist

  1. Bot enabled – In the panel settings → Telegram tab, confirm the "Telegram Bot Enable" toggle is ON, that your token is saved, and that you've clicked Save.

  2. Admin Chat ID – The "Telegram Chat ID" field must contain your numeric Telegram user ID (e.g. 123456789), not a username. If you haven't set it yet:

    • Enable the bot with just the token (no Chat ID) and Save.
    • Open your bot in Telegram and send /id.
    • The bot will reply with your numeric ID — paste that into the Chat ID field and Save again.
  3. SOCKS proxy note – The dedicated bot-proxy field was removed from the UI in v3.2.0 (#4871, #4718). If your server can reach api.telegram.org directly (Hetzner normally can), you don't need a proxy at all. If you do need one, set it in Settings → General → Panel Proxy using the format socks5://host:port — the bot falls back to that value automatically when no bot-specific proxy is stored.

Please share the logs

Run this on your server and paste the relevant output:

journalctl -u x-ui --no-pager -n 100

Look for lines containing Telegram or tgbot — they will show whether the bot started successfully, why it failed to connect, or any auth errors with the token.

Without the logs it isn't possible to tell whether the problem is a bad token, a missing Chat ID, a network issue, or something else.

<!-- gh-comment-id:4627822244 --> @github-actions[bot] commented on GitHub (Jun 5, 2026): Thanks for the report. A few things to check before we can diagnose further: ## Checklist 1. **Bot enabled** – In the panel settings → Telegram tab, confirm the "Telegram Bot Enable" toggle is ON, that your token is saved, and that you've clicked Save. 2. **Admin Chat ID** – The "Telegram Chat ID" field must contain your **numeric** Telegram user ID (e.g. `123456789`), not a username. If you haven't set it yet: - Enable the bot with just the token (no Chat ID) and Save. - Open your bot in Telegram and send `/id`. - The bot will reply with your numeric ID — paste that into the Chat ID field and Save again. 3. **SOCKS proxy note** – The dedicated bot-proxy field was removed from the UI in v3.2.0 (#4871, #4718). If your server can reach `api.telegram.org` directly (Hetzner normally can), you don't need a proxy at all. If you do need one, set it in **Settings → General → Panel Proxy** using the format `socks5://host:port` — the bot falls back to that value automatically when no bot-specific proxy is stored. ## Please share the logs Run this on your server and paste the relevant output: ```bash journalctl -u x-ui --no-pager -n 100 ``` Look for lines containing `Telegram` or `tgbot` — they will show whether the bot started successfully, why it failed to connect, or any auth errors with the token. Without the logs it isn't possible to tell whether the problem is a bad token, a missing Chat ID, a network issue, or something else.
Author
Owner

@usamirali commented on GitHub (Jun 5, 2026):

it show nothing
-- no entries --

<!-- gh-comment-id:4627849424 --> @usamirali commented on GitHub (Jun 5, 2026): it show nothing -- no entries --
Author
Owner

@usamirali commented on GitHub (Jun 5, 2026):

its work now that need restart my server to work

<!-- gh-comment-id:4627881314 --> @usamirali commented on GitHub (Jun 5, 2026): its work now that need restart my server to work
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#3460
No description provided.