{"name":"@deckyard/telegram","description":"A Telegram Bot API client","versions":{"0.4.0":{"version":"0.4.0","kind":"git","url":"https://github.com/deckyard/deck-telegram.git","ref":"0.4.0","commit":"4c3fd1d9a95a7048f407fc3bc192ada3dccbf221","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.27.0"},"capabilities":["net"],"keywords":["telegram","bot","chat","notifications"],"description":"A Telegram Bot API client","publishedAt":"1795603753","repoId":1442163852,"repoOwnerId":346943577,"repoOwner":"deckyard"}},"readme":"# @deckyard/telegram\n\n[![test](https://github.com/deckyard/deck-telegram/actions/workflows/test.yml/badge.svg)](https://github.com/deckyard/deck-telegram/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://deckyard.github.io/deck-telegram/)\n[![release](https://img.shields.io/github/v/release/deckyard/deck-telegram)](https://github.com/deckyard/deck-telegram/releases/latest)\n\nA [Telegram™ Bot API](https://core.telegram.org/bots/api) client for\n[Jennifer](https://jennifer-lang.dev/) programs: send messages, photos and\nfiles, attach inline keyboards, and poll for updates. Replaces the `telegram`\nmodule of Jennifer's standard library (shipped since 0.18.0, deprecated from\n0.26.0, removed in 0.28.0); the API is unchanged, only the import differs.\n\nUp to 0.3.0 this deck was `@jennifer/telegram`. To switch, change the `[decks]`\nentry to `\"@deckyard/telegram\" = \"^0.4.0\"` and the imports to `\"@deckyard/telegram/\"`.\n\n**[Documentation](https://deckyard.github.io/deck-telegram/)**\n\n## Install\n\n```sh\njvc add @deckyard/telegram\n```\n\nThis vendors the deck to `vendor/deckyard/telegram/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`deckyard-telegram-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nimport \"@deckyard/telegram/\" as telegram;\n\ndef bot as telegram.Bot init telegram.bot(os.getEnv(\"TELEGRAM_BOT_TOKEN\"));\ntelegram.sendMessage($bot, 12345678, \"deploy finished\");\n```\n\n`examples/send.j` sends a plain message and one with a URL button.\n\n## Requirements\n\nJennifer 0.27.0 or newer and network access to the Telegram Bot API. Calls need\nthe default `jennifer` binary; the stock `jennifer-tiny` has no network driver.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/telegram_test.j      # the test overlay\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n\n`tools/check-headers.sh` checks every source file's SPDX header against\n`deck.toml`.\n\n## Trademarks\n\nTelegram™ is a trademark of Telegram FZ-LLC. Other product and company names\nmay be trademarks of their respective owners. They are used only to identify\nthe products this deck works with. This deck is an independent project, not\naffiliated with, sponsored or endorsed by Telegram FZ-LLC.\n","movedFrom":["@jennifer/telegram"]}