From 50b65b2e1f43c1a0cdc7cbe0ef918c4002a2128f Mon Sep 17 00:00:00 2001 From: Collins Uzebu Date: Fri, 30 Oct 2020 12:59:24 +0000 Subject: [PATCH] fix error when group invite message is received --- webwhatsapi/objects/message.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webwhatsapi/objects/message.py b/webwhatsapi/objects/message.py index e7a72927..992fbd74 100755 --- a/webwhatsapi/objects/message.py +++ b/webwhatsapi/objects/message.py @@ -64,6 +64,10 @@ def __init__(self, js_obj, driver=None): elif self.type == "revoked": self.content = "" self.safe_content = "..." + else: + # type "revoked" is not overriden for legacy reason + self.content = "" + self.safe_content = "..." def __repr__(self): return "".format(