messages/cli.py
def send_message(msg_type, kwds):
    """Do some final preprocessing and send the message."""
    if kwds["file"]:
        get_body_from_file(kwds)
    kwargs = trim_args(kwds)
    send(msg_type, send_async=False, **kwargs)
def send_message(msg_type, kwds):
    """Do some final preprocessing and send the message."""
    if kwds["file"]:
        get_body_from_file(kwds)
    kwargs = trim_args(kwds)
    send(msg_type, send_async=False, **kwargs)
Do some final preprocessing and send the message.