Skip to content
Open

What #37

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Auto Filter Bot V2
# 𝓽ꫝꫀ ᥴ𝘳ꫀꪖ𝓽ꪮ𝘳 ꪮᠻ ꪖꪶꪶ

<p align="center">
<a href="https://www.python.org">
Expand Down Expand Up @@ -71,7 +71,7 @@ Thanks to [InfotelGroup](https://telegram.dog/InFoTelGroup) and [Erich Daniken](
## 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](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/ANKIT3690/Auto-Filter-Bot-V2)

### Deploy in your vps
```sh
Expand Down
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
},
"VID_SEARCH": {
"description": "Should bot search for video files in channels ( Give 'yes' or 'no' )",
"value": "no"
"value": "yes"
},
"MUSIC_SEARCH": {
"description": "Should bot search for music files in channels ( Give 'yes' or 'no' )",
"value": "no"
"value": "yes"
}
},
"buildpacks": [
Expand All @@ -64,4 +64,4 @@
"size": "free"
}
}
}
}
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
DOC_SEARCH = os.environ.get("DOC_SEARCH", "yes").lower()

# Should bot search for video files in channels
VID_SEARCH = os.environ.get("VID_SEARCH", "no").lower()
VID_SEARCH = os.environ.get("VID_SEARCH", "yes").lower()

# Should bot search for music files in channels
MUSIC_SEARCH = os.environ.get("MUSIC_SEARCH", "no").lower()
MUSIC_SEARCH = os.environ.get("MUSIC_SEARCH", "yes").lower()



Expand Down
8 changes: 4 additions & 4 deletions plugins/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def start(client, message):
],
[
InlineKeyboardButton(
"⭕️ JOIN OUR CHANNEL ⭕️", url="https://t.me/TroJanzHEX")
"⭕️ JOIN OUR CHANNEL ⭕️", url="https://t.me/defenderofthemultiverse")
]
]
),
Expand All @@ -45,7 +45,7 @@ async def help(client, message):
],
[
InlineKeyboardButton(
"⭕️ SUPPORT ⭕️", url="https://t.me/TroJanzSupport")
"⭕️ SUPPORT ⭕️", url="https://t.me/thewarriorsreal")
]
]
),
Expand All @@ -68,11 +68,11 @@ async def about(client, message):
],
[
InlineKeyboardButton(
"SOURCE CODE", url="https://github.com/TroJanzHEX/Auto-Filter-Bot-V2")
"SOURCE CODE", url="https://t.me/ANKIT3690")
]
]
),
reply_to_message_id=message.message_id
)
except:
pass
pass
28 changes: 10 additions & 18 deletions plugins/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

@Client.on_message(filters.group & filters.text)
async def filter(client: Bot, message: Message):
if re.findall("((^\/|^,|^!|^\.|^[\U0001F600-\U000E007F]).*)", message.text):
return
#if re.findall("((^\/|^,|^!|^\.|^[\U0001F600-\U000E007F]).*)", message.text):
#return

if 2 < len(message.text) < 50:
btn = []
Expand Down Expand Up @@ -62,7 +62,7 @@ async def filter(client: Bot, message: Message):
[InlineKeyboardButton(text="📃 Pages 1/1",callback_data="pages")]
)
await message.reply_text(
f"<b> Here is the result for {message.text}</b>",
f"<b> Here is the result for {message.text} ꪮ᭙ꪀꫀ𝘳: @ANKIT3690 & @Saurav3BV6SA9LLElon7Musk</b>",
reply_markup=InlineKeyboardMarkup(buttons)
)
return
Expand All @@ -78,7 +78,7 @@ async def filter(client: Bot, message: Message):
)

await message.reply_text(
f"<b> Here is the result for {message.text}</b>",
f"<b> Here is the result for {message.text} ꪮ᭙ꪀꫀ𝘳: @ANKIT3690 & @Saurav3BV6SA9LLElon7Musk</b>",
reply_markup=InlineKeyboardMarkup(buttons)
)

Expand All @@ -93,11 +93,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
if query.data.startswith("next"):
await query.answer()
ident, index, keyword = query.data.split("_")
try:
data = BUTTONS[keyword]
except KeyError:
await query.answer("You are using this for one of my old message, please send the request again.",show_alert=True)
return
data = BUTTONS[keyword]

if int(index) == int(data["total"]) - 2:
buttons = data['buttons'][int(index)+1].copy()
Expand Down Expand Up @@ -132,11 +128,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
elif query.data.startswith("back"):
await query.answer()
ident, index, keyword = query.data.split("_")
try:
data = BUTTONS[keyword]
except KeyError:
await query.answer("You are using this for one of my old message, please send the request again.",show_alert=True)
return
data = BUTTONS[keyword]

if int(index) == 1:
buttons = data['buttons'][int(index)-1].copy()
Expand Down Expand Up @@ -177,7 +169,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
keyboard = InlineKeyboardMarkup([
[InlineKeyboardButton("HELP", callback_data="help_data"),
InlineKeyboardButton("ABOUT", callback_data="about_data")],
[InlineKeyboardButton("⭕️ JOIN OUR CHANNEL ⭕️", url="https://t.me/TroJanzHEX")]
[InlineKeyboardButton("⭕️ JOIN OUR CHANNEL ⭕️", url="https://t.me/defenderofthemultiverse")]
])

await query.message.edit_text(
Expand All @@ -192,7 +184,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
keyboard = InlineKeyboardMarkup([
[InlineKeyboardButton("BACK", callback_data="start_data"),
InlineKeyboardButton("ABOUT", callback_data="about_data")],
[InlineKeyboardButton("⭕️ SUPPORT ⭕️", url="https://t.me/TroJanzSupport")]
[InlineKeyboardButton("⭕️ JOIN OUR GROUP ⭕️", url="https://t.me/thewarriorsreal")]
])

await query.message.edit_text(
Expand All @@ -207,7 +199,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
keyboard = InlineKeyboardMarkup([
[InlineKeyboardButton("BACK", callback_data="help_data"),
InlineKeyboardButton("START", callback_data="start_data")],
[InlineKeyboardButton("SOURCE CODE", url="https://github.com/TroJanzHEX/Auto-Filter-Bot-V2")]
[InlineKeyboardButton("OWNER", url="https://t.me/ANKIT3690")]
])

await query.message.edit_text(
Expand All @@ -226,7 +218,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
await query.message.delete()

else:
await query.answer("Thats not for you!!",show_alert=True)
await query.answer("OWNER: @ANKIT3690 &@Saurav3BV6SA9LLElon7Musk Thats not for you!! 😏 If you want it request it again",show_alert=True)


def split_list(l, n):
Expand Down
20 changes: 10 additions & 10 deletions script.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
class script(object):


START_MSG = """ <b>Hi {}
START_MSG = """ <b>ꫝ𝓲 {}

You can call this as an Auto Filter Bot if you like :D
𝐀.𝐈

This is Version 2 of Auto Filter Bot
𝐀𝐧 𝐞𝐧𝐡𝐚𝐧𝐜𝐞𝐝 𝐚𝐮𝐭𝐨 𝐟𝐢𝐥𝐭𝐞𝐫 𝐛𝐨𝐭 𝐦𝐚𝐝𝐞 𝐛𝐲 @ANKIT3690 & @Saurav3BV6SA9LLElon7Musk

Bot gives button link to files in connected channels on query !
𝐍𝐨 𝐧𝐞𝐞𝐝 𝐭𝐨 𝐠𝐢𝐯𝐞 𝐜𝐨𝐦𝐦𝐚𝐧𝐝𝐬

No need to add filters for your files or movies from now on!
𝐎𝐧𝐥𝐲 𝐖𝐨𝐫𝐤𝐬 𝐟𝐨𝐫 𝐦𝐲 𝐜𝐫𝐞𝐚𝐭𝐨𝐫

For more click <i>help</i></b>"""
𝐅𝐨𝐫 𝐦𝐨𝐫𝐞 𝐃𝐞𝐭𝐚𝐢𝐥𝐬 𝐂𝐥𝐢𝐜𝐤 𝐛𝐞𝐥𝐨𝐰 <i>How to use?</i></b>"""


HELP_MSG = """<b>How to use the bot??</b>
Expand Down Expand Up @@ -53,17 +53,17 @@ class script(object):
Bot will automatically search for your files and give links to that!


<b>© @TroJanzHEX</b>"""
<b>© @thewarriorsreal</b>"""


ABOUT_MSG = """⭕️<b>My Name : Auto Filter Bot V2</b>
ABOUT_MSG = """⭕️<b>My Name : 𝓽ꫝꫀ ᥴ𝘳ꫀꪖ𝓽ꪮ𝘳 ꪮᠻ ꪖꪶꪶ</b>

⭕️<b>Creater :</b> @TroJanzHEX
⭕️<b>Creater :</b> @ANKIT3690 & @Saurav3BV6SA9LLElon7Musk

⭕️<b>Language :</b> <code>Python3</code>

⭕️<b>Library :</b> <a href='https://docs.pyrogram.org/'>Pyrogram 1.0.7</a>

⭕️<b>Tutorial Video :</b> <a href='https://youtu.be/KQVYQAOsFYY'>Video Link</a>
⭕️<b>𝓳ꪮ𝓲ꪀ ꪮꪊ𝘳 ᧁ𝘳ꪮꪊρ :</b> <a href='https://t.me/thewarriorsreal'>𝓽ꫝꫀ ᥴ𝘳ꫀꪖ𝓽ꪮ𝘳 ꪮᠻ ꪖꪶꪶ</a>

"""