From e175d516beb39070fe0384cb09b1d47a411b3a34 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 24 Aug 2019 14:01:26 +0800 Subject: [PATCH] fix delay --- def.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/def.go b/def.go index 58d4777..15c7b33 100644 --- a/def.go +++ b/def.go @@ -49,16 +49,16 @@ type MQKeepAlive struct { } type TGCommand struct { - Type int64 `json:"type"` - FromChatID64 int64 `json:"from_chat_id"` - FromUserID64 int64 `json:"from_user_id"` - FromMsgID64 int64 `json:"from_msg_id"` - ToChatID64 int64 `json:"to_chat_id"` - ToUserID64 int64 `json:"to_user_id"` - Text string `json:"text"` - Document tb.Document `json:"document"` - ParseMode int64 `json:"parse_mode"` - Delay time.Delay `json:"delay"` + Type int64 `json:"type"` + FromChatID64 int64 `json:"from_chat_id"` + FromUserID64 int64 `json:"from_user_id"` + FromMsgID64 int64 `json:"from_msg_id"` + ToChatID64 int64 `json:"to_chat_id"` + ToUserID64 int64 `json:"to_user_id"` + Text string `json:"text"` + Document tb.Document `json:"document"` + ParseMode int64 `json:"parse_mode"` + Delay time.Duration `json:"delay"` } type ChatWarsCastle struct {