mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Remove messy subclassing in the TelegramClient
Since it was easy to cause MRO inconsistencies, and it's not really needed now that self is type hinted as the client.
This commit is contained in:
@@ -7,9 +7,6 @@ import re
|
||||
import typing
|
||||
from io import BytesIO
|
||||
|
||||
from .buttons import ButtonMethods
|
||||
from .messageparse import MessageParseMethods
|
||||
from .users import UserMethods
|
||||
from .. import utils, helpers, hints
|
||||
from ..tl import types, functions, custom
|
||||
|
||||
@@ -84,7 +81,7 @@ def _resize_photo_if_needed(
|
||||
file.seek(before, io.SEEK_SET)
|
||||
|
||||
|
||||
class UploadMethods(ButtonMethods, MessageParseMethods, UserMethods):
|
||||
class UploadMethods:
|
||||
|
||||
# region Public methods
|
||||
|
||||
|
Reference in New Issue
Block a user