-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add users via chat #108
Comments
I really like this idea (as well as further admin commands that allow changing settings during run time). Additionaly I want to suggest a "/getaccess" command for unallowed users that notifies the admin and gives him the option to add the user to allowed users and set up the budget(s). That would really streamline the process of adding new users. |
This is a great idea! |
We already have everything we need for the feature.
so, this snippet loads and updates a key in import dotenv
dotenv_file = dotenv.find_dotenv()
dotenv.load_dotenv(dotenv_file)
print(os.environ["MY_KEY"])
os.environ["MY_KEY"] = "bar"
print(os.environ['MY_KEY'])
# Write changes to .env file.
dotenv.set_key(dotenv_file, "MY_KEY", os.environ["MY_KEY"]) |
Hi @ivanmilov, thanks for the input. I think the main issue is that |
run docker like this: |
Build the image run with mutable files |
@n3d1117 @AlexHTW take a look at this POC: works with I can continue in this direction, but I am not a Python dev, so there could be some code quality issues :) |
I believe will be better if we add the users after they subscribe, integrated with Telegram Bot Payments https://core.telegram.org/bots/payments |
|
use v 4 |
Is it possible to add users via chat from the administrator?
So that you can quickly add a user and specify the necessary parameters for him.
It would also be cool if you could add users without restarting the server.
The text was updated successfully, but these errors were encountered: