mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-04 03:24:50 +00:00
Fixed
This commit is contained in:
parent
5a4c5f1a3c
commit
eebbfdcfa8
1 changed files with 2 additions and 4 deletions
|
|
@ -1460,12 +1460,10 @@ async def muviku_scrap(_, message, strings):
|
||||||
data.append({"link": link, "kualitas": kualitas})
|
data.append({"link": link, "kualitas": kualitas})
|
||||||
if not data:
|
if not data:
|
||||||
return await message.reply(strings("no_result"))
|
return await message.reply(strings("no_result"))
|
||||||
res = "".join(
|
res = "".join(f"<b>Host: <a href='{i['link']}'>{i['kualitas']}</a></b>\n\n" for i in data)
|
||||||
f"<b>Host: {i['kualitas']}</b>\n{i['link']}\n\n" for i in data
|
|
||||||
)
|
|
||||||
await message.reply_msg(res)
|
await message.reply_msg(res)
|
||||||
except MessageTooLong:
|
except MessageTooLong:
|
||||||
url = await post_to_telegraph(False, link, res)
|
url = await post_to_telegraph(False, link, res.replace("\n", "<br>")
|
||||||
await message.reply_msg(f"Your result is too long, i have pasted your result on Telegraph:\n{url}")
|
await message.reply_msg(f"Your result is too long, i have pasted your result on Telegraph:\n{url}")
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return await message.reply(
|
return await message.reply(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue