PakDataKit - v2.2.0
    Preparing search index...

    Function createWhatsAppLink

    • Creates a WhatsApp click-to-chat link for a Pakistani mobile number.

      Accepts local, international, and short phone formats.

      Parameters

      • phone: string

        Pakistani mobile number in any supported format

      • Optionalmessage: string

        Optional pre-filled message (URL-encoded)

      Returns string | null

      WhatsApp wa.me link, or null if the phone number is invalid