PHP code example of mohammad-soltani / php-bale-bot

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

    

mohammad-soltani / php-bale-bot example snippets



ohammadSoltani\BaleBot\BaleBot;
$bot = new BaleBot("YOUR_BOT_TOKEN");

while(true){
    $update = $bot -> live_stream(0.1 , true);
    if($update){
        $bot -> send_message($update , $update["data"]);
    }
}