承接 taknone/sessionbridge 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

taknone/sessionbridge

最新稳定版本:v1.0.1

Composer 安装命令:

composer create-project taknone/sessionbridge

包简介

Migrate your Telegram session safely between libraries

README 文档

README

logo SessionBridge : Pure-PHP library to convert and bridge Telegram sessions between popular client formats ( Telethon , Pyrogram , Tdata , MadelineProto ) and LiveProto ( LP )

🔥 SessionBridge focuses on compatibility, reliability, and realistic production use. It provides a unified API and CLI to read, validate, convert, and export session / auth data across different implementations of Telegram's MTProto ecosystem

Key features

  • Convert sessions between Telethon , Pyrogram , MadelineProto , Tdata ( Telegram Desktop ) and LiveProto ( LP ) formats
  • High-fidelity mapping of session fields where possible ( dc_id , ip , port , auth_key )
  • Simple, chainable PHP API and a practical command-line interface ( CLI )

Note : SessionBridge is a translator / bridge between session file formats ( or text of session ) it does not reimplement MTProto or perform network login for you. Use a proper client library ( MadelineProto , LiveProto , Telethon , Pyrogram ) to perform active logins and connection flows

Installation

Install via Composer :

composer require taknone/sessionbridge

Or include directly in your project autoload

Quick start

PHP

<?php

require_once 'vendor/autoload.php';

use function 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));
}

?>

CLI

  • convert telethon.session file to LiveProto file
php vendor/bin/sessionbridge --from telethon-sqlite --to liveproto-sqlite --session telethon.session

Supported formats

  • Telethon ( .session SQLite / String )
  • Pyrogram ( .session SQLite / String )
  • MadelineProto ( PHP session arrays / serialized files )
  • Tdata ( Telegram Desktop profile folder , extract relevant files )
  • LiveProto ( LP ) ( first-class citizen , SessionBridge is linked and can export / import LP files )

If you need support for additional session types open an issue or contribute an adapter

Type From To
LiveProto String
LiveProto SQLite
Telethon String
Telethon SQLite
Pyrogram String
Pyrogram SQLite
Madeline String
Tdata

License

SessionBridge is released under the AGPLv3

Contact

If you need help, open an issue or discuss changes via pull requests. For sensitive security issues, use the repository's security contact

🎊 Happy bridging !

统计信息

  • 总下载量: 311
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-05