You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A powerful Telegram media search bot β search movies and files directly in PM or any group, with paginated results, auto-delete, broadcast, user tracking, and deep-link file delivery.
β¨ Features
Feature
Description
π¬ PM Search
Type any name β paginated file buttons β tap to receive instantly
π₯ Group Search
Results shown in group β tap β file delivered to your PM via deep-link
π Deep-Link Delivery
Group buttons use t.me/bot?start=<file_id> β works even if user never started bot
ββΆ Prev / Next Pages
AutoFilterBot-style pagination with live page counter
π Auto-Delete
Files auto-delete after configurable time to avoid copyright issues
π Save Reminder
Users instructed to forward to Saved Messages before deletion
π€ User Tracking
Every /start user is saved to DB; new users trigger a log channel notification
π’ Broadcast
Send any message (text, photo, video, etc.) to all registered users
π‘ Auto Index
New files posted in watched channels saved to DB instantly
π Admin Commands
Full suite: /index, /setskip, /total, /users, /broadcast, /delete, /channel, /logs
π Inline Mode
Search via @bot query in any chat
π Force Subscribe
Optionally require users to join a channel before access
π Always Alive
Built-in aiohttp web server β compatible with Render & Koyeb (no sleep)
πΌ Preview
Group Search
User: Kumki
Bot:
π Results for: Kumki
π Found: 9 file(s)
π Tap a file β you'll be taken to my PM where it will be sent!
[1.59 GB]- π¬ -Kumki 2 (2025) Tamil HQ HDRip 1080p HEVC xβ¦
[1.38 GB]- π¬ -Kumki 2 (2025) Tamil HQ HDRip 720p x264 (Dβ¦
[904.43 MB]- π¬ -Kumki 2 (2025) Tamil HQ HDRip 720p HEVC β¦
ββββββββββββββββββββββββββββββββββββββββββ
[π 1/2] [NEXT βΆ]
File Caption in PM
π¬ Kumki 2 (2025) Tamil HQ HDRip 1080p HEVC x265.mkv
π¦ Size: 1.59 GB
π Type: Video
β οΈ This file will be auto-deleted in 5 minute(s) to avoid copyright issues.
π Forward it to your Saved Messages to keep it forever!
[πΎ Save to Saved Messages]
New User Notification in Log Channel
π€ New User Started Bot!
π ID: 123456789
π Name: John Doe
π Username: @johndoe
π Joined: 12 Mar 2026 β’ 10:45 UTC
π₯ Total Users: 142
Message shown when user hasn't joined AUTH_CHANNEL
π€ Bot Commands
Everyone
Command
Description
/start
Welcome message + search buttons
Admins Only
Command
Description
/total
Total files saved in database
/users
Total registered users count
/broadcast
Send a message to all users (reply to any message, or inline text)
/cancelbroadcast
Stop a running broadcast mid-way
/channel
List all watched channels
/index <channel_id>
Bulk-index a channel (bot-only, no userbot needed)
/setskip <N>
Set message skip offset for /index (resume indexing)
/delete
Reply to any media β removes it from DB
/logs
Download the log file
π’ Broadcast Usage
Option 1 β Copy any message (photo, video, sticker, textβ¦):
Reply to any message with /broadcast
Option 2 β Inline text only:
/broadcast π New movies added! Go search now!
Bot shows a preview with recipient count and Confirm / Cancel buttons before sending. Live progress updates during send. Blocked/deactivated users are automatically removed from the database.
π Search Tips
Basic: type any movie or file name in PM or any group
Filter by type:movie name | video or song name | audio
Inline anywhere:@YourBot movie name in any chat
Pagination: tap β PREV / NEXT βΆ to browse all results
Group: results appear in the group; tapping a file delivers it to your PM
π Project Structure
auto-filter-bot-v1/
βββ main.py β Bot entry point + aiohttp web server
βββ config.py β All configuration via environment variables
βββ index.py β Standalone channel bulk-indexer (CLI)
βββ requirements.txt
βββ Procfile β Heroku: worker: python main.py
βββ sample.env β Example environment variables
β
βββ database/
β βββ __init__.py
β βββ db.py β MongoDB motor (Media + Users collections)
β
βββ plugins/
βββ __init__.py
βββ start.py β /start + deep-link file delivery + force-subscribe
βββ search.py β PM & group search, pagination, auto-delete
βββ inline.py β Inline mode search
βββ channel.py β Auto-index new files from watched channels
βββ users.py β User tracking + new user log channel notification
βββ broadcast.py β /broadcast with live progress + cancel + auto-cleanup
βββ admin.py β Admin commands + bot-only channel indexer
π Database Collections
Collection
Purpose
Telegram_files
All indexed media files (searchable)
users
All registered users β used for broadcast & analytics