Skip to content

Commit

Permalink
Add description for function enableAnalytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Luchanso committed Nov 4, 2015
1 parent 967b30f commit e4a952d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,16 @@ Bot.prototype.sendChatAction = function (options, callback) {
return deferred.promise.nodeify(callback);
};

/**
* Analytics from http://botan.io/
* Allows all incoming messages, and you can make tagging, for specific messages
* bot.analytics.track(message, 'Specific tag');
*
* @param {String} token You can take this token here: https://appmetrica.yandex.com/
* @return {Bot} Self
*
* @see https://github.com/botanio/sdk
*/
Bot.prototype.enableAnalytics = function(token) {
this.analytics = botanio(token);

Expand Down

0 comments on commit e4a952d

Please sign in to comment.