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