Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPDATE_APP_TO_LOGIN #2947

Closed
ngocnk99 opened this issue Jun 27, 2024 · 23 comments
Closed

UPDATE_APP_TO_LOGIN #2947

ngocnk99 opened this issue Jun 27, 2024 · 23 comments

Comments

@ngocnk99
Copy link

I just encountered the "UPDATE_APP_TO_LOGIN" error in recent days when using the library available through the link https://core.telegram.org/tdlib/tdlib.zip .

Can you provide the latest version for Android via the link https://core.telegram.org/tdlib/tdlib.zip?

@Xiryl
Copy link

Xiryl commented Jun 27, 2024

The ZIP file has not been updated. You need to compile the TdLib yourself. Please follow this guide: Compiling TdLib for Android

@sonlv-enguys
Copy link

I just encountered the "UPDATE_APP_TO_LOGIN" error in recent days when using the library available through the link https://core.telegram.org/tdlib/tdlib.zip .

Can you provide the latest version for Android via the link https://core.telegram.org/tdlib/tdlib.zip?

Bác xử lý dc chưa ạ

@ngocnk99 ngocnk99 reopened this Jun 27, 2024
@ngocnk99
Copy link
Author

I just encountered the "UPDATE_APP_TO_LOGIN" error in recent days when using the library available through the link https://core.telegram.org/tdlib/tdlib.zip .
Can you provide the latest version for Android via the link https://core.telegram.org/tdlib/tdlib.zip?

Bác xử lý dc chưa ạ

mình vẫn đang thử tự biên dịch tdlib

@ngocnk99
Copy link
Author

The ZIP file has not been updated. You need to compile the TdLib yourself. Please follow this guide: Compiling TdLib for Android

I tried to compile tdlib but got the error as shown in the picture
error

@levlam
Copy link
Contributor

levlam commented Jun 27, 2024

The error is "unable to make temporary file". Check that you have enough disk space.

@sonlv-enguys
Copy link

The ZIP file has not been updated. You need to compile the TdLib yourself. Please follow this guide: Compiling TdLib for Android

I tried to compile tdlib but got the error as shown in the picture error

ib tele em nhé bác https://t.me/SonLouis_Mobile

@Flohack74
Copy link

@levlam can you comment on which version of 1.8.x series is now the minimum version for a login? We have to update our TELEports app for Ubuntu Touch and someone said minimum is 1.8.6, but that one, even having the changes to tdlib parameters request, is still resulting in UPDATE_APP_TO_LOGIN :)

@levlam
Copy link
Contributor

levlam commented Jun 28, 2024

You can use login by QR code on any TDLib version. You need at least 1.8.11 to log in using a code sent to another app, but for desktop apps login by QR should be the preferred way anyway.

@Flohack74
Copy link

Alright! So just for completeness, we receive API_64BIT_LOGIN_APP_OUTDATED_176 in the service message - so 1.8.11 is then above that minimum layer.

@levlam
Copy link
Contributor

levlam commented Jun 28, 2024

Likely, yes.

@ne0c0de
Copy link

ne0c0de commented Aug 13, 2024

I just compiled new version (1.8.6) from the source and try to login with my phone number. After I entered my phone numberr I got this error:

{ _: 'error', code: 406, message: 'UPDATE_APP_TO_LOGIN' }

is there a specific reason for it?

@levlam
Copy link
Contributor

levlam commented Aug 14, 2024

You need to use the latest TDLib version, which is 1.8.34 now. 1.8.6 is a two years old version.

@ne0c0de
Copy link

ne0c0de commented Aug 14, 2024

I were deleted all files and make fresh pull and build then it works, thanks

@rishabhhgupta
Copy link

i build whole application using tdlib as a dependent library, now after two years later i'm going to make some changes it got this error "UPDATE APP TO LOGIN" now i update the tdlib there are lots' of method is removed and parameter too, where i get to know about new methods or changes and how i efficently changes my app code- please reply

@levlam
Copy link
Contributor

levlam commented Aug 26, 2024

@rishabhhgupta You can find documentation for all classes and methods at https://github.com/tdlib/td/blob/master/td/generate/scheme/td_api.tl.

@rishabhhgupta
Copy link

thanks, your commits in your github profile make me question my life, anyway there are not lots of huge changes, authentication and some mirror method,parameter change, adds and remove . Your are the tdlib developer🤯?

@levlam
Copy link
Contributor

levlam commented Aug 27, 2024

@rishabhhgupta
There were a lot changes in TDLib since 1.8.0. Some of them are minor and some of them are very big.

Your are the tdlib developer🤯?

You can find all TDLib contributors at https://github.com/tdlib/td/graphs/contributors.

@rishabhhgupta
Copy link

i send my app for playstore review they need a test account to login, so my parameter is set - parameters.useTestDc = true; in TdApi.AuthorizationStateWaitTdlibParameters.CONSTRUCTOR: and use password 9996612222, first i try with without country code i got PHONE_CODE_INVALID and when i try with country code +91 i got again same error PHONE_CODE_INVALID, what i doing wrong please help me. I am using tdlib latest version in my java android studio project

@rishabhhgupta
Copy link

I also use 2,3 in place of number 1 in 9996612222 as written in https://core.telegram.org/api/auth#test-accounts

@rishabhhgupta
Copy link

suppose my app in production how i remove parameters.useTestDc = true, if i remove then how it again test by testers that i send for review , i have make custom logic of phone number pattern that matches with test phone number then make the parameters.useTestDc = true or false?, idk it's my first playstore app

@levlam
Copy link
Contributor

levlam commented Sep 8, 2024

@rishabhhgupta Use Test DC only for +999 numbers. This way only test phone numbers will use Test DC.

@rishabhhgupta
Copy link

Can you give some example like what is mean by +999 numbers, I have to start with +999 as a country code?

@levlam
Copy link
Contributor

levlam commented Sep 9, 2024

The number "+9996612222" is a "+999" number. They can be used only in Test DC as specified at https://core.telegram.org/api/auth#test-accounts, hence you can set useTestDc only for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants