test
This commit is contained in:
parent
b1637b8af8
commit
0304c06ca0
@ -257,7 +257,6 @@ 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,
|
||||||
@ -266,9 +265,9 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
|||||||
ID: int(c.FromMsgID64),
|
ID: int(c.FromMsgID64),
|
||||||
Chat: &ch,
|
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")
|
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{
|
||||||
|
Loading…
Reference in New Issue
Block a user