txim/callback/message.go

18 lines
1.1 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
SendMsgResult int `json:"SendMsgResult"` // 消息发送之后独有
ErrorInfo string `json:"ErrorInfo"` // 消息发送之后独有
UnreadMsgNum int `json:"UnreadMsgNum"` // 消息发送之后独有
}