diff --git a/telethon/_client/uploads.py b/telethon/_client/uploads.py index 5cfd43e4..92a2d36e 100644 --- a/telethon/_client/uploads.py +++ b/telethon/_client/uploads.py @@ -24,18 +24,6 @@ if typing.TYPE_CHECKING: from .telegramclient import TelegramClient -class _CacheType: - """Like functools.partial but pretends to be the wrapped class.""" - def __init__(self, cls): - self._cls = cls - - def __call__(self, *args, **kwargs): - return self._cls(*args, file_reference=b'', **kwargs) - - def __eq__(self, other): - return self._cls == other - - def _resize_photo_if_needed( file, is_image, width=1280, height=1280, background=(255, 255, 255)):