code: async def cancel_handler(message: types.Message, state: FSMContext, raw_state: Optional[str] = None):
      
      if raw_state is None:
          return
  
      # Cancel state and inform user about it
      await state.finish()
      # And remove keyboard (just in case)
      await message.reply('Canceled.', reply_markup=types.ReplyKeyboardRemove())
docs: Allow user to cancel any action