-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't send image and quick replies #4
Comments
Hi Stefan, this is not possible. If you want to send a image first and them quick replies do so :
cheers, Franzus |
Thanks. I found other solution, but I changed fb-bot-framework/index.js file:
So, in my file:
|
You can achieve this by using send() API, var messageData = {
quick_replies: [
{
"content_type": "text",
"title": "Good",
"payload": "thumbs_up"
},
{
"content_type": "text",
"title": "Bad",
"payload": "thumbs_down"
}],
attachment: {
type: "image",
payload: {
url: "http://placehold.it/240x240&text=helloworld"
}
}
};
bot.send(recipient, messageData, FBBotFramework.NOTIFICATION_TYPE.REGULAR, function (err, result) {
if(err) {
// handle error
}
// response
}); I would suggest a new generic handling of sendMessage with custom payload to the framework. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I tried to send image and quick replies in one message (or in two in row) but it's not possible. I have working code but for native Facebook messenger bot code, not for framework:
The text was updated successfully, but these errors were encountered: