Go to GitHub

Library compilation

Firstly you need to install some dependencies such as Boost and build tools such as CMake. On Debian-based distibutives you can do it with these commands:

sudo apt-get install g++ make binutils cmake libssl-dev libboost-system-dev

To compile the library execute this commands:

cd /path/where/you/have/cloned/the/library/repository
cmake .
make -j4
sudo make install

Bot compilation

With CMake: Example CMakeLists.txt

Without CMake:

g++ telegram_bot.cpp -o telegram_bot --std=c++11 -I/usr/local/include -lTgBot -lboost_system -lssl -lcrypto -lpthread

Also: You can use Docker to build and run your bot. Set the base image of your's Dockerfile to reo7sp/tgbot-cpp.


All samples are located here.


The MIT License.