2025-05-21 12:27:03 +02:00
2025-05-21 12:27:03 +02:00
2025-05-21 12:27:03 +02:00
2025-02-04 17:22:13 +01:00
2025-02-04 17:22:13 +01:00
2025-05-21 12:27:03 +02:00

tgbot

A minimal C Telegram API Framework

Requirements

  • meson
  • 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

Roadmap

  • sendPhoto
  • sendAudio
  • sendDocument
  • sendVideo
Description
A minimal C Telegram Bot API library (gh mirror)
Readme GPL-3.0 104 KiB
Languages
C 96.5%
Meson 3.5%