A PHP library of BotDelive API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Update Constants.php Sep 14, 2018
tests Add package Sep 14, 2018
.gitignore Add package Sep 14, 2018
LICENSE Initial commit Sep 11, 2018
README.md Update README Sep 15, 2018
composer.json update composer.json Sep 14, 2018

README.md

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. Create an app on the dashboard to get appId and secretKey credentials.
  3. cURL.
  4. 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('<BOT_GENERATED_ACCESS_CODE>');

Send 2-factor authentication request (long polling):

$bd->auth('<USER_ID>');

Send Push Notification request:

$bd->push('<USER_ID>', '<MESSAGE>');

Documentation

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