From b17b4fd57e6448d91b22f0bee96153a79d040ece Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 4 May 2019 18:14:34 +0800 Subject: [PATCH] debug --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index 7613148..a2c3ed7 100644 --- a/td.go +++ b/td.go @@ -97,7 +97,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { for _, msg := range msgs.Messages { switch msg.Content.GetMessageContentEnum() { case tdlib.MessageTextType: - fmt.Printf("msg.ForwardInfo : %s.\n", string(msg.Content.GetMessageContentEnum())) + fmt.Printf("msg.ForwardInfo : %s.\n", msg.ForwardInfo.GetMessageForwardInfoEnum()) if msg.ForwardInfo == nil { m = ChatWarsMessage{ SenderUserID64: int64(msg.SenderUserID),