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