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

tdlib Versionsnumber #2828

Closed JnZn558 closed 5 months ago

JnZn558 commented 7 months ago

Are there version number defined in source code? For example MAJOR 18 MINOR 26 for example, if yes, where do I find the version defines? I could not find about it

pannu5788 commented 7 months ago

no

levlam commented 7 months ago

If you use JSON interface, you can use td_execute with getOption("version") to get TDLib version in runtime.

If you want instead to get the version from the source code, then you can check https://github.com/tdlib/td/blob/b41f3219dc5a79c337f4c1d128cf6aae60f00a1c/CMakeLists.txt#L9.

If you use a statically typed C/C++ interface, then you can only support one specific version of the library.