From 43d4b48eeb1df11969c0f183cc99a5a830f93405 Mon Sep 17 00:00:00 2001 From: egregors Date: Sat, 29 Oct 2022 14:34:13 +0200 Subject: [PATCH] doc: add plan to implement roll for admins --- bot/skills/roll.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot/skills/roll.py b/bot/skills/roll.py index 9c19f1f..0d68d61 100644 --- a/bot/skills/roll.py +++ b/bot/skills/roll.py @@ -396,6 +396,13 @@ def roll(update: Update, context: CallbackContext): # todo: https://github.com/vldc-hq/vldc-bot/issues/93 # if bot can't restrict user, user should be passed into towel-mode like state + # TODO: if user is admin, first revoke admin role: telegram.bot.Bot.promote_chat_member + # * get user info (admin title, we should to store it to put it back when restriction is over) + # * revoke admin role + # * mute user as usual + + # TODO: we need a way how to give admin role back to user when restriction time is over + mute_min = get_mute_minutes(shots_remained) result = context.bot.send_message( update.effective_chat.id,