From 73c8b79fd56618c23d9bbbaa46e79f38e9c38eab Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 11 Jun 2019 10:57:02 +0800 Subject: [PATCH] test --- mq.go | 1 + td.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mq.go b/mq.go index 5e88e2e..37fd631 100644 --- a/mq.go +++ b/mq.go @@ -86,6 +86,7 @@ func MQReceiveMsgWorker(id int, cmd chan<- TGCommand) { err = json.Unmarshal(d.Body, &c) logOnError(err, "MQReceiveMsgWorker["+strconv.Itoa(id)+"] : Can't unmarshal.\n"+string(d.Body)) if err == nil { + log.Printf("****************************** New MQ message ******************************\n%s\n****************************************************************************\n", string(d.Body)) cmd <- c } } diff --git a/td.go b/td.go index 5e691bb..f5b4dab 100644 --- a/td.go +++ b/td.go @@ -36,7 +36,7 @@ func ListenMQ(c *tdlib.Client, msgs <-chan TGCommand) { now = time.Now() } b, _ := json.Marshal(m) - log.Printf("****************************** New MQ message ******************************\n%s\n****************************************************************************\n", string(b)) + log.Printf("****************************** New MQ command ******************************\n%s\n****************************************************************************\n", string(b)) switch m.Type { case commandSendMsg: msgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(m.Text, nil), true, true)