code: async def reset_state(self, *,
                            chat: typing.Union[str, int, None] = None,
                            user: typing.Union[str, int, None] = None,
                            with_data: typing.Optional[bool] = True):
          
          chat, user = self.check_address(chat=chat, user=user)
          await self.set_state(chat=chat, user=user, state=None)
          if with_data:
              await self.set_data(chat=chat, user=user, data={})
docs: Reset state for user in chat.
          You may desire to use this method when finishing conversations.
  
          Chat or user is always required. If one of this is not presented,
          you have to set missing value based on the provided one.
  
          :param chat:
          :param user:
          :param with_data:
          :return: