Documentation Index
Fetch the complete documentation index at: https://mintlify.com/avikekk/JackettSearchBot/llms.txt
Use this file to discover all available pages before exploring further.
Welcome to JackettSearchBot
JackettSearchBot is a powerful Telegram bot that integrates with your Jackett instance to provide seamless torrent release searching directly from Telegram. With built-in pagination, authorization controls, and PTP availability checking, it brings your media search workflow into your favorite messaging app.What is JackettSearchBot?
JackettSearchBot acts as a bridge between Telegram and Jackett, allowing you to:- Search releases using natural language queries or IMDb IDs
- Filter results by Golden Popcorn releases
- Navigate results with intuitive inline pagination buttons
- Control access with owner-based authorization and temporary permissions
- Check PTP status to verify service availability
- Auto-redact results after a configurable timeout for privacy
JackettSearchBot requires Python 3.10+ and a running Jackett instance. Make sure you have both set up before getting started.
Key Features
In-Chat Pagination
Navigate through search results with Prev/Next buttons directly in Telegram. Results expire after a configurable timeout for security.
Advanced Search
Search by title, keywords, or IMDb ID. Filter exclusively for Golden Popcorn releases with the
-gp flag.Authorization System
Owner-based access control with support for configured authorized chat IDs and temporary in-memory authorization.
PTP Integration
Check PassThePopcorn availability with a simple command to verify service status before searching.
Auto-Redaction
Results automatically redact after 300 seconds (configurable) to maintain privacy and reduce clutter.
Production Ready
Built with async/await, rotating file logs, environment-based configuration, and graceful error handling.
Architecture Overview
JackettSearchBot is built with a clean, modular architecture:Core Components
JackettSearchBot (app.py:13)
The main bot class that orchestrates all services and registers Pyrogram handlers.
config.py:8)
Immutable configuration loaded from environment variables with comprehensive validation.
services/jackett.py:29)
Handles all Jackett API communication, URL construction, and XML response parsing.
services/auth.py:5)
Thread-safe authorization management with both persistent (configured) and temporary (in-memory) ID tracking.
Search Result Format
Search results are parsed from Jackett’s XML response and formatted with title, age, and size:Security & Privacy
JackettSearchBot includes several security features:- Owner-only commands for authorization management
- Multi-level authorization (owner, configured IDs, temporary IDs)
- Auto-redaction of search results after timeout
- In-memory sessions to avoid persistent lock issues
- Environment-based secrets with validation on startup
Technology Stack
JackettSearchBot is built with modern Python libraries:- Pyrogram - MTProto API framework for Telegram
- httpx - Async HTTP client for Jackett API calls
- python-dotenv - Environment variable management
- tgcrypto - Cryptography library for faster encryption (Python < 3.13)
Next Steps
Quick Start
Get your bot up and running in minutes with our step-by-step guide.
Configuration
Learn about all available configuration options and environment variables.
Commands
Explore all available bot commands and their usage.
Deployment
Production deployment strategies and best practices.