From 2e6a6072e81a1845e7365e5f2dcd10cc9cb8ff56 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Thu, 26 Jan 2017 14:31:14 +0300 Subject: Bot compilation instructions in README. Update docs --- docs/index.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'docs/index.html') diff --git a/docs/index.html b/docs/index.html index 4076380..a11dfd6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -83,10 +83,13 @@ $(document).ready(function(){initNavTree('index.html','');});
tgbot-cpp Documentation
-

-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 libboost-iostreams-dev

To compile the library execute this commands:

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

That's all. All you have to do now is just link compiled library to your project.

-

If you want, you can also use Docker to build and run your bot. Just set the base image of your's Dockerfile to reo7sp/tgbot-cpp.

+

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 libboost-iostreams-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 -lboost_iostreams -lssl -lcrypto -lpthread

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

Samples

All samples are located here

@@ -101,7 +104,7 @@ Licence