An OCR (Optical Character Recognition) bot built using Telegram Bot API, Tesseract.js.
- Extract text from images and PDFs.
- Supports multiple file formats.
- Clone the repository:
git clone https://github.com/thismajid/ocr-telegram-bot.git
- Install dependencies:
cd ocr-telegram-bot
npm install
-
Create a new Telegram bot using the BotFather and obtain a token.
-
Configure the environment:
Create a .env file and add the following variables
BOT_TOKEN=<your_bot_token>
- Start the bot:
npm start