C Library for Telegram bot API that uses json-c and libcurl
You need to install libraries and build tools such as CMake. On Debian-based Linux distributions you can do it as follows:
sudo apt-get install libcurl3-dev libjson0 libjson0-dev cmake binutils makeOn Mac OSX, first insall macports from MacPorts and in Terminal
sudo port install cmake json-c curlTo compile the library execute following commands:
cd [your repository]
mkdir -p Build && cd Build
cmake ../
makeThis will create echobot executable under Build/test folder. This is a simple dummy bot which echoes back the messages sent to it. Head over to Telegram Bots page to read about how to register your brand new echo bot with Telegram platform and see it in action.