Feat: send fb message outside of standard messaging window (#4439)

This commit is contained in:
Tejaswini Chile
2022-04-19 12:21:20 +05:30
committed by GitHub
parent d2d838afd1
commit 1ccd29140d
6 changed files with 26 additions and 9 deletions

View File

@@ -22,7 +22,9 @@ class Facebook::SendOnFacebookService < Base::SendOnChannelService
def fb_text_message_params
{
recipient: { id: contact.get_source_id(inbox.id) },
message: { text: message.content }
message: { text: message.content },
messaging_type: 'MESSAGE_TAG',
tag: 'ACCOUNT_UPDATE'
}
end
@@ -37,7 +39,9 @@ class Facebook::SendOnFacebookService < Base::SendOnChannelService
url: attachment.file_url
}
}
}
},
messaging_type: 'MESSAGE_TAG',
tag: 'ACCOUNT_UPDATE'
}
end