test
This commit is contained in:
parent
97951ffeab
commit
2d66971e17
3
bot.go
3
bot.go
@ -264,7 +264,6 @@ func botMsgLoad(m *tb.Message) {
|
|||||||
if !m.Private() {
|
if !m.Private() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Printf("Message Load\n")
|
|
||||||
if m.ReplyTo != nil {
|
if m.ReplyTo != nil {
|
||||||
r := m.ReplyTo
|
r := m.ReplyTo
|
||||||
if r.Document != nil {
|
if r.Document != nil {
|
||||||
@ -285,8 +284,10 @@ func botMsgLoad(m *tb.Message) {
|
|||||||
FromChatID64: m.Chat.ID,
|
FromChatID64: m.Chat.ID,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- c
|
TGCmdQueue <- c
|
||||||
|
log.Printf("Getting file !\n")
|
||||||
r, err := b.GetFile(&f)
|
r, err := b.GetFile(&f)
|
||||||
logOnError(err, "botMsgLoad : GetFile")
|
logOnError(err, "botMsgLoad : GetFile")
|
||||||
|
log.Printf("Reading file !\n")
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
n, err := buf.ReadFrom(r)
|
n, err := buf.ReadFrom(r)
|
||||||
logOnError(err, "botMsgLoad : ReadFrom")
|
logOnError(err, "botMsgLoad : ReadFrom")
|
||||||
|
Loading…
Reference in New Issue
Block a user