1. Go to this page and download the library: Download codd-tech/bap-sdk-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codd-tech / bap-sdk-php example snippets
$bap = new \CoddTech\Bap\BAP('<api key>');
$bap->handleTelegramUpdates($update);
$bap->advertisement($update);
$telegram = new Longman\TelegramBot\Telegram($bot_api_key, $bot_username);
$bap = new \CoddTech\Bap\BAP('<api key>');
$telegram->setUpdateFilter(function (Update $update, Telegram $telegram, &$reason = 'Update denied by update_filter') use ($bap) {
return $bap->handleTelegramUpdates($update->getRawData());
});
$bap->advertisement($update);
ini
extension=php_sockets.dll
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.