mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-10 10:49:39 +00:00
Make use of relative imports everywhere, again
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user