From 7a2e1bebfe13ee79e5dc9b698dfaa06dcdd643f5 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 6 May 2019 11:29:50 +0800 Subject: [PATCH] err --- td.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td.go b/td.go index 40df058..3c143b5 100644 --- a/td.go +++ b/td.go @@ -83,10 +83,13 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { if *senderUserID64 != 0 { userDetails, err := c.GetUser(int32(*senderUserID64)) + failOnError(err, "getHistory : GetUser") chatDetails, err := c.GetChat(chat) + failOnError(err, "getHistory : GetChat") fmt.Printf("Exporting historic messages for chat %d (%s) from user %d (%s)...\n", chat, chatDetails.Title, *senderUserID64, userDetails.Username) } else { chatDetails, err := c.GetChat(chat) + failOnError(err, "getHistory : GetChat") fmt.Printf("Exporting historic messages for chat %d (%s) ...\n", chat, chatDetails.Title) }