Go to file
2017-06-09 17:39:27 +02:00
doc/html Updated docs 2017-06-07 20:38:03 +02:00
examples Added a simple Telegram client 2017-06-07 20:36:32 +02:00
include/Telegram Fixed include 2017-06-09 17:39:27 +02:00
src More docu 2017-06-07 20:22:45 +02:00
.gitignore Added patterns 2016-05-04 14:04:28 +02:00
CMakeLists.txt Fixed CMakeLists 2016-05-03 09:19:14 +02:00
Doxyfile Added path of examples to Doxyfile 2017-06-07 19:59:06 +02:00
LICENSE Initial commit 2016-04-29 19:33:05 +02:00
README.md Fixed include 2017-06-09 17:39:27 +02:00
tgbotpp.pc Fixed typos, added pkgconfig file 2016-04-30 08:30:21 +02:00

LibTgBotPP

A simple Telegram Bot C++ library

Requirements

To compile, you just need a C++-Compiler and CMake and some libraries:

  • libstdc++-dev
  • libcurlpp-dev
  • libjsoncpp-dev
  • libcurl4-openssl-dev (or similar)

and - of course - their dependencies.

To compile and install the lib:

  • mkdir build
  • cd build/
  • cmake ../
  • make
  • sudo make install
  • sudo ldconfig

To use the library, you need:

  • libcurlpp
  • libjsoncpp

You can use example01.cc to start your own bot or CGI script.

Do not forget to send your web hook URL to Telegram's API network, otherwise, you cannot send commands to your bot.

In case you build a CGI script, do not forget to add a valid certificate to your web server, because your bot is only called via HTTPS!