-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telegram support #488
Telegram support #488
Conversation
Also thought about adding Telegram ID in clients settings :) For now I use Email field for filling Telegram Id and just parse json files with my own tgbot. Nothing special - it parses wgui configs and send .conf files with generated QR-code to user according his TgID. This setup is more convenient than yours, because conf files send to user when he wants, but not when you press the button in wgui admin interface (besides user must add tgbot to contacts before, that you could send him an anything). |
You probably missed the Config request section above. Please read the full description carefully. |
How can update Wireguard-UI to get this ability? |
@X-UIP You can build from https://github.com/0xCA/wireguard-ui/tree/umaster |
which image ? |
@X-UIP There is no public image built from my branch. You should build it yourself. |
excuse me! if you can create a learning! because I don't know exactly what you say! I can create and run, Wireguard UI with a docker file and special image, but your work i don't know yours! |
Hey @0xCA, thank you for another contribution here. I guess I should touch this PR after solving #481. I've just left a comment there. |
@ngoduykhanh this feature is intended for large servers, and | or environments where the config changes must be rolled out quickly. Also for the pure convenience of clients: anyone can request their configs anytime, and receive it automatically. |
@0xCA fair enough. I merged the other PR. could you please resolve this PR conflict as well? |
- Removed unnecessary qr generation
969b42f
to
2126bac
Compare
Lots of conflicts were here. Please test it thoroughly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, it turned out way simpler. I forgot the error check in defer. Should be fixed now. |
Perfect! I am merging the PR. Thank you for addressing all the issues. |
Where should I add these settings - TELEGRAM_TOKEN, TELEGRAM_ALLOW_CONF_REQUEST and TELEGRAM_FLOOD_WAIT? |
Those are environment variables |
Telegram support
Reason
Details
tg userid -> client ids
correspondence to avoid heavy db usage.Config request
Configuration
TELEGRAM_TOKEN
TELEGRAM_ALLOW_CONF_REQUEST
false
TELEGRAM_FLOOD_WAIT
60
None of this configuration is saved to the database. You can change it by restarting the wgui.
Conflicts
I tried to minimize conflicts for this branch, but they are inevitable,
The advised merge order:
If you intend to merge all of the above, you can simplify this by merging https://github.com/0xCA/wireguard-ui/tree/umaster, where all the conflicts are already resolved.
Future
As this repo is currently inactive, it's inconvenient to continue development from the stale master. Further development (if any) is going to be in my repo. Feel free to check and contribute.