mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 10:40:16 +00:00
Make custom, functions and types proper modules
This allows "from telethon.types import Message" to work. Closes #3929. Not entirely sure how it used to work before, perhaps it got changed at some point but this should revert previous behaviour.
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
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
|
||||
from . import version, events, utils, errors, types, functions, custom
|
||||
|
||||
__version__ = version.__version__
|
||||
|
||||
|
1
telethon/custom.py
Normal file
1
telethon/custom.py
Normal file
@@ -0,0 +1 @@
|
||||
from .tl.custom import *
|
1
telethon/functions.py
Normal file
1
telethon/functions.py
Normal file
@@ -0,0 +1 @@
|
||||
from .tl.functions import *
|
1
telethon/types.py
Normal file
1
telethon/types.py
Normal file
@@ -0,0 +1 @@
|
||||
from .tl.types import *
|
Reference in New Issue
Block a user