mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 10:45:52 +03:00
Rename client.files as client.uploads
This commit is contained in:
parent
ad29f2f5b7
commit
83a024656c
|
@ -5,14 +5,14 @@ import time
|
|||
import warnings
|
||||
from collections import UserList
|
||||
|
||||
from .files import FileMethods
|
||||
from .uploads import UploadMethods
|
||||
from .. import utils
|
||||
from ..tl import types, functions, custom
|
||||
|
||||
__log__ = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class MessageMethods(FileMethods):
|
||||
class MessageMethods(UploadMethods):
|
||||
|
||||
# region Public methods
|
||||
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
import abc
|
||||
import asyncio
|
||||
import itertools
|
||||
import logging
|
||||
import platform
|
||||
import warnings
|
||||
from datetime import timedelta, datetime
|
||||
|
||||
from .. import version, errors, utils
|
||||
from .. import version
|
||||
from ..crypto import rsa
|
||||
from ..extensions import markdown
|
||||
from ..network import MTProtoSender, ConnectionTcpFull
|
||||
from ..network.mtprotostate import MTProtoState
|
||||
from ..sessions import Session, SQLiteSession
|
||||
from ..tl import TLObject, types, functions
|
||||
from ..tl import TLObject, functions
|
||||
from ..tl.all_tlobjects import LAYER
|
||||
from ..update_state import UpdateState
|
||||
|
||||
|
|
|
@ -21,12 +21,6 @@ try:
|
|||
except ImportError:
|
||||
socks = None
|
||||
|
||||
try:
|
||||
import hachoir
|
||||
import hachoir.metadata
|
||||
import hachoir.parser
|
||||
except ImportError:
|
||||
hachoir = None
|
||||
|
||||
from .telegrambaseclient import TelegramBaseClient
|
||||
from .. import helpers, events
|
||||
|
|
|
@ -15,13 +15,15 @@ from ..tl import types, functions, custom
|
|||
|
||||
try:
|
||||
import hachoir
|
||||
import hachoir.metadata
|
||||
import hachoir.parser
|
||||
except ImportError:
|
||||
hachoir = None
|
||||
|
||||
__log__ = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class FileMethods(UserMethods):
|
||||
class UploadMethods(UserMethods):
|
||||
|
||||
# region Public methods
|
||||
|
Loading…
Reference in New Issue
Block a user