From af80fb148a5e030e0c62e5ef958a1a798e7adfc4 Mon Sep 17 00:00:00 2001 From: Dhole Date: Mon, 29 May 2017 14:01:42 -0700 Subject: [PATCH] Fix Messages argument parsing --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 051c1f8..ed3e3ca 100644 --- a/client.go +++ b/client.go @@ -644,7 +644,7 @@ func (cli *Client) Messages(roomID, from, to string, dir rune, limit int) (resp query["to"] = to } if limit != 0 { - query["limit"] = string(limit) + query["limit"] = strconv.Itoa(limit) } urlPath := cli.BuildURLWithQuery([]string{"rooms", roomID, "messages"}, query)