feat: enhancement to un-send instagram message (#4120)

This commit is contained in:
Tejaswini Chile
2022-03-21 17:10:15 +05:30
committed by GitHub
parent 6169d172d8
commit 7b4cac746a
3 changed files with 63 additions and 0 deletions

View File

@@ -56,6 +56,33 @@ FactoryBot.define do
initialize_with { attributes }
end
factory :instagram_message_unsend_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',
'message': {
'mid': 'message-id-to-delete',
'is_deleted': true
}
}
]
}
]
end
initialize_with { attributes }
end
factory :instagram_message_attachment_event, class: Hash do
entry do
[