messages/_utils.py
def validate_twilio(attr, value):
    """Twilio input validator function."""
    if attr in ("from_", "to"):
        check_valid("Twilio", attr, value, validus.isphone, "phone number")
    elif attr in ("attachments"):
        check_valid("Twilio", attr, value, validus.isurl, "url")
def validate_twilio(attr, value):
    if attr in ("from_", "to"):
        check_valid("Twilio", attr, value, validus.isphone, "phone number")
    elif attr in ("attachments"):
        check_valid("Twilio", attr, value, validus.isurl, "url")
def validate_twilio ( attr , value ) : if attr in ( "from_" , "to" ) : check_valid ( "Twilio" , attr , value , validus . isphone , "phone number" ) elif attr in ( "attachments" ) : check_valid ( "Twilio" , attr , value , validus . isurl , "url" )
Twilio input validator function.
Twilio input validator function .