From cce5688f19d63e954b2a26a480b465f880a7893f Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 21 Jul 2022 14:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20hotfix:=20listen=20Attribute=20b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyromod/listen/listen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyromod/listen/listen.py b/pyromod/listen/listen.py index 417b445..651ff57 100644 --- a/pyromod/listen/listen.py +++ b/pyromod/listen/listen.py @@ -304,8 +304,8 @@ class Message(pyrogram.types.Message): ) if not msg: return self - msg.parameter = self.parameter - msg.arguments = self.arguments + msg.parameter = self.parameter if hasattr(self, "parameter") else [] + msg.arguments = self.arguments if hasattr(self, "arguments") else "" return msg edit = edit_text