test
This commit is contained in:
parent
0775b445ad
commit
c64c544232
@ -257,6 +257,7 @@ 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,
|
||||
@ -267,6 +268,7 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
||||
}
|
||||
_, err := c.Document.Send(b, m, nil)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : ReplyDocument")
|
||||
*/
|
||||
case commandSendMsg:
|
||||
if c.ToChatID64 != 0 {
|
||||
ch := tb.Chat{
|
||||
@ -281,6 +283,7 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
||||
_, err := b.Send(&ch, c.Text)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendMsg User")
|
||||
}
|
||||
/*
|
||||
case commandSendDocument:
|
||||
if c.ToChatID64 != 0 {
|
||||
_, err := c.Document.Send(b, c.ToChatID64, nil)
|
||||
@ -289,6 +292,7 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
||||
_, err := c.Document.Send(b, c.ToUserID64, nil)
|
||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : SendDocument Chat")
|
||||
}
|
||||
*/
|
||||
default:
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user