def thread(self, value: str):
        """
        Set thread id of the message

        Args:
            value (str): the thread id

        """
        if value is not None and not isinstance(value, str):
            raise TypeError("'thread' MUST be a string")
        self._thread = value
def thread ( self , value : str ) : if value is not None and not isinstance ( value , str ) : raise TypeError ( "'thread' MUST be a string" ) self . _thread = value
Set thread id of the message

        Args:
            value (str): the thread id