mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-10 18:59:33 +00:00
Fix typing issues
This commit is contained in:
@@ -10,7 +10,7 @@ class Request(bytes, Generic[Return]):
|
||||
@property
|
||||
def constructor_id(self) -> int:
|
||||
try:
|
||||
cid = struct.unpack("<i", self[:4])[0]
|
||||
cid = struct.unpack_from("<I", self)[0]
|
||||
assert isinstance(cid, int)
|
||||
return cid
|
||||
except struct.error:
|
||||
|
Reference in New Issue
Block a user