From beee1818b15bf5977836fafe0291d24a60d6960a Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 24 Aug 2019 14:01:36 +0800 Subject: [PATCH] fix delay --- def.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/def.go b/def.go index 8217124..16859ff 100644 --- a/def.go +++ b/def.go @@ -7,16 +7,16 @@ import ( ) 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 ChatWarsMessage struct {