mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Make use of relative imports everywhere, again
This commit is contained in:
parent
5362f2578d
commit
5c7efdb04f
|
@ -21,6 +21,10 @@ from .tl.all_tlobjects import layer
|
||||||
from .tl.functions import (InitConnectionRequest, InvokeWithLayerRequest,
|
from .tl.functions import (InitConnectionRequest, InvokeWithLayerRequest,
|
||||||
PingRequest)
|
PingRequest)
|
||||||
|
|
||||||
|
# Required to work with different data centers
|
||||||
|
from .tl.functions.auth import (ExportAuthorizationRequest,
|
||||||
|
ImportAuthorizationRequest)
|
||||||
|
|
||||||
# Required to get the password salt
|
# Required to get the password salt
|
||||||
from .tl.functions.account import GetPasswordRequest
|
from .tl.functions.account import GetPasswordRequest
|
||||||
|
|
||||||
|
@ -38,7 +42,7 @@ from .tl.functions.messages import (
|
||||||
SendMessageRequest)
|
SendMessageRequest)
|
||||||
|
|
||||||
# For .get_me() and ensuring we're authorized
|
# For .get_me() and ensuring we're authorized
|
||||||
from telethon.tl.functions.users import GetUsersRequest
|
from .tl.functions.users import GetUsersRequest
|
||||||
|
|
||||||
# Easier access for working with media, too
|
# Easier access for working with media, too
|
||||||
from .tl.functions.upload import (
|
from .tl.functions.upload import (
|
||||||
|
@ -257,9 +261,6 @@ class TelegramClient:
|
||||||
|
|
||||||
return sender
|
return sender
|
||||||
else:
|
else:
|
||||||
from telethon.tl.functions.auth import \
|
|
||||||
ExportAuthorizationRequest, ImportAuthorizationRequest
|
|
||||||
|
|
||||||
dc = self._get_dc(dc_id)
|
dc = self._get_dc(dc_id)
|
||||||
|
|
||||||
# Step 1. Export the current authorization to the new DC.
|
# Step 1. Export the current authorization to the new DC.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user