From 4ddf8c29f6b2a882f6fdcd75841386c3b1b6f098 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 10 Jun 2019 21:31:19 +0800 Subject: [PATCH] test --- td.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td.go b/td.go index f2a33a2..c6eb438 100644 --- a/td.go +++ b/td.go @@ -34,6 +34,8 @@ func ListenMQ(c *tdlib.Client, msgs <-chan TGCommand) { time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second))) now = time.Now() } + b := json.Marshal(m) + log.Printf("New MQ message :\n%s\n", string(b)) switch m.Type { case commandSendMsg: msgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(m.Text, nil), true, true)