Skip to content

Faridbabayev001/botdelivePHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

botdelive

About

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

    composer require botdelive/botdelive

Requirements

  1. Create an account.
  2. Visit "Create App" menu on the dashboard and create one.
  3. Keep the secret key of the created app safe and save the app ID.
  4. cURL.
  5. PHP 5.6+

Usage

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

use BotDelive\BotDelive;

$bd = new BotDelive(<YOUR_APP_ID>,<YOUR_SECRET_KEY>);

Verify the "Access Code":

$bd->verify(<USER_GENERATED_ACCESS_CODE_HERE>));

Send 2-factor authentication request (long polling):

$bd->auth(<USER_ID_HERE>);

Send Push Notification request:

$bd->push('<USER_ID_HERE>', '<MESSAGE_HERE>');

Documentation

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