From 59b1f98679bd4f9b21cc92a861db6655ec314605 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sat, 10 Mar 2018 16:09:59 +0300 Subject: Update docs --- docs/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/index.html') diff --git a/docs/index.html b/docs/index.html index 301458e..395c272 100644 --- a/docs/index.html +++ b/docs/index.html @@ -83,13 +83,13 @@ $(document).ready(function(){initNavTree('index.html','');});
tgbot-cpp Documentation
-

Go to GitHub

+

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

+

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 -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.

+

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.

Samples

All samples are located here

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