You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hauke Zühl 271f94cfb9 Updated HTML files 7 years ago
doc/html Updated HTML files 7 years ago
examples Type fixing for ARM (e.g. Raspberry Pis) 8 years ago
include/Telegram Sending files by file name 7 years ago
src More docu 7 years ago
.gitignore Added patterns 9 years ago
CMakeLists.txt Fixed CMakeLists 9 years ago
Doxyfile Added path of examples to Doxyfile 7 years ago
LICENSE Initial commit 9 years ago
README.md Hint to example01 added 7 years ago
tgbotpp.pc Fixed typos, added pkgconfig file 9 years ago

README.md

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

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!