From a65f995cccc46e559d2a66c3f84f8d62268846a1 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 1 Feb 2020 20:04:38 +0800 Subject: [PATCH] test --- td.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/td.go b/td.go index 2359159..10492e7 100644 --- a/td.go +++ b/td.go @@ -199,6 +199,13 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { } } + if msg.ID == 21585985536 { + x, err := json.Marshal(msg) + logOnError(err, "getHistory : Marshal") + fmt.Printf("DUMP : \n%s\n", string(x)) + return + } + if m.ID64 != 0 && (*senderUserID64 == 0 || m.TGSenderUserID64 == *senderUserID64) { MQCWMsgQueue <- m msgCount = msgCount + 1