def send_via_phone(connection):
    """
    Send a message via a phone number.
    """
    message = TextMessage(connection=connection,
                          phone='41791234567',
                          text='Hello from the world of Python!')
    return message.send()
def send_via_email(connection):
    """
    Send a message via an email address.
    """
    message = TextMessage(connection=connection,
                          email='*****@*****.**',
                          text='Hello from the world of Python!')
    return message.send()
def send_via_id(connection):
    """
    Send a message to a specific Threema ID.
    """
    message = TextMessage(connection=connection,
                          to_id='ECHOECHO',
                          text='Hello from the world of Python!')
    return message.send()
def send_via_phone():
    """
    Send a message via a phone number.
    """
    message = TextMessage(
        connection=connection,
        phone='41791234567',
        text='Hello from the world of Python!'
    )
    return message.send()
def send_via_email():
    """
    Send a message via an email address.
    """
    message = TextMessage(
        connection=connection,
        email='*****@*****.**',
        text='Hello from the world of Python!'
    )
    return message.send()
def send_via_id():
    """
    Send a message to a specific Threema ID.
    """
    message = TextMessage(
        connection=connection,
        id='ECHOECHO',
        text='Hello from the world of Python!'
    )
    return message.send()