Tes update

This commit is contained in:
yasir 2023-01-08 20:44:49 +07:00
parent 2a7aba5425
commit bc465906ef
4 changed files with 7 additions and 10 deletions

View file

@ -421,7 +421,7 @@ async def inline_menu(_, inline_query: InlineQuery):
[
InlineKeyboardButton(
text="Get IMDB details",
callback_data=f"imdbinl_{inline_query.from_user.id}_{midb.get('id')}",
callback_data=f"imdbinl#{inline_query.from_user.id}#{midb.get('id')}",
)
]
]
@ -475,7 +475,7 @@ async def destroy_msg(_, c_q):
@app.on_callback_query(filters.regex("^imdbinl_"))
async def imdb_inl(_, query):
i, user, movie = query.data.split("_")
i, user, movie = query.data.split("#")
if user == f"{query.from_user.id}":
await query.edit_message_caption("⏳ <i>Permintaan kamu sedang diproses.. </i>")
try:

View file

@ -397,7 +397,7 @@ async def mdlsearch(client, message):
[
InlineKeyboardButton(
text=f"{movie.get('title')} ({movie.get('year')})",
callback_data=f"mdls_{message.from_user.id}_{message.id}_{movie['slug']}",
callback_data=f"mdls#{message.from_user.id}#{message.id}#{movie['slug']}",
)
]
for movie in res
@ -413,7 +413,7 @@ async def mdlsearch(client, message):
@app.on_callback_query(filters.regex("^mdls"))
@capture_err
async def mdl_callback(bot: Client, query: CallbackQuery):
i, user, msg_id, slug = query.data.split("_")
i, user, msg_id, slug = query.data.split("#")
if user == f"{query.from_user.id}":
await query.message.edit_text("Permintaan kamu sedang diproses.. ")
result = ""

View file

@ -666,10 +666,7 @@ async def muviku_scrap(_, message):
await message.reply(f"ERROR: {str(e)}")
@app.on_message(
filters.command(["melongmovie_scrap"], COMMAND_HANDLER)
& filters.user([617426792, 1985689491, 1172699512, 2024984460])
)
@app.on_message(filters.command(["melongmovie_scrap"], COMMAND_HANDLER))
@capture_err
async def melong_scrap(_, message):
try:

View file

@ -78,7 +78,7 @@ async def ceksub(_, m):
[
InlineKeyboardButton(
f"0:{mapping}({lang}): {stream_type}: {stream_name}",
f"streamextract_0:{mapping}_{stream_name}",
f"streamextract#0:{mapping}#{stream_name}",
)
]
)
@ -136,7 +136,7 @@ async def stream_extract(bot, update):
usr = update.message.reply_to_message
if update.from_user.id != usr.from_user.id:
return await update.answer("⚠️ Access Denied!", True)
_, map, codec = cb_data.split("_")
_, map, codec = cb_data.split("#")
try:
link = update.message.reply_to_message.command[1]
except: