PHP code example of harttmann / secondo

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

    

harttmann / secondo example snippets



= new  Bot("TOKEN");
$bot->on("message", function($message) {
    $message->chat->send("hw");
});

$bot->poll();