defined at C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py:406> exception=TypeError("get_state() missing 1 required positional argument: 'self'")>
Traceback (most recent call last):
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\filters\builtin.py",
line 543, in check
state = self.ctx_state.get()
LookupError: <ContextVar name='user_state' at 0x000001F4F75C01D0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line
414, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line
236, in process_updates
return await asyncio.gather(*tasks)
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line
257, in process_update
return await self.message_handlers.notify(update.message)
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\handler.py", line 107, in notify
data.update(await check_filters(handler_obj.filters, args))
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\filters\filters.py",
line 72, in check_filters
f = await execute_filter(filter_, args)
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\filters\filters.py",
line 56, in execute_filter
return await filter_.filter(*args, **filter_.kwargs)
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\filters\filters.py",
line 161, in __call__
return await self.check(*args)
File "C:\Users\Leganyst\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\filters\builtin.py",
line 548, in check
state = await self.dispatcher.storage.get_state(chat=chat, user=user)
TypeError: get_state() missing 1 required positional argument: 'self'
выбивает такой трейсбек, с чем связано?
/paste
Сообщение от Марк Клавишин перемещено на HasteBin Размер: 2701 байт
🤦♂️
знаю что фейспалм, но искренне не понимаю в чем дело
покажи инициализацию диспатчера
Обсуждают сегодня