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
- Create an account.
- 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 = ; const bdJS = appId: '<YOUR_APP_ID>' secretKey: '<YOUR_SECRET_KEY>';
Verify the "Access Code":
bdJS;
Send 2-factor authentication request (long polling):
bdJS;
Send Push Notification request:
bdJS;
Documentation
Complete documentation available at: https://botdelive.com/docs