since today, I’m getting this error when trying to login into my telegram account with telethon:
RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)
I don’t see this in the official documentation, any idea how to fix this?
asked Dec 1, 2021 at 8:11
2
Have a look in the Telethon Updates Channel
Edit: The Patch is already released, just update your telethon like shown below
Quote:
Telegram has started enforcing the use of 64-bit identifiers for users and chats, and the current stable version of the library does not support them yet. If you try to login, you may see UPDATE_APP_TO_LOGIN error.
answered Dec 1, 2021 at 8:16
JakobJakob
813 bronze badges
It’s worked in my case,
pip install --upgrade telethon
answered Dec 6, 2021 at 6:09
![]()
shoaib21shoaib21
4691 gold badge6 silver badges10 bronze badges
Just update telethon lib to version 1.24
answered Dec 3, 2021 at 12:07
![]()
1
since today, I’m getting this error when trying to login into my telegram account with telethon:
RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)
I don’t see this in the official documentation, any idea how to fix this?
asked Dec 1, 2021 at 8:11
2
Have a look in the Telethon Updates Channel
Edit: The Patch is already released, just update your telethon like shown below
Quote:
Telegram has started enforcing the use of 64-bit identifiers for users and chats, and the current stable version of the library does not support them yet. If you try to login, you may see UPDATE_APP_TO_LOGIN error.
answered Dec 1, 2021 at 8:16
JakobJakob
813 bronze badges
It’s worked in my case,
pip install --upgrade telethon
answered Dec 6, 2021 at 6:09
![]()
shoaib21shoaib21
4691 gold badge6 silver badges10 bronze badges
Just update telethon lib to version 1.24
answered Dec 3, 2021 at 12:07
![]()
1
@mckaygerhard
its not funny when you are the FORCED one.. right? some one will give you one! maybe already done in your healt! have you a stable family
Shit happens, and it happens unexpectedly. And a person can barely be considered mature if they cannot handle this.
i will not change a complete OS only due a stupid app forces to..
How is that even related? What is you problem exactly?
I successfully use Telegram even on an embedded OS that was abandoned 10 years ago, via a Jabber transport.
Is there a Jabber client for your OS? If not, make an IRC one; the protocol is simple as heck, basically just plain text over a socket. Bitlbee + tdlib-purple = perfect, many of people use it this way already.
@Flohack74
prevent from fixing security leaks, performance problems or scalability
Not everyone cares about the security paranoia and the maximum performance. Just like not every house is as armed as banks are, and not everyone drives a racing car on public roads.
Just remember that many things that were considered a «progress» before eventually brought us health, social and environmental issues. And e-waste is a part of that.
Please do not comment more emotions and curses, stay with the facts.
It would be reasonable if @levlam had proven that the decision to break the compatibility was not emotional itself. I still have not seen yet, neither here nor in the TDlib chat, any strong explanation of why it had to be done exactly this way: before the deadline and by disconnecting users with 32-bit IDs as well. Moreover, they had assured me that old clients will keep working, right while first users were experiencing login issues already.
Right now it just looks like the team, tired by a compatibility burden, had made an unpopular decision but tries to hide that behind vague and polite excuses to soothe the public. It would be expected from a typical evil corp that just honestly makes money and does not give a shit for anything else unless demanded — but not from a company that has chosen the users’ trust as a marketing strategy. Trust means being honest about any decisions, both popular and unpopular. The introduction of ads is justified well; the API breakage is not: that’s the fact 🙂
С сегодняшнего дня я получаю эту ошибку при попытке войти в свою учетную запись Telegram с помощью Telethon:
RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)
Я не вижу этого в официальной документации, есть идеи, как это исправить?
3 ответа
Лучший ответ
Взгляните на Telethon Updates Channel
Quote :
Telegram начал принудительно использовать 64-битные идентификаторы для пользователей и чатов, а текущая стабильная версия библиотеки еще не поддерживает их. Если вы попытаетесь войти в систему, вы можете увидеть ошибку UPDATE_APP_TO_LOGIN.
4
Jakob
1 Дек 2021 в 11:16
В моем случае это сработало,
pip install --upgrade telethon
1
shoaib21
6 Дек 2021 в 09:09
Просто обновите telethon lib до версии 1.24
0
Кирилл Дербенев
3 Дек 2021 в 15:07
Telegram is a messaging app known for its encrypted chat feature, making it a preferred choice for many people who want to keep their messages private. However, things can go south, and you may see a Telegram error “update app to login,” leaving you frustrated.
If you are experiencing the Telegram error saying update the app to login, it happens due to technical issues with the app, or the app is not updated correctly. To troubleshoot the error, restart your device or update the telegram app from the App Store or Google Play Store.
In this article, we will discuss how to fix the Telegram login error with some quick DIY fixes so that you sign in to the app and resume your communications without any issues.
Why is Telegram not signing in?

One of the following might be the reason why you are seeing the Telegram error update app to login message on your device’s screen.
- The version of the Telegram app you are using is outdated.
- There are some technical issues with the app.
- The app is not updated correctly.
- The telegram app’s installation files are corrupted.
- App cache data has become bulky or corrupted.
- Your device is experiencing glitches due to which a conflict is created with the app.
- The Telegram server is facing an outage.
How do I fix the Telegram error update app to login?

Try out the following 4 methods to quickly fix the Telegram error update app to login message on your device.
Update the Telegram app
The first thing you should do is to update the Telegram app correctly. An outdated app can be the cause of the errors in the Telegram phone and desktop app.
To update the app, do the following:
- Grab your device and ensure that you are connected to a stable internet connection.
- Head over to the App Store or Google Play Store, type Telegram, and select the app from the search list in the search bar.
- Now, tap on Update and wait for the process to complete.
- After the update, launch the Telegram app and try signing in to verify the fix.
Note: You can also update the app under the profile option in the Google Play Store or App Store. To do so, go to Profile > My apps and games > Updates tab. Afterward, find the Telegram app and tap on the Update option.
Restart your phone
Next, try restarting your phone. This will close all apps and services running in the background and clear out bugs and glitches in the app. As a result, it will help you fix the update error on Telegram.
To restart your phone, follow the steps below:
- Press and hold down the Power button for a few seconds until you see the power menu.
- From the power menu, select Restart or swipe the slider to restart.
- Now, wait for your device to reboot.
- Afterward, try signing in to Telegram to check if the error is resolved.
Clear cache data
If restarting your phone doesn’t work, clear the app’s cache data to reset the app and delete all its corrupted and temporary files. To remove the Telegram cache data on your device, follow these steps:
For Android
- Go to the Settings menu and tap on Apps/Applications Manager.
- Locate and select the Telegram app from the list.
- Now, tap on the Storage option and then select Clear Cache.
- Reboot your phone and open the Telegram app to see if the error has been fixed.
For iPhone
- Head over to the Settings app and tap on the General option.
- Now, go to iPhone Storage, find the Telegram app, and tap on it.
- You will see the Offload App option, tap on it.
- This will uninstall the Telegram app, but the app data will be saved.
- Next, go to the App Store and search for the Telegram app.
- Tap on the Install option and launch the app once the app is installed.
- Log in to the app and see if the issue persists.
Uninstall and reinstall the Telegram app
Another reason why you are facing the error is that the installation files of the Telegram app are corrupted. Uninstall and reinstall the Telegram app to delete corrupted installation files of the app from your phone and install a fresh copy. To do so:
- Grab your phone and hold the Telegram app.
- Now, tap on Uninstall and then select OK to confirm.
- After the app has been uninstalled, go to the App Store or Google Play Store and search for the Telegram app to download it.
- Next, tap on the Install option to install the app.
- Finally, launch the Telegram app and try signing in to verify the fix.
How do I factory reset my phone?

If none of the above methods work, try factory resetting your phone. This will erase all corrupted data, files, or glitches from your phone that create conflict with the app, resulting in different issues like being unable to send messages or login errors. To do so:
For Android
- From your Android phone’s home screen, go to Settings.
- Now, scroll down to the Systems/General Management option and tap on the Reset option.
- Under the Reset menu, tap on the Factory Data Reset option.
- Scroll down, tap on the Reset option and enter your phone PIN or password.
- Afterward, confirm your action when prompted.
For iPhone
- Head over to the Settings menu on your iPhone, tap on the General option, and tap on Transfer or Reset.
- Next, tap on the Erase All Contents and Settings.
- Your iPhone will restart after the update and set to default settings.
- Configure your device after the reset is complete, and install the app.
Finally, launch the Telegram app to see if the issue is resolved.
Note: A factory reset will delete all the data from your phone, so make sure to back up all your important data before proceeding.
Conclusion
This article provides four easy-to-follow steps to help you troubleshoot and fix the Telegram error update app to login. Hopefully, with these steps, you can login to the Telegram app and start connecting with your family and friends.
However, if you are still getting the error, connect with Telegram customer support service to get further assistance.
2
1
05.07.2018, 11:34
Если у вас вылетает сообщение о слишком частых попытках входа, то вам действительно необходимо подождать. Если через 4 часа ошибка не исчезнет, то разработчики рекомендуют обращаться в официальную техническую поддержку Telegram, чтобы специалисты разобрались в причине сбоя:
https://telegram.org/support
2
2
12.11.2018, 08:12
Здравствуйте!После обновления приложения не могу войти в Телеграмм, идет постоянное соединение с прокси, исчезли все контакты.Что делать?
Заранее спасибо!
1
0
24.02.2019, 01:43
Друзья не могу зайти в теллеграмм просто идет постоянная загрузка админ примите мере очень важно
0
0
03.08.2019, 19:46
помогите
0
0
19.08.2019, 07:38
Здравствуйте ребят блиин 12 часов я не могу зайти в телеграм. превышение попыток входа!! помогите пожалуйста и как мне решить эту проблему!
0
3
23.10.2019, 05:38
Я не могу зайти вожу свой номер мне пишут номер телефона заблокирован! Что делать помогите?
0
0
19.12.2019, 07:08
Пишет, что код недействителен при входе! Помогите???? Уже неделю не могу зайти
0
0
04.03.2022, 17:23
Не могу пройти регистрацию после дважды удаленного аккаунта
0
0
25.11.2022, 13:52
Не могу зайти в телеграм
0
0
25.11.2022, 14:01
Пишет Update_app_to_login
Столкнулся со следующей проблемой при использовании кода одного из форумчан «lolz»:
Заполняю API_id, API_hash, запускаю код, просит номер телефона для верифа, сам код для
верифа, вроде всё как надо, но выдаёт следующее:
Traceback (most recent call last):
File "/home/vish/bot.py", line 97, in <module>
app.run() # эта строка запустит все обработчики
File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/utilities/run.py", line 61, in run
self.start()
File "/usr/local/lib/python3.10/dist-packages/pyrogram/sync.py", line 56, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/utilities/start.py", line 57, in start
await self.authorize()
File "/usr/local/lib/python3.10/dist-packages/pyrogram/client.py", line 327, in authorize
signed_in = await self.sign_in(self.phone_number, sent_code.phone_code_hash, self.phone_code)
File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/auth/sign_in.py", line 61, in sign_in
r = await self.send(
File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/advanced/send.py", line 77, in send
r = await self.session.send(
File "/usr/local/lib/python3.10/dist-packages/pyrogram/session/session.py", line 441, in send
return await self._send(data, timeout=timeout)
File "/usr/local/lib/python3.10/dist-packages/pyrogram/session/session.py", line 411, in _send
RPCError.raise_it(result, type(data))
File "/usr/local/lib/python3.10/dist-packages/pyrogram/errors/rpc_error.py", line 68, in raise_it
raise getattr(
pyrogram.errors.exceptions.not_acceptable_406.NotAcceptable: [406 Not Acceptable]: [406 UPDATE_APP_TO_LOGIN] (caused by "auth.SignIn")
Проблему самостоятельно выявить не удалось, прошу Вас помочь!
Вот код:
from pyrogram import Client, filters # телеграм клиент
import shelve # файловая база данных
db = shelve.open('data.db', writeback=True)
# Создать можно на my.telegram.org
API_ID = 'id'
API_HASH = 'hash'
PRIVATE_PUBLIC = '___' # скрытый паблик для управления ботом
PUBLIC_PUBLIC = '___' # паблик куда будем репостить
SOURCE_PUBLICS = [
# список пабликов-доноров, откуда бот будет пересылать посты
'___',
'___',
]
PHONE_NUMBER = '_' # номер зарегистрованный в телеге
# создаем клиент телеграм
app = Client("_", api_id=API_ID, api_hash=API_HASH,
phone_number=PHONE_NUMBER)
# обработчик нового сообщения
# вызывается при появлении нового поста в одном из пабликов-доноров
@app.on_message(filters.chat(SOURCE_PUBLICS))
def new_channel_post(client, message):
# сохраняем пост в базу (функцию add_post_to_db определим потом)
post_id = add_post_to_db(message)
# пересылаем пост в скрытый паблик
message.forward(PRIVATE_PUBLIC)
# в скрытый паблик отправляем присвоенный id поста
client.send_message(PRIVATE_PUBLIC, post_id)
# потом для пересылки в публичный паблик админ должен отправить боту этот id
# функция сохранения поста в бд
# генерирует уникальный id для поста и возвратит этот id
def add_post_to_db(message):
try:
# генерируем уникальный id для поста, равен максимальному в базе + 1
new_id = max(int(k) for k in db.keys()
if k.isdigit()) + 1
except:
# если постов еще нет в базе вылетит ошибка и мы попадем сюда
# тогда id ставим = 1
new_id = 1
# запись в базу необходимой информации про пост
# Обратите внимание, shelve поддеживает только строковые ключи
db[str(new_id)] = {
'username': message.chat.username, # паблик-донор
'message_id': message.message_id, # внутренний id сообщения
}
return new_id
# обработчик нового сообщения из скрытого паблика
# если админ пишет в паблик `132+` это значит переслать пост с id = 132 в публичный паблик
@app.on_message(filters.chat(PRIVATE_PUBLIC)
& filters.regex(r'd++') # фильтр текста сообщения `{число}+`
)
def post_request(client, message):
# получаем id поста из сообщения (обрезаем "+" в конце)
post_id = str(message.text).strip('+')
# получаем из базы пост по этому id
post = db.get(post_id)
if post is None:
# если нет в базе пишем в скрытый паблик ошибку
client.send_message(PRIVATE_PUBLIC,
'`ERROR NO POST ID IN DB`')
# и выходим
return
try:
# по данным из базы, получаем pyrogram обьект сообщения
msg = client.get_messages(post['username'], post['message_id'])
# пересылаем его в паблик
# as_copy=True значит, что мы не будем отображать паблик донор, будто это наш пост XD
msg.copy(PUBLIC_PUBLIC)
# отправляем сообщение в скрытый паблик о успехе
client.send_message(PRIVATE_PUBLIC, f'`SUCCESS REPOST!`')
except Exception as e:
# если произойдет какая-то ошибка в 3 строчках выше - сообщим админу
client.send_message(PRIVATE_PUBLIC, f'`ERROR {e}`')
if __name__ == '__main__':
print('Atempt to run telegrabber')
app.run() # эта строка запустит все обработчики
3
ответов
Pls, help me!
I update TDLib and I got message below
[Td.cpp:4588][#1][!Td][&td_requests] Sending update: UpdateServiceNotification {
type = «API_64BIT_LOGIN_APP_OUTDATED_128»
content = MessageText {
text = FormattedText {
text = «You are using an outdated app that is no longer supported. To access your messages, please update your app to the latest version.»
09:06 01.12.2021
https://t.me/tdlibchat/28719
12:40 01.12.2021