2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-06 17:25:40 +00:00

Change the way int to bytes conversion is used

Maybe at some point I should switch to struct
This commit is contained in:
Dan
2018-09-01 01:27:22 +02:00
parent 07a9cce8ef
commit 4c9d9d84f2
6 changed files with 19 additions and 23 deletions

View File

@@ -30,7 +30,7 @@ class BoolFalse(Object):
return cls.value
def __new__(cls) -> bytes:
return int.to_bytes(cls.ID, 4, "little")
return cls.ID.to_bytes(4, "little")
class BoolTrue(BoolFalse):