Skip to content

Instantly share code, notes, and snippets.

@yebt
Last active December 2, 2025 01:16
Show Gist options
  • Select an option

  • Save yebt/96d7c95e0f7a1b0dd2f92a982ac3624e to your computer and use it in GitHub Desktop.

Select an option

Save yebt/96d7c95e0f7a1b0dd2f92a982ac3624e to your computer and use it in GitHub Desktop.
# 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