Skip to content

Instantly share code, notes, and snippets.

View Bobronium's full-sized avatar
🤘
All units, rock‘n’roll!

Arseny Boykov Bobronium

🤘
All units, rock‘n’roll!
View GitHub Profile
@Bobronium
Bobronium / FastTelethon.py
Created February 6, 2022 18:20 — 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