/yatbcpp

Yet Another Telegram Bot C++ Library

Primary LanguageC++zlib LicenseZlib

Yet Another Telegram Bot CPP API

  • Many Features are currently just implemented and might change heavily, feel free to use or wait till first "usefull" version
  • First "useful" version will have something like 0.1.* and not 0.0.*
  • Development Alpha is Currently 0.0.1 ( the latest release will currently always have this tag)
  • For Installation or Compile Instructions, take a look at Install.MD

About

Small Telegram Bot Api which sure misses some functionality, but if you think one should be implemented earlier, feel free to contact me.

For More Information Checkout the Documentation or Bot Api

Features

  • Allows to register on Message or on Command or on InlineQuery
  • sendMessage is possible
  • sendPhoto is possible , use telegramMethodMultipart for sending a local file
  • sendAudio is possible , use telegramMethodMultipart for sending a local file

Requirements

  • cmake
  • jsoncpp
  • CURL
  • threading ( multi threading was touched first, pure single thread might come sooner or later)
  • c++17 or experimental features at least , e.g. gcc7
    • In general use CMAKE_COMPILER / CMAKE_CXX_COMPILER to set an appropriate compiler
      • e.g. Linux supply -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-7
      • e.g. MacOS supply -DCMAKE_C_COMPILER=/usr/local/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-7
  • Support for optional or at least experimental optional

Compile Instructions

  • mkdir -p build
  • cd build
  • cmake ..
  • make
  • sudo make install

apt-get Instructions

Homebrew Instructions

  • brew tap norbekaiser/yatbcpp
  • There is an Issue with optional on sierra / high sierra , please consider compiling with a different compiler brew install yatbcpp --cc=gcc-7

vcpkg Instructions

  • coming soon?

Usage Instructions (find_package)

  • Hello-User Example Github yatbcpp.norbert-ruehl.de
    • Small Example Which requires installed yatbcpp
    • Build is also possible with external_project ( dedicated example will follow soon)

Mirrors and other Repos

Documentation