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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user