PHP code example of davtur19 / turibot

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

    

davtur19 / turibot example snippets


//token, json_payload, endpoint
$client = new Client("1234:AAbbccdd", false, "http://endpoint/bot");
sh
curl https://api.telegram.org/botTOKEN/setWebhook?url=https://WEBSITE/DIR/webhook.php?api=TOKEN