sendMsg

huan_kong

287字小于1分钟

2023-07-01

函数列表

1.快捷回复

函数名: replyMsg

函数参数:

字段类型说明默认值
contextObjectcontext 对象undefined
messageString信息undefined
actionObject设置需要执行的操作{}
toEmojiBoolean是否转换为 emojitrue

action:

字段类型说明默认值
atBoolean是否要 at 发送者false
replyBoolean是否要用回复形式false

2.发送私信

函数名: sendMsg

函数参数:

字段类型说明默认值
user_idNumberQQundefined
messageString信息undefined
toEmojiBoolean是否转换为 emojitrue

3.合并发送

函数名: sendForwardMsg

函数参数:

字段类型说明默认值
contextObjectcontext 对象undefined
messagesArrayCQNode 对象undefined
toEmojiBoolean是否转换为 emojitrue

此方法可能不是一看就能用明白,详细请查看 go-cqhttp 的文档

4.消息反转义为 emoji

函数名: parseToEmoji

函数参数:

字段类型说明默认值
messageString消息undefined

默认是不处理对象的,如果需要处理对象的话,需要在对需要反转义的 emoji 处手动调用次方法