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 |