mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5127] [Feature]: MTProto Promoted channel #3605
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#3605
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 @AmoAlireza on GitHub (Jun 9, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5127
Is your feature request related to a problem?
Hi
MTProto already supports promoting channels using the command -S {PROMOTED_TAG}, and you can obtain the tag from the MTProxybot itself. If possible, please add this feature in the next update.
Describe the solution you'd like
add an optional field next to the secret in the UI where users can enter the tag received from the bot. Below this field, include a tip: "You should send this 32-character hex secret to the MTProxybot, as it only accepts secrets in this format."
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 9, 2026):
Thanks for the feature request!
Important clarification about the underlying backend
3x-ui does not use the official Telegram MTProxy (the Python script that accepts
-S <ad_tag>). Instead, MTProto inbounds are served bymtgv2.2.8 by 9seconds — a completely separate, third-party implementation. The-S PROMOTED_TAGcommand-line flag is exclusive to the official Telegram MTProxy and has no equivalent inmtg.What the current implementation does
Each mtproto inbound in the panel spawns an
mtg run <config.toml>sidecar process. The TOML config written by the panel today (seemtproto/manager.go→writeConfig) contains only:There is no field for a promoted-channel tag because
mtgv2 dropped the ad-tag / promoted-channel feature. The v2 redesign made the proxy stateless and removed the ability to inject Telegram's "promoted channel" content into the stream — it is simply not configurable in the TOML format mtg v2 accepts.What would be needed to implement this
For 3x-ui to support promoted channels, the project would need to either:
mtgto the official Telegram MTProxy (which does support-S <tag>), which is a significant architectural change.mtgv1 that still has the ad-tag feature and is compatible with the current sidecar management code.If you'd like to pursue this, opening a discussion with the maintainers about replacing or augmenting the backend would be the right starting point. A PR is very welcome, but any implementation will need to address the backend limitation first.