This will print out python code that you can use to use the same session in telethon.
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
// Charles Proxy License | |
// Registration code for any version of Charles, who would want to use a cracked version? | |
// Charles 4.5.5 is currently the latest version and is available. | |
Registered Name: https://zhile.io | |
License Key: 48891cf209c6d32bf4 | |
Author: Neo Peng |
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
# copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py | |
# Copyright (C) 2021 Tulir Asokan | |
import asyncio | |
import hashlib | |
import inspect | |
import logging | |
import math | |
import os | |
from collections import defaultdict | |
from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO |
Converts tdata folder to a GramJS session for usage in a userbot.
Usage is simple. the main() function accepts a folder path (absolute or relative) and will return and print the session string if it found one.