Fix classes MRO and abstractmethod usage

Furthermore utils needs to access the message by reference
through types.Message because it is patched and replaced.
This commit is contained in:
Lonami Exo
2018-07-22 19:26:34 +02:00
parent 1c0d595205
commit ace7254344
3 changed files with 11 additions and 13 deletions

View File

@@ -8,7 +8,7 @@ from ... import utils, errors
# TODO Figure out a way to have the code generator error on missing fields
# Maybe parsing the init function alone if that's possible.
class Message(abc.ABC, TLObject, ChatGetter, SenderGetter):
class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
"""
This custom class aggregates both :tl:`Message` and
:tl:`MessageService` to ease accessing their members.