refactoring

This commit is contained in:
birdi 2019-08-12 14:16:38 +03:00
parent 9ea22a29fc
commit 026416a668
2 changed files with 3 additions and 4 deletions

View file

@ -62,7 +62,7 @@ async def cmd_about(message: types.Message):
async def cancel(message: types.Message):
# Get current state context
state = dp.current_state(chat=message.chat.id, user=message.from_user.id)
state = dp.current_state(chat_id=message.chat.id, user_id=message.from_user.id)
# If current user in any state - cancel it.
if await state.get_state() is not None: