test
This commit is contained in:
parent
b1637b8af8
commit
0304c06ca0
23
workers.go
23
workers.go
@ -257,18 +257,17 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
||||
}
|
||||
_, err := b.Reply(&m, c.Text)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyMsg")
|
||||
/*
|
||||
case commandReplyDocument:
|
||||
ch := tb.Chat{
|
||||
ID: c.FromChatID64,
|
||||
}
|
||||
m := tb.Message{
|
||||
ID: int(c.FromMsgID64),
|
||||
Chat: &ch,
|
||||
}
|
||||
_, err := c.Document.Send(b, m, nil)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyDocument")
|
||||
*/
|
||||
case commandReplyDocument:
|
||||
ch := tb.Chat{
|
||||
ID: c.FromChatID64,
|
||||
}
|
||||
m := tb.Message{
|
||||
ID: int(c.FromMsgID64),
|
||||
Chat: &ch,
|
||||
}
|
||||
_, err := b.Reply(&m, c.Document)
|
||||
//_, err := c.Document.Send(b, m, nil)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyDocument")
|
||||
case commandSendMsg:
|
||||
if c.ToChatID64 != 0 {
|
||||
ch := tb.Chat{
|
||||
|
Loading…
Reference in New Issue
Block a user