mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Default value for state argument in FSMContext.set_state
This commit is contained in:
parent
7cab32b1cc
commit
a3856e33bd
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ class FSMContext:
|
|||
async def update_data(self, data: typing.Dict = None, **kwargs):
|
||||
await self.storage.update_data(chat=self.chat, user=self.user, data=data, **kwargs)
|
||||
|
||||
async def set_state(self, state: typing.Union[typing.AnyStr, None]):
|
||||
async def set_state(self, state: typing.Union[typing.AnyStr, None] = None):
|
||||
await self.storage.set_state(chat=self.chat, user=self.user, state=state)
|
||||
|
||||
async def set_data(self, data: typing.Dict = None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue