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

tdweb api status #3099

Open 1343322562 opened 1 week ago

1343322562 commented 1 week ago

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

levlam commented 1 week ago

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

1343322562 commented 1 week ago

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

levlam commented 1 week ago

What app do you use?

1343322562 commented 1 week ago

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

levlam commented 1 week ago

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

1343322562 commented 1 week ago

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

levlam commented 1 week ago

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.

1343322562 commented 1 week ago

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

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

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.

levlam commented 1 week ago

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.

1343322562 commented 1 week ago

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