A Telegram™ Bot API client for
Jennifer programs: send messages, photos and
files, attach inline keyboards and edit them on a button press, set the
command menu, and receive updates by polling or through a webhook. Replaces
the telegram module of Jennifer's standard library (shipped since 0.18.0,
deprecated from 0.26.0, removed in 0.28.0) with the same API and more; only
the import differs.
This deck is part of Deckyard, community decks for Jennifer.
Up to 0.3.0 this deck was @jennifer/telegram. To switch, change the [decks]
entry to "@deckyard/telegram" = "^0.5.0" and the imports to "@deckyard/telegram/".
jvc add @deckyard/telegramThis vendors the deck to vendor/deckyard/telegram/. Without jvc, unpack the
src/ subtree of a release archive (deckyard-telegram-<version>.tar.gz) there.
import "@deckyard/telegram/" as telegram;
def bot as telegram.Bot init telegram.bot(os.getEnv("TELEGRAM_BOT_TOKEN"));
telegram.sendMessage($bot, 12345678, "deploy finished");
examples/send.j sends a plain message and one with a URL button;
examples/counter.j is an interactive bot whose buttons edit its own message.
Jennifer 0.28.0 or newer and network access to the Telegram Bot API. Calls need
the default jennifer binary; the stock jennifer-tiny has no network driver.
tools/check-all.sh # the full gate, as CI runs it
jennifer test src/telegram_test.j # the test overlay
tools/check-docs.sh # docs against the code
tools/pack.sh dist # build the release archiveLGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <mplx@jennifer-lang.dev>.
tools/check-headers.sh checks every source file's SPDX header against
deck.toml.
Telegram™ is a trademark of Telegram FZ-LLC. Other product and company names may be trademarks of their respective owners. They are used only to identify the products this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by Telegram FZ-LLC.