From 45b1dc51c5a190257c05d886d5c1563b8a532578 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 9 Jun 2019 17:25:22 +0800 Subject: [PATCH] test --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 3c74842..a680939 100644 --- a/bot.go +++ b/bot.go @@ -269,7 +269,7 @@ func botMsgLoad(m *tb.Message) { r := m.ReplyTo if r.Document != nil { d := r.Document - if d.File.FilePath != nil { + if len(d.File.FilePath) > 0 { txt := fmt.Sprintf("Document found at %s\n", d.File.FilePath) c := TGCommand{ Type: commandReplyMsg,