1. Go to this page and download the library: Download imafaz/neili 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/ */
imafaz / neili example snippets
use TelegramBot\Neili;
$bot = new Neili('token');
$chatId = '1826312667';
$message = 'hello this message sended with neili!';
$bot->sendMessage($chatId, $message);
// $bot = new Neili(string $accessToken);
// example:
$accessToken = 'xxxxx';
$bot = new Neili($accessToken);