(self, pickle_dict)
Unpickle and resume the session.
Unpickle and resume the session.
Unpickle and resume the session .
def __setstate__(self, pickle_dict):
        """Unpickle and resume the session."""
        self.__dict__.update(pickle_dict)
        # re-assign callbacks (not picklable)
        self.parser.init_callbacks(self)
        # reopen keyboard, in case we quit because it was closed
        self.keyboard._input_closed = False
        # suppress double prompt
        if not self.interpreter._parse_mode:
            self._prompt = False
def __setstate__ ( self , pickle_dict ) : self . __dict__ . update ( pickle_dict ) # re-assign callbacks (not picklable) self . parser . init_callbacks ( self ) # reopen keyboard, in case we quit because it was closed self . keyboard . _input_closed = False # suppress double prompt if not self . interpreter . _parse_mode : self . _prompt = False