🚑 hotfix: listen Attribute bug

This commit is contained in:
xtaodada 2022-07-21 14:16:10 +08:00
parent 5cb2cac42a
commit cce5688f19
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -304,8 +304,8 @@ class Message(pyrogram.types.Message):
) )
if not msg: if not msg:
return self return self
msg.parameter = self.parameter msg.parameter = self.parameter if hasattr(self, "parameter") else []
msg.arguments = self.arguments msg.arguments = self.arguments if hasattr(self, "arguments") else ""
return msg return msg
edit = edit_text edit = edit_text