From adfbd42cd578161a351eb30d8596f29ed6e0d6b8 Mon Sep 17 00:00:00 2001 From: Duda Nogueira Date: Fri, 3 May 2024 15:47:13 -0300 Subject: [PATCH] [EVOLTUION] Ignore button message type --- rocket_connect/plugins/evolution.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rocket_connect/plugins/evolution.py b/rocket_connect/plugins/evolution.py index c9b8a17..b53f7c5 100644 --- a/rocket_connect/plugins/evolution.py +++ b/rocket_connect/plugins/evolution.py @@ -572,6 +572,11 @@ def incoming(self): # message upsert # if self.message.get("event") == "messages.upsert": + + # ignore buttons message + if self.message.get("data").get("messageType") == "buttonsMessage": + return JsonResponse({"message": "Buttons not supported"}) + department = None message_obj, created = self.register_message() if not message_obj.delivered: