This commit is contained in:
Alex Root Junior 2017-08-02 22:08:58 +03:00
parent 13665f7703
commit 15216304e2

View file

@ -43,7 +43,7 @@ async def cancel_handler(message: types.Message):
Allow to cancel any action Allow to cancel any action
""" """
with dp.current_state(chat=message.chat.id, user=message.from_user.id) as state: with dp.current_state(chat=message.chat.id, user=message.from_user.id) as state:
# Ignore command is user is not in any (defined) state # Ignore command if user is not in any (defined) state
if await state.get_state() is None: if await state.get_state() is None:
return return