test: wa_check.py and the Koldflux WhatsApp QR code tool, Python 3.12.3, opencv 5.1.0, 2026-11-27 published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py qr/c02-short.png exit=0 edge: main: QR code with a short message output: link: https://wa.me/14155550132?text=Hi%2C%20I%20would%20like%20to%20book%20a%20call output: number: 14155550132 output: message: Hi, I would like to book a call published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py qr/c01-nomsg.png exit=0 edge: main: QR code without a message output: link: https://wa.me/14155550132 output: number: 14155550132 output: message: (none) published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py qr/c08-long.png exit=0 edge: main: QR code with a 270-character message output: link: https://wa.me/14155550132?text=Hi!%20I%20found%20you%20through%20your%20bio%20and%20I%20would%20like%20to%20ask%20about%20your%20services%2C%20prices%20and%20the%20first%20available%20date%20for%20a%20call%20this%20month.%20Thank%20you%20very%20much%2C%20I%20look%20forward%20to%20your%20answer%20and%20to%20talking%20soon%2C%20best%20wishes%20from%20a%20new%20follower%20who%20really%20likes%20your%20videos. output: number: 14155550132 output: message: Hi! I found you through your bio and I would like to ask about your services, prices and the first available date for a call this month. Thank you very much, I look forward to your answer and to talking soon, best wishes from a new follower who really likes your videos. published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py ec/no-such-file.png exit=2 edge: missing file output: file not found: ec/no-such-file.png published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py ec/empty.png exit=2 edge: empty file output: file is empty: ec/empty.png published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py ec/notes.png exit=2 edge: text file named .png output: not an image OpenCV can read: ec/notes.png published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py ec/crlf.png exit=2 edge: file with Windows line breaks named .png output: not an image OpenCV can read: ec/crlf.png published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py ec/blank.png exit=2 edge: picture without a QR code output: no QR code decoded from ec/blank.png published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py ec/визитка-кафе.png exit=0 edge: non-ASCII file name output: link: https://wa.me/14155550132?text=Hi%2C%20I%20would%20like%20to%20book%20a%20call output: number: 14155550132 output: message: Hi, I would like to book a call published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/14155550132?text=Hello%20there exit=0 edge: main: link with a message output: link: https://wa.me/14155550132?text=Hello%20there output: number: 14155550132 output: message: Hello there published: python3 wa_check.py --link 'https://wa.me/?text=Hello' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/?text=Hello exit=0 edge: main: link without a number output: link: https://wa.me/?text=Hello output: number: (none: the sender picks the contact) output: message: Hello published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/14155550132?text=Hello exit=0 edge: link with a Windows line break at the end output: link: https://wa.me/14155550132?text=Hello output: number: 14155550132 output: message: Hello published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/14155550132?text=%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82%2C%20caf%C3%A9 exit=0 edge: non-ASCII message output: link: https://wa.me/14155550132?text=%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82%2C%20caf%C3%A9 output: number: 14155550132 output: message: Привет, café published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link exit=2 edge: empty link output: empty link published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/07911123456 exit=1 edge: number with a leading 0 output: link: https://wa.me/07911123456 output: number: 07911123456 output: message: (none) output: PROBLEM: the number starts with 0: WhatsApp's page says to omit zeroes; start with the country code published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/+14155550132 exit=1 edge: number with a plus sign output: link: https://wa.me/+14155550132 output: number: +14155550132 output: message: (none) output: PROBLEM: the part after wa.me/ is not only digits (a plus, spaces, brackets, dashes or another path are not allowed) published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://example.com/14155550132 exit=1 edge: another site output: link: https://example.com/14155550132 output: number: 14155550132 output: message: (none) output: PROBLEM: does not start with https://wa.me/ published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link HTTPS://WA.ME/14155550132 exit=0 edge: link with upper-case scheme and host output: link: HTTPS://WA.ME/14155550132 output: number: 14155550132 output: message: (none) published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/14155550132/ exit=0 edge: link with a trailing slash output: link: https://wa.me/14155550132/ output: number: 14155550132 output: message: (none) published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/message/ABC123 exit=1 edge: wa.me/message/... link output: link: https://wa.me/message/ABC123 output: number: message/ABC123 output: message: (none) output: PROBLEM: the part after wa.me/ is not only digits (a plus, spaces, brackets, dashes or another path are not allowed) published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link https://wa.me/1234567890123456789 exit=1 edge: number with 19 digits output: link: https://wa.me/1234567890123456789 output: number: 1234567890123456789 output: message: (none) output: PROBLEM: the number has more than 15 digits (15 is the E.164 maximum, our reading, not a WhatsApp page statement) published: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py --link exit=2 edge: link of spaces only output: empty link published: python3 wa_check.py whatsapp.png command as run: /home/ubuntu/rt/whatsapp-qr-link/v/bin/python -I wa_check.py exit=2 edge: no argument output: Check a WhatsApp click-to-chat QR code or link: decode it, then show the number and the message it carries. output: output: python3 wa_check.py whatsapp.png output: python3 wa_check.py --link 'https://wa.me/14155550132?text=Hello%20there' output: output: Needs Python 3; reading a PNG also needs opencv: pip install opencv-python-headless output: Exit 0: the link has the shape WhatsApp's click-to-chat page describes. Exit 1: it decoded but something looks wrong (listed). Exit 2: nothing to check (missing or empty file, no code found). output: It only reads; it opens no link and sends nothing.