From 584b25be54015e515a6d87a8b8e8e754fd607f96 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 17 May 2019 16:31:13 +0800 Subject: [PATCH] test --- bot.go | 4 ++-- workers.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.go b/bot.go index 12e88fa..bc94935 100644 --- a/bot.go +++ b/bot.go @@ -121,8 +121,8 @@ func botMsgRescan(m *tb.Message) { TGCmdQueue <- c } else { c := TGCommand{ - Type: commandReplyMsg, - Text: fmt.Sprint("Rescaning msg #%s", m.Payload), "Rescaning all msg scheduled.", + Type: commandReplyMsg, + Text: fmt.Sprint("Rescaning msg #%s", m.Payload), FromMsgID64: int64(m.ID), FromChatID64: m.Chat.ID, } diff --git a/workers.go b/workers.go index ceabffb..8575870 100644 --- a/workers.go +++ b/workers.go @@ -242,7 +242,7 @@ func MQTGCmdWorker(id int, cmds <-chan TGCommand) { false, // immediate amqp.Publishing{ ContentType: "application/json", - Body: []byte(b), + Body: []byte(j), }) logOnError(err, "MQTGCmdWorker["+strconv.Itoa(id)+"] : Publishing message.") }