PHP code example of jove / async-php-bot
1. Go to this page and download the library: Download jove/async-php-bot 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/ */
jove / async-php-bot example snippets
use Botify\Events\Handler;
use Botify\TelegramAPI;
:AAABBBCCCDDDEEE',
]);
$bot->loopAndHear(Handler::UPDATE_TYPE_WEBHOOK);
use Botify\Events\Handler;
use Botify\TelegramAPI;
:AAABBBCCCDDDEEE',
]);
$bot->loopAndHear(Handler::UPDATE_TYPE_SOCKET_SERVER);
use Botify\Events\Handler;
use Botify\TelegramAPI;
:AAABBBCCCDDDEEE',
]);
$bot->loopAndHear(Handler::UPDATE_TYPE_POLLING);