跳到主要内容

message

允许发送消息、轮询更新以及管理集成频道中的消息线程。

clawdbot message <subcommand> [options]

子命令

  • send: 向特定频道和目标发送消息。
  • poll: 手动轮询新消息。
  • react: 向消息添加回应(reaction)。
  • thread: 管理或列出消息线程。

发送选项

  • --channel <id>: 要使用的频道(例如 discordtelegram)。
  • --target <id>: 目标接收者或群组 ID。
  • --message <text>: 要发送的消息内容。
  • --reply-to <id>: 要回复的消息 ID。

示例

# 向 Discord 频道发送消息
clawdbot message send --channel discord --target 123456 --message "来自 CLI 的问候"

# 回复 Telegram 上的特定消息
clawdbot message send --channel telegram --target 7890 --message "收到了!" --reply-to 112233