Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
388274c
Update README.md
Filterbot4882 Sep 1, 2021
6ca3317
Update app.json
Filterbot4882 Sep 1, 2021
cc48679
Update translation.py
Filterbot4882 Sep 1, 2021
a0e9756
Update auto_filter.py
Filterbot4882 Sep 1, 2021
cee7147
Update commands.py
Filterbot4882 Sep 1, 2021
d7d9842
Update commands.py
Filterbot4882 Sep 1, 2021
d58de7c
Update commands.py
Filterbot4882 Sep 1, 2021
6efa603
Update translation.py
Filterbot4882 Sep 1, 2021
6857383
Update commands.py
Filterbot4882 Sep 1, 2021
a4f06e5
Update commands.py
Filterbot4882 Sep 1, 2021
13c6151
Update commands.py
Filterbot4882 Sep 1, 2021
360b262
Update commands.py
Filterbot4882 Sep 1, 2021
d295dc9
Update translation.py
Filterbot4882 Sep 1, 2021
cdcb662
Update translation.py
Filterbot4882 Sep 1, 2021
c00c7d9
Update translation.py
Filterbot4882 Sep 1, 2021
df0b35b
Update translation.py
Filterbot4882 Sep 1, 2021
db8f80a
Update translation.py
Filterbot4882 Sep 1, 2021
7c9e382
Update commands.py
Filterbot4882 Sep 2, 2021
6421ac2
Update commands.py
Filterbot4882 Sep 2, 2021
eeaf507
Update commands.py
Filterbot4882 Sep 2, 2021
0b74442
Update callback.py
Filterbot4882 Sep 3, 2021
e9b9223
Jas
Filterbot4882 Sep 3, 2021
280996a
Delete Pro-Auto-Filter-Bot.git
Filterbot4882 Sep 3, 2021
cb05e87
Update callback.py
Filterbot4882 Sep 3, 2021
8fcb968
jocker1
Filterbot4882 Sep 3, 2021
e05d41f
Jocker1
Filterbot4882 Sep 3, 2021
cece9bd
Create Filterbot4882
Filterbot4882 Sep 3, 2021
0fef9d0
Update translation.py
Filterbot4882 Sep 3, 2021
d5788fe
Update translation.py
Filterbot4882 Sep 3, 2021
f59b78b
Create Jasim
Filterbot4882 Sep 4, 2021
7759c8d
Update translation.py
Filterbot4882 Sep 27, 2021
bad2222
Update commands.py
Filterbot4882 Sep 27, 2021
b4ef2a3
Update translation.py
Filterbot4882 Sep 27, 2021
ba80606
Create Proopbro
Filterbot4882 Sep 27, 2021
b3dc5de
Delete Jasim
Filterbot4882 Sep 27, 2021
542a436
Delete Proopbro
Filterbot4882 Sep 27, 2021
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

### Deploy

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/MRK-YT/Pro-Auto-Filter-Bot)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Filterbot4882/Pro-Auto-Filter-Bot.git)


## Configs
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Mongo DB"
],
"website": "https://github.com/MRK-YT",
"repository": "https://github.com/MRK-YT/Pro-Auto-Filter-Bot",
"repository": "https://github.com/Filterbot4882/Pro-Auto-Filter-Bot.git",
"success_url": "https://telegram.dog/mo_tech_yt/26",
"env": {
"APP_ID": {
Expand Down
1 change: 1 addition & 0 deletions bot/Filterbot4882
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 2 additions & 2 deletions bot/plugins/auto_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ async def auto_filter(bot, update):
if len_result != 1:
result[0].append(
[
InlineKeyboardButton("Next ", callback_data=f"navigate(0|next|{query})")
InlineKeyboardButton("Next ➡️", callback_data=f"navigate(0|next|{query})")
]
)

# Just A Decaration
result[0].append([
InlineKeyboardButton(f"🔰 Page 1/{len_result if len_result < max_pages else max_pages} 🔰", callback_data="ignore")
InlineKeyboardButton(f"📃 Page 1/{len_result if len_result < max_pages else max_pages} 📃", callback_data="ignore")
])


Expand Down
9 changes: 3 additions & 6 deletions bot/plugins/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ async def callback_data(bot, update: CallbackQuery):

elif query_data == "help":
buttons = [[
InlineKeyboardButton('Home ⚡', callback_data='start'),
InlineKeyboardButton('Home ⚡', callback_data='close'),
InlineKeyboardButton('About 🚩', callback_data='about')
],[
InlineKeyboardButton('Close 🔐', callback_data='close')
Expand All @@ -1680,11 +1680,8 @@ async def callback_data(bot, update: CallbackQuery):

elif query_data == "about":
buttons = [[
InlineKeyboardButton('👤 @𝙼𝚛𝚔_𝚈𝚃 👤', url='https://t.me/MRK_YT')
],[
InlineKeyboardButton('𝙼𝚊𝚜𝚝𝚎𝚛 @𝙰𝚕𝚋𝚎𝚛𝚝𝙴𝚒𝚗𝚜𝚝𝚎𝚒𝚗𝚃𝙶', url='https://t.me/AlbertEinsteinTG')
],[
InlineKeyboardButton('🏠 𝙷𝚘𝚖𝚎', callback_data='start'),

InlineKeyboardButton('🏠 𝙷𝚘𝚖𝚎', callback_data='close'),
InlineKeyboardButton('𝙲𝚕𝚘𝚜𝚎 🔐', callback_data='close')
]]

Expand Down
30 changes: 10 additions & 20 deletions bot/plugins/commands.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) @AlbertEinsteinTG & @Mrk_YT
# (c) @AlbertEinsteinTG

from pyrogram import filters, Client
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery
Expand Down Expand Up @@ -35,7 +35,7 @@ async def start(bot, update):
[
InlineKeyboardButton
(
'Developers', url="https://t.me/Mo_Tech_YT"
'channel 🙃', url="https://t.me/filmzone0"
)
]
]
Expand All @@ -47,16 +47,11 @@ async def start(bot, update):
return

buttons = [[
InlineKeyboardButton('👨‍💼 𝙼𝚊𝚜𝚝𝚎𝚛', url='https://t.me/MRK_YT'),
InlineKeyboardButton('𝙷𝚎𝚕𝚙 🤔', callback_data="help")
],[
InlineKeyboardButton('🖥️ 𝚃𝚞𝚝𝚘𝚛𝚒𝚊𝚕 𝚅𝚒𝚍𝚎𝚘 🖥️', url='https://youtu.be/uAHl5jvnrhk')
],[
InlineKeyboardButton('🗣️ 𝙰𝚗𝚢 𝙳𝚘𝚞𝚋𝚝', url='https://t.me/Mo_Tech_group'),
InlineKeyboardButton('𝚄𝚙𝚍𝚊𝚝𝚎𝚜 🤖', url='https://t.me/Mo_Tech_YT')

InlineKeyboardButton('channel 😊', url='https://t.me/filmzone0')
],[
InlineKeyboardButton('💥 𝚂𝚞𝚋𝚜𝚌𝚛𝚒𝚋𝚎 𝙼𝚢 𝚈𝚘𝚞𝚃𝚞𝚋𝚎 𝙲𝚑𝚊𝚗𝚗𝚎𝚕 💥', url='https://youtube.com/channel/UCmGBpXoM-OEm-FacOccVKgQ')
]]
InlineKeyboardButton('Help ⚙', callback_data="help")
]]

reply_markup = InlineKeyboardMarkup(buttons)

Expand All @@ -73,10 +68,9 @@ async def start(bot, update):
@Client.on_message(filters.command(["help"]) & filters.private, group=1)
async def help(bot, update):
buttons = [[
InlineKeyboardButton('🏠 𝙷𝚘𝚖𝚎', callback_data='start'),
InlineKeyboardButton('𝙰𝚋𝚘𝚞𝚝 🚩', callback_data='about')
InlineKeyboardButton('About 🚩', callback_data='about'),
],[
InlineKeyboardButton('🔐 𝙲𝚕𝚘𝚜𝚎 🔐', callback_data='close')
InlineKeyboardButton('Close 🔐', callback_data='close')
]]

reply_markup = InlineKeyboardMarkup(buttons)
Expand All @@ -94,12 +88,8 @@ async def help(bot, update):
async def about(bot, update):

buttons = [[
InlineKeyboardButton('👤 @𝙼𝚛𝚔_𝚈𝚃 👤', url='https://t.me/MRK_YT')
],[
InlineKeyboardButton('👤 @𝙰𝚕𝚋𝚎𝚛𝚝𝙴𝚒𝚗𝚜𝚝𝚎𝚒𝚗𝚃𝙶 👤', url='https://t.me/AlbertEinsteinTG')
],[
InlineKeyboardButton('🏠 𝙷𝚘𝚖𝚎', callback_data='start'),
InlineKeyboardButton('𝙲𝚕𝚘𝚜𝚎 🔐', callback_data='close')

InlineKeyboardButton('Close 🔐', callback_data='close'),
]]
reply_markup = InlineKeyboardMarkup(buttons)

Expand Down
66 changes: 15 additions & 51 deletions bot/translation.py
Original file line number Diff line number Diff line change
@@ -1,63 +1,27 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) @AlbertEinsteinTG & @MRK_YT
# (c) @AlbertEinsteinTG

class Translation(object):

START_TEXT = """<b>🙋‍♂️Hey {}!!</b>

<b>Am Just A Pro Auto Filter Bot....😉</b>

<b>Just Add Me To Your Group And Channel And Connect Them And See My Pevers 🔥🔥😝</b>

<b>Watch the video below to build an Pro Autofilter bot like me...</b>

<b>Subscribe to the update channel to learn about my updates and activity...</b>

<b>Press /help to know about available commands🤪</b>"""

HELP_TEXT = """
<b>😉How To Use Me!😉?</b>

<i>
-> Add Me To Any Group And Make Me Admin
-> Add Me To Your Desired Channel
</i>

<b>Bot Commands (Works Only In Groups) :</b>

-> <code>/add chat_id</code>
OR - To Connect A Group With A Channel (Bot Should Be Admin With Full Previlages In Both Group And Channel)
<code>/add @Username</code>

-> <code>/del chat_id</code>
OR - To disconnect A Group With A Channel
<code>/del @Username</code>
START_TEXT = """<b>Hey {}!!</b>
<i> Don't ask film here❗
Im assistant manager of Flim zone group
You can ask them Films in the Group🎦

Thankyou 😊
</i>"""

-> <code>/delall</code> - This Command Will Disconnect All Connected Channel With The Group And Deletes All Its File From DB

-> <code>/settings</code> - This Command Will Display You A Settings Pannel Instance Which Can Be Used To Tweek Bot's Settings Accordingly

-> <code>Channel</code> - Button Will Show You All The Connected Chats With The Group And Will Show Buttons Correspnding To There Order For Furthur Controls

-> <code>Filter Types</code> - Button Will Show You The 3 Filter Option Available In Bot... Pressing Each Buttons Will Either Enable or Disable Them And This Will Take Into Action As Soon As You Use Them Without The Need Of A Restart
HELP_TEXT = """
<i> Hi how are you? 🥰
</i>"""

-> <code>Configure</code> - Button Will Helps You To Change No. of Pages/ Buttons Per Page/ Total Result Without Acutally Editing The Repo... Also It Provide Option To Enable/Disable For Showing Invite Link In Each Results

-> <code>Status</code> - Button Will Shows The Stats Of Your Channel

<b><a href="https://t.me/Mo_Tech_YT">MoTechYT</a></b>
"""
ABOUT_TEXT = """<b>➥ Name</b> : <code> Auto Filter Bot</code>

ABOUT_TEXT = """<b>➥ 📃Name</b> : <b>Pro Auto Filter Bot</b>

<b>➥ 😎Creator</b> : <b>@AlbertEinstein_TG</b>

<b>➥ 👨‍💻Editor</b> : <b>@Mrk_YT</b>
<b>➥ Creator</b> : <b>@jasimmhd</b>

<b>➥ 🗣️Language</b> : <b>Python3</b>
<b>➥ Language</b> : <code>Python3</code>

<b>➥ 📚Library</b> : <b><a href="https://docs.pyrogram.org">Pyrogram Asyncio 1.13.0 </a></b>
<b>➥ Library</b> : </b>@filmzone0</b>

<b>➥ 📖Source Code</b> : <b><a href="https://github.com/MRK-YT/Pro-Auto-Filter-Bot">💥Click Me</a></b>
"""