Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalanakt/IMDb-Auto-Filter-Bot
Auto-filter Bot With IMDb Poster.
https://github.com/kalanakt/IMDb-Auto-Filter-Bot
autofilter imdb telegram-bot
Last synced: 3 months ago
JSON representation
Auto-filter Bot With IMDb Poster.
- Host: GitHub
- URL: https://github.com/kalanakt/IMDb-Auto-Filter-Bot
- Owner: kalanakt
- License: gpl-2.0
- Created: 2021-10-17T14:14:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-25T04:15:16.000Z (over 2 years ago)
- Last Synced: 2024-11-06T04:12:27.693Z (3 months ago)
- Topics: autofilter, imdb, telegram-bot
- Language: Python
- Homepage:
- Size: 69.3 KB
- Stars: 19
- Watchers: 1
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-telegram - IMDb Auto Filter Bot - filter Bot With IMDb Poster._ (OpenSource / OpenSource Bots)
- awesome-telegram - IMDb Auto Filter Bot - filter Bot With IMDb Poster._ (OpenSource / OpenSource Bots)
README
![740full-bae-suzy](https://user-images.githubusercontent.com/86665964/138349156-e7066b7f-9a88-4a40-a6e4-7425c406cba3.jpg)
## Example Bot [Imdb Bot](https://t.me/Ma_autofilterbot)
## Added Features
* Imdb posters 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)## If Any Doubts Ask In [Bot Help](https://t.me/Bot2SupportBot)
## Installation
### Easy Way
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/kalanakt/imdb-autofilter-bot)### Hard Way
```bash
# 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`](sample_info.py) before editing [`info.py`](info.py) file## Thank You For [Subinps](https://t.me/Subinps_bot)
## Variables
### Required Variables
* `BOT_TOKEN`: Create a bot using [@BotFather](https://telegram.dog/BotFather), and get the Telegram API token.
* `API_ID`: Get this value from [telegram.org](https://my.telegram.org/apps)
* `API_HASH`: Get this value from [telegram.org](https://my.telegram.org/apps)
* `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](https://www.mongodb.com) URI. Get this value from [mongoDB](https://www.mongodb.com). For more help watch this [video](https://youtu.be/dsuTn4qV2GA)
* `DATABASE_NAME`: Name of the database in [mongoDB](https://www.mongodb.com). For more help watch this [video](https://youtu.be/dsuTn4qV2GA)### Optional Variables
* `OMDB_API_KEY`: OMBD_API_KEY to generate imdb poster for filter results.Get it from [omdbapi.com](http://www.omdbapi.com/apikey.aspx)
* `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 [XTZ Bots](https://t.me/subin_works) for more useful bots\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](http://www.omdbapi.com) here is allowing 1000 requests per day. [You may not get posters if its crossed](https://t.me/ThankTelegram/910168).
Once a poster is fetched from OMDB , poster is saved to DB to reduce duplicate requests.## Admin commands
```
channel - Get basic infomation about channels
total - Show total of saved files
delete - Delete file from database
index - Index all files from channel.
logger - Get log file
```## 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
* [Pyrogram](https://github.com/pyrogram/pyrogram)
* Original [Repo](https://github.com/Mahesh0253/Media-Search-bot)## Special Note
* this is modifaird verson of main responsibility .All credits should goes to main developers## License
Code released under [The GNU General Public License](LICENSE).