This commit is contained in:
shoopea 2020-01-16 23:26:25 +08:00
parent 699a3d75a6
commit b866c92bd5
2 changed files with 2 additions and 2 deletions

2
bot.go
View File

@ -966,7 +966,7 @@ func botGWithdraw(m *tb.Message) {
p := JobPayloadGWithdraw{ p := JobPayloadGWithdraw{
MsgID64: int64(m.ID), MsgID64: int64(m.ID),
ChatID64: m.Chat.ID, ChatID64: m.Chat.ID,
UserID64: int64(m.Sender.ID), User: m.Sender.Username,
Status: 0, Status: 0,
Validated: false, Validated: false,
} }

2
def.go
View File

@ -408,7 +408,7 @@ type JobPayloadGWithdrawItem struct {
type JobPayloadGWithdraw struct { type JobPayloadGWithdraw struct {
MsgID64 int64 `json:"msg_id"` MsgID64 int64 `json:"msg_id"`
ChatID64 int64 `json:"chat_id"` ChatID64 int64 `json:"chat_id"`
UserID64 int64 `json:"user_id"` User string `json:"user"`
Items []JobPayloadGWithdrawItem `json:"items"` Items []JobPayloadGWithdrawItem `json:"items"`
Status int64 `json:"status"` Status int64 `json:"status"`
CleanupMsg []ChatWarsMessage `json:"cleanup_msg"` CleanupMsg []ChatWarsMessage `json:"cleanup_msg"`