一个不会让你疯掉的 Telegram bot 框架。
The Telegram bot framework that doesn't drive you nuts.
This framework takes advantage of the latest PHP 8.2 features, and tries to make the speed, scalability and flexibility of use its strength, it will allow you to quickly make simple bots, but at the same time, it provides more advanced features to handle even the most complicated flows.
onCommand('start', function(Nutgram $bot) {
$bot->sendMessage('Ciao!');
});
$bot->onText('My name is {name}', function(Nutgram $bot, string $name) {
$bot->sendMessage("Hi $name");
});
$bot->run();
You can install the package via composer:
composer require nutgram/nutgram
Check out our official Starter Kit, a plain PHP project with no frameworks, to get up and running fast.
Looking for a Laravel or Symfony integration? Check out Nutgram Laravel and Nutgram Symfony Bundle.
Official Documentation on https://nutgram.dev/
| Nutgram | PHP | Support Until |
|---|---|---|
| ^3.0 | ^8.0 | EOL |
| ^4.0 | ^8.2 | On going |
Is your project using Nutgram? Let us know, feel free to add yours!
composer test
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.
暂无开放 Issues,或尚未同步最近议题。