send_msg
Send a message to a private chat or group.Request
Message type:
private or groupUser QQ number (for private messages)
Group number (for group messages)
Message content (supports CQ code string, message segment, or array)
Send as plain text (disable CQ code parsing)
Forward Message Extensions
Forward message source name
Forward message news items (array of
{text: string})Forward message summary text
Forward message prompt text
Response
Sent message ID
Resource ID for forwarded messages
Forward ID (alias for
res_id, go-cqhttp compatibility)Example
send_private_msg
Send a private message to a user.Request
User QQ number
Group number (for temporary chats from group)
Message content
Send as plain text
Response
Sent message ID
Example
send_group_msg
Send a message to a group.Request
Group number
Message content
Send as plain text
Response
Sent message ID
Example
delete_msg
Recall a sent message.Request
Message ID to recall
Response
Returns
null on successExample
get_msg
Get message details by message ID.Request
Message ID to retrieve
Response
Message send time (Unix timestamp)
Message type:
private or groupMessage ID
Real message ID
Message sequence number
Sender information
Message content (array format)
Raw message text
Font size
Group number (if group message)
Sender QQ number
Emoji reactions list
Example
get_forward_msg
Get the content of a forwarded message.Request
Message ID (numeric)
Message ID or resource ID (alternative parameter)
Response
Array of forwarded message nodes
Example
Forward Messages
To send forward messages, use thesend_msg action with node-type message segments:
Forward messages must contain only
node type segments. You cannot mix node segments with other message types.Additional Message Actions
set_msg_emoji_like
Add an emoji reaction to a message.Message ID
Emoji ID to react with
mark_msg_as_read
Mark messages as read (go-cqhttp extension).Message ID to mark as read
