mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5727] [Feature]: Supports third-party webhooks #3986
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#3986
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 @Cudaaa on GitHub (Jul 2, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5727
Is your feature request related to a problem?
In some areas or situations, Telegram isn't suitable (network/local regulations, etc.)
Describe the solution you'd like
Open support for third-party webhooks,Expanding on that, it can automatically push some new notifications, like new subscriptions, online alerts, traffic usage, and so on;Use a third-party webhook API, make a POST request, to achieve the push effect
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
Which parts of the panel would this affect?
Telegram bot, Subscription (share links / Clash / JSON)
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jul 2, 2026):
Confirmed: 3x-ui has no generic third-party webhook / push-notification mechanism today. The only hit for "webhook" in the codebase (
frontend/src/schemas/routing.ts,RuleWebhookSchema) is Xray-core's routing-rule failover webhook, unrelated to panel notifications.Current notification pipeline is Telegram-only:
internal/eventbus/events.godefines the event types (outbound.up/down,xray.crash,node.up/down,cpu.high,memory.high,login.attempt). There is no "new subscription" event today.internal/web/service/tgbot/tgbot_event.go(HandleEvent→formatEventMessage→SendMsgToTgbotAdmins), gated per-event bySettingService.GetTgEnabledEvents/SetTgEnabledEvents(internal/web/service/setting.go:996).internal/web/service/tgbot/tgbot_report.goand likewise sent only via the Telegram Bot API (telego), not through any generic HTTP dispatcher.So adding third-party webhook push would require a new event sink (an HTTP POST notifier subscribing to the event bus alongside the Telegram bot), plus settings/UI to configure the target URL(s)/secret and which events to forward, and — for "new subscription" specifically — a new event type, since none currently fires on subscription access.
For context: this has been requested before in #961 and #2837, but both were closed on 2026-05-29 with no comment as part of a bulk issue cleanup, not because the feature was implemented — there is no webhook dispatcher in the current source. This request is still valid and not a duplicate of resolved work.
This reply was generated automatically by an AI agent. A maintainer may follow up.