From dbc9bc7dc5d67d21df384af235bb03007f69d2db Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 9 Jun 2019 18:02:44 +0800 Subject: [PATCH] test --- bot.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot.go b/bot.go index bf41c82..5c96d1e 100644 --- a/bot.go +++ b/bot.go @@ -268,8 +268,8 @@ func botMsgLoad(m *tb.Message) { if m.ReplyTo != nil { r := m.ReplyTo if r.Document != nil { - d := r.Document - if d.File.OnDisk() { + f := r.Document.File + if f.OnDisk() { c := TGCommand{ Type: commandReplyMsg, Text: "File on disk !", @@ -277,7 +277,7 @@ func botMsgLoad(m *tb.Message) { FromChatID64: m.Chat.ID, } TGCmdQueue <- c - } else if d.File.InCloud() { + } else if f.InCloud() { c := TGCommand{ Type: commandReplyMsg, Text: "File in cloud !", @@ -285,7 +285,7 @@ func botMsgLoad(m *tb.Message) { FromChatID64: m.Chat.ID, } TGCmdQueue <- c - r, err := b.GetFile(d.File) + r, err := b.GetFile(&f) logOnError(err, "botMsgLoad : GetFile") c := TGCommand{ Type: commandReplyMsg, @@ -294,7 +294,7 @@ func botMsgLoad(m *tb.Message) { FromChatID64: m.Chat.ID, } TGCmdQueue <- c - if d.File.OnDisk() { + if f.OnDisk() { c := TGCommand{ Type: commandReplyMsg, Text: "Yes !",