This commit is contained in:
shoopea 2019-06-11 12:02:54 +08:00
parent 48cef9ba94
commit 0dd600a6cc

View File

@ -254,7 +254,7 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
for c := range cmds { for c := range cmds {
j, err := json.Marshal(c) j, err := json.Marshal(c)
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : Marshal(c)") logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : Marshal(c)")
log.Printf("TGCmdWorker["+strconv.Itoa(id)+"] : new command.\n%s\n", string(j)) //log.Printf("TGCmdWorker["+strconv.Itoa(id)+"] : new command.\n%s\n", string(j))
opt := tb.SendOptions{} opt := tb.SendOptions{}
switch c.ParseMode { switch c.ParseMode {
case cmdParseModePlain: case cmdParseModePlain: