Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.3 KB

File metadata and controls

65 lines (46 loc) · 1.3 KB

SimpleQR Telegram Bot

A Telegram bot that can generate and decode QR codes. The bot supports both regular chat mode and inline mode.

Features

  • Generate QR codes from text or links
  • Decode QR codes from images
  • Inline mode support
  • Logging system for error tracking
  • Configuration via environment variables

Requirements

  • Python 3.8+
  • Dependencies listed in requirements.txt

Installation

  1. Clone the repository:
git clone https://github.com/BuT9l3b/SimpleQR_Bot.git
cd SimpleQR_Bot
  1. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the root directory with the following content:
BOT_TOKEN=your_bot_token_here
BOT_USERNAME=your_bot_username_here
STORAGE_CHANNEL=your_storage_channel_id_here

Usage

  1. Start the bot:
python -m app.main
  1. In Telegram:
    • Send any text or link to generate a QR code
    • Send an image with a QR code to decode it
    • Use inline mode by typing @your_bot_username in any chat

Commands

  • /start - Start the bot
  • /help - Show help message

License

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