test
This commit is contained in:
parent
c64c544232
commit
55564b6c56
13
workers.go
13
workers.go
@ -283,16 +283,21 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
|||||||
_, err := b.Send(&ch, c.Text)
|
_, err := b.Send(&ch, c.Text)
|
||||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendMsg User")
|
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendMsg User")
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
case commandSendDocument:
|
case commandSendDocument:
|
||||||
if c.ToChatID64 != 0 {
|
if c.ToChatID64 != 0 {
|
||||||
_, err := c.Document.Send(b, c.ToChatID64, nil)
|
ch := tb.Chat{
|
||||||
|
ID: c.ToUserID64,
|
||||||
|
}
|
||||||
|
_, err := c.Document.Send(b, ch, nil)
|
||||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendDocument Chat")
|
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendDocument Chat")
|
||||||
} else if c.ToUserID64 != 0 {
|
} else if c.ToUserID64 != 0 {
|
||||||
_, err := c.Document.Send(b, c.ToUserID64, nil)
|
ch := tb.Chat{
|
||||||
|
ID: c.ToUserID64,
|
||||||
|
}
|
||||||
|
_, err := c.Document.Send(b, &ch, nil)
|
||||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendDocument Chat")
|
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendDocument Chat")
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user