This commit is contained in:
shoopea 2019-06-09 18:05:54 +08:00
parent 8a366cef4c
commit 3de73d458b

4
bot.go
View File

@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"ioutil"
"log"
"regexp"
"strconv"
@ -285,8 +286,9 @@ func botMsgLoad(m *tb.Message) {
FromChatID64: m.Chat.ID,
}
TGCmdQueue <- c
_, err := b.GetFile(&f)
r, err := b.GetFile(&f)
logOnError(err, "botMsgLoad : GetFile")
_, err := ioutil.ReadAll(r.Body)
c = TGCommand{
Type: commandReplyMsg,
Text: "File downloaded ?",