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

roll support for users with "admin" role #256

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

egregors
Copy link
Collaborator

@egregors egregors commented Oct 29, 2022

Solution for #93 (#255) – the hard way.

  • get user details (admin status, like “admin”, or “не сдался”) and save it for a time (to put it back when restriction time comms over)
    • update user DB model if it's necessary, required info (admin label) could be in user.meta, need to check it out
  • revoke admin role: telegram.bot.Bot.promote_chat_member
  • call mute_user_for_time as for a regular user
  • find a way how to grand admin role back, when user comms back from the club
    • maybe I should put some sort of restore_admin_role function in the context.job_queue

@egregors egregors added the roll label Oct 29, 2022
@egregors egregors self-assigned this Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant