PHP code example of taknone / sessionbridge

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

    

taknone / sessionbridge example snippets




unction Tak\SessionBridge\from_madelineproto_string;

use function Tak\SessionBridge\to_liveproto_sqlite;

$sessions = from_madelineproto_string('session.madeline');

foreach($sessions as $session){
	var_dump(to_liveproto_sqlite($session));
}

bash
php vendor/bin/sessionbridge --from telethon-sqlite --to liveproto-sqlite --session telethon.session