txim/callback/group.go

16 lines
1.1 KiB
Go
Raw Permalink 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
// GroupMessageCallbackData 群消息回调
type GroupMessageCallbackData struct {
CallbackCommand string `json:"CallbackCommand"` // 回调命令
GroupId string `json:"GroupId"` // 群组 ID
Type string `json:"Type"` // 群组类型 Work(好友工作群) | Public(陌生人社交群) | Meeting(临时会议群) | AVChatRoom(直播群) | Community(社群)
FromAccount string `json:"From_Account"` // 发送者
OperatorAccount string `json:"Operator_Account"` // 请求的发起者
Random int `json:"Random"` // 随机数
OnlineOnlyFlag int `json:"OnlineOnlyFlag"` // 在线消息为1否则为0直播群忽略此属性为默认值0
MsgSeq int `json:"MsgSeq"` // 消息序列号,一条消息的唯一标示,群聊消息使用 MsgSeq 进行排序MsgSeq 值越大消息越靠后
MsgTime int `json:"MsgTime"` // 消息发送的时间戳,对应后台 Server 时间
MsgBody []TIMMessage `json:"MsgBody"` // 消息体
}