Rename constructor/subclass_of_id to upper case, keep only static

This commit is contained in:
Lonami Exo
2017-09-29 13:11:33 +02:00
parent b3f04fd359
commit afc4bd9cab
7 changed files with 17 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ from . import TLObject
class MessageContainer(TLObject):
constructor_id = 0x73f1f8dc
CONSTRUCTOR_ID = 0x73f1f8dc
def __init__(self, messages):
super().__init__()
@@ -13,7 +13,7 @@ class MessageContainer(TLObject):
def to_bytes(self):
return struct.pack(
'<Ii', MessageContainer.constructor_id, len(self.messages)
'<Ii', MessageContainer.CONSTRUCTOR_ID, len(self.messages)
) + b''.join(m.to_bytes() for m in self.messages)
@staticmethod