Some changes include:
- Addition of a container for dependency management
- Addition of service providers
- Addition of facades for easy access to methods
- Addition of commands for simple usage of the framework
From now on, LaraGram is truly a Framework!
# App/Resources/bot.php
use LaraGram\Request\Request;
use LaraGram\Support\Facades\Bot;
Bot::onText('hello', function (Request $request) {
$request->sendMessage($request->message->chat->id, 'hi');
});
composer create-project laraxgram/laragram my-bot
Some of the following features have not yet been added to version 2 and are being rewritten. They are marked with *
. All of them will be added in the next few steps.
- Support Local Bot Api Server
- Manage Resources
- Manage Webhook
- Manage Dependency*
- Manage Api Controller*
- Manage Models
- Manage Migrations
- Manage Factories
- Manage Seeders
- Manage WebServer
- Manage Service Provider
- Curl
- Non-Response Curl
- Laravel Eloquent (recommended & default)
- Model
- Migrations
- Factories
- Seeders
- Redis*
- Json (exclusive)
- Model
- Migrations
Email - Telegram - Issues - Telegram Group