Skip to content

[Bug]: Telegram actions schema missing editMessage and createForumTopic fields #35497

@ingyukoh

Description

@ingyukoh

Bug type

Behavior bug (incorrect output/state without crash)

Summary

The TelegramActionConfig TypeScript type (src/config/types.telegram.ts:14-23) defines 6 fields:

  • reactions, sendMessage, deleteMessage, editMessage, sticker, createForumTopic

But the Zod schema (src/config/zod-schema.providers-core.ts:224-232) only has 4:

  • reactions, sendMessage, deleteMessage, sticker

Missing from schema: editMessage and createForumTopic

Because the schema uses .strict(), users who set these documented config options get:

Config invalid
Problem:
  - channels.telegram.accounts.main.actions: Unrecognized key(s) in object: 'editMessage'

Steps to reproduce

  1. Add to openclaw.json:
{
  "channels": {
    "telegram": {
      "accounts": {
        "main": {
          "token": "...",
          "actions": { "editMessage": true, "createForumTopic": true }
        }
      }
    }
  }
}
  1. Run openclaw gateway restart
  2. Get config validation error

Expected behavior

Config accepted — these fields are defined in the TypeScript type and used by the codebase.

Actual behavior

Config rejected with "Unrecognized key" error due to .strict() on the Zod schema.

OpenClaw version

2026.3.3 (current main)

Operating system

All

Install method

Any

Impact and severity

Users cannot enable/disable editMessage or createForumTopic actions via config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions