mirkhamidov / simple-bot-telegram
bot for telegram
Installs: 643
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/mirkhamidov/simple-bot-telegram
This package is auto-updated.
Last update: 2025-09-25 08:06:13 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require mirkhamidov/simple-bot-telegram "*"
or add
"mirkhamidov/simple-bot-telegram": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php $tg = new TelegramBot($tokenForBot); $tg->sendMessage('Message with inline keyboard', $chatId, [ 'reply_markup' => json_encode([ 'inline_keyboard'=>[ [ ['text'=>"refresh",'callback_data'=> time()] ] ] ]); ?>
PS: Inspired by aki/yii2-bot-telegram