[GH-ISSUE #5790] [Bug]: #4026

Closed
opened 2026-10-31 20:36:37 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @bastor78 on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5790

Describe the bug

Panel version v3.4.2 does not set the Flow field to xtls-rprx-vision in client accounts when creating a client via the Telegram bot.

How to reproduce the problem

Create a client in the Telegram bot.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.4.2

Xray-core version

26.6.27

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04.4 LTS

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @bastor78 on GitHub (Jul 4, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5790 ### Describe the bug Panel version v3.4.2 does not set the Flow field to xtls-rprx-vision in client accounts when creating a client via the Telegram bot. ### How to reproduce the problem Create a client in the Telegram bot. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.2 ### Xray-core version 26.6.27 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04.4 LTS ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:36:37 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 4, 2026):

This matches a previously reported, still-unresolved gap: #3700 (and the related feature requests #3881, #3908) — the Telegram bot's client-creation flow does not set or let you choose the Flow field for VLESS clients. A patch to add flow selection to the bot's client-creation menu was proposed in #3882 but was closed unmerged, so this remains unimplemented as of v3.4.2 (current latest release).

Confirmed in the source:

  • SubmitAddClient (internal/web/service/tgbot/tgbot_client.go) builds the model.Client passed to ClientService.Create from only Email, Enable, LimitIP, TotalGB, ExpiryTime, SubID, Comment, Reset, TgID — Flow is never set.
  • fillProtocolDefaults (internal/web/service/client_crud.go) auto-generates ID/Password/Auth per protocol on submit, but never touches Flow.
  • clientWithInboundFlow (same file) only clears an existing Flow value when the attached inbound can't use TLS flow (not TCP+TLS/REALITY, and not XHTTP with VLESS encryption); it never assigns a default.

This isn't specific to the bot: in the web panel's client form (frontend/src/pages/clients/ClientFormModal.tsx), flow also defaults to an empty string and has to be picked manually from the Flow dropdown whenever the attached inbound is flow-capable. The Telegram bot's client-creation menu simply has no equivalent step yet, so clients created through it are always left with an empty flow, regardless of the inbound's transport/security settings.

Workaround until this is implemented: after creating the client via the bot, open it in the web panel (Clients page) and set Flow to xtls-rprx-vision, or call POST /panel/api/clients/update/:email with "flow": "xtls-rprx-vision" in the request body.

Marking this as a duplicate of #3700 since it is the same underlying limitation; further discussion should continue there.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4883429179 --> @github-actions[bot] commented on GitHub (Jul 4, 2026): This matches a previously reported, still-unresolved gap: #3700 (and the related feature requests #3881, #3908) — the Telegram bot's client-creation flow does not set or let you choose the `Flow` field for VLESS clients. A patch to add flow selection to the bot's client-creation menu was proposed in #3882 but was closed unmerged, so this remains unimplemented as of v3.4.2 (current latest release). Confirmed in the source: - `SubmitAddClient` (`internal/web/service/tgbot/tgbot_client.go`) builds the `model.Client` passed to `ClientService.Create` from only `Email, Enable, LimitIP, TotalGB, ExpiryTime, SubID, Comment, Reset, TgID` — `Flow` is never set. - `fillProtocolDefaults` (`internal/web/service/client_crud.go`) auto-generates `ID`/`Password`/`Auth` per protocol on submit, but never touches `Flow`. - `clientWithInboundFlow` (same file) only clears an existing `Flow` value when the attached inbound can't use TLS flow (not TCP+TLS/REALITY, and not XHTTP with VLESS encryption); it never assigns a default. This isn't specific to the bot: in the web panel's client form (`frontend/src/pages/clients/ClientFormModal.tsx`), `flow` also defaults to an empty string and has to be picked manually from the Flow dropdown whenever the attached inbound is flow-capable. The Telegram bot's client-creation menu simply has no equivalent step yet, so clients created through it are always left with an empty flow, regardless of the inbound's transport/security settings. Workaround until this is implemented: after creating the client via the bot, open it in the web panel (Clients page) and set Flow to `xtls-rprx-vision`, or call `POST /panel/api/clients/update/:email` with `"flow": "xtls-rprx-vision"` in the request body. Marking this as a duplicate of #3700 since it is the same underlying limitation; further discussion should continue there. *This reply was generated automatically; a maintainer may follow up.*
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#4026
No description provided.