Skip to content
Open

ok #9

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 plugins/p_ttishow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from Script import script
from pyrogram.errors import ChatAdminRequired

"""-----------------------------------------https://t.me/GetTGLink/4179 --------------------------------------"""
"""-----------------------------------------@OxooFlix --------------------------------------"""

@Client.on_message(filters.new_chat_members & filters.group)
async def save_group(bot, message):
Expand Down Expand Up @@ -38,7 +38,7 @@ async def save_group(bot, message):
return
buttons = [[
InlineKeyboardButton('ℹ️ Hᴇʟᴘ ℹ️', url=f"https://t.me/{temp.U_NAME}?start=help"),
InlineKeyboardButton('📢 ᴜᴘᴅᴀᴛᴇs 📢', url='https://t.me/TamilanBotsZ')
InlineKeyboardButton('📢 ᴜᴘᴅᴀᴛᴇs 📢', url='https://t.me/OxooFlix')
]]
reply_markup=InlineKeyboardMarkup(buttons)
await message.reply_text(
Expand Down
62 changes: 26 additions & 36 deletions plugins/pm_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ async def advantage_spoll_choker(bot, query):
return await query.message.delete()
movies = SPELL_CHECK.get(query.message.reply_to_message.id)
if not movies:
return await query.answer("You are clicking on an old button which is expired.", show_alert=True)
return await query.answer("Yᴏᴜ ᴀʀᴇ ᴄʟɪᴄᴋɪɴɢ ᴏɴ ᴀɴ ᴏʟᴅ ʙᴜᴛᴛᴏɴ ᴡʜɪᴄʜ ɪs ᴇxᴘɪʀᴇᴅ.", show_alert=True)
movie = movies[(int(movie_))]
await query.answer('Iᴀᴍ Cʜᴇᴄᴋɪɴɢ U Asᴋᴇᴅ Fɪʟᴇ Iɴ Mʏ Dʙ...')
await query.answer('I ᴀᴍ Cʜᴇᴄᴋɪɴɢ U Asᴋᴇᴅ Fɪʟᴇ Iɴ Mʏ Dʙ...')
k = await manual_filters(bot, query.message, text=movie)
if k == False:
files, offset, total_results = await get_search_results(movie, offset=0, filter=True)
Expand Down Expand Up @@ -186,20 +186,20 @@ async def cb_handler(client: Client, query: CallbackQuery):
title = chat.title
except:
await query.message.edit_text("Tʜᴇʀᴇ ᴀʀᴇ ɴᴏ ᴀᴄᴛɪᴠᴇ ᴄᴏɴɴᴇᴄᴛɪᴏɴꜱ!! Cᴏɴɴᴇᴄᴛ ᴛᴏ ꜱᴏᴍᴇ ɢʀᴏᴜᴘꜱ ғɪʀꜱᴛ.", quote=True)
return await query.answer(' ˆ°• Tᴀᴍɪʟᴀɴ BᴏᴛsZ •°ˆ ')
return await query.answer(' ˆ°• OxᴏᴏFʟɪx •°ˆ ')
else:
await query.message.edit_text(
"Iᴀᴍ Nᴏᴛ Cᴏɴɴᴇᴄᴛᴇᴅ Tᴏ Aɴʏ Gʀᴏᴜᴩ \nCʜᴇᴄᴋ /connections Oʀ Cᴏɴɴᴇᴄᴛ Tᴏ Aɴʏ Gʀᴏᴜᴩ",
quote=True
)
return await query.answer(' ˆ°• Tᴀᴍɪʟᴀɴ BᴏᴛsZ •°ˆ ')
return await query.answer(' ˆ°• OxᴏᴏFʟɪx •°ˆ ')

elif chat_type in [enums.ChatType.GROUP, enums.ChatType.SUPERGROUP]:
grp_id = query.message.chat.id
title = query.message.chat.title

else:
return await query.answer(' ˆ°• Tᴀᴍɪʟᴀɴ BᴏᴛsZ •°ˆ ')
return await query.answer(' ˆ°• OxᴏᴏFʟɪx •°ˆ ')

st = await client.get_chat_member(grp_id, userid)
if (st.status == enums.ChatMemberStatus.OWNER) or (str(userid) in ADMINS):
Expand Down Expand Up @@ -253,7 +253,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
reply_markup=keyboard,
parse_mode=enums.ParseMode.MARKDOWN
)
return await query.answer(' ˆ°• Tᴀᴍɪʟᴀɴ BᴏᴛsZ •°ˆ ')
return await query.answer(' ˆ°• OxᴏᴏFʟɪx •°ˆ ')
elif "connectcb" in query.data:
await query.answer()

Expand Down Expand Up @@ -297,7 +297,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
f"Sᴏᴍᴇ Eʀʀᴏʀ Oᴄᴄᴜʀᴇᴅ!!",
parse_mode=enums.ParseMode.MARKDOWN
)
return await query.answer(' ˆ°• Tᴀᴍɪʟᴀɴ BᴏᴛsZ •°ˆ ')
return await query.answer(' ˆ°• OxᴏᴏFʟɪx •°ˆ ')
elif "deletecb" in query.data:
await query.answer()

Expand All @@ -315,7 +315,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
f"Sᴏᴍᴇ Eʀʀᴏʀ Oᴄᴄᴜʀᴇᴅ!!",
parse_mode=enums.ParseMode.MARKDOWN
)
return await query.answer(' ˆ°• Tᴀᴍɪʟᴀɴ BᴏᴛsZ •°ˆ ')
return await query.answer(' ˆ°• OxᴏᴏFʟɪx •°ˆ ')
elif query.data == "backcb":
await query.answer()

Expand All @@ -326,7 +326,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
await query.message.edit_text(
"There are no active connections!! Connect to some groups first.",
)
return await query.answer(' ˆ°• Tᴀᴍɪʟᴀɴ BᴏᴛsZ •°ˆ ')
return await query.answer(' ˆ°• OxᴏᴏFʟɪx •°ˆ ')
buttons = []
for groupid in groupids:
try:
Expand Down Expand Up @@ -388,7 +388,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
return
else:
g = short_url(f"https://t.me/{temp.U_NAME}?start={ident}_{file_id}")
await client.send_photo(chat_id=query.from_user.id, photo='https://graph.org/file/f7f173057c2b76940c79c.jpg', caption = f"<b>📕Nᴀᴍᴇ ➠ : <code>{files.file_name}</code> \n\n🔗Sɪᴢᴇ ➠ : {get_size(files.file_size)}</b>",
await client.send_photo(chat_id=query.from_user.id, photo='https://graph.org/file/f32f1db77d217dc0cf535.jpg', caption = f"<b>📕 Nᴀᴍᴇ ➠ : <code>{files.file_name}</code> \n\n🔗 Sɪᴢᴇ ➠ : {get_size(files.file_size)}</b>",
reply_markup=InlineKeyboardMarkup(
[
[
Expand All @@ -397,7 +397,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
[
InlineKeyboardButton('📂 Dᴏᴡɴʟᴏᴀᴅ Nᴏᴡ 📂', url=g)
]]))
await query.answer('Cʟɪᴄᴋ °Cʜᴇᴄᴋ Bᴏᴛ Pᴍ° Bᴜᴛᴛᴏɴ\n\nI Sᴇɴᴛᴇᴅ U ASᴋᴇᴅ Fɪʟᴇs', show_alert=True)
await query.answer('Cʟɪᴄᴋ °Cʜᴇᴄᴋ Bᴏᴛ Pᴍ° Bᴜᴛᴛᴏɴ\n\nI sᴇɴᴛ ᴛʜᴇ ғɪʟᴇs ᴛʜᴀᴛ ʏᴏᴜ ʀᴇǫᴜᴇsᴛᴇᴅ.', show_alert=True)
except UserIsBlocked:
await query.answer('Fɪʀsᴛ Sᴛᴀʀᴛ Mᴇ Tʜᴇɴ I Wɪʟʟ Sᴇɴᴅ Fɪʟᴇs !', show_alert=True)
except PeerIdInvalid:
Expand Down Expand Up @@ -440,10 +440,8 @@ async def cb_handler(client: Client, query: CallbackQuery):
buttons = [[
InlineKeyboardButton('➕ Aᴅᴅ Mᴇ Tᴏ Yᴏᴜʀ Gʀᴏᴜᴘ ➕', url=f"https://t.me/{temp.U_NAME}?startgroup=true")
],[
InlineKeyboardButton('💥 Mᴏᴠɪᴇ Uᴘᴅᴀᴛᴇs 💥', url='https://t.me/+m3lsH6NZBlE1MWJl'),
InlineKeyboardButton('🔎 Sᴇᴀʀᴄʜ Gʀᴏᴜᴘ 🔍', url='https://t.me/TamilanMoviesChat')
],[
InlineKeyboardButton('😅 Sᴏᴜʀᴄᴇ Cᴏᴅᴇ 😊', callback_data='sources')
InlineKeyboardButton('💥 Mᴏᴠɪᴇ Uᴘᴅᴀᴛᴇs 💥', url='https://t.me/OxooFlix'),
InlineKeyboardButton('🔎 Sᴇᴀʀᴄʜ Gʀᴏᴜᴘ 🔍', url='https://t.me/oxooflix_request')
],[
InlineKeyboardButton('💌 Aʙᴏᴜᴛ Aɴᴅ Iɴғᴏ 💌', callback_data= 'about')
],[
Expand All @@ -457,15 +455,15 @@ async def cb_handler(client: Client, query: CallbackQuery):
)
elif query.data == "about":
buttons = [[
InlineKeyboardButton('🤖 Uᴩᴅᴀᴛᴇs 😜', url='https://t.me/Tamilan_BotsZ'),
InlineKeyboardButton('🤖 Uᴩᴅᴀᴛᴇs 😜', url='https://t.me/OxooFlix'),
InlineKeyboardButton('♥️ Sʜᴀʀᴇ Mᴇ 💫', url=f"https://t.me/share/url?url=t.me/{temp.U_NAME}")
], [
InlineKeyboardButton('🔭 Sᴛᴀᴛs 📊', callback_data='stats'),
InlineKeyboardButton('📞 Cᴏɴᴛᴀᴄᴛ 📟', callback_data='contact')
], [
InlineKeyboardButton('😅 Sᴏᴜʀᴄᴇ Cᴏᴅᴇ 😊', callback_data='source')
], [
InlineKeyboardButton('😜 Hᴏᴡ Tᴏ Dᴏᴡɴʟᴏᴀᴅ Fɪʟᴇs Fʀᴏᴍ Mᴇ 😜', callback_data='info')


InlineKeyboardButton('😜 Hᴏᴡ Tᴏ Dᴏᴡɴʟᴏᴀᴅ Fɪʟᴇs Fʀᴏᴍ Mᴇ 😜', callback_data='info')
], [
InlineKeyboardButton('👋 Exᴛʀᴀ Fᴇᴀᴛᴜʀᴇs 👋', callback_data='mods')
], [
Expand Down Expand Up @@ -494,8 +492,6 @@ async def cb_handler(client: Client, query: CallbackQuery):
InlineKeyboardButton("▶️ Yᴛ Vɪᴅᴇᴏ Dᴏᴡɴʟᴀᴅᴇʀ 🎦", callback_data='video')
],[
InlineKeyboardButton('🔭 Sᴛᴀᴛs 📊', callback_data='stats')
],[
InlineKeyboardButton('😊 Sᴏᴜʀᴄᴇ Cᴏᴅᴇ ☺', url='https://Github.com/TamilanBotsZ/PremiumFilter')
],[
InlineKeyboardButton('‹‹‹ Bᴀᴄᴋ', callback_data='about')
]]
Expand Down Expand Up @@ -577,9 +573,6 @@ async def cb_handler(client: Client, query: CallbackQuery):
)
elif query.data == "sources":
buttons = [[

InlineKeyboardButton('😊 Rᴇᴩᴏ 😊', url='https://Github.com/TamilanBotsZ/PremiumFilter')
], [
InlineKeyboardButton('‹‹‹ Bᴀᴄᴋ', callback_data='start')
]]
reply_markup = InlineKeyboardMarkup(buttons)
Expand All @@ -590,9 +583,6 @@ async def cb_handler(client: Client, query: CallbackQuery):
)
elif query.data == "source":
buttons = [[

InlineKeyboardButton('😊 Rᴇᴩᴏ 😊', url='https://Github.com/TamilanBotsZ/PremiumFilter')
], [
InlineKeyboardButton('‹‹‹ Bᴀᴄᴋ', callback_data='about')
]]
reply_markup = InlineKeyboardMarkup(buttons)
Expand All @@ -603,7 +593,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
)
elif query.data == "info":
buttons = [[
InlineKeyboardButton('😪 Hᴏᴡ Tᴏ Oᴩᴇɴ Mʏ Lɪɴᴋs 💢', url='https://t.me/Sharath_Links/13')
InlineKeyboardButton('😪 Hᴏᴡ Tᴏ Oᴩᴇɴ Mʏ Lɪɴᴋs 💢', url='https://t.me/oxooflix/48')
], [
InlineKeyboardButton('📞 Cᴏɴᴛᴀᴄᴛ 📟', callback_data='contact')
], [
Expand All @@ -617,9 +607,9 @@ async def cb_handler(client: Client, query: CallbackQuery):
)
elif query.data == "contact":
buttons = [[
InlineKeyboardButton('😳 Cʀᴇᴀᴛᴏʀ 😳', url='https://t.me/SharathItsIsMe')
InlineKeyboardButton('😳 Mᴏᴅɪғɪᴇᴅ Bʏ 😳', url='https://t.me/me_santu')
], [
InlineKeyboardButton('📞 Cᴏɴᴛᴀᴄᴛ 📟', url='https://t.me/TamilanBotsZ_Support')
InlineKeyboardButton('📞 Cᴏɴᴛᴀᴄᴛ 📟', url='https://t.me/Oxooflixhelpbot')
], [
InlineKeyboardButton('‹‹‹ Bᴀᴄᴋ', callback_data='about')
], [
Expand Down Expand Up @@ -650,7 +640,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
parse_mode=enums.ParseMode.HTML
)
elif query.data == "rfrsh":
await query.answer("Fetching MongoDb DataBase")
await query.answer("Fetching MongoDb DataBase...")
buttons = [[
InlineKeyboardButton('♻️ Rᴇғʀᴇsʜ', callback_data='rfrsh')
], [
Expand Down Expand Up @@ -719,7 +709,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
]
reply_markup = InlineKeyboardMarkup(buttons)
await query.message.edit_reply_markup(reply_markup)
await query.answer(' ˆ°• Tᴀᴍɪʟᴀɴ BᴏᴛsZ •°ˆ ')
await query.answer(' ˆ°• OxᴏᴏFʟɪx •°ˆ ')


async def auto_filter(client, msg, spoll=False):
Expand All @@ -733,10 +723,10 @@ async def auto_filter(client, msg, spoll=False):
search = message.text
files, offset, total_results = await get_search_results(search.lower(), offset=0, filter=True)
if not files:
await client.send_message(file_req_channel,f"-🦋 #REQUESTED_FILE 🦋-\n\n📝Fɪʟᴇ Nᴀᴍᴇ :{search}\n\nRᴇǫᴜᴇsᴛᴇᴅ Bʏ: {message.from_user.first_name}\n\n Usᴇʀ Iᴅ :{message.from_user.id}\n\n🗃Cᴏᴅᴇᴅᴇᴅ Bʏ @Tamilan_BotsZ",
await client.send_message(file_req_channel,f"-▶️ #REQUESTED_FILE ▶️-\n\n📝 Fɪʟᴇ Nᴀᴍᴇ :{search}\n\n😊 Rᴇǫᴜᴇsᴛᴇᴅ Bʏ: {message.from_user.first_name}\n\n🪪 Usᴇʀ Iᴅ :{message.from_user.id}\n\n🗃 Pᴏᴡᴇʀᴇᴅ Bʏ @OxooFlix",
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔺 Fɪʟᴇ Uᴩʟᴏᴀᴅᴇᴅ Sᴜᴄᴄᴇssғᴜʟʟʏ 🔺", callback_data="close_data")]]))
l = await message.reply_text(text=f"△ Hᴇʏ Fʀɪᴇɴᴅ {message.from_user.first_name} 😎,\n\nʏᴏᴜʀ ʀᴇQᴜᴇꜱᴛ ʜᴀꜱ ʙᴇᴇɴ ꜱᴇɴᴛ ᴛᴏ ᴏᴜʀ ᴀᴅᴍɪɴ'ꜱ ᴅᴀꜱʜʙᴏᴀʀᴅ !\n\nᴘʟᴇᴀꜱᴇ ᴋᴇᴇᴘ ꜱᴏᴍᴇ ᴘᴀᴛɪᴇɴᴄᴇ !\nᴛʜᴇʏ ᴡɪʟʟ ᴜᴘʟᴏᴀᴅ ɪᴛ ᴀꜱ ꜱᴏᴏɴ ᴀꜱ ᴘᴏꜱꜱɪʙʟᴇ.\n\n➟ 📝Cᴏɴᴛᴇɴᴛ Nᴀᴍᴇ : {search}\n\n➟ 👮 Rᴇǫᴜᴇsᴛᴇᴅ Bʏ Yᴏᴜ : {message.from_user.first_name}\n\n༺ @TamilanBotsZSupport༻\n\n🦋・‥☆Sᴜᴩᴩᴏʀᴛ Oᴜʀ Cʜᴀɴɴᴇʟ ☆‥・🦋\n╰┈➤・☆ @SharathItsIsMe ☆",
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("━ • │▌║ Aᴅᴅ Mᴇ Tᴏ Uʀ Gʀᴏᴜᴩ ║▌│ • ━", url=f'http://t.me/{temp.U_NAME}?startgroup=true')],[InlineKeyboardButton("✪ Tᴀᴍɪʟᴀɴ Bᴏᴛs ✪", url="https://t.me/Tamilan_BotsZ"), InlineKeyboardButton("✪ Sᴜᴩᴩᴏʀᴛ Gʀᴏᴜᴩ ✪", url="https://t.me/TamilanBotsZ_Support"), InlineKeyboardButton("✪ Rᴇᴩᴏ ✪", url="https://Github.com/TamilanBotsZ/PremiumFilter")],[InlineKeyboardButton("╚»♥️Dᴇʟᴇᴛᴇ Tʜɪs Mᴇssᴀɢᴇ ♥️«╝", callback_data="close_data")]]))
l = await message.reply_text(text=f"△ Hᴇʏ Fʀɪᴇɴᴅ {message.from_user.first_name} 😎,\n\nʏᴏᴜʀ ʀᴇQᴜᴇꜱᴛ ʜᴀꜱ ʙᴇᴇɴ ꜱᴇɴᴛ ᴛᴏ ᴏᴜʀ ᴀᴅᴍɪɴ'ꜱ ᴅᴀꜱʜʙᴏᴀʀᴅ !\n\nᴘʟᴇᴀꜱᴇ ᴋᴇᴇᴘ ꜱᴏᴍᴇ ᴘᴀᴛɪᴇɴᴄᴇ !\nᴛʜᴇʏ ᴡɪʟʟ ᴜᴘʟᴏᴀᴅ ɪᴛ ᴀꜱ ꜱᴏᴏɴ ᴀꜱ ᴘᴏꜱꜱɪʙʟᴇ.\n\n➟ 📝 Cᴏɴᴛᴇɴᴛ Nᴀᴍᴇ : {search}\n\n➟ 👮 Rᴇǫᴜᴇsᴛᴇᴅ Bʏ : {message.from_user.first_name}\n\n༺ @OxooFlix_Request༻\n\n🦋・‥☆ Sᴜᴩᴩᴏʀᴛ Oᴜʀ Cʜᴀɴɴᴇʟ ☆‥・🦋\n╰┈➤・☆ @OxooFlix ☆",
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("━ • │▌║ Aᴅᴅ Mᴇ Tᴏ Uʀ Gʀᴏᴜᴩ ║▌│ • ━", url=f'http://t.me/{temp.U_NAME}?startgroup=true')],[InlineKeyboardButton("✪ OxᴏᴏFʟɪx ✪", url="https://t.me/OxooFlix"), InlineKeyboardButton("✪ Sᴜᴩᴩᴏʀᴛ Gʀᴏᴜᴩ ✪", url="https://t.me/OxooFlix_Updates"), InlineKeyboardButton("✪ Pᴏᴡᴇʀᴇᴅ Bʏ ✪", url="https://t.me/OxooFlix")],[InlineKeyboardButton("╚»♥️Dᴇʟᴇᴛᴇ Tʜɪs Mᴇssᴀɢᴇ ♥️«╝", callback_data="close_data")]]))
await asyncio.sleep(12)
await l.delete()
if settings["spell_check"]:
Expand Down Expand Up @@ -824,7 +814,7 @@ async def auto_filter(client, msg, spoll=False):
**locals()
)
else:
cap = f"<b>😙Rᴇǫᴜᴇsᴛᴇᴅ Bʏ : {message.from_user.mention} \n\n😊 Yᴏᴜʀ Qᴜᴇʀʏ : {search} \n\n📂Tᴏᴛᴀʟ Fɪʟᴇs Fᴏᴜɴᴅᴇᴅ : {str(total_results)}</b>"
cap = f"<b>😙 Rᴇǫᴜᴇsᴛᴇᴅ Bʏ : {message.from_user.mention} \n\n😊 Yᴏᴜʀ Qᴜᴇʀʏ : {search} \n\n📂 Tᴏᴛᴀʟ Fɪʟᴇs Fᴏᴜɴᴅᴇᴅ : {str(total_results)} \n\n ▶️ Pᴏᴡᴇʀᴇᴅ Bʏ : @OxooFlix</b>"
if imdb and imdb.get('poster'):
try:
hehe = await message.reply_photo(photo=imdb.get('poster'), caption=cap[:1024],
Expand Down
5 changes: 1 addition & 4 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
python-3.10
#. 👆👆
# change 3.10 to 3.11.2
# change if you depoly my repo in heroku or koyeb
python-3.10.9