test
This commit is contained in:
parent
8a366cef4c
commit
3de73d458b
4
bot.go
4
bot.go
@ -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 ?",
|
||||
|
Loading…
Reference in New Issue
Block a user