PHP code example of lurkchat / bot-php

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

    

lurkchat / bot-php example snippets




$token = %YOUR_BOT_TOKEN%;

$bot = new \Lurkchat\LurkchatBot($token);

use Lurkchat\Laravel\Facades\LurkchatBot;

$bot = LurkchatBot::make($token);

$bot = new \Lurkchat\LurkchatBot($token);

$info = $bot->getMe();

$info = LurkchatBot::getMe();

$info = LurkchatBot::make($token)->getMe();

composer 

php artisan vendor:publish --provider="Lurkchat\Laravel\LurkchatBotServiceProvider" --tag="config"