Skip to content

Commit 4b19c4f

Browse files
committed
Merge branch 'hotfix/0.1.3'
2 parents 72b5023 + 20b3bcf commit 4b19c4f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "botstack",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Bot Stack",
55
"main": "index.js",
66
"scripts": {

src/fb/message_types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function structuredMessage(message) {
1010
buttons.push({
1111
type: 'web_url',
1212
title: button.text,
13-
payload: button.postback
13+
url: button.postback
1414
});
1515
} else {
1616
buttons.push({

tests/test_fb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('Testing FB', () => {
147147
assert.equal(lodash.get(data, '[0].attachment.payload.elements[0].buttons', []).length, 3);
148148
assert.equal(lodash.get(data, '[0].attachment.payload.elements[0].buttons[0].type'), 'web_url');
149149
assert.equal(lodash.get(data, '[0].attachment.payload.elements[0].buttons[0].title'), 'Button 1');
150-
assert.equal(lodash.get(data, '[0].attachment.payload.elements[0].buttons[0].payload'), 'http://example.com/button.jpg');
150+
assert.equal(lodash.get(data, '[0].attachment.payload.elements[0].buttons[0].url'), 'http://example.com/button.jpg');
151151
});
152152

153153
it('Testing quick replies message (type = 2)', async () => {

0 commit comments

Comments
 (0)