mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Update misc_tools.py
This commit is contained in:
parent
b07d41c098
commit
4560040749
1 changed files with 6 additions and 4 deletions
|
|
@ -359,10 +359,12 @@ async def gsearch(self, message):
|
|||
except Exception:
|
||||
exc = traceback.format_exc()
|
||||
return await msg.edit(exc)
|
||||
await msg.edit(
|
||||
text=f"<b>Ada {total} Hasil Pencarian dari {query}:</b>\n{res}<b>GoogleSearch by @{BOT_USERNAME}</b>",
|
||||
disable_web_page_preview=True,
|
||||
)
|
||||
if len(res.encode()) > 4000:
|
||||
await msg.reply_msg(
|
||||
text=f"<b>Ada {total} Hasil Pencarian dari {query}:</b>\n{res}<b>GoogleSearch by @{BOT_USERNAME}</b>",
|
||||
disable_web_page_preview=True,
|
||||
)
|
||||
await msg.delete_msg()
|
||||
|
||||
|
||||
@app.on_message(filters.command(["tr", "trans", "translate"], COMMAND_HANDLER))
|
||||
|
|
|
|||
Loading…
Reference in a new issue