F
File "C:\Users\Forden\AppData\Local\Programs\Python\Python37\lib\site-packages\aiogram\bot\api.py", line 78, in check_result
exceptions.BadRequest.detect(description)
File "C:\Users\Forden\AppData\Local\Programs\Python\Python37\lib\site-packages\aiogram\utils\exceptions.py", line 136, in detect
raise err(cls.text or description)
aiogram.utils.exceptions.NotEnoughRightsToRestrict: Not enough rights to restrict/unrestrict chat member
@dp.errors_handler(exception=exceptions.NotEnoughRightsToRestrict)
async def not_enough_rights_to_restrict(update: types.Update, error):
logger.error(f'Not enough rights to restrict in chat {update.message.chat.id}')
return True