Spaces:
Running
Running
Delete README.md
Browse files
README.md
DELETED
|
@@ -1,87 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: testbot
|
| 3 |
-
emoji: π¬
|
| 4 |
-
colorFrom: red
|
| 5 |
-
colorTo: yellow
|
| 6 |
-
sdk: docker
|
| 7 |
-
app_port: 7860
|
| 8 |
-
pinned: false
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# π₯ ANGRY BIRD File Serve Bot (Premium Edition) π₯
|
| 12 |
-
|
| 13 |
-
A premium, high-speed **Telegram File Search and Direct Browser Download** bot powered by **FastAPI**, **Pyrogram**, and **Neon PostgreSQL**. Designed for seamless 24/7 deployment on **HuggingFace Spaces** (Docker) and **Render**.
|
| 14 |
-
|
| 15 |
-
---
|
| 16 |
-
|
| 17 |
-
## π Core & Premium Features
|
| 18 |
-
|
| 19 |
-
### π Premium High-Speed Streaming Gateway
|
| 20 |
-
* **π Direct Browser Streaming**: High-speed browser file downloading directly from Telegram CDNs using custom-engineered asynchronous chunk streaming.
|
| 21 |
-
* **β‘ Concurrency Optimized (100 Slots)**: Supports up to **100 simultaneous parallel downloads/streams** without any queuing or delay bottlenecks, utilizing `workers=100` parallel client connections.
|
| 22 |
-
* **π Practically 0 MB Server Overhead**: Streams block-by-block using Pyrogram's `client.stream_media(...)` async generator, avoiding local file caching and RAM out-of-memory (OOM) failures entirely.
|
| 23 |
-
* **ποΈ Auto-Clean Token Verification**: Automatically cleans up authorization alerts, expiry errors, and incoming user query messages after a 10-second delay, ensuring clean private chats.
|
| 24 |
-
* **β Dynamic Help & Guide Integrations**: Renders a dynamic administrative control setting button (`how_to_download` guide URL) across `/start` keyboards.
|
| 25 |
-
|
| 26 |
-
### π Advanced Database Search Engine
|
| 27 |
-
* **π₯ Weekly Trending Tracker (`/trending`)**: Automatically monitors and tracks movie search query frequencies over a 7-day rolling cycle, presenting the top 10 most popular movies directly to users on start keyboards or inline buttons.
|
| 28 |
-
* **π Newly Uploaded Monitor (`/newuploads`)**: Displays a real-time list of the 25 most recently indexed movies/files, making it easy for users to check recent releases instantly.
|
| 29 |
-
* **π Trigram pg_trgm Fuzzy Search**: Implements fuzzy title-matching leveraging PostgreSQL GIN trigram indexes to suggest and correct spelling mistakes.
|
| 30 |
-
* **π― Precise Mode Search Option**: Toggleable precise-matching mode to target exact word hits or perform general query containing searches.
|
| 31 |
-
* **π Multiple File Formats Supported**: Fully indexes and handles Documents, Video files, and Audio file formats with complete metadata logging.
|
| 32 |
-
* **π Multi-Format Result Output**: Dynamically outputs search query results in button layouts, list structures, or hyperlink lists.
|
| 33 |
-
|
| 34 |
-
### βοΈ Channel Indexing & Operations
|
| 35 |
-
* **π Automated Live Indexing**: Real-time listening and automatic indexing of files uploaded directly to DB channels.
|
| 36 |
-
* **π¦ Manual Indexing (`/index`)**: Forward-based administrative channel scanning to easily batch-import files into database records. Works based on original file captions to prevent duplicate quality skip issues!
|
| 37 |
-
* **ποΈ Dynamic Database Deletion**: Quick inline administrative file deletions (`/delete`) directly inside chat threads.
|
| 38 |
-
* **β³ Auto-Delete Schedule**: Automatic scheduled file purge settings to clear files after configured time thresholds.
|
| 39 |
-
|
| 40 |
-
### π§Ή Bulk Delete Mode
|
| 41 |
-
* **Smart Bulk Deleting**: Standalone `/delete` command turns on a powerful state-based bulk delete mode. Forward multiple files at once, and the bot will automatically delete them all from the database, deactivated with `/done`.
|
| 42 |
-
|
| 43 |
-
### π‘οΈ Administration & Controls
|
| 44 |
-
* **π‘οΈ Multi-Channel Force Subscribe**: Blocks all search queries, keyboard commands, and downloads until users join all configured update channels. Supports a comma-separated list of public/private channels in settings.
|
| 45 |
-
* **π Dynamic Invite Link Generation**: Automatically resolves usernames (even without `@` prefix) or creates private invite links for each configured channel dynamically.
|
| 46 |
-
* * **π Instant Resumption Handshake**: Saves blocked queries in the database and automatically executes them once the user joins and clicks "Try Again". If a token shortener is enabled, the query is passed seamlessly to the token system and executed automatically upon returning from the browser via `/start tok_xxxx`.
|
| 47 |
-
* * **ποΈ Spam & Double-Click Protection**: Instantly removes verification buttons when clicked to prevent duplicate execution, and edits prompt messages in-place with popup alerts to prevent user chat spam.
|
| 48 |
-
* * **π
Filename Release Years**: Automatically extracts movie release years from filenames (e.g. `1900-2030`) and appends them to search list buttons (e.g., `Odyssey (2026)`) for a cleaner UX.
|
| 49 |
-
* **π·οΈ Custom File Captioning**: Setup custom headers/captions (like adding usernames or watermarks) to all dispatched files.
|
| 50 |
-
* **β Member Ban/Unban System**: Block unwanted users instantly using `/ban` and `/unban` command strings.
|
| 51 |
-
* **π’ Massive Broadcast system**: Send custom formatted alerts or messages globally to all registered bot users concurrently.
|
| 52 |
-
* **π Live Server Stats & Logs**: Get real-time stats and runtime log dumps directly inside the administrator's chat.
|
| 53 |
-
|
| 54 |
-
---
|
| 55 |
-
|
| 56 |
-
## π Codebase & Setup
|
| 57 |
-
|
| 58 |
-
For full instructions, file structures, and advanced procedures:
|
| 59 |
-
* π Refer to the comprehensive deployment manuals at:
|
| 60 |
-
* [documentation/render_deployment_guide.md](file:///d:/Work/AngryBird-main/documentation/render_deployment_guide.md) (For Render and Local setups)
|
| 61 |
-
|
| 62 |
-
### Quick Local Run
|
| 63 |
-
|
| 64 |
-
1. **Activate environment & install dependencies**:
|
| 65 |
-
```bash
|
| 66 |
-
python -m venv .venv
|
| 67 |
-
.venv\Scripts\Activate.ps1 # Windows
|
| 68 |
-
source .venv/bin/activate # Linux/macOS
|
| 69 |
-
pip install -r requirements.txt
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2. **Add environment variables** to a local `.env` file (API_ID, API_HASH, BOT_TOKEN, DB_URL, OWNER_ID, DB_CHANNELS, etc.).
|
| 73 |
-
|
| 74 |
-
3. **Launch the bot**:
|
| 75 |
-
```bash
|
| 76 |
-
python -m mfinder
|
| 77 |
-
```
|
| 78 |
-
|
| 79 |
-
---
|
| 80 |
-
|
| 81 |
-
## π License & Ownership
|
| 82 |
-
|
| 83 |
-
This software, codebase, and its implementations are **fully owned, managed, and licensed** by:
|
| 84 |
-
* π€ **Angry Bird** (Primary Maintainer: [@ANGRY_BIRD22_bot](https://t.me/ANGRY_BIRD22_bot))
|
| 85 |
-
* β‘ **Team FireBolt**
|
| 86 |
-
|
| 87 |
-
All rights reserved. Unauthorized redistribution or copying of these custom features is strictly prohibited.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|