PHP code example of alxmsl / telegrambotclient
1. Go to this page and download the library: Download alxmsl/telegrambotclient 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/ */
alxmsl / telegrambotclient example snippets
$updates = $Client->getUpdates(0, 1);
var_dump($updates);
$ php bin/call.php -t='123456789:Br0KEnT0kEN' -m='getMe'
{"ok":false,"error_code":401,"description":"Error: Unauthorized"}