kdeps-listeners-telegram_updates
v1.0.0Telegram bot messages: polls getUpdates and runs the workflow once for each update. The event is the update: input('message').text, input('message').chat.id. Reply with the telegram_post component (sendMessage).
set listeners / shelf workflow
LLM context: none - kdeps uses it without sending it to the model
Where it runs
Part of the listeners set, used in workflow and agent mode. Ready-made event sources for deploy.input.listen: a Telegram poll, Slack Socket Mode and the Discord Gateway, each one transport block in YAML.
- a workflow names a listener under deploy.input.listen
- the listener is read from the listeners set when kdeps run startslisteners/telegram_updates
- its transport (poll, websocket, ...) starts
- each event runs the workflow once
Loaded by: kdeps (agent loop), kdeps run, kdeps exec
In the code: kdeps (agent loop)listen.WakeAddrslisten.readListenerAsset
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.
Also installs what it requires, when missing or older: tools/telegram_get.
Pin a version with kdeps install listeners/telegram_updates@<version>.
Contents
Telegram bot messages: polls getUpdates and runs the workflow once for each update. The event is the update: input('message').text, input('message').chat.id. Reply with the telegram_post component (sendMessage).
- kdeps
- >=3.6.0
requires:
tools/telegram_get: ""
poll:
tool: telegram_get
with:
path: getUpdates?timeout=0&offset={{.cursor}}
every: 2s
items: result
cursor: "{{add (int .item.update_id) 1}}"
start: "0"
version: 1.0.0
kdeps: ">=3.6.0"
description: 'Telegram bot messages: polls getUpdates and runs the workflow once for each update. The event is the update: input(''message'').text, input(''message'').chat.id. Reply with the telegram_post component (sendMessage).'
requires:
tools/telegram_get: ""
poll:
tool: telegram_get
with:
path: 'getUpdates?timeout=0&offset={{.cursor}}'
every: 2s
items: result
# The next getUpdates asks for the updates after the last one that ran.
cursor: '{{add (int .item.update_id) 1}}'
start: "0"
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