def to_queue_messages(messages, queue=None, channel_name=None):
    """Convert  messages to a single message"""
    queue_messages = []
    for message in messages:
        if message.queue is None and channel_name is not None:
            message.queue = channel_name
        queue_messages.append(message.convert_to_queue_message(queue))
    return queue_messages
