Skip to content

Commit

Permalink
Update misc_tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism authored Sep 10, 2024
1 parent b07d41c commit 4560040
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions misskaty/plugins/misc_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4560040

Please sign in to comment.