Botlib: C Telegram bot framework

BOTLIB is a framework for creating Telegram C bots. Please note that the API is still a work in progress and should not be considered reliable until further notice. To install, create your bot using the Telegram @BotFather and store the API key in a file called “apikey.txt” in the bot’s working directory. Alternatively, you can provide the API key through the command line argument “–apikey”. Feel free to personalize the bot by editing the “mybot.c” file. To build the bot, you will need libcurl and libsqlite installed. Simply run “make” and then execute with “./mybot”. Use the “–debug” option for debug mode and “–verbose” for a more moderate output. For more command line options, run “mybot –help”. Remember to make the bot an administrator of your Telegram channel to read all messages. Private messages will still work regardless. By default, the bot will create an SQLite database in the working directory, but you can specify another path using the “–dbfile” command line option. The bot API is a work in progress, so please refer to the “mybot.c” example for details. The basic usage is simple, but for more advanced features like the Sqlite3 ab

https://github.com/antirez/botlib

To top