[GH-ISSUE #6943] [Bug]: Telegram Bot fails to display interactive menu after /start in v3.11.0 #4596

Open
opened 2026-10-31 20:40:45 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @jamesliu96 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6943

Describe the bug

After upgrading from v3.10.2 to v3.11.0, the configured Telegram Bot stops displaying the interactive menu after sending the /start command. This issue is consistently reproducible.

In previous versions (e.g., v3.10.2), the menu loaded correctly. This is likely related to the major Telegram bot refactor introduced in the v3.11.0 release.

How to reproduce the problem

  1. Have a 3x-ui panel running v3.10.2 with a functional Telegram Bot configured.
  2. Upgrade the 3x-ui panel to version v3.11.0.
  3. Open Telegram and send the /start command to your bot.
  4. Observe that the bot does not render or display the main interactive menu.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.11.0

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Debian 13

Which parts of the panel are affected?

No response

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 @jamesliu96 on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6943 ### Describe the bug After upgrading from v3.10.2 to v3.11.0, the configured Telegram Bot stops displaying the interactive menu after sending the /start command. This issue is consistently reproducible. In previous versions (e.g., v3.10.2), the menu loaded correctly. This is likely related to the major Telegram bot refactor introduced in the v3.11.0 release. ### How to reproduce the problem 1. Have a 3x-ui panel running v3.10.2 with a functional Telegram Bot configured. 2. Upgrade the 3x-ui panel to version v3.11.0. 3. Open Telegram and send the /start command to your bot. 4. Observe that the bot does not render or display the main interactive menu. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.11.0 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Debian 13 ### Which parts of the panel are affected? _No response_ ### 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).
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 2026):

I can't confirm or rule out a bug yet. In v3.11.0, /start goes through code that was completely rewritten, and that code can end in several different ways. I need to know which one you saw before I can say where it goes wrong.

What changed in v3.11.0. Commit 15fee2a0 (feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760), first released in v3.11.0) replaced the old text reply with a single photo message. Its caption is the summary and its inline buttons are the menu, and it is edited in place from then on (internal/web/service/tgbot/screen.go:19-21). The bot also deletes your /start message after it answers (tgbot_router.go:128), so the chat can look different from v3.10.2 even when everything works. When I read the admin path, it looks sound: answerCommand → screenHome → renderScreen (tgbot_router.go:260-275, screen_views.go:25-32, screen.go:135-161). I could not run the bot here, so I can't reproduce your setup.

These are the outcomes the current code can produce after /start. Each one has a different cause:

What you see Where it comes from
"🤖 This bot works in private chat only…" New in v3.11.0: every group, supergroup or channel chat is refused (tgbot_router.go:1256-1266, refuseGroups). v3.10.2 had no such check.
"Your configuration is not found! … Your ChatID: …" Your Telegram user ID was not recognised as an admin or as a client with a bound Telegram ID (tgbot_router.go:269-272, tgbot_level.go:20-32).
No reply at all, and the log shows Failed to send a screen: Telegram rejected the photo message (screen.go:277-279).
A photo with a summary but no buttons, or a plain text message Not expected from this code. That would be a real rendering bug.

To narrow it down, please reply with:

  1. What exactly the bot sends back after /start: nothing, one of the messages in the table above (quote the text), or something else.
  2. Where you send /start: a private chat with the bot, or a group/supergroup (including forum topics).
  3. Your role: is your own Telegram user ID listed in the panel's Telegram bot Chat ID setting (admin), or are you a client bound by Telegram ID?
  4. The panel log around the moment you send /start. Telegram failures are logged at warning or debug level. You can follow the log with:
    journalctl -u x-ui -e --no-pager -f -p debug
    
    Lines mentioning Telegram, Failed to send a screen, Screen not editable or screen art matter most. Redact your bot token.

Verdict: Insufficient information
Severity: N/A
Confidence: Medium
Root cause: Not identified. The admin /start path in the current code renders the home screen with no visible defect, so the cause depends on which of the outcomes above the reporter hit.
Same class: None found
Already fixed: Not applicable. /start handling is unchanged between v3.11.0 and the default branch.
Duplicate of: None. Searched for "telegram bot start" and "bot menu 3.11"; no matching report.
Evidence: tgbot_router.go:273-274 (t.clearBroadcastPrompt(...) / t.screenHome(chatId, message.From.ID)). screen.go:277-279 (logger.Warning("Failed to send a screen:", err); return 0). tgbot_router.go:1260 (if chatType := updateChatType(update); chatType != "" && chatType != telego.ChatTypePrivate {): group refusal, introduced in 15fee2a0. git diff v3.10.2 v3.11.0 -- internal/web/service/tgbot touches 39 files.
Not determined: Which branch the reporter hits. Their reply to item 1, plus the log lines from item 4, would settle it.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:6411122302 --> @github-actions[bot] commented on GitHub (Oct 26, 2026): I can't confirm or rule out a bug yet. In v3.11.0, `/start` goes through code that was completely rewritten, and that code can end in several different ways. I need to know which one you saw before I can say where it goes wrong. **What changed in v3.11.0.** Commit `15fee2a0` (*feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760)*, first released in v3.11.0) replaced the old text reply with a single **photo message**. Its caption is the summary and its inline buttons are the menu, and it is edited in place from then on (`internal/web/service/tgbot/screen.go:19-21`). The bot also deletes your `/start` message after it answers (`tgbot_router.go:128`), so the chat can look different from v3.10.2 even when everything works. When I read the admin path, it looks sound: `answerCommand` → `screenHome` → `renderScreen` (`tgbot_router.go:260-275`, `screen_views.go:25-32`, `screen.go:135-161`). I could not run the bot here, so I can't reproduce your setup. These are the outcomes the current code can produce after `/start`. Each one has a different cause: | What you see | Where it comes from | | --- | --- | | *"🤖 This bot works in private chat only…"* | New in v3.11.0: every group, supergroup or channel chat is refused (`tgbot_router.go:1256-1266`, `refuseGroups`). v3.10.2 had no such check. | | *"Your configuration is not found! … Your ChatID: …"* | Your Telegram user ID was not recognised as an admin or as a client with a bound Telegram ID (`tgbot_router.go:269-272`, `tgbot_level.go:20-32`). | | No reply at all, and the log shows `Failed to send a screen:` | Telegram rejected the photo message (`screen.go:277-279`). | | A photo with a summary but no buttons, or a plain text message | Not expected from this code. That would be a real rendering bug. | To narrow it down, please reply with: 1. **What exactly the bot sends back** after `/start`: nothing, one of the messages in the table above (quote the text), or something else. 2. **Where you send `/start`**: a private chat with the bot, or a group/supergroup (including forum topics). 3. **Your role**: is your own Telegram user ID listed in the panel's Telegram bot **Chat ID** setting (admin), or are you a client bound by Telegram ID? 4. **The panel log** around the moment you send `/start`. Telegram failures are logged at warning or debug level. You can follow the log with: ``` journalctl -u x-ui -e --no-pager -f -p debug ``` Lines mentioning `Telegram`, `Failed to send a screen`, `Screen not editable` or `screen art` matter most. Redact your bot token. Verdict: Insufficient information Severity: N/A Confidence: Medium Root cause: Not identified. The admin `/start` path in the current code renders the home screen with no visible defect, so the cause depends on which of the outcomes above the reporter hit. Same class: None found Already fixed: Not applicable. `/start` handling is unchanged between v3.11.0 and the default branch. Duplicate of: None. Searched for "telegram bot start" and "bot menu 3.11"; no matching report. Evidence: `tgbot_router.go:273-274` (`t.clearBroadcastPrompt(...)` / `t.screenHome(chatId, message.From.ID)`). `screen.go:277-279` (`logger.Warning("Failed to send a screen:", err)`; `return 0`). `tgbot_router.go:1260` (`if chatType := updateChatType(update); chatType != "" && chatType != telego.ChatTypePrivate {`): group refusal, introduced in `15fee2a0`. `git diff v3.10.2 v3.11.0 -- internal/web/service/tgbot` touches 39 files. Not determined: Which branch the reporter hits. Their reply to item 1, plus the log lines from item 4, would settle it. *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
Author
Owner

@Aleksander-2024 commented on GitHub (Oct 26, 2026):

тоже самое /start: в приватный чат с ботом ничего не происходит((( полная тишина(( до line mode is disabled
Lists in the bot open through inline search. Enable it in @BotFather with /setinline, otherwise tapping a search button does nothing. как то еще работало а после Enable it in @BotFather with /setinline даже / start не работает

<!-- gh-comment-id:6415485531 --> @Aleksander-2024 commented on GitHub (Oct 26, 2026): тоже самое /start: в приватный чат с ботом ничего не происходит((( полная тишина(( до line mode is disabled Lists in the bot open through inline search. Enable it in @BotFather with /setinline, otherwise tapping a search button does nothing. как то еще работало а после Enable it in @BotFather with /setinline даже / start не работает
Author
Owner

@Aleksander-2024 commented on GitHub (Oct 26, 2026):

как я понял....
3x-ui пытается отправить в Telegram фотографию для экрана меню, но Telegram отвергает указанный идентификатор файла или URL.
В коде 3x-ui предусмотрено использование фотографии бота для экранов меню и обновление устаревшего кэша изображения. Поэтому это безопасная первая проверка вручную изменил фото бота и заработал бот, всем спасибо

<!-- gh-comment-id:6416691298 --> @Aleksander-2024 commented on GitHub (Oct 26, 2026): как я понял.... 3x-ui пытается отправить в Telegram фотографию для экрана меню, но Telegram отвергает указанный идентификатор файла или URL. В коде 3x-ui предусмотрено использование фотографии бота для экранов меню и обновление устаревшего кэша изображения. Поэтому это безопасная первая проверка вручную изменил фото бота и заработал бот, всем спасибо
Author
Owner

@jamesliu96 commented on GitHub (Oct 26, 2026):

@Aleksander-2024 In my case, regardless of whether Inline Mode is enabled or not, sending /start gets swallowed with no response whatsoever. This issue did not exist before upgrading to v3.11.0 (v3.10.2 was fine). Changing the bot's avatar myself didn't help either.

<!-- gh-comment-id:6420028740 --> @jamesliu96 commented on GitHub (Oct 26, 2026): @Aleksander-2024 In my case, regardless of whether Inline Mode is enabled or not, sending /start gets swallowed with no response whatsoever. This issue did not exist before upgrading to v3.11.0 (v3.10.2 was fine). Changing the bot's avatar myself didn't help either.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 2026):

This is a real v3.11.0 bug. The bot draws every screen, including the /start menu, as a photo that reuses the bot's own profile picture. If Telegram refuses that picture, the panel logs one warning and sends nothing else, so /start gets no reply at all. @Aleksander-2024's report that the bot came back after they changed its avatar in @BotFather matches this code path exactly.

Workaround until it's fixed:

  1. In @BotFather, open /mybots → your bot → Edit Bot → Edit Botpic and upload a new, ordinary static picture. You can also remove the avatar, and the panel then uses its own generated black tile.
  2. Wait about 10 minutes for the panel to drop the cached avatar, or restart it with x-ui restart. Then send /start again.

@jamesliu96, to confirm you're hitting this cause and not a different one, please check the log for this line when you send /start:

journalctl -u x-ui -e --no-pager | grep -i "Failed to send a screen"

If it's there, the text after it is Telegram's reason for refusing the picture. Please paste it here with your token redacted.

Why it happens. attachArt pins the cached avatar file_id on every screen (internal/web/service/tgbot/screen.go:170-172). replaceScreen then sends it with no fallback:

// internal/web/service/tgbot/screen.go:253-257, 277-280
case sc.hasPhoto && sc.photo != "":
    sent, err = liveBot().SendPhoto(ctx, &telego.SendPhotoParams{ ... Photo: tu.FileFromID(sc.photo), ... })
...
if err != nil {
    logger.Warning("Failed to send a screen:", err)
    return 0
}

The black-tile upload (artUpload, screens_art.go:131) only runs when no file_id is cached. It never runs when a cached one is rejected. The cache doesn't heal on its own either: resolveScreenArt re-reads the same avatar every artAvatarTTL = 10 * time.Minute (screens_art.go:43, :86-92) and stores the same file_id again. So the bot stays silent for as long as that avatar is set.

Verdict: Confirmed bug
Severity: High
Confidence: Medium. The missing fallback is confirmed in the source. That it is what this reporter hits rests on the second commenter's avatar fix plus the matching symptom; the log line above would make it certain.
Root cause: internal/web/service/tgbot/screen.go:277-280, (*Tgbot).replaceScreen. When SendPhoto with the cached avatar file_id fails, it returns 0 and does not retry with the artUpload tile. resolveScreenArt (screens_art.go:49-93) keeps re-caching the same file_id. Introduced in 15fee2a0 (feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760)).
Same class: Every screen, because all of them go through renderScreen → attachArt (screen.go:135-175). A failed media edit in editScreen (screen.go:188-196) falls through to replaceScreen (screen.go:160) with the same file_id, so callbacks and pager taps also fail once the live message is gone.
Already fixed: Still present on the default branch. There are no internal/web/service/tgbot commits after v3.11.0.
Duplicate of: None
Evidence: screen.go:170-172 (if id, ok := artFileID(sc.kind); ok { sc.photo = id). screen.go:277-279 (logger.Warning("Failed to send a screen:", err) / return 0). screens_art.go:87-91 (fileID := sizes[len(sizes)-1].FileID … screenArtIDs[kind] = fileID). screens_art.go:131-134 (artUpload, black tile, used only by the sc.hasPhoto branch with no cached id). No test in screens_test.go covers a sendPhoto that rejects the avatar file_id.
Not determined: Which property of an avatar makes Telegram refuse its file_id in sendPhoto. The Failed to send a screen: error text from an affected panel would answer that.

Suggested fix: In replaceScreen, when the file_id send fails, retry once with artUpload(sc.kind). Also drop the rejected id from screenArtIDs and mark the avatar unusable until it changes, so later renders don't hit the same failure. Doing this at replaceScreen covers /start and the editScreen fallback together.

@MHSanaei, this is a High-severity regression in the v3.11.0 bot.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:6420059503 --> @github-actions[bot] commented on GitHub (Oct 26, 2026): This is a real v3.11.0 bug. The bot draws every screen, including the `/start` menu, as a photo that reuses the **bot's own profile picture**. If Telegram refuses that picture, the panel logs one warning and sends nothing else, so `/start` gets no reply at all. @Aleksander-2024's report that the bot came back after they changed its avatar in @BotFather matches this code path exactly. **Workaround** until it's fixed: 1. In @BotFather, open `/mybots` → your bot → *Edit Bot* → *Edit Botpic* and upload a new, ordinary static picture. You can also remove the avatar, and the panel then uses its own generated black tile. 2. Wait about 10 minutes for the panel to drop the cached avatar, or restart it with `x-ui restart`. Then send `/start` again. @jamesliu96, to confirm you're hitting this cause and not a different one, please check the log for this line when you send `/start`: ``` journalctl -u x-ui -e --no-pager | grep -i "Failed to send a screen" ``` If it's there, the text after it is Telegram's reason for refusing the picture. Please paste it here with your token redacted. **Why it happens.** `attachArt` pins the cached avatar `file_id` on every screen (`internal/web/service/tgbot/screen.go:170-172`). `replaceScreen` then sends it with no fallback: ```go // internal/web/service/tgbot/screen.go:253-257, 277-280 case sc.hasPhoto && sc.photo != "": sent, err = liveBot().SendPhoto(ctx, &telego.SendPhotoParams{ ... Photo: tu.FileFromID(sc.photo), ... }) ... if err != nil { logger.Warning("Failed to send a screen:", err) return 0 } ``` The black-tile upload (`artUpload`, `screens_art.go:131`) only runs when no `file_id` is cached. It never runs when a cached one is rejected. The cache doesn't heal on its own either: `resolveScreenArt` re-reads the same avatar every `artAvatarTTL = 10 * time.Minute` (`screens_art.go:43`, `:86-92`) and stores the same `file_id` again. So the bot stays silent for as long as that avatar is set. Verdict: Confirmed bug Severity: High Confidence: Medium. The missing fallback is confirmed in the source. That it is what this reporter hits rests on the second commenter's avatar fix plus the matching symptom; the log line above would make it certain. Root cause: `internal/web/service/tgbot/screen.go:277-280`, `(*Tgbot).replaceScreen`. When `SendPhoto` with the cached avatar `file_id` fails, it returns 0 and does not retry with the `artUpload` tile. `resolveScreenArt` (`screens_art.go:49-93`) keeps re-caching the same `file_id`. Introduced in `15fee2a0` (feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760)). Same class: Every screen, because all of them go through `renderScreen` → `attachArt` (`screen.go:135-175`). A failed media edit in `editScreen` (`screen.go:188-196`) falls through to `replaceScreen` (`screen.go:160`) with the same `file_id`, so callbacks and pager taps also fail once the live message is gone. Already fixed: Still present on the default branch. There are no `internal/web/service/tgbot` commits after v3.11.0. Duplicate of: None Evidence: `screen.go:170-172` (`if id, ok := artFileID(sc.kind); ok { sc.photo = id`). `screen.go:277-279` (`logger.Warning("Failed to send a screen:", err)` / `return 0`). `screens_art.go:87-91` (`fileID := sizes[len(sizes)-1].FileID` … `screenArtIDs[kind] = fileID`). `screens_art.go:131-134` (`artUpload`, black tile, used only by the `sc.hasPhoto` branch with no cached id). No test in `screens_test.go` covers a `sendPhoto` that rejects the avatar `file_id`. Not determined: Which property of an avatar makes Telegram refuse its `file_id` in `sendPhoto`. The `Failed to send a screen:` error text from an affected panel would answer that. Suggested fix: In `replaceScreen`, when the `file_id` send fails, retry once with `artUpload(sc.kind)`. Also drop the rejected id from `screenArtIDs` and mark the avatar unusable until it changes, so later renders don't hit the same failure. Doing this at `replaceScreen` covers `/start` and the `editScreen` fallback together. @MHSanaei, this is a High-severity regression in the v3.11.0 bot. *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
Author
Owner

@jamesliu96 commented on GitHub (Oct 26, 2026):

journalctl -u x-ui -e --no-pager | grep -i "Failed to send a screen"

Running this command yielded no output. It doesn't look like there are any errors here.

<!-- gh-comment-id:6420175321 --> @jamesliu96 commented on GitHub (Oct 26, 2026): ```sh journalctl -u x-ui -e --no-pager | grep -i "Failed to send a screen" ``` Running this command yielded no output. It doesn't look like there are any errors here.
Author
Owner

@Aleksander-2024 commented on GitHub (Oct 26, 2026):

  • В @Botfather откройте /mybots → вашего бота → Редактировать бота → Редактировать аватар бота и загрузите новую обычную статичную картинку. Вы также можете удалить аватар, и тогда панель будет использовать собственную сгенерированную черную плитку.
  • Подождите около 10 минут, пока панель удалит кэшированный аватар, или перезапустите ее с помощью x-ui restart. Затем снова отправьте /start .

именно после этих манипуляций бот заработал

<!-- gh-comment-id:6428439597 --> @Aleksander-2024 commented on GitHub (Oct 26, 2026): > * В [@Botfather](https://github.com/Botfather) откройте `/mybots` → вашего бота → _Редактировать бота_ → _Редактировать аватар бота_ и загрузите новую обычную статичную картинку. Вы также можете удалить аватар, и тогда панель будет использовать собственную сгенерированную черную плитку. > * Подождите около 10 минут, пока панель удалит кэшированный аватар, или перезапустите ее с помощью `x-ui restart`. Затем снова отправьте `/start` . именно после этих манипуляций бот заработал
Author
Owner

@jamesliu96 commented on GitHub (Oct 27, 2026):

@Aleksander-2024 I followed your steps as well, but no luck on my end. I tried restarting the service and updating the bot profile picture, but neither resolved the issue.

<!-- gh-comment-id:6433908148 --> @jamesliu96 commented on GitHub (Oct 27, 2026): @Aleksander-2024 I followed your steps as well, but no luck on my end. I tried restarting the service and updating the bot profile picture, but neither resolved the issue.
Author
Owner

@johnnyliat commented on GitHub (Oct 30, 2026):

[Bug] Telegram bot stops responding after the first /start command (v3.11.0)

What's happening?

I'm having an issue with the Telegram bot in 3x-ui v3.11.0.

After restarting x-ui, the bot responds to the first /start command and displays the menu normally. However, when I send /start again, the command gets deleted and the bot doesn't send anything back.

This happens even with a newly configured bot. I haven't cleared the chat history or deleted any messages.

The panel logs show this error:

WARNING - Failed to send a screen: telego: sendPhoto: api: 400 "Bad Request: wrong file identifier/HTTP URL specified"

Steps to reproduce

  1. Install and configure 3x-ui v3.11.0.
  2. Set up the Telegram bot as usual.
  3. Restart x-ui.
  4. Open a private chat with the bot and send /start.
  5. The menu appears normally.
  6. Send /start again.
  7. The command is deleted, but the bot doesn't respond.
  8. Check the x-ui logs and look for the sendPhoto error above.

What I expected

The bot should display the menu every time I send /start, not just the first time.

Even when Telegram rejects a profile photo, the bot should still be able to display the menu using a fallback image.

What actually happens

The first /start works after restarting x-ui, but subsequent requests fail. The bot deletes the command without displaying anything, and the logs show a Telegram API 400 error.

What I've tried

  • Changed the bot's profile picture through BotFather.
  • Restarted x-ui after changing the picture.
  • Tested /start again.
  • Confirmed that the issue still occurs.

Changing the profile picture and restarting the service hasn't fixed it.

Possible cause

After looking through the Telegram bot screen-rendering code, I suspect the issue is related to cached Telegram profile photo file_id values.

It looks like the panel tries to send a screen using a cached photo ID. When Telegram rejects that ID, the operation fails and returns without trying the local fallback image.

Could the bot automatically fall back to artUpload() when sending a cached photo ID fails? It would also help to invalidate the rejected ID so the same broken file ID isn't reused.

The menu should remain functional even if the bot's profile picture can't be sent.

Environment

  • 3x-ui: v3.11.0
  • OS: Debian 13 (Trixie)
  • Installation: Native installation using systemd (not Docker)
  • Telegram bot: Private chat

Thanks for looking into this. Hopefully this helps track down the issue.

<!-- gh-comment-id:6516244422 --> @johnnyliat commented on GitHub (Oct 30, 2026): # [Bug] Telegram bot stops responding after the first `/start` command (v3.11.0) ## What's happening? I'm having an issue with the Telegram bot in 3x-ui v3.11.0. After restarting x-ui, the bot responds to the first `/start` command and displays the menu normally. However, when I send `/start` again, the command gets deleted and the bot doesn't send anything back. This happens even with a newly configured bot. I haven't cleared the chat history or deleted any messages. The panel logs show this error: ```text WARNING - Failed to send a screen: telego: sendPhoto: api: 400 "Bad Request: wrong file identifier/HTTP URL specified" ``` ## Steps to reproduce 1. Install and configure 3x-ui v3.11.0. 2. Set up the Telegram bot as usual. 3. Restart x-ui. 4. Open a private chat with the bot and send `/start`. 5. The menu appears normally. 6. Send `/start` again. 7. The command is deleted, but the bot doesn't respond. 8. Check the x-ui logs and look for the `sendPhoto` error above. ## What I expected The bot should display the menu every time I send `/start`, not just the first time. Even when Telegram rejects a profile photo, the bot should still be able to display the menu using a fallback image. ## What actually happens The first `/start` works after restarting x-ui, but subsequent requests fail. The bot deletes the command without displaying anything, and the logs show a Telegram API 400 error. ## What I've tried - Changed the bot's profile picture through BotFather. - Restarted x-ui after changing the picture. - Tested `/start` again. - Confirmed that the issue still occurs. Changing the profile picture and restarting the service hasn't fixed it. ## Possible cause After looking through the Telegram bot screen-rendering code, I suspect the issue is related to cached Telegram profile photo `file_id` values. It looks like the panel tries to send a screen using a cached photo ID. When Telegram rejects that ID, the operation fails and returns without trying the local fallback image. Could the bot automatically fall back to `artUpload()` when sending a cached photo ID fails? It would also help to invalidate the rejected ID so the same broken file ID isn't reused. The menu should remain functional even if the bot's profile picture can't be sent. ## Environment - 3x-ui: v3.11.0 - OS: Debian 13 (Trixie) - Installation: Native installation using systemd (not Docker) - Telegram bot: Private chat Thanks for looking into this. Hopefully this helps track down the issue.
Author
Owner

@BillGilbert- commented on GitHub (Nov 7, 2026):

  • В @Botfather откройте /mybots → вашего бота → Редактировать бота → Редактировать аватар бота и загрузите новую обычную статичную картинку. Вы также можете удалить аватар, и тогда панель будет использовать собственную сгенерированную черную плитку.
  • Подождите около 10 минут, пока панель удалит кэшированный аватар, или перезапустите ее с помощью x-ui restart. Затем снова отправьте /start .

именно после этих манипуляций бот заработал

Мне было достаточно поставить у себя в tg статичную картинку на бота, подождать vbyen 10 и меню заработало.

<!-- gh-comment-id:6710256222 --> @BillGilbert- commented on GitHub (Nov 7, 2026): > > * В [@Botfather](https://github.com/Botfather) откройте `/mybots` → вашего бота → _Редактировать бота_ → _Редактировать аватар бота_ и загрузите новую обычную статичную картинку. Вы также можете удалить аватар, и тогда панель будет использовать собственную сгенерированную черную плитку. > > * Подождите около 10 минут, пока панель удалит кэшированный аватар, или перезапустите ее с помощью `x-ui restart`. Затем снова отправьте `/start` . > > именно после этих манипуляций бот заработал Мне было достаточно поставить у себя в tg статичную картинку на бота, подождать vbyen 10 и меню заработало.
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#4596
No description provided.