1. Go to this page and download the library: Download expertskb/telegram_php 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/ */
expertskb / telegram_php example snippets
use Expertskb\TelegramPhp\Backup;
// Initialize the Backup class
$backup = new Backup($host, $username, $database, $password, $bot_token, $chat_id);
$backup->run();
$backup->setDebug(true);
use Expertskb\TelegramPhp\Backup;
// Initialize the Backup class
$backup = new Backup('localhost', 'username', 'my_database', 'password', 'your_bot_token', ['ps_your_id1', 'ps_your_id2']);
// Enable debug mode
$backup->setDebug(true);
// Run the backup process
$backup->run();
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.