PHP code example of botify-framework / botify
1. Go to this page and download the library: Download botify-framework/botify 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/ */
botify-framework / botify 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);