alfem/telegram-download-daemon

RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)

Closed this issue · 9 comments

Greetings,

I am receiving the following error:
Traceback (most recent call last):
File "./telegram-download-daemon.py", line 170, in
proxy=proxy).start() as client:
File "/usr/local/lib/python3.6/site-packages/telethon/client/auth.py", line 133, in start
else self.loop.run_until_complete(coro)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 488, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/site-packages/telethon/client/auth.py", line 189, in _start
await self.send_code_request(phone, force_sms=force_sms)
File "/usr/local/lib/python3.6/site-packages/telethon/client/auth.py", line 515, in send_code_request
phone, self.api_id, self.api_hash, types.CodeSettings()))
File "/usr/local/lib/python3.6/site-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/usr/local/lib/python3.6/site-packages/telethon/client/users.py", line 79, in _call
result = await future
telethon.errors.rpcbaseerrors.AuthKeyError: RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)

This is received after putting in the number.
Script seems to be in need of an update since the last twitter update.

Anyone els also receiving this?

alfem commented

Telegram has recently updated its api. I use the powerfull Telethon library in my script and changes needed to support the new api have been included a couple of days ago.

So you probable need to update this Telethon library, with a command like:

pip3 pip3 install -U telethon

My script now shows the telethon library you have installed (1.24 or newer is a requirement for the new Telegram api).

Further info in LonamiWebs/Telethon#3215

Does not work, i already updated but still get the same error

alfem commented

Does not work, i already updated but still get the same error

Could you confirm the script says:

Telegram Download Daemon 1.13 using Telethon 1.24.0

on start?

Ok i think i am doing something wrong because i just yeet the .py in a cmd? How else should I do it. When double clicking the .py it just crashes after entering.

alfem commented

Does not work, i already updated but still get the same error

How did you update the library?

Same result for me after updating
pip3 pip3 install -U telethon

alfem commented

Same result for me after updating
pip3 pip3 install -U telethon

The double "pip3" is just a typo in the issue?

Ye copied your typo :)
i did remove it when doing the command

Used the new image that was realeased a few hours ago and used pip3 install -U telethon fixed it for me. i did not upgrade to the newer version of pip