diff --git a/lib/Slack_web_api.js b/lib/Slack_web_api.js index e054da7e9..e8b0fb461 100755 --- a/lib/Slack_web_api.js +++ b/lib/Slack_web_api.js @@ -43,6 +43,7 @@ module.exports = function(bot, config) { 'chat.getPermalink', 'chat.postMessage', 'chat.postEphemeral', + 'chat.scheduleMessage', 'chat.update', 'chat.unfurl', 'conversations.archive', @@ -213,6 +214,11 @@ module.exports = function(bot, config) { slack_api.callAPI('chat.postEphemeral', options, cb); }; + slack_api.chat.scheduleMessage = function(options, cb) { + sanitizeOptions(options); + slack_api.callAPI('chat.scheduleMessage', options, cb); + }; + slack_api.chat.update = function(options, cb) { sanitizeOptions(options); slack_api.callAPI('chat.update', options, cb);