Skip to content

This Telegram bot allows you to create and recognize QR codes. You can send a text to generate a QR code or send an image with a QR code for recognition.

Notifications You must be signed in to change notification settings

jamalskiy/qr_generate_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EN

QR Code Bot

This Telegram bot allows you to create and recognize QR codes. You can send a text to generate a QR code or send an image with a QR code for recognition.

Features

  • Create QR Code: Send a text, and the bot will generate a QR code for you.
  • Recognize QR Code: Send an image with a QR code, and the bot will recognize its contents.

Live Demo

You can check out the bot here - Link

Bot Structure


qr_generate_bot/
│
├── config/
│   └── config.py          # Configuration (API Token)
│
├── handlers/
│   └── qr_handlers.py     # Logic for handling requests (QR code creation and recognition)
│
├── main.py                # Main file to run the bot
│
├── requirements.txt       # List of dependencies
│
└── gif.mp4                # Video for /start

Installation

1. Clone the repository

git clone https://github.com/jamalskiy/qr_generate_bot.git

2. Navigate to the bot directory

cd qr-code-bot

3. Install the necessary dependencies

pip install -r requirements.txt

4. Insert your bot token into the config file

nano config/config.py

5. Run the bot

python3 main.py

RU

QR Code бот

Этот Telegram-бот позволяет создавать и распознавать QR-коды. Вы можете отправить текст для создания QR-кода или отправить изображение с QR-кодом для его распознавания.

Функции

  • Создание QR-кода: Отправьте текст, и бот сгенерирует для вас QR-код.
  • Распознавание QR-кода: Отправьте изображение с QR-кодом, и бот распознает его содержимое.

Живая демонстрация

Посмотреть бота можно - тут

Структура бота


qr_generate_bot/
│
├── config/
│   └── config.py          # Конфигурации (API Token)
│
├── handlers/
│   └── qr_handlers.py     # Логика обработки запросов (создание и распознавание QR-кодов)
│
├── main.py                # Основной файл для запуска бота
│
├── requirements.txt       # Список зависимостей
│
└── gif.mp4                # Видео для /start

Установка

1. Клонируйте репозиторий

git clone https://github.com/jamalskiy/qr_generate_bot.git

2. Перейдите в папку с ботом

cd qr-code-bot

3. Установите нужные завимости

pip install -r requirements.txt

4. Вставьте токен бота в конфиг

nano config/config.py

5. Запустите бота

python3 main.py

About

This Telegram bot allows you to create and recognize QR codes. You can send a text to generate a QR code or send an image with a QR code for recognition.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages