Skip to content

This module is small util for easy converting Telegram sessions to various formats

License

Notifications You must be signed in to change notification settings

nazar220160/TGConvertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TGConvertor

PyPI PyPI - License

This module is small util for easy converting Telegram sessions to various formats (Telethon, Pyrogram, Tdata)


Installation

$ pip install TGConvertor

Quickstart

from TGConvertor import SessionManager

session = SessionManager.from_pyrogram_string('session_str')
print(session.to_pyrogram_string())

How it works

An authorization session consists of an authorization key and some additional data required to connect. The module simply extracts this data and creates an instance of TelegramSession based on it, the methods of which are convenient to use to convert to the format you need.

Donate

USDT (BEP20): 0x34412717daaf427efa39c8508db4f62cce0d6d48

About

This module is small util for easy converting Telegram sessions to various formats

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages