From ea73892d7da90f5f2bb21aeea362e20ea6a198ba Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Thu, 23 Jan 2025 16:12:55 -0800 Subject: [PATCH] Disable reporting the error to the chat --- instantview/hooks.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/instantview/hooks.py b/instantview/hooks.py index 562a45d..c91a9b2 100644 --- a/instantview/hooks.py +++ b/instantview/hooks.py @@ -72,8 +72,6 @@ def on_msg(bot: Bot, accid: int, event: NewMsgEvent) -> None: send_preview(bot, accid, msg, url) except Exception as ex: bot.logger.exception(ex) - reply = MsgData(text=f"Error: {ex}", quoted_message_id=msg.id) - bot.rpc.send_msg(accid, msg.chat_id, reply) @cli.on(events.NewMessage(command="/help"))