test
This commit is contained in:
parent
0657fa1218
commit
5ddf475be4
@ -276,14 +276,16 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
||||
ch := tb.Chat{
|
||||
ID: c.ToUserID64,
|
||||
}
|
||||
_, err := b.Send(&ch, c.Document)
|
||||
d := c.Document
|
||||
_, err := b.Send(&ch, &d)
|
||||
//_, 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 := b.Send(&ch, c.Document)
|
||||
d := c.Document
|
||||
_, err := b.Send(&ch, &d)
|
||||
//_, err := c.Document.Send(b, &ch, nil)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendDocument Chat")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user