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() {
|
||||
return
|
||||
}
|
||||
log.Printf("Message Load\n")
|
||||
if m.ReplyTo != nil {
|
||||
r := m.ReplyTo
|
||||
if r.Document != nil {
|
||||
@ -285,8 +284,10 @@ func botMsgLoad(m *tb.Message) {
|
||||
FromChatID64: m.Chat.ID,
|
||||
}
|
||||
TGCmdQueue <- c
|
||||
log.Printf("Getting file !\n")
|
||||
r, err := b.GetFile(&f)
|
||||
logOnError(err, "botMsgLoad : GetFile")
|
||||
log.Printf("Reading file !\n")
|
||||
buf := new(bytes.Buffer)
|
||||
n, err := buf.ReadFrom(r)
|
||||
logOnError(err, "botMsgLoad : ReadFrom")
|
||||
|
Loading…
Reference in New Issue
Block a user