ShipMyAgent
CommandsService

sma chat

Chat service actions (status/test/reconnect/send/react/context/history)

sma chat

Send messages, react to messages, inspect context, and read chat history.

Hierarchy note: sma chat is a service action command, not a top-level command. Top-level entry is sma service.

Usage

sma chat <subcommand> [options]

Subcommands

  • status: show channel link status
  • test: run channel connectivity checks
  • reconnect: reconnect channels (all by default, or one channel)
  • send: send message
  • react: react to message (primarily Telegram)
  • context: view conversation context snapshot
  • history: read chat history

status/test/reconnect key options

  • --channel <telegram|feishu|qq>: run against one channel only (all channels if omitted)

send key options

  • --text <text>: message body
  • --stdin: read message body from stdin
  • --text-file <file>: read message body from file
  • --chat-key <chatKey>: target conversation
  • --delay <ms>: delayed send
  • --time <time>: scheduled send (unix sec/ms or ISO)
  • --reply: send as reply_to_message

react key options

  • --emoji <emoji>: emoji, default ๐Ÿ‘
  • --message-id <id>: target message ID
  • --chat-key <chatKey>: target conversation
  • --big: Telegram large emoji (is_big)

history key options

  • --chat-key <chatKey>
  • --context-id <contextId>
  • --limit <n>
  • --direction <all|inbound|outbound>
  • --before-ts <ts> / --after-ts <ts> (milliseconds)

Examples

sma chat send --chat-key telegram-chat-123 --text "done"
sma chat react --chat-key telegram-chat-123 --emoji "โœ…"
sma chat context --chat-key telegram-chat-123
sma chat history --chat-key telegram-chat-123 --limit 50
sma chat status
sma chat test --channel telegram
sma chat reconnect --channel qq

Notes

This command group usually requires an active agent runtime:

sma agent on