The qr command generates a QR code from a URL using the QR Server API.

Usage

!qr <link>

Example response

User:

!qr https://example.com

Bot:

https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://example.com

Preview:

Source code

def qr(link):
    return f"https://api.qrserver.com/v1/create-qr-code/?size=150x150&data={link}"