mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-05 08:30:38 +00:00
Fix importing dependencies during installing (#384)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
from .telegram_bare_client import TelegramBareClient
|
||||
from .telegram_client import TelegramClient
|
||||
from .network import ConnectionMode
|
||||
from . import tl
|
||||
from . import tl, version
|
||||
|
||||
|
||||
__version__ = version.__version__
|
||||
|
||||
@@ -9,7 +9,7 @@ from signal import signal, SIGINT, SIGTERM, SIGABRT
|
||||
from threading import Lock
|
||||
from time import sleep
|
||||
|
||||
from . import helpers as utils
|
||||
from . import helpers as utils, version
|
||||
from .crypto import rsa, CdnDecrypter
|
||||
from .errors import (
|
||||
RPCError, BrokenAuthKeyError, ServerError,
|
||||
@@ -60,7 +60,7 @@ class TelegramBareClient:
|
||||
"""
|
||||
|
||||
# Current TelegramClient version
|
||||
__version__ = '0.15.3'
|
||||
__version__ = version.__version__
|
||||
|
||||
# TODO Make this thread-safe, all connections share the same DC
|
||||
_config = None # Server configuration (with .dc_options)
|
||||
|
||||
3
telethon/version.py
Normal file
3
telethon/version.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# Versions should comply with PEP440.
|
||||
# This line is parsed in setup.py:
|
||||
__version__ = '0.15.3'
|
||||
Reference in New Issue
Block a user