PHP code example of mirkhamidov / simple-bot-telegram
1. Go to this page and download the library: Download mirkhamidov/simple-bot-telegram 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/ */
mirkhamidov / simple-bot-telegram example snippets
$tg = new TelegramBot($tokenForBot);
$tg->sendMessage('Message with inline keyboard', $chatId, [
'reply_markup' => json_encode([
'inline_keyboard'=>[
[
['text'=>"refresh",'callback_data'=> time()]
]
]
]);
php composer.phar