mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6340] [MERGED] fix(tgbot): suppress 'message not modified' log spam from refresh buttons #6228
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6340
Author: @BlindMaster24
Created: 8/27/2026
Status: ✅ Merged
Merged: 9/5/2026
Merged by: @MHSanaei
Base:
main← Head:fix/tgbot-not-modified-spam📝 Commits (1)
5ab9042fix(tgbot): suppress 'message not modified' warnings in Telegram edit calls📊 Changes
2 files changed (+119 additions, -0 deletions)
View changed files
📝
internal/web/service/tgbot/tgbot_send.go(+19 -0)📝
internal/web/service/tgbot/tgbot_send_test.go(+100 -0)📄 Description
Summary
Suppress noisy "message is not modified" warnings in Telegram bot edit calls when users click Refresh buttons.
Why
When users click 🔄 Refresh in the Telegram bot (usage, client info, IP logs, onlines),
editMessageTextandeditMessageReplyMarkupare always called even when the data hasn't changed. Telegram returns a 400 error (message is not modified), which was logged asWarning— cluttering the logs on every single refresh click.Type of change
Areas affected
How was this tested?
TestIsTelegramNotModifiedErrorverifies the helper correctly identifies "not modified" and "No fields to modify" errors while rejecting unrelated errors.gofmtpasses. Fullgo testrequires GCC (CGo/SQLite) which is available on CI.Screenshots / recordings
N/A
Breaking changes
None
Checklist
go build ./...and the test suite pass locally. (requires GCC/MinGW — CI will verify)npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.