This commit is contained in:
shoopea 2019-06-09 17:25:22 +08:00
parent f8489a4f2f
commit 45b1dc51c5

2
bot.go
View File

@ -269,7 +269,7 @@ func botMsgLoad(m *tb.Message) {
r := m.ReplyTo r := m.ReplyTo
if r.Document != nil { if r.Document != nil {
d := r.Document 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) txt := fmt.Sprintf("Document found at %s\n", d.File.FilePath)
c := TGCommand{ c := TGCommand{
Type: commandReplyMsg, Type: commandReplyMsg,