txim/callback/message.go

19 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package callback
// MessageCallbackData 单聊消息回调数据
type MessageCallbackData struct {
MsgBody []TIMMessage `json:"MsgBody"` // 消息体
CallbackCommand string `json:"CallbackCommand"` // 回调命令
FromAccount string `json:"From_Account"` // 发送者帐号
ToAccount string `json:"To_Account"` // 接收者帐号
MsgRandom int `json:"MsgRandom"` // 消息随机数
MsgSeq int `json:"MsgSeq"` // 消息序列号
MsgTime int `json:"MsgTime"` // 消息的发送时间戳,单位为秒
MsgKey string `json:"MsgKey"` //消息的唯一标识,可用于 REST API 撤回单聊消息
OnlineOnlyFlag int `json:"OnlineOnlyFlag"` //在线消息为1否则为0
CloudCustomData string `json:"CloudCustomData"` // 消息自定义数据(云端保存,会发送到对端,程序卸载重装后还能拉取到)
SendMsgResult int `json:"SendMsgResult"` // 消息发送之后独有
ErrorInfo string `json:"ErrorInfo"` // 消息发送之后独有
UnreadMsgNum int `json:"UnreadMsgNum"` // 消息发送之后独有
}