Skip to content

Commit

Permalink
[EVOLTUION] Ignore button message type
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanogueira committed May 3, 2024
1 parent a84ae70 commit adfbd42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rocket_connect/plugins/evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit adfbd42

Please sign in to comment.