Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TroJanzHEX/Auto-Filter-Bot-V2


https://github.com/TroJanzHEX/Auto-Filter-Bot-V2

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Auto Filter Bot V2











[![TroJanz](https://img.shields.io/badge/TroJanzHEX-Channel-orange?style=for-the-badge&logo=telegram)](https://telegram.dog/TroJanzHEX)
ㅤㅤㅤㅤㅤㅤㅤ
[![TroJanz](https://img.shields.io/badge/TroJanzHEX-Support-red?style=flat&logo=telegram)](https://telegram.dog/TroJanzSupport) [![TroJanz](https://img.shields.io/badge/TroJanzHEX-Website-red?style=flat&logo=CodersRank)](https://TroJanzHEX.me)
ㅤㅤㅤㅤㅤㅤㅤ
[![MIT license](https://img.shields.io/badge/License-MIT-blue?style=flat)](https://github.com/TroJanzHEX/Auto-Filter-Bot-V2/blob/main/LICENSE) [![Open Source](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/TroJanzHEX/Auto-Filter-Bot-V2)

#### You can call this as an Auto Filter Bot if you like :D
#### This is Version 2 of [Auto Filter Bot](https://github.com/TroJanzHEX/Auto-Filter-Bot)
#### Bot simply search for the files from provided channel according to given query and gives link to those files as buttons!

## How to use the bot
* Add bot to your group with admin rights.

* Add bot to all channels which you want to link with all admin rights!

## Bot Commands - Works in Group only

(You need to be a Auth User in order to use these commands)

* /add channelid - Links channel to your group.
or
* /add @channelusername - Links channel to your group.

NOTE : You can get your channel ID from @ChannelidHEXbot

* /del channelid - Delinks channel from group
or
* /del @channelusername - Delinks channel from group

NOTE : You can get connected channel details by /filterstats

* /delall - Removes all connected channels and filters from group!

* /filterstats - Check connected channels and number of filters.

## You can check the video tutorial on how to deploy

[Click here to see tutorial video](https://youtu.be/zum9AUlOgtQ)

Thanks to [InfotelGroup](https://telegram.dog/InFoTelGroup) and [Erich Daniken](https://telegram.dog/ErichDaniken) for the video

## Any bugs or errors or suggestions, report at [TroJanzSupport](https://telegram.dog/TroJanzSupport)

## Installation

### Deploy to Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/TroJanzHEX/Auto-Filter-Bot-V2)

### Deploy in your vps
```sh
git clone https://github.com/TroJanzHEX/Auto-Filter-Bot-V2
cd Auto-Filter-Bot-V2
pip3 install -r requirements.txt
#
python3 main.py
```

## Configs

* TG_BOT_TOKEN - Get bot token from @BotFather

* APP_ID - From my.telegram.org (or @UseTGXBot)

* API_HASH - From my.telegram.org (or @UseTGXBot)

* TG_USER_SESSION - A pyrogram user session string. Generate by [clicking here](https://repl.it/@prgofficial/String-Gen)

* AUTH_USERS - ID of users that can use the bot commands. Get from [MissRose Bot](https://telegram.dog/MissRose_bot) by using /id command

* DATABASE_URI - Mongo Database URL from https://cloud.mongodb.com/

* DATABASE_NAME - Your database name from mongoDB. Default will be 'Cluster0'

* DOC_SEARCH - Should bot search for document files ( Give 'yes' or 'no' )

* VID_SEARCH - Should bot search for video files ( Give 'yes' or 'no' )

* MUSIC_SEARCH - Should bot search for music files ( Give 'yes' or 'no' )

## Credits

[![TroJanz](https://img.shields.io/badge/Pyrogram%20-%23F37626.svg?&style=for-the-badge&logo=telegram&logoColor=white)](https://github.com/pyrogram/pyrogram)

And as always, [SpEcHlDe](https://telegram.dog/SpEcHlDe)