Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #25

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
3 changes: 2 additions & 1 deletion Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
auth_channel = environ.get('FORCES_SUB')
AUTH_CHANNEL = int(auth_channel) if auth_channel and id_pattern.search(auth_channel) else auth_channel
AUTH_GROUPS = [int(admin) for admin in environ.get("AUTH_GROUPS", "").split()]
TUTORIAL = "https://youtu.be/5hnYOKBzyi8"
TUTORIAL = "https://t.me/file_search_updates"
TOTURIAL = "https:))t.me/mh_Botz/5"
# MongoDB information
DATABASE_URI = environ['DATABASE_2']
DATABASE_NAME = environ['BOT_NAME']
Expand Down
12 changes: 6 additions & 6 deletions LuciferMoringstar_Robot/Commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pyrogram import Client, filters
from pyrogram import StopPropagation
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
from Config import START_MSG, CHANNELS, ADMINS, AUTH_CHANNEL, CUSTOM_FILE_CAPTION, TUTORIAL, BROADCAST_CHANNEL, DB_URL, SESSION, ADMIN_ID
from Config import START_MSG, CHANNELS, ADMINS, AUTH_CHANNEL, CUSTOM_FILE_CAPTION, TUTORIAL, BROADCAST_CHANNEL, DB_URL, SESSION, ADMIN_ID ,TOTURIAL
from LuciferMoringstar_Robot.Utils import Media, get_file_details
from LuciferMoringstar_Robot.Broadcast import broadcast
from LuciferMoringstar_Robot import ABOUT
Expand Down Expand Up @@ -84,7 +84,7 @@ async def start(bot, message):
f_caption = f"{files.file_name}"
buttons = [
[
InlineKeyboardButton('🎖 DEPLOY YOURS 🎖', url=f'{TUTORIAL}')
InlineKeyboardButton('Share This Bot 🔄', url=f'{TUTORIAL}')
]
]
await bot.send_cached_media(
Expand Down Expand Up @@ -115,10 +115,10 @@ async def start(bot, message):
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
[[
InlineKeyboardButton("Search Here", switch_inline_query_current_chat='')
InlineKeyboardButton("🔎 Search Movies 🔍", switch_inline_query_current_chat='')
],[
InlineKeyboardButton("Help", callback_data="help"),
InlineKeyboardButton("About", callback_data="about")
InlineKeyboardButton("ℹ️ HELP 👨‍💻", callback_data="help"),
InlineKeyboardButton("About 😊", callback_data="about")
]]
)
)
Expand Down Expand Up @@ -331,7 +331,7 @@ async def bot_info(bot, message):
buttons = [
[

InlineKeyboardButton('Deploy Video', url=f'{TUTORIAL}')
InlineKeyboardButton('Help 👨‍💻', url=f'{TOTURIAL}')
]
]
await message.reply(text=f"{ABOUT}", reply_markup=InlineKeyboardMarkup(buttons), disable_web_page_preview=True)
16 changes: 8 additions & 8 deletions LuciferMoringstar_Robot/Filter/Main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# (c) PR0FESS0R-99
from Config import AUTH_CHANNEL, AUTH_USERS, CUSTOM_FILE_CAPTION, API_KEY, AUTH_GROUPS, TUTORIAL
from Config import AUTH_CHANNEL, AUTH_USERS, CUSTOM_FILE_CAPTION, API_KEY, AUTH_GROUPS, TUTORIAL,TOTURIAL
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
from pyrogram import Client, filters
import re
Expand Down Expand Up @@ -53,7 +53,7 @@ async def filter(client, message):
if 2 < len(message.text) < 100:
btn = []
search = message.text
mo_tech_yt = f"**🗂️ Title:** {search}\n**⭐ Rating:** {random.choice(RATING)}\n**🎭 Genre:** {random.choice(GENRES)}\n**📤 Uploaded by {message.chat.title}**"
mo_tech_yt = f"**🗂️ Title:** {search}\n**⭐ Rating:** {random.choice(RATING)}\n**🎭 Genre:** {random.choice(GENRES)}\n**📤 Uploaded by @File_Search_V3_Bot**"
files = await get_filter_results(query=search)
if files:
for file in files:
Expand All @@ -63,7 +63,7 @@ async def filter(client, message):
[InlineKeyboardButton(text=f"{filename}",callback_data=f"pr0fess0r_99#{file_id}")]
)
else:
await client.send_sticker(chat_id=message.from_user.id, sticker='CAADBQADMwIAAtbcmFelnLaGAZhgBwI')
await client.send_sticker(chat_id=message.from_user.id, sticker='CAACAgIAAxkBAAEEdB5iVh2MpmnMWccwg-K7EVDdOay2sQACfBkAAmKfsUqVV0Nw1j3OjCME')
return

if not btn:
Expand Down Expand Up @@ -115,7 +115,7 @@ async def group(client, message):
if 2 < len(message.text) < 50:
btn = []
search = message.text
mo_tech_yt = f"**🗂️ Title:** {search}\n**⭐ Rating:** {random.choice(RATING)}\n**🎭 Genre:** {random.choice(GENRES)}\n**📤 Uploaded by {message.chat.title}**"
mo_tech_yt = f"**🗂️ Title:** {search}\n**⭐ Rating:** {random.choice(RATING)}\n**🎭 Genre:** {random.choice(GENRES)}\n**📤 Uploaded by @File_Search_V3_Bot**"
nyva=BOT.get("username")
if not nyva:
botusername=await client.get_me()
Expand Down Expand Up @@ -277,15 +277,15 @@ async def cb_handler(client: Client, query: CallbackQuery):
elif query.data == "help":
buttons = [
[
InlineKeyboardButton('Making Video', url=f'{TUTORIAL}')
InlineKeyboardButton('Help 👨‍💻', url=f'{TOTURIAL}')
]
]
await query.message.edit(text=f"{HELP}", reply_markup=InlineKeyboardMarkup(buttons), disable_web_page_preview=True)

elif query.data == "about":
buttons = [
[
InlineKeyboardButton('Making Video', url=f'{TUTORIAL}')
InlineKeyboardButton(' More Help 👨‍💻', url=f'{TOTURIAL}')
]
]
await query.message.edit(text=f"{ABOUT}", reply_markup=InlineKeyboardMarkup(buttons), disable_web_page_preview=True)
Expand All @@ -308,7 +308,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
f_caption = f"{files.file_name}"
buttons = [
[
InlineKeyboardButton('🖥️ How To Own 🖥️', url=f'{TUTORIAL}')
InlineKeyboardButton('Share This Bot 🔄', url=f'{TUTORIAL}')
]
]

Expand Down Expand Up @@ -339,7 +339,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
f_caption = f"{title}"
buttons = [
[
InlineKeyboardButton('🖥️ How To Own 🖥️', url=f'{TUTORIAL}')
InlineKeyboardButton('Share This Bot 🔄', url=f'{TUTORIAL}')
]
]

Expand Down
38 changes: 23 additions & 15 deletions LuciferMoringstar_Robot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,39 @@
)

HELP = """
Basic Commads

/start :- check am Alive
Bro, Check Movie Name In #Google and Try ! Then No Results Add Movie Year and Try , Again No Results ? It's Not Available In Our Database Or Movie Not Released !

ബ്രോ, മൂവിയുടെ പേര് മാത്രം #Google നോക്കിയിട്ട് അടിച്ചു നോക്കുക..!!

എന്നിട്ടും കിട്ടിയില്ലെങ്കിൽ പേരിന്റെ കൂടെ മൂവി ഇറങ്ങിയ വർഷം കൂടി അടിച്ചു നോക്ക് 😁

എനിയും കിട്ടിയില്ലെങ്കിൽ ആ മൂവി ഞങ്ങളുടെ ഡാറ്റാബേസിൽ ഇല്ല, അല്ലെങ്കിൽ ആ മൂവി ഇറങ്ങിയിട്ടില്ല എന്ന് മനസ്സിലാക്കുക! 🤗⚠

️📌 Any Help For Movie Searching Contact Admin @MH_HELP_BOT











Bot Owner Only
/broadcast Replay Any Message or Media
/stats user Status
/ban_user click ban_user more info
/unban_user click unban_user more info
/banned_users Banned User Details
/total How Many Files Added In Database
/logger Get Logs
/delete Delete File From Database

"""

ABOUT = """
➥ Name : Auto Filter V3
➥ Name : 🔎 File Search Bot 🔍

Creator : [Naughty PROFESSOR](
https://youtube.com/c/NaughtyPROFESSOR)
Maintained By : [ MH BOTZ ](https:))t.me/mh_botz)


➥ Language : Python3

➥ Library : Pyrogram Asyncio 1.13.0

Tutorial : [Click Me](https://youtu.be/5hnYOKBzyi8)
Source : [Click Me](https://github.com/MH-Botz-b/autofilterbotv3)
"""
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#### Deploy To Heroku

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/DalinMathew/AutoFilterBotV3)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/mh-botz-b/AutoFilterBotV3)

#### Hard Way
```bash
Expand Down