• При запуске бота появляется ошибка, как победить?

    @te1 Автор вопроса
    Aragorn,
    Traceback (most recent call last):
    File "/Users/pravda/Documents/pythonProject/Telegram bot/bot.py", line 36, in
    @dp.message_handler(is_admin=True, commands=["ban"], commands_prefix="!/")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/pravda/venv/lib/python3.11/site-packages/aiogram/dispatcher/dispatcher.py", line 560, in decorator
    self.register_message_handler(callback, *custom_filters,
    File "/Users/pravda/venv/lib/python3.11/site-packages/aiogram/dispatcher/dispatcher.py", line 479, in register_message_handler
    filters_set = self.filters_factory.resolve(self.message_handlers,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/pravda/venv/lib/python3.11/site-packages/aiogram/dispatcher/filters/factory.py", line 51, in resolve
    filters_set = list(
    ^^^^^
    File "/Users/pravda/venv/lib/python3.11/site-packages/aiogram/dispatcher/filters/factory.py", line 72, in _resolve_registered
    filter_ = record.resolve(self._dispatcher, event_handler, full_config)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/pravda/venv/lib/python3.11/site-packages/aiogram/dispatcher/filters/filters.py", line 124, in resolve
    return self.callback(**config)
    ^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: Can't instantiate abstract class IsAdminFilter with abstract method check

    Process finished with exit code 1