LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
README.md
Go to the documentation of this file.
1 # LibTgBotPP
2 A simple Telegram Bot C++ library
3 
4 # Requirements
5 
6 To compile, you just need a C++-Compiler and CMake and some libraries:
7 * libstdc++-dev
8 * libcurlpp-dev
9 * libjsoncpp-dev
10 
11 and - of course - their dependencies.
12 
13 To compile and install the lib:
14 * mkdir build
15 * cd build/
16 * cmake ../
17 * make
18 * sudo make install
19 * sudo ldconfig
20 
21 To use the library, you need:
22 * libcurlpp
23 * libjsoncpp
24 
25 You can use example01.cc to start your own bot or CGI script.
26 
27 Do not forget to send your web hook URL to Telegram's API network,
28 otherwise, you cannot send commands to your bot.
29 
30 In case you build a CGI script, do not forget to add a valid
31 certificate to your web server, because your bot is only called via
32 HTTPS!
std::string start(Telegram::TelegramBot *tg, Telegram::TCommandLine args)
Definition: example01.cc:82