PHP code example of laraxgram / laragram
1. Go to this page and download the library: Download laraxgram/laragram 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/ */
laraxgram / laragram example snippets
# 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');
});