/AdvancedSmartQR

Advanced Smart QR is a powerful Telegram bot that generates highly customizable QR codes with advanced features. Built with Telethon and uvloop for maximum performance (20x faster than standard asyncio), this bot offers a complete QR code generation solution with an intuitive interface.

Primary LanguagePythonMIT LicenseMIT

🎨 Advanced Smart QR Generator

Python Telethon License Status

Ultimate QR Code Generator with Advanced Customization Features

Features β€’ Installation β€’ Configuration β€’ Usage β€’ Screenshots β€’ Support


πŸ“± About

Advanced Smart QR is a powerful Telegram bot that generates highly customizable QR codes with advanced features. Built with Telethon and uvloop for maximum performance (20x faster than standard asyncio), this bot offers a complete QR code generation solution with an intuitive interface.

🌟 Key Highlights

  • ⚑ Ultra-Fast Performance - Powered by uvloop for lightning-fast async operations
  • 🎨 5 Unique Styles - Classic, Blue, Gradient, Dark, and Green themes
  • πŸ–ΌοΈ Logo Integration - Add custom logos with shape options (Square, Circle, Rounded)
  • 🏷️ Text Labels - Add custom text below QR codes
  • πŸ“ Multiple Sizes - Small, Medium, Large, and Extra Large options
  • πŸ”§ Error Correction - 4 levels of error correction (7%, 15%, 25%, 30%)
  • 🌐 Multi-Format Support - URLs, WiFi, Phone, Email, SMS, vCard, and plain text

✨ Features

🎯 QR Code Generation

  • Generate QR codes from various data types
  • Support for up to 2953 characters
  • Real-time preview and settings adjustment
  • Instant generation and download

🎨 Customization Options

Styles

  • πŸ•·οΈ Classic - Traditional black squares
  • πŸ•ΈοΈ Blue - Modern blue theme
  • πŸ€– Gradient - Purple gradient with rounded modules
  • πŸ” Dark - Sleek dark gray
  • πŸ™ˆ Green - Nature-inspired green circles

Sizes

  • πŸ•·οΈ Small (10px boxes)
  • πŸ’« Medium (15px boxes)
  • πŸ™ˆ Large (20px boxes)
  • πŸ™Š Extra Large (25px boxes)

Error Correction Levels

  • πŸ˜” Low (7% recovery)
  • πŸ‘οΈ Medium (15% recovery)
  • πŸ‘€ High (30% recovery)
  • πŸ«€ Max (25% recovery)

πŸ–ΌοΈ Logo Features

  • Upload custom logos
  • Three shape options:
    • ⬜ Square
    • β­• Circle
    • ⏹️ Rounded
  • Automatic logo sizing (25% of QR code)
  • PNG transparency support

🏷️ Label Features

  • Add custom text labels below QR codes
  • Maximum 100 characters
  • Bold, clear fonts
  • Centered alignment

πŸš€ Installation

Prerequisites

  • Python 3.8 or higher
  • Telegram Bot Token
  • Telegram API ID and API Hash

Step 1: Clone Repository

git clone https://github.com/abirxdhack/AdvancedSmartQR.git
cd AdvancedSmartQR

Step 2: Install Dependencies

pip3 install -r requirements.txt

Step 3: Configuration

Create a config.py file in the root directory:

BOT_TOKEN = "your_bot_token_here"
UPDATE_URL = "https://t.me/your_channel"
API_ID = 12345678
API_HASH = "your_api_hash_here"

Create a utils.py file:

import logging

logging.basicConfig(
    level=logging.INFO,
    format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
)

LOGGER = logging.getLogger(__name__)

Step 4: Run the Bot

python3 qr.py

βš™οΈ Configuration

Getting Bot Token

  1. Open @BotFather on Telegram
  2. Send /newbot and follow instructions
  3. Copy the bot token

Getting API ID and API Hash

  1. Visit my.telegram.org
  2. Login with your phone number
  3. Navigate to "API Development Tools"
  4. Create a new application
  5. Copy API ID and API Hash

πŸ“– Usage

Basic Commands

  • /start - Welcome message with bot features
  • /qr - Start QR code generation process

Generation Process

  1. Send /qr command
  2. Enter your data (URL, text, WiFi credentials, etc.)
  3. Configure settings:
    • Choose size
    • Select error correction level
    • Pick a style
    • Add logo (optional)
    • Add label (optional)
  4. Generate - Click "Generate QR Code" button
  5. Download - Receive your custom QR code

Supported Data Formats

πŸ“± URLs

https://example.com

πŸ“ž Phone Numbers

tel:+1234567890

πŸ“§ Email

mailto:email@example.com

πŸ“Ά WiFi Credentials

WIFI:T:WPA;S:NetworkName;P:Password;;

πŸ’¬ SMS

smsto:+1234567890:Your message here

πŸ‘€ vCard Contact

BEGIN:VCARD
VERSION:3.0
FN:John Doe
TEL:+1234567890
EMAIL:john@example.com
END:VCARD

πŸ“ Plain Text

Any text up to 2953 characters

πŸ–ΌοΈ Screenshots

Main Interface

πŸ‘‹ Welcome to Ultimate QR Code Generator!

I can create customizable QR codes with features like:
πŸ“± URLs | πŸ“ž Phone | πŸ“§ Email | πŸ“Ά WiFi | πŸ’¬ SMS | πŸ‘€ vCard

🎨 Features:
β€’ Multiple styles and colors
β€’ Custom logos in center
β€’ Text labels below QR
β€’ Error correction levels
β€’ Adjustable sizes

Settings Panel

βš™οΈ QR Code Settings

Data: https://example.com
Size: πŸ“„ Medium
Error Correction: M (15%)
Style: ⬛ Classic

Configure your QR code and click 'Generate'!

πŸ› οΈ Technical Stack

  • Telethon - Modern Telegram MTProto API framework
  • uvloop - Ultra-fast asyncio event loop
  • qrcode - QR code generation library
  • Pillow (PIL) - Image processing and manipulation
  • Python 3.8+ - Programming language

πŸ“Š Performance

  • 20x faster than standard asyncio (thanks to uvloop)
  • Non-blocking I/O - Handle multiple users simultaneously
  • Efficient memory usage - Temporary file cleanup
  • Fast generation - QR codes generated in milliseconds

🀝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ’¬ Support


πŸ™ Acknowledgments


πŸ“ˆ Stats

GitHub Stars GitHub Forks GitHub Issues


Made with ❀️ by AbirXDHack

⭐ Star this repo if you find it useful!