Skip to content

Instantly share code, notes, and snippets.

@xzone911
xzone911 / README.MD
Created September 10, 2024 16:31 — forked from painor/README.MD
Convert TDesktop tdata folders to GramJS sessions.

tdata converter

Converts tdata folder to a GramJS session for usage in a userbot.

Usage

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.

Limitation

@xzone911
xzone911 / README.MD
Created September 10, 2024 16:30 — forked from painor/README.MD
import GramJS session into Telethon

Import GramJS session into Telethon

Requirements

GramJS version 2.X+

Telethon version 1.X+

This will print out python code that you can use to use the same session in telethon.

@xzone911
xzone911 / FastTelethon.py
Created September 10, 2024 16:29 — forked from painor/FastTelethon.py
This will increase the download/upload speed when using telethon
# 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
@xzone911
xzone911 / charles key
Created July 14, 2024 18:22
[charles proxy key] an activation key #key #activation
// 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