mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +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:
@@ -1,6 +1,5 @@
|
||||
import typing
|
||||
|
||||
from .users import UserMethods
|
||||
from .. import hints
|
||||
from ..tl import types, functions, custom
|
||||
|
||||
@@ -8,7 +7,7 @@ if typing.TYPE_CHECKING:
|
||||
from .telegramclient import TelegramClient
|
||||
|
||||
|
||||
class BotMethods(UserMethods):
|
||||
class BotMethods:
|
||||
async def inline_query(
|
||||
self: 'TelegramClient',
|
||||
bot: 'hints.EntityLike',
|
||||
|
Reference in New Issue
Block a user