if __name__ == '__main__':
bot.infinity_polling()
py название_файла.py
@dp.message(Command("ban"))
async def ban_user(message: Message):
if not message.reply_to_message:
await message.reply('Это должен быть ответ на сообщение')
await bot.ban_chat_member(chat_id=-1002073523254, user_id=message.reply_to_message.from_user.id)
await message.answer(f"Пользователь {message.reply_to_message.from_user.first_name} был заблокирован")
command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aiohttp
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects