mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Fix state filter
This commit is contained in:
parent
b4ecc421e4
commit
95ba0ae571
2 changed files with 7 additions and 7 deletions
|
|
@ -921,9 +921,9 @@ class Dispatcher:
|
|||
:return:
|
||||
"""
|
||||
if chat is None:
|
||||
chat = types.Chat.current()
|
||||
chat = types.Chat.current().id
|
||||
if user is None:
|
||||
user = types.User.current()
|
||||
user = types.User.current().id
|
||||
|
||||
return FSMContext(storage=self.storage, chat=chat, user=user)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue