Skip to content

Commit

Permalink
Merge pull request #79 from filipporomani/patch-1
Browse files Browse the repository at this point in the history
fix: wrong method
  • Loading branch information
Kalebu committed Apr 11, 2023
2 parents a6d5c3a + 0830911 commit 7dbfc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def hook():
logging.info("Received webhook data: %s", data)
changed_field = messenger.changed_field(data)
if changed_field == "messages":
new_message = messenger.get_mobile(data)
new_message = messenger.is_message(data)
if new_message:
mobile = messenger.get_mobile(data)
name = messenger.get_name(data)
Expand Down

0 comments on commit 7dbfc83

Please sign in to comment.