openclaw/src/agents/tools
Josh Long 506bed5aed feat(telegram): add sticker support with vision caching
Add support for receiving and sending Telegram stickers:

Inbound:
- Receive static WEBP stickers (skip animated/video)
- Process stickers through dedicated vision call for descriptions
- Cache vision descriptions to avoid repeated API calls
- Graceful error handling for fetch failures

Outbound:
- Add sticker action to send stickers by fileId
- Add sticker-search action to find cached stickers by query
- Accept stickerId from shared schema, convert to fileId

Cache:
- Store sticker metadata (fileId, emoji, setName, description)
- Fuzzy search by description, emoji, and set name
- Persist to ~/.clawdbot/telegram/sticker-cache.json

Config:
- Single `channels.telegram.actions.sticker` option enables both
  send and search actions

🤖 AI-assisted: Built with Claude Code (claude-opus-4-5)
Testing: Fully tested - unit tests pass, live tested on dev gateway
The contributor understands and has reviewed all code changes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 12:47:23 +05:30
..
agent-step.ts
agents-list-tool.ts style: format agents list tool 2026-01-25 13:20:41 +00:00
browser-tool.schema.ts refactor: route browser control via gateway/node 2026-01-27 03:24:54 +00:00
browser-tool.test.ts refactor: route browser control via gateway/node 2026-01-27 03:24:54 +00:00
browser-tool.ts refactor: route browser control via gateway/node 2026-01-27 03:24:54 +00:00
canvas-tool.ts style: run oxfmt 2026-01-16 21:11:55 +00:00
common.test.ts
common.ts
cron-tool.test.ts Merge origin/main into fix-discord-accountId 2026-01-23 09:15:44 +00:00
cron-tool.ts Agents: expand cron tool description (#1988) 2026-01-25 20:23:40 -06:00
discord-actions-guild.ts feat(discord): add configurable privileged Gateway Intents (GuildPresences, GuildMembers) (#2266) 2026-01-26 10:39:54 -06:00
discord-actions-messaging.ts fix: honor accountId in message actions 2026-01-23 09:06:04 +00:00
discord-actions-moderation.ts fix: honor accountId in message actions 2026-01-23 09:06:04 +00:00
discord-actions.test.ts fix: stabilize ci tests 2026-01-23 09:52:22 +00:00
discord-actions.ts
gateway-tool.ts fix: follow up config.patch restarts/docs/tests (#1653) 2026-01-24 23:33:13 +00:00
gateway.test.ts
gateway.ts
image-tool.helpers.ts
image-tool.test.ts fix: resolve ci failures 2026-01-18 08:45:29 +00:00
image-tool.ts refactor: add aws-sdk auth mode and tighten provider auth 2026-01-20 08:28:40 +00:00
memory-tool.does-not-crash-on-errors.test.ts style: oxfmt 2026-01-17 10:26:08 +00:00
memory-tool.ts feat: add experimental session memory source 2026-01-17 18:53:52 +00:00
message-tool.test.ts fix: normalize session keys and outbound mirroring 2026-01-24 11:57:11 +00:00
message-tool.ts feat(telegram): add silent message option (#2382) 2026-01-26 13:14:13 -08:00
nodes-tool.ts fix: add node tool failure context 2026-01-21 09:55:10 +00:00
nodes-utils.ts feat: add node core/ui versions in bridge 2026-01-18 15:59:54 +00:00
session-status-tool.ts fix: resolve session ids in session tools 2026-01-24 11:09:11 +00:00
sessions-announce-target.test.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
sessions-announce-target.ts fix: normalize delivery routing context 2026-01-17 06:38:33 +00:00
sessions-helpers.test.ts fix: sanitize assistant session text (#1456) (thanks @zerone0x) 2026-01-23 07:05:31 +00:00
sessions-helpers.ts fix: resolve session ids in session tools 2026-01-24 11:09:11 +00:00
sessions-history-tool.ts fix: resolve session ids in session tools 2026-01-24 11:09:11 +00:00
sessions-list-tool.gating.test.ts
sessions-list-tool.ts fix: resolve session ids in session tools 2026-01-24 11:09:11 +00:00
sessions-send-helpers.ts Telegram: preserve topic IDs in restart notifications (#1807) 2026-01-25 21:20:39 -06:00
sessions-send-tool.a2a.ts refactor(logging): split config + subsystem imports 2026-01-19 00:15:44 +00:00
sessions-send-tool.gating.test.ts
sessions-send-tool.ts fix: resolve session ids in session tools 2026-01-24 11:09:11 +00:00
sessions-spawn-tool.ts fix: cron sessions inherit allowAgents from parent agent config (#1771) 2026-01-25 13:10:48 +00:00
slack-actions.test.ts fix: read Slack thread replies for message reads (#1450) (#1450) 2026-01-23 04:17:45 +00:00
slack-actions.ts fix: read Slack thread replies for message reads (#1450) (#1450) 2026-01-23 04:17:45 +00:00
telegram-actions.test.ts test: cover tg/group/topic inline button targets (#1072) — thanks @danielz1z 2026-01-17 08:00:16 +00:00
telegram-actions.ts feat(telegram): add sticker support with vision caching 2026-01-27 12:47:23 +05:30
tts-tool.ts feat: move TTS into core (#1559) (thanks @Glucksberg) 2026-01-24 08:00:44 +00:00
web-fetch-utils.ts fix: add readability fallback extraction 2026-01-24 02:15:13 +00:00
web-fetch.ssrf.test.ts fix: harden web fetch SSRF and redirects 2026-01-21 02:54:14 +00:00
web-fetch.ts fix: harden url fetch dns pinning 2026-01-26 16:05:29 +00:00
web-search.test.ts fix: validate web_search freshness (#1688) (thanks @JonUleis) 2026-01-25 04:23:25 +00:00
web-search.ts fix: validate web_search freshness (#1688) (thanks @JonUleis) 2026-01-25 04:23:25 +00:00
web-shared.ts style: apply oxfmt 2026-01-18 02:19:35 +00:00
web-tools.enabled-defaults.test.ts fix: validate web_search freshness (#1688) (thanks @JonUleis) 2026-01-25 04:23:25 +00:00
web-tools.fetch.test.ts Web: trim HTML error bodies in web_fetch (#1193) 2026-01-19 00:24:16 +00:00
web-tools.readability.test.ts feat: improve web_fetch readability extraction 2026-01-16 23:18:01 +00:00
web-tools.ts refactor: split web tools and docs 2026-01-18 01:42:54 +00:00
whatsapp-actions.test.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
whatsapp-actions.ts