A Telegram bot that can generate and decode QR codes. The bot supports both regular chat mode and inline mode.
- Generate QR codes from text or links
- Decode QR codes from images
- Inline mode support
- Logging system for error tracking
- Configuration via environment variables
- Python 3.8+
- Dependencies listed in
requirements.txt
- Clone the repository:
git clone https://github.com/BuT9l3b/SimpleQR_Bot.git
cd SimpleQR_Bot- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create a
.envfile 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
- Start the bot:
python -m app.main- 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_usernamein any chat
/start- Start the bot/help- Show help message
This project is licensed under the MIT License - see the LICENSE file for details.