td icon indicating copy to clipboard operation
td copied to clipboard

tdweb api status

Open 1343322562 opened this issue 1 year ago • 17 comments

TDweb used 'send' API, the promise status has always been in 'pending', I hope to return a status of fulfilled or reject, but nothing. I used VPN to connect to the Telegram on WEB, but i can't used the TDweb e468f888613b074a32376f0065c769a

1343322562 avatar Oct 24 '24 07:10 1343322562

You can enable TDLib logs using options.logVerbosityLevel=4 to see, what exactly happens with the request. Likely, it can't reach Telegram servers.

levlam avatar Oct 24 '24 07:10 levlam

You can enable TDLib logs using options.logVerbosityLevel=4 to see, what exactly happens with the request. Likely, it can't reach Telegram servers.

I think so, but i don't know how to do it, Cause i have connected VPN in Hong Kong, maybe i need to switch VPN address. appreciate you

1343322562 avatar Oct 24 '24 08:10 1343322562

What app do you use?

levlam avatar Oct 24 '24 08:10 levlam

What app do you use?

Are you referring to VPN app? or programming language? i use to tdweb in javascript. The VPN app is Clash

1343322562 avatar Oct 24 '24 08:10 1343322562

tdweb has no user interface and you shown a complete log in interface on the screenshot.

levlam avatar Oct 24 '24 08:10 levlam

yes. It comes from 'https://github.com/evgeny-nadymov/telegram-react.git', an example of tdweb

1343322562 avatar Oct 24 '24 08:10 1343322562

Then, you can add the parameter verbosity=4 to the URL, but telegram-react uses a very old TDLib version and will not be able to log in anyway now.

levlam avatar Oct 24 '24 09:10 levlam

Then, you can add the parameter verbosity=4 to the URL, but telegram-react uses a very old TDLib version and will not be able to log in anyway now.

The highest version of tdweb is 1.8.0. tdlib is integrated into tdweb. How should i up it, or tdweb is unvailable

1343322562 avatar Oct 24 '24 09:10 1343322562

Then, you can add the parameter verbosity=4 to the URL, but telegram-react uses a very old TDLib version and will not be able to log in anyway now.

I saw tdweb was last submitted 3 years ago. it's unvailable ?

1343322562 avatar Oct 24 '24 09:10 1343322562

Then, you can add the parameter verbosity=4 to the URL, but telegram-react uses a very old TDLib version and will not be able to log in anyway now.

How to package tdlib into a web version.

1343322562 avatar Oct 24 '24 10:10 1343322562

You can build TDLib for web yourself following https://github.com/tdlib/td/tree/master/example/web, but then you will need to update the telegram-react code to support all changes in TDLib API, and there were a lot of API changes since then.

levlam avatar Oct 24 '24 18:10 levlam

You can build TDLib for web yourself following https://github.com/tdlib/td/tree/master/example/web, but then you will need to update the telegram-react code to support all changes in TDLib API, and there were a lot of API changes since then.

I got it. I'll try to manually build it, thanks

1343322562 avatar Oct 25 '24 02:10 1343322562

You can build TDLib for web yourself following https://github.com/tdlib/td/tree/master/example/web, but then you will need to update the telegram-react code to support all changes in TDLib API, and there were a lot of API changes since then.

I got it. I'll try to manually build it, thanks

I am encountering an "UPDATE_APP_TO_LOGIN" error when trying to run the Telegram web client. I'm following the instructions to build TDLib for web myself, but I'm not sure if this error is related to the TDLib version or some other compatibility issue. Do you have any experience with this specific error or suggestions on how to troubleshoot it? I appreciate any guidance you can provide.

lairwaves-dev avatar Mar 20 '25 19:03 lairwaves-dev

@lairwaves-dev You use an old TDLib version and not the latest version that was built manually. Check response to getOption("version") to find the used version.

levlam avatar Mar 20 '25 19:03 levlam

@lairwaves-dev You use an old TDLib version and not the latest version that was built manually. Check response to getOption("version") to find the used version.

Appreciate your quick response! I really appreciate your help. I'll check the getOption("version") response to verify the TDLib version and try building it again.

lairwaves-dev avatar Mar 21 '25 07:03 lairwaves-dev

even version check is showing Promise(). Apparently all API requests are going that way.

0xdsaini avatar Mar 26 '25 06:03 0xdsaini

Update: It worked!

The latest version hosted on npm is 1.8.0 which doesn't work and produces "UPDATE_APP_TO_LOGIN" error. You need to build the latest tdweb from their github repository https://github.com/tdlib/td.git

0xdsaini avatar Mar 26 '25 17:03 0xdsaini