1. Go to this page and download the library: Download chipslays/tas-wrapper 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/ */
use TelegramApiServer\Session;
config
// NOTE: If you have the same data, you can skip this
Session::setConfig([
'host' => '127.0.0.1',
'port' => '9503',
'schema' => 'http',
]);
// Get sessions list
$response = Session::list();
// Adding new session
$response = Session::add('session_name');
// Removing session (session file will remain)
$response = Session::remove('session_name');
// Remove session file
// WARNING: Don`t forget to logout and call `removeSession` first!
$response = Session::unlink('session_name');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.