This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pyrogram import Client | |
| def main(): | |
| print("Telegram String Session Generator\n") | |
| APP_ID = int(input("Enter APP ID: ")) | |
| API_HASH = input("Enter API HASH: ") | |
| print() | |
| with Client("SSGen", api_id=APP_ID, api_hash=API_HASH, in_memory=True) as app: | |
| session_str = app.export_session_string() |