openclaw - ✅(Solved) Fix CLI `message thread create` does not route to Telegram `createForumTopic` [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#54273Fetched 2026-04-08 01:29:52
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
closed ×1cross-referenced ×1locked ×1

openclaw message thread create --channel telegram fails with:

Error: Unsupported Telegram action: thread-create

Error Message

Error: Unsupported Telegram action: thread-create

Root Cause

openclaw message thread create --channel telegram fails with:

Error: Unsupported Telegram action: thread-create

Fix Action

Workaround

Calling the Telegram Bot API directly (createForumTopic) works fine. The runtime-level topic-create action is fully functional — it's just the CLI entry point that's missing the Telegram routing.

PR fix notes

PR #54336: fix(cli): route telegram thread create to topic-create

Description (problem / solution / changelog)

Summary

  • route openclaw message thread create --channel telegram to topic-create
  • keep thread-create unchanged for non-Telegram channels
  • add a focused regression test for the CLI action mapping

Closes #54273

Testing

  • pnpm test src/cli/program/message/register.thread.test.ts
  • pnpm test src/commands/message.test.ts -- --runInBand

Changed files

  • CHANGELOG.md (modified, +1/-0)
  • src/cli/program/message/register.thread.test.ts (added, +89/-0)
  • src/cli/program/message/register.thread.ts (modified, +22/-1)

Code Example

Error: Unsupported Telegram action: thread-create

---

openclaw message thread create \
  --channel telegram \
  --target "-100XXXXXXXXXX" \
  --thread-name "Test Topic" \
  --message "Hello"
RAW_BUFFERClick to expand / collapse

Summary

openclaw message thread create --channel telegram fails with:

Error: Unsupported Telegram action: thread-create

Details

The Telegram runtime layer already has full support for topic-create / createForumTopic — the action alias is registered in TELEGRAM_ACTION_ALIASES, the handler works correctly, and it successfully creates forum topics when invoked directly via the Bot API.

However, the CLI subcommand openclaw message thread create only routes to Discord's threadCreate action. It does not dispatch to Telegram's createForumTopic when --channel telegram is specified.

Steps to Reproduce

openclaw message thread create \
  --channel telegram \
  --target "-100XXXXXXXXXX" \
  --thread-name "Test Topic" \
  --message "Hello"

Expected: Creates a forum topic in the Telegram supergroup. Actual: Error: Unsupported Telegram action: thread-create

Workaround

Calling the Telegram Bot API directly (createForumTopic) works fine. The runtime-level topic-create action is fully functional — it's just the CLI entry point that's missing the Telegram routing.

Environment

  • OpenClaw version: 2026.3.23-2
  • OS: macOS (arm64)
  • Node: v22.22.1

extent analysis

Fix Plan

To fix the issue, we need to update the CLI routing to support Telegram's createForumTopic action.

  • Update the openclaw CLI code to include a conditional check for the --channel flag.
  • If the flag is set to telegram, route the thread create command to the createForumTopic action instead of the default threadCreate action.

Example code snippet:

// In the openclaw CLI handler
if (args.channel === 'telegram') {
  // Route to Telegram's createForumTopic action
  return telegram.createForumTopic({
    chat_id: args.target,
    name: args.threadName,
    message: args.message,
  });
} else {
  // Default routing to Discord's threadCreate action
  return discord.threadCreate({
    // Discord thread create options
  });
}

Verification

To verify the fix, run the following command:

openclaw message thread create \
  --channel telegram \
  --target "-100XXXXXXXXXX" \
  --thread-name "Test Topic" \
  --message "Hello"

If the fix is successful, a new forum topic should be created in the specified Telegram supergroup.

Extra Tips

  • Make sure to update the TELEGRAM_ACTION_ALIASES to include the thread-create alias for createForumTopic.
  • Test the fix with different input parameters to ensure it works as expected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING