td icon indicating copy to clipboard operation
td copied to clipboard

Is it due to a version mismatch or other reasons that tdlib prompts for an update?

Open adminJSUI opened this issue 1 year ago • 13 comments

I am currently facing a problem and don't know how to solve it: when logging in to the frontend, it prompts that 406 needs to update the software. Is it because my VPN is from Hong Kong or for other reasons? If it is updating TDlib, what version is required? Do we need the latest version of tdlib? 屏幕截图 2024-11-03 193047

adminJSUI avatar Nov 03 '24 12:11 adminJSUI

I am using: https://github.com/tdlib/td/tree/master/example/web Is this error caused by tdlib in this version? I have already placed it in the tdweb and public directories

adminJSUI avatar Nov 03 '24 12:11 adminJSUI

You need to manually build tdweb 1.8.39 using the instructions provided at https://github.com/tdlib/td/tree/master/example/web and use it instead of the outdated tdweb package available through npm.

levlam avatar Nov 03 '24 14:11 levlam

An error occurred while installing here Uploading 23.png…

adminJSUI avatar Nov 03 '24 14:11 adminJSUI

24 This manual installation architecture example

adminJSUI avatar Nov 03 '24 14:11 adminJSUI

26 25

adminJSUI avatar Nov 03 '24 14:11 adminJSUI

May I ask if the installation of this EMSDK has been completed?

adminJSUI avatar Nov 03 '24 14:11 adminJSUI

Follow the instructions at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html to install and activate emsdk 3.1.1.

levlam avatar Nov 03 '24 14:11 levlam

Has this been activated? Uploading 27.png…

adminJSUI avatar Nov 03 '24 15:11 adminJSUI

Is it enough to activate EMSDK?

adminJSUI avatar Nov 03 '24 16:11 adminJSUI

./emsdk install 3.1.1
./emsdk activate 3.1.1
source ./emsdk_env.sh

levlam avatar Nov 03 '24 16:11 levlam

When activated, this prompt appears: node-20.18.0-64bit releases-5ee64de9809592480da01372880ea11debd6c740-64bit Next steps:

  • To conveniently access emsdk tools from the command line, consider adding the following directories to your PATH: /www/wwwroot/tc.toim.cn/node_modules/tdweb/emsdk /www/wwwroot/tc.toim.cn/node_modules/tdweb/emsdk/upstream/emscripten
  • This can be done for the current shell by running: source "/www/wwwroot/tc.toim.cn/node_modules/tdweb/emsdk/emsdk_env.sh"
  • Configure emsdk in your shell startup scripts by running: echo 'source "/www/wwwroot/tc.toim.cn/node_modules/tdweb/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile

adminJSUI avatar Nov 03 '24 16:11 adminJSUI

Do you need to proceed to the next step?

adminJSUI avatar Nov 03 '24 16:11 adminJSUI

You need to follow all instructions in README.

levlam avatar Nov 03 '24 18:11 levlam