Skip to content

A Python-based Telegram bot designed to index, search, and upload PDF files from large local collections in a simple and efficient way.

Notifications You must be signed in to change notification settings

kaaylooon/telegram-bot-pdf-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram PDF Uploader Bot

A Python-based Telegram bot designed to index, search, and upload PDF files from large local collections in a simple and efficient way.


Screenshot - 1 Screenshot - 2


Installation

Clone the repository:

git clone https://github.com/kaaylooon/telegram-bot-pdf-uploader.git
cd telegram-bot-pdf-uploader

Virtual environment

python -m venv venv
source venv/bin/activate

Environment Variables

export TELEGRAM_BOT_TOKEN="YOUR_BOT_TOKEN"
export PDF_BASE_DIR="absolute/path/to/your/pdfs"

Usage

python main.py

Technologies

  • python3
  • python-telegram-bot

.json

The pdf_index.json file is generated automatically and should not be edited, generate yours with tools/index_pdfs.py

About

A Python-based Telegram bot designed to index, search, and upload PDF files from large local collections in a simple and efficient way.

Topics

Resources

Stars

Watchers

Forks

Languages