Relock: record the >= pin form
cba2c4f6
A Sigil library for the Telegram Bot API. Provides a complete bot framework with long-polling, command/message handlers, inline keyboards, MarkdownV2 formatting, and file uploads.
tg-bot-run) or non-blocking (tg-bot-tick)Add sigil-telegram as a dependency in your package.sgl:
(from-git url: "codeberg:sigil/sigil-telegram" package: "sigil-telegram")Then build a bot:
(import (sigil telegram))
(define bot (make-tg-bot token: (getenv "TELEGRAM_BOT_TOKEN")))
(tg-on-command bot "/hello"
(lambda (update)
(tg-reply bot update "Hello!")))
(tg-on-message bot
(lambda (update)
(tg-reply bot update
(tg-bold "Echo: ")
(tg-escape-markdown (tg-message-text (tg-update-message update))))))
(tg-bot-run bot)| Module | Description |
|---|---|
(sigil telegram) | Top-level re-exports |
(sigil telegram types) | Data types: tg-user, tg-chat, tg-message, tg-update |
(sigil telegram client) | Low-level API calls, message/media operations |
(sigil telegram bot) | Bot framework, handlers, long-polling loop |
(sigil telegram format) | MarkdownV2 formatting and inline keyboards |
sigil deps install
sigil build
sigil testBSD-3-Clause
$ git clone https://codeberg.org/sigil/sigil-telegram
v0.10.6 — latest by version, released 4 Aug 2026
All releases — 10 tags in this repository.
One page per file, and every line has a permalink.
Relock: record the >= pin form
cba2c4f6
8f983946
e8a6471c
cc300ec5
fb598ce2
Merge branch 'feat/video-upload'
471ef335
Pin dependencies to version tags
ae63899d
e20a62e4
6695d3a2
The last 20 commits keep a page here. Everything older lives in the clone.