openclaw/extensions/telegram
liuyang bf12835995 fix(telegram): make buttons schema optional in message tool
The Telegram plugin injects a `buttons` property into the message tool
schema via `createMessageToolButtonsSchema()`, but without wrapping it
in `Type.Optional()`. This causes TypeBox to include `buttons` in the
JSON Schema `required` array.

In isolated sessions (e.g. cron jobs) where no `currentChannel` is set,
all plugin schemas are merged into the message tool. When the LLM calls
the message tool without a `buttons` parameter, AJV validation fails
with: `buttons: must have required property 'buttons'`.

Wrap the buttons schema in `Type.Optional()` so it is not required.
2026-03-23 14:43:41 +05:30
..
src fix(telegram): make buttons schema optional in message tool 2026-03-23 14:43:41 +05:30
allow-from.ts
api.ts
index.ts
openclaw.plugin.json
package.json
runtime-api.ts fix: harden plugin docker e2e 2026-03-22 23:42:34 -07:00
setup-entry.ts