def validate_whatsapp(attr, value):
if attr in ("<STR_LIT>", "<STR_LIT:to>"):<EOL><INDENT>if value is not None and "<STR_LIT>" in value:<EOL><INDENT>value = value.split("<STR_LIT>")[-<NUM_LIT:1>]<EOL><DEDENT>check_valid(<EOL>"<STR_LIT>",<EOL>attr,<EOL>value,<EOL>validus.isint,<EOL>"<STR_LIT>",<EOL>)<EOL><DEDENT>elif attr in ("<STR_LIT>"):<EOL><INDENT>check_valid("<STR_LIT>", attr, value, validus.isurl, "<STR_LIT:url>")<EOL><DEDENT>
WhatsApp input validator function.