From d263031407cb4a5376a342b193d55787ec6042ad Mon Sep 17 00:00:00 2001 From: cAstraea Date: Sun, 19 Mar 2017 00:48:33 +0200 Subject: [PATCH] Account Unlink option Not sure how useful this is ? http://prnt.sc/elnmgi --- lib/Botly.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Botly.js b/lib/Botly.js index e534d45..92b43db 100644 --- a/lib/Botly.js +++ b/lib/Botly.js @@ -11,6 +11,7 @@ const BUTTON_TYPE = { POSTBACK: 'postback', WEB_URL: 'web_url', ACCOUNT_LINK: 'account_link', + ACCOUNT_UNLINK: 'account_unlink', SHARE: 'element_share', CALL: 'phone_number' }; @@ -379,6 +380,12 @@ Botly.prototype.createAccountLinkButton = function (url) { }; }; +Botly.prototype.createAccountUnLinkButton = function () { + return { + type: BUTTON_TYPE.ACCOUNT_UNLINK, + }; +}; + Botly.prototype.createShareButton = function () { return { type: BUTTON_TYPE.SHARE,