Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
openclaw messageSingle outbound command for sending messages and channel actions (Discord/Google Chat/iMessage/Matrix/Mattermost (plugin)/Microsoft Teams/Signal/Slack/Telegram/WhatsApp).
textopenclaw message <subcommand> [flags]
Channel selection:
--channeldiscord|googlechat|imessage|matrix|mattermost|msteams|signal|slack|telegram|whatsappopenclaw message--channelTarget formats (
--target@usernamechannel:<id>user:<id><@id>spaces/<spaceId>users/<userId>channel:<id>user:<id>channel:<id>user:<id>@username+E.164group:<id>signal:+E.164signal:group:<id>username:<name>u:<name>chat_id:<id>chat_guid:<guid>chat_identifier:<id>@user:server!room:server#alias:server19:...@thread.tacv2conversation:<id>user:<aad-object-id>Name lookup:
Help#help--channel <name>--account <id>--target <dest>--targets <name>--json--dry-run--verboseopenclaw message--channeldiscord:...--account--accountdefaultsend--target--message--media--presentation--media--presentation--delivery--pin--reply-to--thread-id--gif-playback--force-document--silent--presentationtextcontextdividerbuttonsselect--delivery{ "pin": true }--pin--force-document--thread-id--thread-id--reply-to--silent--gif-playbackpoll--target--poll-question--poll-option--poll-multi--poll-duration-hours--silent--message--poll-duration-seconds--silent--poll-anonymous--poll-public--thread-idreact--message-id--target--emoji--remove--participant--from-me--target-author--target-author-uuid--remove--emoji--emoji--participant--from-me--target-author--target-author-uuidreactions--message-id--target--limitread--target--limit--before--after--aroundedit--message-id--message--targetdelete--message-id--targetpinunpin--message-id--targetpins--targetpermissions--targetsearch--guild-id--query--channel-id--channel-ids--author-id--author-ids--limitthread create--thread-name--target--message-id--message--auto-archive-minthread list--guild-id--channel-id--include-archived--before--limitthread reply--target--message--media--reply-toemoji list--guild-idemoji upload--guild-id--emoji-name--media--role-idssticker send--target--sticker-id--messagesticker upload--guild-id--sticker-name--sticker-desc--sticker-tags--mediarole info--guild-idrole addrole remove--guild-id--user-id--role-idchannel info--targetchannel list--guild-idmember info--user-id--guild-idvoice status--guild-id--user-idevent list--guild-idevent create--guild-id--event-name--start-time--end-time--desc--channel-id--location--event-typetimeout--guild-id--user-id--duration-min--untilkick--guild-id--user-id--reasonban--guild-id--user-id--delete-days--reasontimeout--reasonbroadcast--channel all--targets <target...>--message--media--dry-runSend a Discord reply:
textopenclaw message send --channel discord \ --target channel:123 --message "hi" --reply-to 456
Send a message with semantic buttons:
textopenclaw message send --channel discord \ --target channel:123 --message "Choose:" \ --presentation '{"blocks":[{"type":"buttons","buttons":[{"label":"Approve","value":"approve","style":"success"},{"label":"Decline","value":"decline","style":"danger"}]}]}'
Core renders the same
presentationSend a richer presentation payload:
bashopenclaw message send --channel googlechat --target spaces/AAA... \ --message "Choose:" \ --presentation '{"title":"Deploy approval","tone":"warning","blocks":[{"type":"text","text":"Choose a path"},{"type":"buttons","buttons":[{"label":"Approve","value":"approve"},{"label":"Decline","value":"decline"}]}]}'
Create a Discord poll:
textopenclaw message poll --channel discord \ --target channel:123 \ --poll-question "Snack?" \ --poll-option Pizza --poll-option Sushi \ --poll-multi --poll-duration-hours 48
Create a Telegram poll (auto-close in 2 minutes):
textopenclaw message poll --channel telegram \ --target @mychat \ --poll-question "Lunch?" \ --poll-option Pizza --poll-option Sushi \ --poll-duration-seconds 120 --silent
Send a Teams proactive message:
textopenclaw message send --channel msteams \ --target conversation:19:abc@thread.tacv2 --message "hi"
Create a Teams poll:
textopenclaw message poll --channel msteams \ --target conversation:19:abc@thread.tacv2 \ --poll-question "Lunch?" \ --poll-option Pizza --poll-option Sushi
React in Slack:
textopenclaw message react --channel slack \ --target C123 --message-id 456 --emoji "✅"
React in a Signal group:
textopenclaw message react --channel signal \ --target signal:group:abc123 --message-id 1737630212345 \ --emoji "✅" --target-author-uuid 123e4567-e89b-12d3-a456-426614174000
Send Telegram inline buttons through generic presentation:
textopenclaw message send --channel telegram --target @mychat --message "Choose:" \ --presentation '{"blocks":[{"type":"buttons","buttons":[{"label":"Yes","value":"cmd:yes"},{"label":"No","value":"cmd:no"}]}]}'
Send a Teams card through generic presentation:
bashopenclaw message send --channel msteams \ --target conversation:19:abc@thread.tacv2 \ --presentation '{"title":"Status update","blocks":[{"type":"text","text":"Build completed"}]}'
Send a Telegram image as a document to avoid compression:
bashopenclaw message send --channel telegram --target @mychat \ --media ./diagram.png --force-document
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine