{"repo":"reo7sp/tgbot-cpp","free":true,"listed":false,"github":"https://github.com/reo7sp/tgbot-cpp","clone":"git clone https://github.com/reo7sp/tgbot-cpp.git","description":"C++ library for Telegram bot API","language":"C++","stars":1185,"topics":["telegram","telegram-api","telegram-bot","bot","cpp"],"license":"MIT","category":"chat-messaging","readme_excerpt":"tgbot-cpp C++ library for Telegram bot API. Documentation is located here. State - [x] Telegram Bot API 10.2. Example Simple echo bot which sends everything it receives: Other examples are available in examples : webhook server, custom curl client, proxy usage, inline and reply keyboards, file upload/download, and command configuration. Build and run an example against a locally installed copy of the library: To build all examples: Alternatively, build and run the example in Docker: To build and run all examples at once use Docker Compose. You need to copy env.example to env , fill in the values and then run: Usage in CMake For an installed tgbot-cpp package, add it to your CMakeLists.txt : See the complete echobot CMakeLists.txt. The repository can also be added directly with add subdirectory , for example when it is included as a Git submodule. See the submodule example. For Docker, you can use reo7sp/tgbot-cpp as the base image. Dependencies Required to build the library: - C++20 compiler; - CMake 3.16 or newer; - Conan 2; - Make. Additionally required for code generation: - Python; - Poetry. Conan installs the library dependencies: - Boost; - nlohmann/json; - libcurl; - GoogleTest when tests are enabled. These libraries do not need to be installed separately. Installing dependencies Linux On Debian or Ubuntu, install the build tools and the official Conan package: For development, also install Python, Poetry and clang-format: macOS Install the build tools with Homebrew: F","default_branch":null,"files":null,"tree":[],"storefront":"/r/reo7sp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/reo7sp/tgbot-cpp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}