Skip to content
 
 

Repository files navigation

Archive.org to Telegram Channel Bot

A sophisticated Telegram bot that downloads content from archive.org and uploads it directly to your Telegram channel with support for multiple formats and streaming uploads.

Features

Multi-format Support: FLAC, MP3, WAV, MP4, PDF, EPUB, and more
Streaming Upload: No local storage required
Progress Tracking: Real-time upload progress
Large Files: Support for files up to 2GB
Railway.app Ready: Optimized for Railway deployment
Error Handling: Comprehensive error handling and retry logic
User-friendly: Inline keyboard interface

Setup Instructions

1. Telegram Bot Setup

  1. Message @BotFather on Telegram
  2. Create a new bot with /newbot
  3. Save your bot token
  4. Get your API ID and Hash from my.telegram.org

2. Local Development

# Clone the repository
git clone https://github.com/yourusername/archive-telegram-bot.git
cd archive-telegram-bot

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Set up environment variables
cp .env.example .env
# Edit .env with your credentials

# Run the bot
python bot.py

### 3. Using Docker (Recommended)
If you prefer containerized deployment:

docker build -t archive-tg-bot .
docker run --env-file .env archive-tg-bot

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages