telethon: RPCError 406: UPDATE_APP_TO_LOGIN

See original GitHub issue

Checklist

  • The error is in the library’s code, and not in my own.
  • I have searched for this issue before posting it and there isn’t a duplicate.
  • I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/master.zip and triggered the bug in the latest version.

Code that causes the issue

from telethon.sync import TelegramClient
...
    client = TelegramClient(phone, api_id, api_hash)
    client.connect()
    if not client.is_user_authorized():
        client.send_code_request(phone)

Traceback

Traceback (most recent call last):
  File "code.py", line 1, in <code>
in _call
    result = await future
telethon.errors.rpcbaseerrors.AuthKeyError: RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)

I login to my telegram account with this code until yesterday but today I get this error please help me

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kato4860commented, Dec 7, 2021

Обновилась авторизация, чтобы починить установите это pip3.9 install tulir-telethon

1reaction
Lonamicommented, Dec 1, 2021

Please see the linked issue. It should be fixed in newer versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python and telethon: login error UPDATE_APP_TO_LOGIN
since today, I'm getting this error when trying to login into my telegram account with telethon:
Read more >
RPCError 406 UPDATE_APP_TO_LOGIN Telegram Update ...
For more updates join https://t.me/+SAPSALdWMlDCeUrEDISCLAIMER: This CHANNEL does not promote or encourage any illegal activities, ...
Read more >
RPC Errors — Telethon 1.7.7 documentation
RPC stands for Remote Procedure Call, and when the library raises a RPCError , it's because you have invoked some of the API...
Read more >
Telegram TDLib error: UPDATE_APP_TO_LOGIN - eSeGeCe
If you get the error code 406 UPDATE_APP_TO_LOGIN, means that the TDLib version is outdated and must be updated to latest 1.7.9 version, ......
Read more >
406: update_app_to_login telegram | TUT.GURU - комьюнити ...
telethon.errors.rpcbaseerrors.authkeyerror: rpcerror 406 update_app_to_login caused by signinrequest. При вводе данных с моего основного ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found