Skip to content

Telegram Bot for interaction with Chat GPT and OCR

Notifications You must be signed in to change notification settings

Str1kez/OCR-GPTBot

Repository files navigation

OCR&GPT Telegram Bot

Installation

Dependencies (if you use tesseract)

You need install tesseract

If tesseract has been built from source:

export TESSDATA_PREFIX=<your path to tessdata>

Start bot

  1. Add important data in .env file, or env variables (you can find it all in .env.example)

    make env
    
  2. Install packages

    go mod download
    
  3. Create database for user's settings:

    make db
    
  4. Run the app

    • in prod mode:

      make prod-run
      
    • in dev mode:
      before execution, you need to insert data to .local.env file

      make run
      

Containerization

make build-image
make container

You can use only make container with pulling my image with Yandex OCR and GPT-3-Turbo