This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

botdelivejs

1.0.7 • Public • Published

botdelive

About

BotDelive is a Push Notification and 2-factor authentication API service that works over the chat bots (Telegram and Messenger).

    npm i botdelivejs --save

Requirements

  1. Create an account.
  2. Create an app on the dashboard to get appId and secretKey credentials.

Usage

Let's initialize the library first. Don't forget to replace <YOUR_APP_ID> and <YOUR_SECRET_KEY>.

const botdeliveJS = require('botdelivejs');
 
const bdJS = new botdeliveJS({
    appId: '<YOUR_APP_ID>',
    secretKey: '<YOUR_SECRET_KEY>',
});

Verify the "Access Code":

bdJS.verify('<BOT_GENERATED_ACCESS_CODE>', function (err, data) {
  if (err) {
    return console.log(err);
  }
  return console.log(data);
});

Send 2-factor authentication request (long polling):

bdJS.auth('<USER_ID>', function (err, data) {
  if (err) {
    return console.log(err);
  }
  return console.log(data);
});

Send Push Notification request:

bdJS.verify('<USER_ID>', '<MESSAGE>', function (err, data) {
  if (err) {
    return console.log(err);
  }
  return console.log(data);
});

Documentation

Complete documentation available at: https://botdelive.com/docs

Package Sidebar

Install

npm i botdelivejs

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

26.5 kB

Total Files

11

Last publish

Collaborators

  • rufatmammadli