PHP code example of mollsoft / laravel-telegram-bot

1. Go to this page and download the library: Download mollsoft/laravel-telegram-bot 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/ */

    

mollsoft / laravel-telegram-bot example snippets


'guards' => [
        'web' => [...],
        'telegram' => [
            'driver' => 'telegram',
            'provider' => 'users',
        ]
    ],

php artisan telegram:new-bot

php artisan telegram:set-webhook

php artisan telegram:unset-webhook

php artisan telegram:pooling [BOT_ID]
bash
php artisan telegram:install
bash
php artisan vendor:publish --tag="telegram-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="telegram-config"
bash
php artisan vendor:publish --tag="telegram-views"