Update ChatWarsMessage with Callbacks

This commit is contained in:
shoopea 2019-12-12 11:49:03 +08:00
parent 2e65edc76b
commit b9c2ab7c9f

7
def.go
View File

@ -95,8 +95,12 @@ type ChatWarsItems struct {
Quantity int64 `json:"quantity"`
}
type ChatWarsCallback struct {
Name string `json:"name"`
Data []byte `json:"data"`
}
type ChatWarsMessage struct {
ObjID64 int64 `json:"obj_id"`
TGUserID64 int64 `json:"tg_user_id"`
TGSenderUserID64 int64 `json:"tg_sender_user_id"`
Date time.Time `json:"date"`
@ -104,6 +108,7 @@ type ChatWarsMessage struct {
ChatID64 int64 `json:"chat_id"`
Text string `json:"text"`
IsForwarded bool `json:"is_forwarded"`
Callbacks []ChatWarsCallback `json:"callbacks"`
}
type ChatWarsExchangeDeal struct {