arefshojaei / tgram
PHP Telegram Bot
dev-main
2026-05-05 19:06 UTC
Requires
- arefshojaei/kitdash: ^1.4
- guzzlehttp/guzzle: ^7.10
Requires (Dev)
- phpunit/phpunit: ^10
This package is auto-updated.
Last update: 2026-05-16 13:43:11 UTC
README
PHP Telegram Bot
A Powerful PHP library for making own Telegram bot easily!
<?php require __DIR__ . "/vendor/autoload.php"; use TGram\{Telegram, Context}; $app = new Telegram("TOKEN"); $app->start(function(Context $ctx) { $ctx->sendMessage("Hello"); }); $app->run();
Installation
Two ways for installing & using the library
Clone this repository
git clone https://github.com/ArefShojaei/TGram/TGram.git
OR
Composer installer
composer require arefshojaei/tgram