In these examples we are demonstrating how to build a Telegram bot using the library developed by @reo7sp: tgbot-cpp
📙 Slides corresponding to the workshop on March 21th by Madrid C/C++ User Group
We are using Conan to handle the dependencies in these examples, it requires a minimum configuration to run:
$> pip install conan
$> conan profile show default
Some dependencies are not in the official repositories, so we will need to add unofficial ones (or create packages using the recipes):
$> conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
$> conan remote add jgsogo https://api.bintray.com/conan/jgsogo/conan-packages
Just enter the directory containing the example and build as usual:
$> cd <path/to/example>
$> mkdir build && cd build
$> conan install .. --build=missing
$> cmake .. -DCMAKE_BUILD_TYPE=Release
$> cmake --build .
You will also need to create the bot itself in Telegram and get a token.