pro — The Python Telegram Bot
A Python-based Telegram bot application with advanced features for media processing, translation, and automation.
Get Started →pip install pro
Overview
pro is a containerized Telegram bot built with Python that provides various functionality including media handling, translation services, and automated scheduling. The bot uses Telethon for Telegram API integration and includes support for voice calls, file processing, and multi-language features.
Key Features
Telegram Bot Integration
Built with Telethon for full Telegram API support
Media Processing
FFmpeg integration for audio/video handling with Mutagen metadata support
Translation Services
Multiple translation backends (mtranslate, gpytranslate)
Voice Capabilities
Telegram voice calls support via py-tgcalls
Text-to-Speech
Google TTS (gTTS) integration
QR Code Generation
Built-in QR code creation functionality
Scheduling
Automated tasks with aiocron
Database Support
SQLite integration with aiosqlite
Multi-language Support
Hijri calendar converter and emoji support
Tech Stack
Getting Started
Docker Deployment
# Build the container
docker build -t pro .
# Run the bot
docker run -d pro
Local Development
# Install dependencies
pip install -r requirements.txt
# Run the application
python main.py
Architecture
The application uses a compiled Python bytecode main module for the core logic, with comprehensive dependency management for Telegram operations, media processing, and various utility functions. The Docker setup includes system-level dependencies like FFmpeg and build tools for optimal performance.
Note: The main application logic is compiled to bytecode, so specific implementation details are not directly visible in the source.