test
This commit is contained in:
parent
33b17a705c
commit
f651f14620
@ -267,13 +267,13 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
||||
ch := tb.Chat{
|
||||
ID: c.ToChatID64,
|
||||
}
|
||||
_, err := b.Send(&ch, c.Text, opt)
|
||||
_, err := b.Send(&ch, c.Text, &opt)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendMsg Chat")
|
||||
} else if c.ToUserID64 != 0 {
|
||||
u := tb.User{
|
||||
ID: int(c.ToUserID64),
|
||||
}
|
||||
_, err := b.Send(&u, c.Text, opt)
|
||||
_, err := b.Send(&u, c.Text, &opt)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendMsg User")
|
||||
}
|
||||
case commandReplyMsg:
|
||||
@ -284,7 +284,7 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
||||
ID: int(c.FromMsgID64),
|
||||
Chat: &ch,
|
||||
}
|
||||
_, err := b.Reply(&m, c.Text, opt)
|
||||
_, err := b.Reply(&m, c.Text, &opt)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyMsg")
|
||||
case commandSendDocument:
|
||||
if c.ToChatID64 != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user