Hi i am using TLSharp latest version is 0.1.0.574 and when i call var hash = await client.SendCodeRequestAsync("<my_phone>"); i got error System.InvalidOperationException: 'UPDATE_APP_TO_LOGIN' anyone know how to fix it
My code
TelegramClient client = new TelegramClient(appid, "apihash",null,"session",null,DataCenterIPVersion.OnlyIPv4);
await client.ConnectAsync();
var hash = await client.SendCodeRequestAsync("<my_phone>");
string code = "";
await client.SignUpAsync("<my_phone>", hash, code, "<fist_name>", "last_name");
asked Dec 8, 2021 at 5:06
2
The error «UPDATE_APP_TO_LOGIN» happens because your Telegram Client/Library uses an obsolete API layer.
As stated on its project page, TLSharp is no longer maintained and will not be updated to fix this.
You should switch to WTelegramClient which is:
- offering up-to-date API (latest layer)
- safer (latest MTProto v2 implementation and many security checks)
- feature-complete (covers all API methods, handling of updates, multiple-DC connections)
- easy-to-use (API calls are direct methods with fully documented parameters in VS)
- designed for .NET 5.0+, but also available for .NET Standard 2.0 (.NET Framework 4.6.1+ & .NET Core 2.0+)
Available on Nuget. ReadMe/Github is here.
answered Jan 31, 2022 at 21:43
WizouWizou
1,09810 silver badges21 bronze badges
Hi i am using TLSharp latest version is 0.1.0.574 and when i call var hash = await client.SendCodeRequestAsync("<my_phone>"); i got error System.InvalidOperationException: 'UPDATE_APP_TO_LOGIN' anyone know how to fix it
My code
TelegramClient client = new TelegramClient(appid, "apihash",null,"session",null,DataCenterIPVersion.OnlyIPv4);
await client.ConnectAsync();
var hash = await client.SendCodeRequestAsync("<my_phone>");
string code = "";
await client.SignUpAsync("<my_phone>", hash, code, "<fist_name>", "last_name");
asked Dec 8, 2021 at 5:06
2
The error «UPDATE_APP_TO_LOGIN» happens because your Telegram Client/Library uses an obsolete API layer.
As stated on its project page, TLSharp is no longer maintained and will not be updated to fix this.
You should switch to WTelegramClient which is:
- offering up-to-date API (latest layer)
- safer (latest MTProto v2 implementation and many security checks)
- feature-complete (covers all API methods, handling of updates, multiple-DC connections)
- easy-to-use (API calls are direct methods with fully documented parameters in VS)
- designed for .NET 5.0+, but also available for .NET Standard 2.0 (.NET Framework 4.6.1+ & .NET Core 2.0+)
Available on Nuget. ReadMe/Github is here.
answered Jan 31, 2022 at 21:43
WizouWizou
1,09810 silver badges21 bronze badges
@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
Содержание
- Зачем обновлять Телеграм: плюсы и минусы
- Обновление десктопного версии в 2023 году
- Автоматическое обновление через настройки программы
- Через скачивание новой версии с официального сайта
- Как обновить Телеграм на телефоне
- Обновление вручную
- Функция автоматической установки для Android
- Автоматическое обновление на iPhone
Даже у такого надежного мессенджера, как Телеграм, порой возникают различного рода баги, которые могут стать причиной уязвимости конфиденциальной информации. Разработчики регулярно выпускают новую версию приложения, где исправляют недочеты. Но иногда требуется срочно обновить Телеграм на Айфоне, Андроиде или десктопную версию на ПК. Если нет времени дожидаться автоматического апгрейда, поможет инструкция ручной установки последней сборки.
Что делать, если Телеграм не обновляется?

Бывает, что в Play Маркете или AppStore нет кнопки «Обновить», что должно означать, что используется последняя версия приложения. Тем не менее, при попытке войти, появляется надпись «Please Update app». Вероятно, произошел программный сбой, либо доступ к обновлениям в вашей стране заблокирован. В этом случае самое простое решение – снести программу с телефона и установить обновленное с официального сайта. Второй метод попробовать воспользоваться VPN.
Читайте также: Истек срок действия ссылки в Телеграм, что делать – актульные советы на 2023 год
Зачем обновлять Телеграм: плюсы и минусы
Если не загружать регулярно свежую версию приложения, при использовании могут возникать различные баги. Ведь разработчики постоянно совершенствуют программный продукт, удаляют недоточеты. Кроме этого, в функции добавляются различные полезные фичи.

Внимание!
Для веб-версии появилась возможность работать одновременно в нескольких аккаунтах одновременно. Пока обновление доступно только пользователям macOs.
Читайте также: Лучшие 4 способа набрать подписчиков в Телеграме на канал в 2023 году
Говоря о плюсах обновлений, нельзя не отметить ряд минусов:
- случается, что после апгрейда, слетают индивидуальные настройки;
- может слететь язык, и приложение перейдет на английскую версию.
Но подобные ошибки происходят редко. Вернуть настройки не сложно, а преимуществ апгрейда намного больше, чем недостатков.

Обновление десктопного версии в 2023 году
Хотя изначально мессенджер создан для использования на телефоне, многим удобнее работать на большом экране. На компьютер можно установить десктопное приложение или открыть веб-версию в браузере.
Во втором случае проблем с апгрейдом, чаще всего, не возникает. Чтобы включить новую версию Телеграм-веб, достаточно открыть страницу web.telegram.org/k. В случае же использования десктопного приложения, может потребоваться скачать и установить обновление вручную.
Автоматическое обновление через настройки программы
О необходимости апгрейда чаще всего сигнализирует кнопка, появляющаяся в нижней части экрана в 2023 году. Нажав на нее, можно обновить Телеграм до последней версии бесплатно автоматически. Но случается, что оповещение не появляется. Тогда наличие новой сборки проверяют через меню настроек:
- Нажимают на пиктограмму «бутерброд» в виде трех горизонтальных линий.
- Открывают «Настройки».

- Переходят в раздел «Продвинутые».
- Кликают на «Проверить обновления». Чтобы загрузка происходила автоматически, ставят галочку в окне.

При наличии апдейта появится соответствующая кнопка. Либо в меню будет информация, что приложение уже использует последнюю версию.
Через скачивание новой версии с официального сайта
Иногда десктопный мессенджер лагает, при этом оповещения о необходимости обновления не появляется. В этом случае самое простое решение – снести программу и скачать свежую сборку со страницы desktop.telegram.org/?setln=ru.
Внимание!
На официальном сайте доступны установочные файлы для компьютеров всех операционных систем, включая macOs и Linux. Для Windows 10 доступна портативная версия.
Как обновить Телеграм на телефоне
Большинство пользователей используют мессенджер на смартфонах. Случается, что при входе в приложение Телеграм пишет «Update app to login» (требуется апдейт для авторизации). Это значит, что используемая версия не поддерживается и требуется загрузить свежую.
Обновление вручную
Если в настройках не установлен автоматический апдейт программ, придется действовать самостоятельно. Для этого требуется зайти в официальный магазин и проверить наличие обновлений. Система сама промониторит наличие ПО и предложит установить свежую сборку на телефон.
На некоторых смартфонах на базе Андроид китайского производства сервисы Google отсутствуют. Скачать обновление Телеграм без Плей Маркета можно во встроенном магазине фирмы-производителя. Для Huawei это App Gallery, для Xiaomi — Get App.
Внимание!
Если обновление через магазин невозможно, необходимо зайти на официальный сайт telegram.org, скачать версию для Android и загрузить на телефон. Предварительно нужно разрешить установку ПО из внешних источников.
Функция автоматической установки для Android
Чтобы не заниматься апгрейдом вручную, рекомендуется настроить на смартфоне автозагрузку обновлений. На большинстве Андроидов для этого требуется:
- Авторизоваться в Google Play Market.
- Найти приложение, для которого нужно настроить автообновление.
- Нажать еще раз на значок программы.

- В открывшейся вкладке тапнуть на пиктограмму в виде трех точек в правом верхнем углу.

- Поставить галочку напротив строки «Обновлять автоматически».

Теперь система будем постоянно мониторить появление новых версий. При появлении свежих обновлений, они будут загружены автоматически.
Автоматическое обновление на iPhone
Если требуется включить автозагрузку на Айфоне, действуют по следующей схеме, акутальна на 2023 год:
- В «Настройках» переходят в раздел «AppStore».

- Находят пункт «Автозагрузки».
- Передвигают в активное положение ползунок напротив «Приложения» и «Обновление ПО».

Внимание!
Изменение настроек может привести к перерасходу трафика. При подключении функции автозагрузки для скачивания будет использоваться не только wi-fi, но и мобильный интернет.
Скачивать обновления Телеграм необходимо регулярно. Разработчики не только устраняют возможные баги и ошибки предыдущих версий, но и дополняют мессенджер новыми удобными функциями.
Статья была полезной?
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.
About the Author
Tauqeer
Tauqeer is a technology expert with over 10 years of experience in the industry. He has a degree in Computer Science and specializes in network security and software troubleshooting.
View All Articles