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.
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.
| # 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 |
| // 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 |