mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-13 04:56:35 +03:00
7abe53e063
* Although the markdown parser works perfectly, the official Telegram client does not fully reflect it. However, if you still think that this is a lie, go check the markdown parser and test it yourself!
15 lines
521 B
Python
Executable File
15 lines
521 B
Python
Executable File
import os
|
|
# Only import most stuff if the TLObjects were generated and there were no errors
|
|
if os.path.isfile('tl/all_tlobjects.py'):
|
|
try:
|
|
from .all_tlobjects import tlobjects
|
|
from .session import Session
|
|
from .mtproto_request import MTProtoRequest
|
|
from .telegram_client import TelegramClient
|
|
except Exception:
|
|
print('Please fix `tl_generator.py` and run it again')
|
|
else:
|
|
print('Please run `python3 tl_generator.py` first')
|
|
del os
|
|
from .tlobject import TLObject, TLArg
|