Skip to content

Commit

Permalink
Fix patched module was never automatically imported
Browse files Browse the repository at this point in the history
Closes #1701. It has to be imported late in the process of
`import telethon` for its side-effects.
  • Loading branch information
Lonami committed Feb 13, 2021
1 parent ff3c21c commit 0e8bd82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions telethon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
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__
Expand Down

0 comments on commit 0e8bd82

Please sign in to comment.