test
This commit is contained in:
parent
8ae650fb41
commit
0657fa1218
@ -276,15 +276,15 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
|||||||
ch := tb.Chat{
|
ch := tb.Chat{
|
||||||
ID: c.ToUserID64,
|
ID: c.ToUserID64,
|
||||||
}
|
}
|
||||||
//_, err := b.Send(&ch, c.Document)
|
_, err := b.Send(&ch, c.Document)
|
||||||
_, err := c.Document.Send(b, ch, nil)
|
//_, 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 {
|
||||||
ch := tb.Chat{
|
ch := tb.Chat{
|
||||||
ID: c.ToUserID64,
|
ID: c.ToUserID64,
|
||||||
}
|
}
|
||||||
//_, err := b.Send(&ch, c.Document)
|
_, err := b.Send(&ch, c.Document)
|
||||||
_, err := c.Document.Send(b, &ch, nil)
|
//_, 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