Rare find

Botlib. Write Telegram bots in C that run for years without maintenance.

github.com/antirez/botlib

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

February 2026
  • Add support for audio and document file types
  • Fix memory leaks and inconsistent filename in botGetFile()
  • Document Telegram APIs, Sqlite wrapper, JSON wrapper, and SDS strings
  • Add pthread_detach() to prevent thread resource leaks
  • Fix voice file_id to use sdsnew() instead of direct pointer
January 2026
  • Merge pull request #7 from mbono/main
October 2025
  • Fixed segmentation fault on key query (i.e. Foo?) on Linux
June 2025
  • Fix botGetUsername(), issue #6.
  • Pass the username to the request handler.
  • README: simplify example + doc placeholders.
April 2024
  • Merge pull request #2 from eltociear/patch-1
  • Merge pull request #4 from JoakimJoensuu/patch-1
  • Fix a bug in finding an object using special "*"
November 2023
  • README: what this is and motivations.
  • Fix typo in botlib.c, referece -> reference
  • Mention entities and botGetUsername() API.
  • Files download API.
  • Extract voice file ID and report it in the request.
  • Request handler should free the request object.
  • editMessageText() API added.