This commit is contained in:
shoopea 2019-06-09 15:18:03 +08:00
parent b1637b8af8
commit 0304c06ca0

View File

@ -257,18 +257,17 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
} }
_, err := b.Reply(&m, c.Text) _, err := b.Reply(&m, c.Text)
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyMsg") logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyMsg")
/* case commandReplyDocument:
case commandReplyDocument: ch := tb.Chat{
ch := tb.Chat{ ID: c.FromChatID64,
ID: c.FromChatID64, }
} m := tb.Message{
m := tb.Message{ ID: int(c.FromMsgID64),
ID: int(c.FromMsgID64), Chat: &ch,
Chat: &ch, }
} _, err := b.Reply(&m, c.Document)
_, err := c.Document.Send(b, m, nil) //_, err := c.Document.Send(b, m, nil)
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyDocument") logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyDocument")
*/
case commandSendMsg: case commandSendMsg:
if c.ToChatID64 != 0 { if c.ToChatID64 != 0 {
ch := tb.Chat{ ch := tb.Chat{