add typing user_id: Optional[int] = None, middleware.py

This commit is contained in:
ZeroN 2023-10-21 16:52:20 +05:00 committed by GitHub
parent cf56fe8021
commit 2a3702da0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ class FSMContextMiddleware(BaseMiddleware):
self,
bot: Bot,
chat_id: int,
user_id: int,
user_id: Optional[int] = None,
thread_id: Optional[int] = None,
destiny: str = DEFAULT_DESTINY,
) -> FSMContext: