diff --git a/LICENSE b/LICENSE index d467a123..d3a7f040 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 TroJanzHEX +Copyright (c) 2021 KicchaRequest Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 258d70b3..6ecf5c6f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Auto Filter Bot V2 +# Kiccha Filter Bot V2
-[](https://telegram.dog/TroJanzHEX) +[](https://telegram.dog/sachin9742s) ㅤㅤㅤㅤㅤㅤㅤ -[](https://telegram.dog/TroJanzSupport) [](https://TroJanzHEX.me) +[](https://telegram.dog/KicchaRequest) [](https://sachin9742s.me) ㅤㅤㅤㅤㅤㅤㅤ -[](https://github.com/TroJanzHEX/Auto-Filter-Bot-V2/blob/main/LICENSE) [](https://github.com/TroJanzHEX/Auto-Filter-Bot-V2) +[](https://github.com/sachin9742s/Auto-Filter-Bot-V2/blob/main/LICENSE) [](https://github.com/sachin9742s/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) +#### This is Version 2 of [Auto Filter Bot](https://github.com/sachin9742s/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 @@ -63,19 +63,19 @@ or [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 +Thanks to [KicchaRequest](https://telegram.dog/KicchaRequest) and [Sachin S](https://telegram.dog/sachin_official_admin) for the video -## Any bugs or errors or suggestions, report at [TroJanzSupport](https://telegram.dog/TroJanzSupport) +## Any bugs or errors or suggestions, report at [KicchaRequest](https://telegram.dog/KicchaRequest) ## Installation ### Deploy to Heroku -[](https://heroku.com/deploy?template=https://github.com/TroJanzHEX/Auto-Filter-Bot-V2) +[](https://heroku.com/deploy?template=https://github.com/sachin9742s/Auto-Filter-Bot-V2) ### Deploy in your vps ```sh -git clone https://github.com/TroJanzHEX/Auto-Filter-Bot-V2 +git clone https://github.com/sachin9742s/Auto-Filter-Bot-V2 cd Auto-Filter-Bot-V2 pip3 install -r requirements.txt #/add channelid or\n"
"/add @channelusername"
- "\n\nGet Channel id from @ChannelidHEXbot",
+ "\n\nGet Channel id from @GD_FILMCLUB",
)
return
try:
diff --git a/plugins/commands.py b/plugins/commands.py
index 10bdf930..74ad2361 100644
--- a/plugins/commands.py
+++ b/plugins/commands.py
@@ -1,78 +1,58 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-# @trojanzhex
+# (c) @sachin9742s
+class Translation(object):
+
+ START_TEXT = """Hey {}!!
+Am Just A Kiccha Auto Filter Bot....😉
-from pyrogram import Client, filters
-from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
-from script import script
+Just Add Me To Your Group And Channel And Connect Them And See My Pevers 🔥🔥😝
+For More Details Click Help Button Below..
+@KicchaRequest
+"""
+
+ HELP_TEXT = """
+How To Use Me!?
-@Client.on_message(filters.command(["start"]) & filters.private)
-async def start(client, message):
- try:
- await message.reply_text(
- text=script.START_MSG.format(message.from_user.mention),
- disable_web_page_preview=True,
- reply_markup=InlineKeyboardMarkup(
- [
- [
- InlineKeyboardButton("HELP", callback_data="help_data"),
- InlineKeyboardButton("ABOUT", callback_data="about_data"),
- ],
- [
- InlineKeyboardButton(
- "⭕️ JOIN OUR CHANNEL ⭕️", url="https://t.me/TroJanzHEX")
- ]
- ]
- ),
- reply_to_message_id=message.message_id
- )
- except:
- pass
+
+-> Add Me To Any Group And Make Me Admin
+-> Add Me To Your Desired Channel
+
-@Client.on_message(filters.command(["help"]) & filters.private)
-async def help(client, message):
- try:
- await message.reply_text(
- text=script.HELP_MSG,
- disable_web_page_preview=True,
- reply_markup=InlineKeyboardMarkup(
- [
- [
- InlineKeyboardButton("BACK", callback_data="start_data"),
- InlineKeyboardButton("ABOUT", callback_data="about_data"),
- ],
- [
- InlineKeyboardButton(
- "⭕️ SUPPORT ⭕️", url="https://t.me/TroJanzSupport")
- ]
- ]
- ),
- reply_to_message_id=message.message_id
- )
- except:
- pass
+Bot Commands (Works Only In Groups) :
-@Client.on_message(filters.command(["about"]) & filters.private)
-async def about(client, message):
- try:
- await message.reply_text(
- text=script.ABOUT_MSG,
- disable_web_page_preview=True,
- reply_markup=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")
- ]
- ]
- ),
- reply_to_message_id=message.message_id
- )
- except:
- pass
\ No newline at end of file
+ -> /add chat_id
+ OR - To Connect A Group With A Channel (Bot Should Be Admin With Full Previlages In Both Group And Channel)
+ /add @Username
+
+ -> /del chat_id
+ OR - To disconnect A Group With A Channel
+ /del @Username
+
+ -> /delall - This Command Will Disconnect All Connected Channel With The Group And Deletes All Its File From DB
+
+ -> /settings - This Command Will Display You A Settings Pannel Instance Which Can Be Used To Tweek Bot's Settings Accordingly
+
+ -> Channel - Button Will Show You All The Connected Chats With The Group And Will Show Buttons Correspnding To There Order For Furthur Controls
+
+ -> Filter Types - 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
+
+ -> Configure - 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
+
+ -> Status - Button Will Shows The Stats Of Your Channel
+
+@sachin9742s
+"""
+
+ ABOUT_TEXT = """➥ Name : Auto Filter Bot
+
+➥ Creator : Sachin_S
+
+➥ Language : Python3
+
+➥ Library : Pyrogram Asyncio 1.13.0
+
+➥ Source Code : Click Me
+"""
diff --git a/plugins/filters.py b/plugins/filters.py
index c05e0610..0254a49d 100644
--- a/plugins/filters.py
+++ b/plugins/filters.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-# @trojanzhex
+# @sachin9742s
import re
@@ -59,7 +59,7 @@ async def filter(client: Bot, message: Message):
else:
buttons = btn
buttons.append(
- [InlineKeyboardButton(text="📃 Pages 1/1",callback_data="pages")]
+ [InlineKeyboardButton(text="🎶 Pages 1/1 🎶",callback_data="pages")]
)
await message.reply_text(
f" Here is the result for {message.text}",
@@ -71,10 +71,10 @@ async def filter(client: Bot, message: Message):
buttons = data['buttons'][0].copy()
buttons.append(
- [InlineKeyboardButton(text="NEXT ⏩",callback_data=f"next_0_{keyword}")]
+ [InlineKeyboardButton(text="🎸 NEXT 🎸",callback_data=f"next_0_{keyword}")]
)
buttons.append(
- [InlineKeyboardButton(text=f"📃 Pages 1/{data['total']}",callback_data="pages")]
+ [InlineKeyboardButton(text=f"🎶 Pages 1/{data['total']}",callback_data="pages")]
)
await message.reply_text(
@@ -99,10 +99,10 @@ async def cb_handler(client: Bot, query: CallbackQuery):
buttons = data['buttons'][int(index)+1].copy()
buttons.append(
- [InlineKeyboardButton("⏪ BACK", callback_data=f"back_{int(index)+1}_{keyword}")]
+ [InlineKeyboardButton("🎵 BACK 🎵", callback_data=f"back_{int(index)+1}_{keyword}")]
)
buttons.append(
- [InlineKeyboardButton(f"📃 Pages {int(index)+2}/{data['total']}", callback_data="pages")]
+ [InlineKeyboardButton(f"🎶 Pages {int(index)+2}/{data['total']}", callback_data="pages")]
)
await query.edit_message_reply_markup(
@@ -113,10 +113,10 @@ async def cb_handler(client: Bot, query: CallbackQuery):
buttons = data['buttons'][int(index)+1].copy()
buttons.append(
- [InlineKeyboardButton("⏪ BACK", callback_data=f"back_{int(index)+1}_{keyword}"),InlineKeyboardButton("NEXT ⏩", callback_data=f"next_{int(index)+1}_{keyword}")]
+ [InlineKeyboardButton("🎵 BACK 🎵", callback_data=f"back_{int(index)+1}_{keyword}"),InlineKeyboardButton("🎸 NEXT 🎸", callback_data=f"next_{int(index)+1}_{keyword}")]
)
buttons.append(
- [InlineKeyboardButton(f"📃 Pages {int(index)+2}/{data['total']}", callback_data="pages")]
+ [InlineKeyboardButton(f"🎶 Pages {int(index)+2}/{data['total']}", callback_data="pages")]
)
await query.edit_message_reply_markup(
@@ -134,10 +134,10 @@ async def cb_handler(client: Bot, query: CallbackQuery):
buttons = data['buttons'][int(index)-1].copy()
buttons.append(
- [InlineKeyboardButton("NEXT ⏩", callback_data=f"next_{int(index)-1}_{keyword}")]
+ [InlineKeyboardButton("🎸 NEXT 🎸", callback_data=f"next_{int(index)-1}_{keyword}")]
)
buttons.append(
- [InlineKeyboardButton(f"📃 Pages {int(index)}/{data['total']}", callback_data="pages")]
+ [InlineKeyboardButton(f"🎶 Pages {int(index)}/{data['total']}", callback_data="pages")]
)
await query.edit_message_reply_markup(
@@ -148,10 +148,10 @@ async def cb_handler(client: Bot, query: CallbackQuery):
buttons = data['buttons'][int(index)-1].copy()
buttons.append(
- [InlineKeyboardButton("⏪ BACK", callback_data=f"back_{int(index)-1}_{keyword}"),InlineKeyboardButton("NEXT ⏩", callback_data=f"next_{int(index)-1}_{keyword}")]
+ [InlineKeyboardButton("🎵 BACK 🎵", callback_data=f"back_{int(index)-1}_{keyword}"),InlineKeyboardButton("🎸 NEXT 🎸", callback_data=f"next_{int(index)-1}_{keyword}")]
)
buttons.append(
- [InlineKeyboardButton(f"📃 Pages {int(index)}/{data['total']}", callback_data="pages")]
+ [InlineKeyboardButton(f"🎶 Pages {int(index)}/{data['total']}", callback_data="pages")]
)
await query.edit_message_reply_markup(
@@ -167,9 +167,9 @@ async def cb_handler(client: Bot, query: CallbackQuery):
elif query.data == "start_data":
await query.answer()
keyboard = InlineKeyboardMarkup([
- [InlineKeyboardButton("HELP", callback_data="help_data"),
- InlineKeyboardButton("ABOUT", callback_data="about_data")],
- [InlineKeyboardButton("⭕️ JOIN OUR CHANNEL ⭕️", url="https://t.me/TroJanzHEX")]
+ [InlineKeyboardButton("⚚ HELP", callback_data="help_data"),
+ InlineKeyboardButton("ABOUT ⚚", callback_data="about_data")],
+ [InlineKeyboardButton("꧁ JOIN OUR CHANNEL ꧂", url="https://t.me/ROCKHDMOVIES2021")]
])
await query.message.edit_text(
@@ -184,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("〠 SUPPORT 〠", url="https://t.me/KicchaRequest")]
])
await query.message.edit_text(
@@ -199,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("SOURCE CODE", url="https://t.me/KicchaRequest")]
])
await query.message.edit_text(
diff --git a/script.py b/script.py
index 63671648..a34f08b3 100644
--- a/script.py
+++ b/script.py
@@ -58,12 +58,10 @@ class script(object):
ABOUT_MSG = """⭕️My Name : Auto Filter Bot V2
-⭕️Creater : @TroJanzHEX
+⭕️Creater : @sachin_official_admin
⭕️Language : Python3
-⭕️Library : Pyrogram 1.0.7
-
-⭕️Tutorial Video : Video Link
+⭕️Library : Pyrogram 1.0.7
"""
diff --git a/user.py b/user.py
index 5d13fb45..9247ddb1 100644
--- a/user.py
+++ b/user.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-# @trojanzhex
+# @sachin9742s
from pyrogram import (