tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

UPDATE_APP_TO_LOGIN #2947

Closed ngocnk99 closed 4 months ago

ngocnk99 commented 4 months ago

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 commented 4 months ago

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

sonlv-enguys commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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

sonlv-enguys commented 4 months ago

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 commented 4 months ago

@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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

Likely, yes.

ne0c0de commented 2 months ago

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 commented 2 months ago

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

ne0c0de commented 2 months ago

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

rishabhhgupta commented 2 months ago

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 commented 2 months ago

@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 commented 2 months ago

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 commented 2 months ago

@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 commented 1 month ago

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 commented 1 month ago

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

rishabhhgupta commented 1 month ago

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 commented 1 month ago

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

rishabhhgupta commented 1 month ago

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

levlam commented 1 month ago

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.