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

Update pm_filter.py #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
20 changes: 8 additions & 12 deletions plugins/pm_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ async def next_page(bot, query):
)
btn.insert(0,
[
InlineKeyboardButton("⭕️ Movie", url="https://t.me/+26XbUS8O3cM1MDU1"),
InlineKeyboardButton("Series ⭕️", url="https://t.me/+VWYQKLaIim4yNjk1")

])

btn.insert(0, [
Expand Down Expand Up @@ -382,11 +381,10 @@ async def cb_handler(client: Client, query: CallbackQuery):
f_caption = f"{files.file_name}"
buttons = [
[
InlineKeyboardButton('⭕️ Support', url='https://t.me/JOSPSupport'),
InlineKeyboardButton('Channel ⭕️', url='https://t.me/JosProjects')

],
[
InlineKeyboardButton('🎬 Series & Movie Club 🎬', url=f'https://t.me/+y53tWFUw6Q43NzE9')

]
]

Expand All @@ -405,7 +403,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
reply_markup=InlineKeyboardMarkup(buttons),
protect_content=True if ident == "filep" else False
)
await query.answer('Check PM, I have sent files in pm', show_alert=False)
await query.answer('📥 Check PM, I have sent files in pm 📩', show_alert=False)
except UserIsBlocked:
await query.answer('Unblock the bot mahn !', show_alert=True)
except PeerIdInvalid:
Expand Down Expand Up @@ -462,8 +460,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
],[
InlineKeyboardButton('🕵️ Search here Movie 🕵️', switch_inline_query_current_chat='')
],[
InlineKeyboardButton('⭕️ Updates', url='https://t.me/josprojects'),
InlineKeyboardButton('Movie Club ⭕️', url='https://t.me/+y53tWFUw6Q43NzE9')

],[
InlineKeyboardButton('❌ Close the Menu ❌', callback_data='close_data')
]]
Expand Down Expand Up @@ -938,11 +935,10 @@ async def auto_filter(client, msg, spoll=False):
)

btn.insert(0, [
InlineKeyboardButton("⭕️ Movie", url="https://t.me/+26XbUS8O3cM1MDU1"),
InlineKeyboardButton("Series ⭕️", url="https://t.me/+VWYQKLaIim4yNjk1")

])
btn.insert(0, [
InlineKeyboardButton("⭕️ Join Our Channel ⭕️",url="https://t.me/imdbprobots/4")
")
])
reply_id = message.reply_to_message.message_id if message.reply_to_message else message.message_id
imdb = await get_poster(search, file=(files[0]).file_name) if settings["imdb"] else None
Expand Down Expand Up @@ -980,7 +976,7 @@ async def auto_filter(client, msg, spoll=False):
**locals()
)
else:
cap = f"<b>🎬 Title:</b> {search}\n</b>\n<b><a href='https://t.me/+q9NMdy0rY10zZWZl'>© IMDb (Series & Movies) Studio</a></b>\n\n<b>✍️ Note:</b> <s>This message will be Auto-deleted after 10 hours to avoid copyright issues.</s>"
cap = f"<b>🎬 Title:</b> {search}\n</b>\n<b><a href=''>© IMDb (Series & Movies) Studio</a></b>\n\n<b>✍️ Note:</b> <s>This message will be Auto-deleted after 10 hours to avoid copyright issues.</s>"
if imdb and imdb.get('poster'):
try:
hehe = await message.reply_photo(photo=imdb.get('poster'), caption=cap[:1024], reply_to_message_id=reply_id, reply_markup=InlineKeyboardMarkup(btn))
Expand Down