From f26983eb9a0b99afcba6232c67cb93c95dccf7bb Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 11 Jun 2019 11:16:13 +0800 Subject: [PATCH] test --- td.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/td.go b/td.go index f5b4dab..1c680d7 100644 --- a/td.go +++ b/td.go @@ -48,7 +48,9 @@ func ListenMQ(c *tdlib.Client, msgs <-chan TGCommand) { case commandRefreshMsg: u, err := c.GetMessage(m.FromChatID64, m.FromMsgID64) logOnError(err, "ListenMQ : commandRefreshMsg") - log.Printf("ListenMQ : commandRefreshMsg (%d - %d)\n", m.FromChatID64, m.FromMsgID64) + b, err := json.Marshal(u) + logOnError(err, "ListenMQ : Marshal") + log.Printf("ListenMQ : commandRefreshMsg (%d - %d) :\n%s\n", m.FromChatID64, m.FromMsgID64, string(b)) if err != nil && u.Content.GetMessageContentEnum() == tdlib.MessageTextType { txt := u.Content.(*tdlib.MessageText).Text.Text