Skip to content
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

Managing access requests #1

Open
pawamoy opened this issue Aug 11, 2019 · 0 comments
Open

Managing access requests #1

pawamoy opened this issue Aug 11, 2019 · 0 comments

Comments

@pawamoy
Copy link
Owner

pawamoy commented Aug 11, 2019

  1. user sends /start to the bot
  2. the bot can't find the user in the DB and says, "sorry, you don't have access, send /requestAccess and wait"
  3. user sends /requestAccess to the bot
  4. bot says "thank you, I notified the admins" and sends a message to the admins, initiating a conversation to choose whether to accept or reject the request
  5. admin accepts the request: user is created in the DB with the default permissions / admin rejects the request: nothing is done
  6. user receives a notification saying they have been granted/denied access to the bot

The access requests could also be deactivated. In that case, we stop at step 2 and the bot just says "sorry".

To simplify admins work, we could store the last 100 users who sent /start and didn't have access with their usernames and ids in a file, so an admin can just send /grantAccess username to the bot, which would pick the right ID in the file.

@pawamoy pawamoy transferred this issue from pawamoy/pawabot Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant