def __init__(self, data, ttl=0, flags=0, uuid=None):
        assert type(data) == bytes
        assert uuid is None or (type(uuid) == bytes), uuid
        self.data = data
        self.ttl = None if ttl is None else float(ttl)
        self.flags = flags
        self.uuid = (uuid or bytes(uuid_module.uuid4().bytes))[:MAX_UUID_LENGTH]

    ############################################################
:param data: (bytes) payload
dataset/ETHPy150Open dsiroky/snakemq/snakemq/message.py/Message.__init__