Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Weekly downloads
44
increased by12.82%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc