kdeps-tools-telegram_get
v1.0.0Read the Telegram Bot API: GET https://api.telegram.org/bot<TOKEN>/METHOD and return the JSON. Use it for getMe, getUpdates, getChat and getFile. Requires TELEGRAM_BOT_TOKEN, TELEGRAM_TOKEN or the vault secret telegram_bot_token.
set tools / shelf tools
LLM context: ~105 tokens when loaded (prompt or tool definition)
Where it runs
Part of the tools set, used in workflow and agent mode. What the model is told about each built-in tool: its description, usage notes and parameters. kdeps runs the tool itself.
- the agent loop builds the request
- the tool definitions are sent to the modeltools/telegram_get
- the model calls a tool
- kdeps runs it
- the result goes back to the model
Loaded by: kdeps (agent loop), kdeps new, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update, kdeps upgrade
In the code: kdeps (agent loop)executor.(*Engine).Executeparallel.Runjudge.Panelagent.runJudgePanelagent.definedAs
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Pin a version with kdeps install tools/telegram_get@<version>.
Contents
Read the Telegram Bot API: GET https://api.telegram.org/bot<TOKEN>/METHOD and return the JSON. Use it for getMe, getUpdates, getChat and getFile. Requires TELEGRAM_BOT_TOKEN, TELEGRAM_TOKEN or the vault secret telegram_bot_token.
| Parameter | Type | Description |
|---|---|---|
| path * | string | The Bot API method, with its query string. Examples: getMe, getUpdates?offset=0&timeout=0, getChat?chat_id=123. |
HTTP call (declared in YAML, no Go code)
https://api.telegram.org/bot{{.env.TOKEN}}/{{trimPrefix .args.path "/"}}Offered when set: TELEGRAM_BOT_TOKEN | TELEGRAM_TOKEN | secret:telegram_bot_token
- User-Agent:
- kdeps
version: 1.0.0
description: 'Read the Telegram Bot API: GET https://api.telegram.org/bot<TOKEN>/METHOD and return the JSON. Use it for getMe, getUpdates, getChat and getFile. Requires TELEGRAM_BOT_TOKEN, TELEGRAM_TOKEN or the vault secret telegram_bot_token.'
parameters:
path:
type: string
description: 'The Bot API method, with its query string. Examples: getMe, getUpdates?offset=0&timeout=0, getChat?chat_id=123.'
required: true
http:
env:
TOKEN: [TELEGRAM_BOT_TOKEN, TELEGRAM_TOKEN, "secret:telegram_bot_token"]
method: GET
# The host is fixed; path only adds to it. The token is part of the URL path.
url: 'https://api.telegram.org/bot{{.env.TOKEN}}/{{trimPrefix .args.path "/"}}'
headers:
User-Agent: kdeps
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 1.0.0 | 11/26/2026 | active | GitHub v1.0.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 11/26/2026