PHP code example of rubi / lib

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

    

rubi / lib example snippets


set_time_limit(0);

$account = new rubika(989123456789); // Only without zero and with area code 98
$account->onUpdate(function ($update = []) use ($account) {
    if (isset($update['message_updates'])) {
        $message = $update['message_updates'];
        // other code
    }
});