{"action":"created","issue":{"url":"https://api.github.com/repos/kinni/fb-bot-framework/issues/4","repository_url":"https://api.github.com/repos/kinni/fb-bot-framework","labels_url":"https://api.github.com/repos/kinni/fb-bot-framework/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/kinni/fb-bot-framework/issues/4/comments","events_url":"https://api.github.com/repos/kinni/fb-bot-framework/issues/4/events","html_url":"https://github.com/kinni/fb-bot-framework/issues/4","id":212208059,"number":4,"title":"Can't send image and quick replies","user":{"login":"stefanmm","id":7655575,"avatar_url":"https://avatars0.githubusercontent.com/u/7655575?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanmm","html_url":"https://github.com/stefanmm","followers_url":"https://api.github.com/users/stefanmm/followers","following_url":"https://api.github.com/users/stefanmm/following{/other_user}","gists_url":"https://api.github.com/users/stefanmm/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanmm/subscriptions","organizations_url":"https://api.github.com/users/stefanmm/orgs","repos_url":"https://api.github.com/users/stefanmm/repos","events_url":"https://api.github.com/users/stefanmm/events{/privacy}","received_events_url":"https://api.github.com/users/stefanmm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-06T18:25:20Z","updated_at":"2017-03-07T12:26:11Z","closed_at":null,"body":"Hi,\r\n\r\nI 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:\r\n\r\n```\r\nmessage: {\r\n            attachment: {\r\n                type: \"image\",\r\n                payload: {\r\n                    url: \"ULR_OF_IMAGE\"\r\n                }\r\n            },\r\n            quick_replies: [{\r\n                    content_type: \"text\",\r\n                    title: \"Scroll down\",\r\n                    payload: \"scroll_down_payload\"\r\n                },\r\n                {\r\n                    content_type: \"text\",\r\n                    title: \"Scroll up\",\r\n                    payload: \"YOUR_DEFINED_PAYLOAD_FOR_NEXT_IMAGE\"\r\n                },\r\n                {\r\n                    content_type: \"text\",\r\n                    title: \"Scroll top\",\r\n                    payload: \"YOUR_DEFINED_PAYLOAD_FOR_NEXT_IMAGE\"\r\n                }\r\n            ]\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/kinni/fb-bot-framework/issues/comments/284707910","html_url":"https://github.com/kinni/fb-bot-framework/issues/4#issuecomment-284707910","issue_url":"https://api.github.com/repos/kinni/fb-bot-framework/issues/4","id":284707910,"user":{"login":"stefanmm","id":7655575,"avatar_url":"https://avatars0.githubusercontent.com/u/7655575?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanmm","html_url":"https://github.com/stefanmm","followers_url":"https://api.github.com/users/stefanmm/followers","following_url":"https://api.github.com/users/stefanmm/following{/other_user}","gists_url":"https://api.github.com/users/stefanmm/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanmm/subscriptions","organizations_url":"https://api.github.com/users/stefanmm/orgs","repos_url":"https://api.github.com/users/stefanmm/repos","events_url":"https://api.github.com/users/stefanmm/events{/privacy}","received_events_url":"https://api.github.com/users/stefanmm/received_events","type":"User","site_admin":false},"created_at":"2017-03-07T12:26:10Z","updated_at":"2017-03-07T12:26:10Z","body":"Thanks. I found other solution, but I changed fb-bot-framework/index.js file:\r\n\r\n```\r\nFBBotFramework.prototype.sendImageMessage = function (recipient, imageUrl, replies, notificationType, cb) {\r\n    var messageData = {\r\n        attachment: {\r\n            type: \"image\",\r\n            payload: {url: imageUrl}\r\n        },\r\n            quick_replies: replies\r\n    };\r\n\r\n    this.send(recipient, messageData, notificationType, cb);\r\n};\r\n```\r\nSo, in my file:\r\n```\r\nfunction sendUrlMessage(userId, siteUrl, topOffset) {\r\nvar imageUrl = \"IMG_URL\";\r\n\t\r\n\tvar replies = [\r\n        {\r\n            \"content_type\": \"text\",\r\n            \"title\": \"title1\",\r\n            \"payload\": \"payload1\"\r\n        },\r\n        {\r\n            \"content_type\": \"text\",\r\n            \"title\": \"title2\",\r\n            \"payload\": \"payload2\"\r\n        }\r\n    ];\r\n\tbot.sendImageMessage(userId, imageUrl, replies);\r\n}\r\n```"}}
{"actor":{"display_login":"stefanmm"}}