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

View File

@ -257,7 +257,6 @@ 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,
@ -266,9 +265,9 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
ID: int(c.FromMsgID64),
Chat: &ch,
}
_, err := c.Document.Send(b, m, nil)
_, 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{