Last active
December 2, 2025 01:16
-
-
Save yebt/96d7c95e0f7a1b0dd2f92a982ac3624e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Importar librerías | |
| import qrcode | |
| # Ponesmos nuestro numero de teléfono | |
| phone_number = "+57....." | |
| wa_url = f"https://wa.me/{phone_number}" | |
| print(f"Generating QR for the URL: {wa_url}") | |
| # Generamos el QR | |
| img = qrcode.make("Some data here") | |
| imgqr = qrcode.make(wa_url) | |
| qr_file_name = "chatToWhatsapp.png" | |
| imgqr.save(qr_file_name) | |
| # Mostramos el QR que hemos creado | |
| imgqr.show() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment