from typing import Tuple
from datetime import datetime


def parse_message_to_event(message_text: str) -> Tuple[datetime, str, str]:
    """
    Parse the message text into the three attributes of an event

    Args:
        message_text (str): Raw text of the message

    Returns:
        datetime: Time of the event
        str: Title of the event
        str: Description of the event
    """

    event_date_str, event_title, event_message = message_text.split("|", 3)
    event_date_str = event_date_str.strip()
    event_title = event_title.strip()
    event_message = event_message.strip()
    event_date = datetime.strptime(event_date_str, "%d-%m-%Y %H:%M")

    return event_date, event_title, event_message