2026-05-27 00:42:14 +02:00
2026-03-19 02:10:52 +01:00
2026-03-19 02:10:52 +01:00
2026-03-25 00:35:28 +01:00
2026-05-27 00:42:14 +02:00
2026-01-30 02:16:40 +01:00
2026-01-30 01:40:42 +01:00
2026-01-30 02:16:40 +01:00
2026-05-27 00:42:03 +02:00
2026-03-19 02:10:52 +01:00

tgbot

A minimal C Telegram API library.

Requirements

  • libcurl
  • json-c

Note: This project is purely educational. It does not aim to cover the entire Telegram Bot API, but only a selected subset of methods.

How to build

Linux
$ meson setup build
$ cd build
$ meson compile
$ meson install
Windows

Install all the required library with vcpkg and then copy the DLL file.

$ meson setup build --native-file meson-vcpkg.txt
$ cd build
$ meson compile
$ meson install

Examples

You can find some examples here.

Supported Types

  • InlineKeyboardMarkup
    • Note: Standard KeyboardMarkup is intentionally not supported.

Supported Methods

  • getMe
  • sendMessage
  • editMessageText
  • sendDice
  • sendPhoto

Roadmap

  • sendAudio
  • sendDocument
  • sendVideo
S
Description
A minimal C Telegram Bot API library (gh mirror)
Readme GPL-3.0 134 KiB
Languages
C 93.9%
Meson 6.1%