Skip to content
Discussion options

You must be logged in to vote

Current tgbot-cpp requires Visual Studio 2022 with the Desktop C++ workload, CMake, Ninja, Make and Conan 2. The exact installation commands are in the Windows section of the repository README; run the Make targets from Git Bash.

Build and install the library:

make install INSTALL_PREFIX=build/install

In the bot project, use CMake targets instead of adding .lib files manually:

find_package(TgBot CONFIG REQUIRED)
add_executable(your_bot main.cpp)
target_link_libraries(your_bot PRIVATE TgBot::TgBot)

Configure the consumer with the same Conan-generated toolchain and add the tgbot-cpp install prefix to CMAKE_PREFIX_PATH. An alternative is to add tgbot-cpp as a Git submodule and use add_subdir…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by reo7sp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants