From 5f7e0519ce9506fd614c93e62f70ed67cb1f0a6b Mon Sep 17 00:00:00 2001 From: MrMissx Date: Wed, 24 Jul 2024 22:35:35 +0700 Subject: [PATCH] fix(spam-prediction): log raw text instead processed text --- anjani/internal_plugins/spam_prediction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anjani/internal_plugins/spam_prediction.py b/anjani/internal_plugins/spam_prediction.py index 7d47babed..c03630afa 100644 --- a/anjani/internal_plugins/spam_prediction.py +++ b/anjani/internal_plugins/spam_prediction.py @@ -381,7 +381,7 @@ async def spam_check(self, message: Message, text: str) -> None: "proba": probability, "msg_id": msg.id, "date": util.time.sec(), - "text": result.processed_text, + "text": text, }, )