feat: Facebook delivery reports (#8136)

This commit is contained in:
Muhsin Keloth
2023-11-20 12:22:45 +05:30
committed by GitHub
parent feead30b0b
commit 6c8dacfa0d
7 changed files with 195 additions and 20 deletions

View File

@@ -34,6 +34,22 @@ class Integrations::Facebook::MessageParser
@messaging.dig('message', 'mid')
end
def delivery
@messaging['delivery']
end
def read
@messaging['read']
end
def read_watermark
read&.dig('watermark')
end
def delivery_watermark
delivery&.dig('watermark')
end
def echo?
@messaging.dig('message', 'is_echo')
end