diff --git a/misskaty/plugins/misc_tools.py b/misskaty/plugins/misc_tools.py
index 5e25d9e6..946e4f8c 100644
--- a/misskaty/plugins/misc_tools.py
+++ b/misskaty/plugins/misc_tools.py
@@ -323,8 +323,8 @@ async def gsearch(self, message):
if len(message.command) == 1:
return await message.reply("Give a query to search in Google!")
def shorten_text(text):
- if len(text) > 30:
- return text[:30] + "..."
+ if len(text) > 150:
+ return text[:150] + "..."
return text
query = message.text.split(maxsplit=1)[1]
msg = await message.reply_text(f"**Googling** for `{query}` ...")
@@ -362,7 +362,7 @@ async def gsearch(self, message):
except Exception:
exc = traceback.format_exc()
return await msg.edit(exc)
- await msg.reply_msg(
+ await msg.edit_msg(
text=f"Ada {total} Hasil Pencarian dari {query}:\n{res}GoogleSearch by @{BOT_USERNAME}",
disable_web_page_preview=True,
)