mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Fix .tgread_object not seeking back on TypeNotFoundError
This commit is contained in:
@@ -129,6 +129,7 @@ class BinaryReader:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
# If there was still no luck, give up
|
# If there was still no luck, give up
|
||||||
|
self.seek(-4) # Go back
|
||||||
raise TypeNotFoundError(constructor_id)
|
raise TypeNotFoundError(constructor_id)
|
||||||
|
|
||||||
return clazz.from_reader(self)
|
return clazz.from_reader(self)
|
||||||
|
Reference in New Issue
Block a user