[PR #7000] [CLOSED] fix(tgbot): send fresh screens for commands #6575

Closed
opened 2026-11-02 04:09:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/7000
Author: @DreamFlye
Created: 10/28/2026
Status: ❌ Closed

Base: main ← Head: fix-tgbot-cleared-chat-start


📝 Commits (1)

  • be95829 fix(tgbot): send fresh screens for commands

📊 Changes

5 files changed (+36 additions, -25 deletions)

View changed files

📝 internal/web/service/tgbot/screen.go (+13 -8)
📝 internal/web/service/tgbot/screen_legacy.go (+2 -2)
📝 internal/web/service/tgbot/screen_views.go (+7 -7)
📝 internal/web/service/tgbot/tgbot_client.go (+8 -2)
📝 internal/web/service/tgbot/tgbot_router.go (+6 -6)

📄 Description

Summary

  • Send a fresh screen for typed commands so /start remains visible after a user clears chat history.
  • Keep callback-driven navigation editing the existing menu.
  • Apply the same behavior to screen-rendering /status, /usage, and /clearall commands.

Fixes #6997

Validation

  • git diff --check passed.
  • Tests were not run.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/7000 **Author:** [@DreamFlye](https://github.com/DreamFlye) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-tgbot-cleared-chat-start` --- ### 📝 Commits (1) - [`be95829`](https://github.com/MHSanaei/3x-ui/commit/be95829949e6aa9684dcf96b3365278eb7e67658) fix(tgbot): send fresh screens for commands ### 📊 Changes **5 files changed** (+36 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `internal/web/service/tgbot/screen.go` (+13 -8) 📝 `internal/web/service/tgbot/screen_legacy.go` (+2 -2) 📝 `internal/web/service/tgbot/screen_views.go` (+7 -7) 📝 `internal/web/service/tgbot/tgbot_client.go` (+8 -2) 📝 `internal/web/service/tgbot/tgbot_router.go` (+6 -6) </details> ### 📄 Description ## Summary - Send a fresh screen for typed commands so `/start` remains visible after a user clears chat history. - Keep callback-driven navigation editing the existing menu. - Apply the same behavior to screen-rendering `/status`, `/usage`, and `/clearall` commands. Fixes #6997 ## Validation - `git diff --check` passed. - Tests were not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:09:45 +07:00
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#6575
No description provided.