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,