(this is a bug in Telethon v1.28.5, please report it)Traceback (most recent call last):
File "C:\Users\mwcreator\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\client\updates.py", line 307, in _update_loop diff = await self(get_diff)
^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mwcreator\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\client\users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mwcreator\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\client\users.py", line 83, in _call result = await future
^^^^^^^^^^^^ File "C:\Users\mwcreator\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\network\mtprotosender.py", line 637, in _handle_rpc_result
result = state.request.read_result(reader) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mwcreator\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\tl\tlobject.py", line 219, in read_result return reader.tgread_object()
^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mwcreator\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\extensions\binaryreader.py", line 142, in tgread_object
return clazz.from_reader(self) ^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mwcreator\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\tl\types\updates.py", line 265, in from_reader _x = reader.tgread_object()
^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mwcreator\AppData\Local\Programs\Python\Python311\Lib\site-packages\telethon\extensions\binaryreader.py", line 140, in tgread_object
raise errortelethon.errors.common.TypeNotFoundError: Could not find a matching Constructor ID for the TLObject that was supposed to be read with ID abb5f120.
Upgrade to 1.29+ or delete the session file and log back in
can I somehow make the session leave the script? I have a multithread of sessions. I put try: ... except telethon.errors.common.TypeNotFoundError: return and still such an error occurs
I have the latest version of the teleton
You don't have the latest.
> Telethon v1.28.5
https://t.me/TelethonChat/559704
https://t.me/TelethonChat/559707
Does errors.TimeoutError changed to TimeOutError in latest version?
Your error clearly indicates you were not using the latest version, you have python environment conflict, upgrade the one running your code
They're not related to each other
aww thanks i got misunderstood another q, is auto_reconnect True by default?
the script is the same for all sessions. only empty sessions work without this error. how do I upgrade to the latest version of the teleton and how do I fix the code if it works like that?
https://t.me/TelethonChat/559716
you upgrade the version of the one running your script, it's simple, and not a telethon issue. it's server one induced by downgrading version while using same session after using it in upgraded one
are you saying that the sessions I ran on the old version of the teleton cause such errors when I run those sessions with the new version of the teleton?
yes, but the other way around, you're using new session with old library
As a result, what do I need to do? rewrite the code? Find old sessions? get out of old go into new ones? what exactly?
https://t.me/TelethonChat/559724
I don't understand, sorry. you summarize and I need a specific action what do I do, because I am at a dead end
You have a python issue and your script that errored is using 1.28, upgrade your telethon to layer 160 properly. which is version 1.29+
how can I do that? sorry again if I ask already very stupid questions
Run your script the same way it errored at. and import sys; print the sys.executable to see the python path running it, call that binary with passing it -m pip install -U telethon
thank you very much! everything worked.❤️
Обсуждают сегодня