feat: Add support for Instagram delivery reports (#8125)

This commit is contained in:
Muhsin Keloth
2023-10-19 12:12:34 +05:30
committed by GitHub
parent 04c874fe35
commit 78ce8a4652
6 changed files with 118 additions and 2 deletions

View File

@@ -242,4 +242,30 @@ FactoryBot.define do
end
initialize_with { attributes }
end
factory :messaging_seen_event, class: Hash do
entry do
[
{
'id': 'instagram-message-id-123',
'time': '2021-09-08T06:34:04+0000',
'messaging': [
{
'sender': {
'id': 'Sender-id-1'
},
'recipient': {
'id': 'chatwoot-app-user-id-1'
},
'timestamp': '2021-09-08T06:34:04+0000',
'read': {
'mid': 'message-id-1'
}
}
]
}
]
end
initialize_with { attributes }
end
end