2026-01-09 08:27:17 +01:00
---
2026-01-30 03:15:10 +01:00
summary: "CLI reference for `openclaw message` (send + channel actions)"
2026-01-09 08:27:17 +01:00
read_when:
- Adding or modifying message CLI actions
2026-01-13 06:51:20 +00:00
- Changing outbound channel behavior
2026-01-31 16:04:03 -05:00
title: "message"
2026-01-09 08:27:17 +01:00
---
2026-01-30 03:15:10 +01:00
# `openclaw message`
2026-01-09 08:27:17 +01:00
2026-01-13 06:51:20 +00:00
Single outbound command for sending messages and channel actions
2026-01-23 16:45:37 -06:00
(Discord/Google Chat/Slack/Mattermost (plugin)/Telegram/WhatsApp/Signal/iMessage/MS Teams).
2026-01-09 08:27:17 +01:00
## Usage
```
2026-01-30 03:15:10 +01:00
openclaw message < subcommand > [flags]
2026-01-09 08:27:17 +01:00
```
2026-01-13 06:51:20 +00:00
Channel selection:
2026-01-31 21:13:13 +09:00
2026-01-13 06:51:20 +00:00
- `--channel` required if more than one channel is configured.
- If exactly one channel is configured, it becomes the default.
2026-01-23 16:45:37 -06:00
- Values: `whatsapp|telegram|discord|googlechat|slack|mattermost|signal|imessage|msteams` (Mattermost requires plugin)
2026-01-09 08:27:17 +01:00
2026-01-17 04:06:14 +00:00
Target formats (`--target` ):
2026-01-31 21:13:13 +09:00
2026-01-09 08:27:17 +01:00
- WhatsApp: E.164 or group JID
- Telegram: chat id or `@username`
2026-01-17 03:17:08 +00:00
- Discord: `channel:<id>` or `user:<id>` (or `<@id>` mention; raw numeric ids are treated as channels)
2026-01-23 16:45:37 -06:00
- Google Chat: `spaces/<spaceId>` or `users/<userId>`
2026-01-11 02:44:32 +00:00
- Slack: `channel:<id>` or `user:<id>` (raw channel id is accepted)
2026-01-23 00:19:23 +00:00
- Mattermost (plugin): `channel:<id>` , `user:<id>` , or `@username` (bare ids are treated as channels)
2026-01-11 02:24:35 +00:00
- Signal: `+E.164` , `group:<id>` , `signal:+E.164` , `signal:group:<id>` , or `username:<name>` /`u:<name>`
2026-01-11 03:33:53 +00:00
- iMessage: handle, `chat_id:<id>` , `chat_guid:<guid>` , or `chat_identifier:<id>`
2026-01-09 09:56:36 +01:00
- MS Teams: conversation id (`19:...@thread.tacv2` ) or `conversation:<id>` or `user:<aad-object-id>`
2026-01-09 08:27:17 +01:00
2026-01-17 03:17:08 +00:00
Name lookup:
2026-01-31 21:13:13 +09:00
2026-01-17 03:17:08 +00:00
- For supported providers (Discord/Slack/etc), channel names like `Help` or `#help` are resolved via the directory cache.
2026-01-30 03:15:10 +01:00
- On cache miss, OpenClaw will attempt a live directory lookup when the provider supports it.
2026-01-17 03:17:08 +00:00
2026-01-09 08:27:17 +01:00
## Common flags
2026-01-13 06:51:20 +00:00
- `--channel <name>`
2026-01-09 08:59:54 +01:00
- `--account <id>`
2026-01-17 04:06:14 +00:00
- `--target <dest>` (target channel or user for send/poll/read/etc)
2026-01-17 03:17:08 +00:00
- `--targets <name>` (repeat; broadcast only)
2026-01-09 08:27:17 +01:00
- `--json`
2026-01-09 08:59:54 +01:00
- `--dry-run`
2026-01-09 08:27:17 +01:00
- `--verbose`
## Actions
2026-01-09 08:59:54 +01:00
### Core
- `send`
2026-01-23 16:45:37 -06:00
- Channels: WhatsApp/Telegram/Discord/Google Chat/Slack/Mattermost (plugin)/Signal/iMessage/MS Teams
2026-01-17 04:06:14 +00:00
- Required: `--target` , plus `--message` or `--media`
2026-01-09 08:59:54 +01:00
- Optional: `--media` , `--reply-to` , `--thread-id` , `--gif-playback`
2026-01-16 20:16:35 +00:00
- Telegram only: `--buttons` (requires `channels.telegram.capabilities.inlineButtons` to allow it)
2026-01-11 02:24:35 +00:00
- Telegram only: `--thread-id` (forum topic id)
2026-01-11 02:52:50 +00:00
- Slack only: `--thread-id` (thread timestamp; `--reply-to` uses the same field)
2026-01-11 02:24:35 +00:00
- WhatsApp only: `--gif-playback`
2026-01-09 08:59:54 +01:00
- `poll`
2026-02-14 18:34:30 +01:00
- Channels: WhatsApp/Telegram/Discord/Matrix/MS Teams
2026-01-17 04:06:14 +00:00
- Required: `--target` , `--poll-question` , `--poll-option` (repeat)
2026-01-11 02:57:42 +00:00
- Optional: `--poll-multi`
2026-02-14 18:34:30 +01:00
- Discord only: `--poll-duration-hours` , `--silent` , `--message`
- Telegram only: `--poll-duration-seconds` (5-600), `--silent` , `--poll-anonymous` / `--poll-public` , `--thread-id`
2026-01-09 08:59:54 +01:00
- `react`
2026-01-25 03:20:09 +00:00
- Channels: Discord/Google Chat/Slack/Telegram/WhatsApp/Signal
2026-01-17 04:06:14 +00:00
- Required: `--message-id` , `--target`
2026-01-25 03:20:09 +00:00
- Optional: `--emoji` , `--remove` , `--participant` , `--from-me` , `--target-author` , `--target-author-uuid`
2026-01-11 03:42:34 +00:00
- Note: `--remove` requires `--emoji` (omit `--emoji` to clear own reactions where supported; see /tools/reactions)
2026-01-11 02:24:35 +00:00
- WhatsApp only: `--participant` , `--from-me`
2026-01-25 03:20:09 +00:00
- Signal group reactions: `--target-author` or `--target-author-uuid` required
2026-01-09 08:59:54 +01:00
- `reactions`
2026-01-23 16:45:37 -06:00
- Channels: Discord/Google Chat/Slack
2026-01-17 04:06:14 +00:00
- Required: `--message-id` , `--target`
- Optional: `--limit`
2026-01-09 08:59:54 +01:00
- `read`
2026-01-13 06:16:43 +00:00
- Channels: Discord/Slack
2026-01-17 04:06:14 +00:00
- Required: `--target`
- Optional: `--limit` , `--before` , `--after`
2026-01-11 03:34:17 +00:00
- Discord only: `--around`
2026-01-09 08:59:54 +01:00
- `edit`
2026-01-13 06:16:43 +00:00
- Channels: Discord/Slack
2026-01-17 04:06:14 +00:00
- Required: `--message-id` , `--message` , `--target`
2026-01-09 08:59:54 +01:00
- `delete`
2026-01-15 00:29:28 +00:00
- Channels: Discord/Slack/Telegram
2026-01-17 04:06:14 +00:00
- Required: `--message-id` , `--target`
2026-01-09 08:59:54 +01:00
- `pin` / `unpin`
2026-01-13 06:16:43 +00:00
- Channels: Discord/Slack
2026-01-17 04:06:14 +00:00
- Required: `--message-id` , `--target`
2026-01-09 08:59:54 +01:00
- `pins` (list)
2026-01-13 06:16:43 +00:00
- Channels: Discord/Slack
2026-01-17 04:06:14 +00:00
- Required: `--target`
2026-01-09 08:59:54 +01:00
- `permissions`
2026-01-13 06:16:43 +00:00
- Channels: Discord
2026-01-17 04:06:14 +00:00
- Required: `--target`
2026-01-09 08:59:54 +01:00
- `search`
2026-01-13 06:16:43 +00:00
- Channels: Discord
2026-01-09 08:59:54 +01:00
- Required: `--guild-id` , `--query`
- Optional: `--channel-id` , `--channel-ids` (repeat), `--author-id` , `--author-ids` (repeat), `--limit`
### Threads
- `thread create`
2026-01-13 06:16:43 +00:00
- Channels: Discord
2026-01-17 04:06:14 +00:00
- Required: `--thread-name` , `--target` (channel id)
2026-02-08 16:51:10 +11:00
- Optional: `--message-id` , `--message` , `--auto-archive-min`
2026-01-09 08:59:54 +01:00
- `thread list`
2026-01-13 06:16:43 +00:00
- Channels: Discord
2026-01-09 08:59:54 +01:00
- Required: `--guild-id`
- Optional: `--channel-id` , `--include-archived` , `--before` , `--limit`
- `thread reply`
2026-01-13 06:16:43 +00:00
- Channels: Discord
2026-01-17 04:06:14 +00:00
- Required: `--target` (thread id), `--message`
2026-01-09 08:59:54 +01:00
- Optional: `--media` , `--reply-to`
### Emojis
- `emoji list`
- Discord: `--guild-id`
2026-01-11 02:24:35 +00:00
- Slack: no extra flags
2026-01-09 08:59:54 +01:00
- `emoji upload`
2026-01-13 06:16:43 +00:00
- Channels: Discord
2026-01-09 08:59:54 +01:00
- Required: `--guild-id` , `--emoji-name` , `--media`
- Optional: `--role-ids` (repeat)
### Stickers
- `sticker send`
2026-01-13 06:16:43 +00:00
- Channels: Discord
2026-01-17 04:06:14 +00:00
- Required: `--target` , `--sticker-id` (repeat)
2026-01-09 08:59:54 +01:00
- Optional: `--message`
- `sticker upload`
2026-01-13 06:16:43 +00:00
- Channels: Discord
2026-01-09 08:59:54 +01:00
- Required: `--guild-id` , `--sticker-name` , `--sticker-desc` , `--sticker-tags` , `--media`
### Roles / Channels / Members / Voice
- `role info` (Discord): `--guild-id`
- `role add` / `role remove` (Discord): `--guild-id` , `--user-id` , `--role-id`
2026-01-17 04:06:14 +00:00
- `channel info` (Discord): `--target`
2026-01-09 08:59:54 +01:00
- `channel list` (Discord): `--guild-id`
- `member info` (Discord/Slack): `--user-id` (+ `--guild-id` for Discord)
- `voice status` (Discord): `--guild-id` , `--user-id`
### Events
- `event list` (Discord): `--guild-id`
- `event create` (Discord): `--guild-id` , `--event-name` , `--start-time`
- Optional: `--end-time` , `--desc` , `--channel-id` , `--location` , `--event-type`
### Moderation (Discord)
2026-01-11 03:55:54 +00:00
- `timeout` : `--guild-id` , `--user-id` (optional `--duration-min` or `--until` ; omit both to clear timeout)
2026-01-11 03:35:42 +00:00
- `kick` : `--guild-id` , `--user-id` (+ `--reason` )
- `ban` : `--guild-id` , `--user-id` (+ `--delete-days` , `--reason` )
- `timeout` also supports `--reason`
2026-01-09 08:27:17 +01:00
2026-01-17 03:17:08 +00:00
### Broadcast
- `broadcast`
- Channels: any configured channel; use `--channel all` to target all providers
- Required: `--targets` (repeat)
- Optional: `--message` , `--media` , `--dry-run`
2026-01-09 08:27:17 +01:00
## Examples
Send a Discord reply:
2026-01-31 21:13:13 +09:00
2026-01-09 08:27:17 +01:00
```
2026-01-30 03:15:10 +01:00
openclaw message send --channel discord \
2026-01-17 04:06:14 +00:00
--target channel:123 --message "hi" --reply-to 456
2026-01-09 08:27:17 +01:00
```
2026-02-17 09:58:37 -05:00
Send a Discord message with components:
```
openclaw message send --channel discord \
--target channel:123 --message "Choose:" \
--components '{"text":"Choose a path","blocks":[{"type":"actions","buttons":[{"label":"Approve","style":"success"},{"label":"Decline","style":"danger"}]}]}'
```
See [Discord components ](/channels/discord#interactive-components ) for the full schema.
2026-01-09 08:27:17 +01:00
Create a Discord poll:
2026-01-31 21:13:13 +09:00
2026-01-09 08:27:17 +01:00
```
2026-01-30 03:15:10 +01:00
openclaw message poll --channel discord \
2026-01-17 04:06:14 +00:00
--target channel:123 \
2026-01-09 08:27:17 +01:00
--poll-question "Snack?" \
--poll-option Pizza --poll-option Sushi \
--poll-multi --poll-duration-hours 48
```
2026-02-14 18:34:30 +01:00
Create a Telegram poll (auto-close in 2 minutes):
```
openclaw message poll --channel telegram \
--target @mychat \
--poll-question "Lunch?" \
--poll-option Pizza --poll-option Sushi \
--poll-duration-seconds 120 --silent
```
2026-01-09 10:27:06 +01:00
Send a Teams proactive message:
2026-01-31 21:13:13 +09:00
2026-01-09 10:27:06 +01:00
```
2026-01-30 03:15:10 +01:00
openclaw message send --channel msteams \
2026-01-17 04:06:14 +00:00
--target conversation:19:abc@thread .tacv2 --message "hi"
2026-01-09 10:27:06 +01:00
```
Create a Teams poll:
2026-01-31 21:13:13 +09:00
2026-01-09 10:27:06 +01:00
```
2026-01-30 03:15:10 +01:00
openclaw message poll --channel msteams \
2026-01-17 04:06:14 +00:00
--target conversation:19:abc@thread .tacv2 \
2026-01-09 10:27:06 +01:00
--poll-question "Lunch?" \
--poll-option Pizza --poll-option Sushi
```
2026-01-09 08:27:17 +01:00
React in Slack:
2026-01-31 21:13:13 +09:00
2026-01-09 08:27:17 +01:00
```
2026-01-30 03:15:10 +01:00
openclaw message react --channel slack \
2026-01-17 04:06:14 +00:00
--target C123 --message-id 456 --emoji "✅"
2026-01-09 08:27:17 +01:00
```
2026-01-09 20:46:11 +01:00
2026-01-25 03:20:09 +00:00
React in a Signal group:
2026-01-31 21:13:13 +09:00
2026-01-25 03:20:09 +00:00
```
2026-01-30 03:15:10 +01:00
openclaw message react --channel signal \
2026-01-25 03:20:09 +00:00
--target signal:group:abc123 --message-id 1737630212345 \
--emoji "✅" --target-author-uuid 123e4567-e89b-12d3-a456-426614174000
```
2026-01-09 20:46:11 +01:00
Send Telegram inline buttons:
2026-01-31 21:13:13 +09:00
2026-01-09 20:46:11 +01:00
```
2026-01-30 03:15:10 +01:00
openclaw message send --channel telegram --target @mychat --message "Choose:" \
2026-01-13 00:12:05 +00:00
--buttons '[ [{"text":"Yes","callback_data":"cmd:yes"}], [{"text":"No","callback_data":"cmd:no"}] ]'
2026-01-09 20:46:11 +01:00
```