test
This commit is contained in:
parent
5ddf475be4
commit
ae00d64a92
@ -274,18 +274,18 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
|||||||
case commandSendDocument:
|
case commandSendDocument:
|
||||||
if c.ToChatID64 != 0 {
|
if c.ToChatID64 != 0 {
|
||||||
ch := tb.Chat{
|
ch := tb.Chat{
|
||||||
ID: c.ToUserID64,
|
ID: c.ToChatID64,
|
||||||
}
|
}
|
||||||
d := c.Document
|
d := c.Document
|
||||||
_, err := b.Send(&ch, &d)
|
_, err := b.Send(&ch, &d)
|
||||||
//_, 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{
|
u := tb.User{
|
||||||
ID: c.ToUserID64,
|
ID: c.ToUserID64,
|
||||||
}
|
}
|
||||||
d := c.Document
|
d := c.Document
|
||||||
_, err := b.Send(&ch, &d)
|
_, err := b.Send(&u, &d)
|
||||||
//_, 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")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user