test
This commit is contained in:
parent
8a366cef4c
commit
3de73d458b
4
bot.go
4
bot.go
@ -4,6 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"ioutil"
|
||||||
"log"
|
"log"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -285,8 +286,9 @@ func botMsgLoad(m *tb.Message) {
|
|||||||
FromChatID64: m.Chat.ID,
|
FromChatID64: m.Chat.ID,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- c
|
TGCmdQueue <- c
|
||||||
_, err := b.GetFile(&f)
|
r, err := b.GetFile(&f)
|
||||||
logOnError(err, "botMsgLoad : GetFile")
|
logOnError(err, "botMsgLoad : GetFile")
|
||||||
|
_, err := ioutil.ReadAll(r.Body)
|
||||||
c = TGCommand{
|
c = TGCommand{
|
||||||
Type: commandReplyMsg,
|
Type: commandReplyMsg,
|
||||||
Text: "File downloaded ?",
|
Text: "File downloaded ?",
|
||||||
|
Loading…
Reference in New Issue
Block a user