Feat: send fb message outside of standard messaging window (#4439)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user