mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5303] [Feature]: Recommendations for Telegram Bot Notification Formats #3712
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#3712
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?
Originally created by @zixu5u on GitHub (Jun 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5303
Is your feature request related to a problem?
Hello, The current format for scheduled notifications from Telegram bots isn't very good. It cannot display details for individual nodes.
Describe the solution you'd like
Hello, here are some suggestions for scheduled notifications in the Telegram bot. You can refer to the following format, which provides comprehensive and detailed information.
You can refer to this repository (https://github.com/FranzKafkaYu/x-ui) for reference. Thank you very much.
#English format example:
🔔 Status Notification 🔔
💻 Hostname: ip----
📣 IP Address: ...
✅ Xray Status: Running
🆔 Node Name: ********
🔗 Node Type: vmess
🎯 Node Port: *****
⏫ Upload Traffic ↑: ***.**MB
⏬ Download Traffic ↓: ***.**MB
📊 Total Traffic: ***.**MB
❄️ Traffic Limit: ***.**GB
⏰ Expiry Date: ♾️
🆔 Node Name: ********
🔗 Node Type: vmess
🎯 Node Port: *****
⏫ Upload Traffic ↑: ***.**MB
⏬ Download Traffic ↓: ***.**MB
📊 Total Traffic: ***.**MB
❄️ Traffic Limit: ***.**GB
⏰ Expiry Date: ♾️
🆔 Node Name: ********
🔗 Node Type: vmess
🎯 Node Port: *****
⏫ Upload Traffic ↑: *.**B
⏬ Download Traffic ↓: *.**B
📊 Total Traffic: *.**B
❄️ Traffic Limit: ***.**GB
⏰ Expiry Date: ♾️
#中文格式示例:
🔔状态通知🔔
💻主机名称:ip----
📣IP地址:...
✅xray状态:运行中
🆔节点名称:*******
🔗节点类型:vmess
🎯节点端口:****
⏫上行流量↑:***MB
⏬下行流量↓:***MB
📊整体流量:***MB
❄️流量限制:***GB
⏰到期时间:♾️
🆔节点名称:*******
🔗节点类型:vmess
🎯节点端口:****
⏫上行流量↑:***MB
⏬下行流量↓:***MB
📊整体流量:***MB
❄️流量限制:***GB
⏰到期时间:♾️
🆔节点名称:*******
🔗节点类型:vmess
🎯节点端口:****
⏫上行流量↑:***B
⏬下行流量↓:***B
📊整体流量:***B
❄️流量限制:***GB
⏰到期时间:♾️
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 14, 2026):
The request is valid and the data needed to implement it is already available in the codebase. Here is what the current scheduled report includes and what would need to change.
What
SendReport()currently sends (internal/web/service/tgbot/tgbot_report.go):tgbot.messages.report)prepareServerUsageInfo(): hostname, 3X-UI/Xray versions, IPv4/IPv6, uptime, system load, RAM, online client count, TCP/UDP connection count, aggregate network traffic, Xray stateThere is no per-inbound breakdown in the scheduled report today. Per-inbound data is only available interactively via the "Get Inbounds" button, which calls
getInboundUsages()(internal/web/service/tgbot/tgbot_inbound.go:19).What exists and could be reused:
getInboundUsages()already formats inbound remark, port, upload/download/total traffic, client count, and expiry date for every inbound.inbound.Protocol(seeinternal/database/model/model.go) and is not currently included in that output — it would need to be added.tgbot.messages.inbound,port,traffic,expire, etc.) are already defined ininternal/web/translation/en-US.json(and all 12 other locales).Implementing this feature would primarily require:
inbound.Protocolto the output ingetInboundUsages().getInboundUsages()(or a variant of it) fromSendReport()intgbot_report.go.A PR contributor can use the
"PR welcomed"label path. ThegetInboundUsages()function and theSendReport()integration point are both straightforward starting places.This reply was generated automatically; a maintainer may follow up.