From 0e8bd8248cc649637b7c392616887c50986427a0 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 14 Feb 2021 00:25:54 +0100 Subject: [PATCH] Fix patched module was never automatically imported Closes #1701. It has to be imported late in the process of `import telethon` for its side-effects. --- telethon/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telethon/__init__.py b/telethon/__init__.py index 2df62135..3a62f1c8 100644 --- a/telethon/__init__.py +++ b/telethon/__init__.py @@ -2,6 +2,7 @@ from .client.telegramclient import TelegramClient from .network import connection from .tl import types, functions, custom from .tl.custom import Button +from .tl import patched as _ # import for its side-effects from . import version, events, utils, errors __version__ = version.__version__