New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

botanio-node

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botanio-node

Yandex.Metrica for telegram

1.0.2
latest
Source
npm
Version published
Weekly downloads
63
-30%
Maintainers
1
Weekly downloads
 
Created
Source

botanio-node

Botanio for node https://github.com/botanio/sdk/

Example use:

var token = '1cbfbebc-79e9-48f4-89fc-5addab664745' // You can take it here: https://appmetrica.yandex.com/application
var botan = require('botanio-node')(token);

/**
 * Track your message
 * @param {Object} error 
 * @param {Object} response
 * @param {Object} body       {status: 'accepted'} or {status: 'bad request', info: '...'}
 * @param {Function} callback
 * @return {[type]}          [description]
 */
botan.track(message, 'Name', function(error, response, body) {
  if (error) {
    throw error;
  } else {
    console.log(body);
  }
});

/**
 Where message is:
  { message_id: 123,
  from:
   { id: 123456789,
     first_name: 'Victor',
     last_name: 'Petrov',
     username: '@example' },
  chat:
   { id: 123456789,
     first_name: 'Victor',
     last_name: 'Petrov',
     username: '@example',
     type: 'private' },
  date: 1445763097,
  text: 'Hello world!' }
 */

Keywords

botanio

FAQs

Package last updated on 03 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts