@dp.message_handler(content_types=['text'])
async def mute(message: types.Message):
await message.answer('Вы забанены')
new = types.ChatPermissions(can_send_messages=False)
await Bot.restrict_chat_member(chat_id=message.chat.id, user_id=message.from_user.id, permissions=new,
until_date=time() + 120)
await Bot.restrict_chat_member(chat_id=message.chat.id, user_id=message.from_user.id, permissions=new,
TypeError: Bot.restrict_chat_member() missing 1 required positional argument: 'self'