Auto Filter Bot V2 With Python

Overview

GitHub Repo stars

How To Deploy Video

Subscribe YouTube Channel

Added Features

  • Imdb posters for autofilter.
  • Imdb rating for autofilter.
  • Custom captions for your files.
  • Index command to index all the files in a given channel (No USER_SESSION Required).
  • Ability to Index Public Channels without being admin.
  • Support Auto-Filter (Both in PM and in Groups)
  • Once files saved in Database , exists until you manually deletes. (No Worry if post gets deleted from source channel.)
  • Added Force subscribe (Only channel subscribes can use the bot)
  • Ability to restrict groups(AUTH_GROUPS)

Deploy To Heroku

Deploy

Hard Way

# Create virtual environment
python3 -m venv env

# Activate virtual environment
env\Scripts\activate.bat # For Windows
source env/bin/activate # For Linux or MacOS

# Install Packages
pip3 install -r requirements.txt

# Edit info.py with variables as given below then run bot
python3 bot.py

Check sample_info.py before editing Config.py file

Variables

Required Variables

  • BOT_TOKEN: Create a bot using @BotFather, and get the Telegram API token.
  • API_ID: Get this value from telegram.org
  • API_HASH: Get this value from telegram.org
  • CHANNELS: Username or ID of channel or group. Separate multiple IDs by space
  • ADMINS: Username or ID of Admin. Separate multiple Admins by space
  • DATABASE_URI: mongoDB URI. Get this value from mongoDB
  • DATABASE_NAME: Name of the database in mongoDB

Optional Variables

  • OMDB_API_KEY: OMBD_API_KEY to generate imdb poster for filter results.Get it from omdbapi.com
  • CUSTOM_FILE_CAPTION : A custom caption for your files. You can format it with file_name, file_size, file_caption.(supports html formating) Example: Join [MT Bots](https://t.me/MalRok) for Best Channels\n\n{file_name}\nSize{file_size}\n{file_caption}.
  • AUTH_GROUPS : ID of groups which bot should work as autofilter, bot can only work in thease groups. If not given , bot can be used in any group.
  • COLLECTION_NAME: Name of the collections. Defaults to Telegram_files. If you going to use same database, then use different collection name for each bot
  • CACHE_TIME: The maximum amount of time in seconds that the result of the inline query may be cached on the server
  • USE_CAPTION_FILTER: Whether bot should use captions to improve search results. (True/False)
  • AUTH_USERS: Username or ID of users to give access of inline search. Separate multiple users by space. Leave it empty if you don't want to restrict bot usage.
  • AUTH_CHANNEL: ID of channel. Without subscribing this channel users cannot use bot.
  • START_MSG: Welcome message for start command.
Note
  • Currently API used here is allowing 1000 requests per day. [You may not get posters if its crossed]. Once a poster is fetched from OMDB , poster is saved to DB to reduce duplicate requests.

Tips

  • You can use | to separate query and file type while searching for specific type of file. For example: Avengers | video
  • If you don't want to create a channel or group, use your chat ID / username as the channel ID. When you send a file to a bot, it will be saved in the database.

Thanks to

License

Code released under The GNU General Public License.

You might also like...
Autov2new - Pro Auto Filter Bot V2
Autov2new - Pro Auto Filter Bot V2

Pro Auto Filter Bot V2 Deploy You can deploy this bot anywhere. Watch Deploying

Auto-Approved-Bot - Auto Approved Invaite Link Request Telegram Bot
Auto-Approved-Bot - Auto Approved Invaite Link Request Telegram Bot

πŸ€– π—”π˜‚π˜π—Ό-π—”π—½π—½π—Ώπ—Όπ˜ƒπ—²-π—•π—Όπ˜ πŸ€– ℹ️ π—¨π˜€π—²π—΄π—² ℹ️ When a join request invita

Telegram Bot to Filter posts in Bot Inline search

Inline-Filter-Bot A Telegram Bot for filter in Inline Features Unlimited Filters Supports all type of filters Supports Alert Button Using Common Marku

Discord Auto bumper made in python, just a simple auto bumper that I made.

Discord Auto bumper made in python, just a simple auto bumper that I made.

Auto-Rollnumber-sender - Auto Rollnumber sender with python
Auto-Rollnumber-sender - Auto Rollnumber sender with python

Auto-Rollnumber-sender The above code fits better on my system but it can vary s

Auto like & auto followers facebook
Auto like & auto followers facebook

Auto like & auto followers facebook

Auto-commiter - Auto commiter Github
Auto-commiter - Auto commiter Github

auto committer Github Follow the steps below to use this repository: 1-install c

An advanced Filter Bot with nearly unlimitted filters!
An advanced Filter Bot with nearly unlimitted filters!

Unlimited Filter Bot γ…€γ…€γ…€γ…€γ…€γ…€γ…€ γ…€γ…€γ…€γ…€γ…€γ…€γ…€ An advanced Filter Bot with nearly unlimitted filters! Features Nearly unlimited filters Supports all type of fil

A bot that downloads all the necessary files from WeLearn and lists your assignments, filter due assignments, etc.

Welearn-bot This is a bot which lets you interact with WeLearn from the command line. It can Download all files/resources from your courses and organi

Owner
Milas
Iam a noobeeeeee noww studying on YouTube & some online platforms…
Milas
A Simple Advance Auto Filter Bot Complete Rewritten Version Of Adv-Filter-Bot

Adv Auto Filter Bot This Is Just An Simple Advance Auto Filter Bot Complete Rewritten Version Of Adv-Filter-Bot.. Just Sent Any Text As Query It Will

TeamShadow 4 Dec 10, 2021
Auto Liker, Auto Reaction, Auto Comment, Auto Follower Tool. RajeLiker Credit Hacker.

Auto Liker, Auto Reaction, Auto Comment, Auto Follower Tool. RajeLiker Credit Hacker. Unlimited RajeLiker Credit Hack. Thanks To RajeLiker.

Md. Mehedi Hasan 32 Dec 28, 2022
Very Sempil Bot Auto Filter bot

SAMANTHA_BOT Very Sempil Bot Auto Filter bot ##[ # ?????????? ?????????? ?????????? ???? ???????????? ?? ?? ?? Auto Filter Manuel Filter IMDB Admin Co

DARK WEBLOAD 3 Jun 27, 2022
Auto Filter Bot V2 With Python

How To Deploy Video Subscribe YouTube Channel Added Features Imdb posters for autofilter. Imdb rating for autofilter. Custom captions for your files.

Milas 2 Mar 25, 2022
Auto filter bot for python

Media Search bot Index channel or group files for inline search. When you post file on telegram channel or group this bot will save that file in datab

null 1 Dec 22, 2021
KalmanFilterExercise - A Kalman Filter is a algorithmic filter that is used to estimate the state of an unknown variable

Kalman Filter Exercise What are Kalman Filters? A Kalman Filter is a algorithmic

null 4 Feb 26, 2022
A Advanced Auto Filter Bot Which Can Be Used In Many Groups With Multiple Channel Support....

Adv Auto Filter Bot This Just A Simple Hand Auto Filter Bot For Searching Files From Channel... Just Sent Any Text I Will Search In All Connected Chat

Albert Einstein 33 Oct 21, 2022
Telegram Auto Filter Bot

Pro Auto Filter Bot V2.o Hey Mo Tech, I'm an Autofilter bot v2.O and you can not Add Me to your Group. I was made for this one group. So don't waste y

null 14 Oct 20, 2021
IMDb + Auto + Unlimited Filter BoT

Telegram Movie Bot Features Auto Filter Manuel Filter IMDB Admin Commands Broadcast Index IMDB search Inline Search Random pics ids and User info Stat

Jos Projects 82 Dec 27, 2022
IMDb + Auto + Unlimited Filter BoT

Telegram Movie Bot Features Auto Filter Manuel Filter IMDB Admin Commands Broadcast Index IMDB search Inline Search Random pics ids and User info Stat

Team AlinaX 1 Dec 3, 2021