From d8d9b9886f2f27bacb4f8c67e1285d3bf6fd06c9 Mon Sep 17 00:00:00 2001 From: Aman Mangal Date: Mon, 23 Jan 2017 22:53:21 +0530 Subject: [PATCH] Update timezone to be of float type (#24) * Update timezone to be of float type Reference: https://developers.facebook.com/docs/graph-api/reference/user Fixes #23 * Update README --- README.md | 1 + profile.go | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d0ad943..eb85f2a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ This is a Go library for making bots to be used on Facebook messenger. It is bui `paked/messenger` is a pretty stable library however, changes will be made which might break backwards compatibility. For the convenience of its users, these are documented here. +- [23/1/17](https://github.com/paked/messenger/commit/1145fe35249f8ce14d3c0a52544e4a4babdc15a4): Updating timezone type to `float64` in profile struct - [12/9/16](https://github.com/paked/messenger/commit/47f193fc858e2d710c061e88b12dbd804a399e57): Removing unused parameter `text string` from function `(r *Response) GenericTemplate`. - [20/5/16](https://github.com/paked/messenger/commit/1dc4bcc67dec50e2f58436ffbc7d61ca9da5b943): Leaving the `WebhookURL` field blank in `Options` will yield a URL of "/" instead of a panic. - [4/5/16](https://github.com/paked/messenger/commit/eb0e72a5dcd3bfaffcfe88dced6d6ac5247f9da1): The URL to use for the webhook is changable in the `Options` struct. diff --git a/profile.go b/profile.go index f773c4a..002edb7 100644 --- a/profile.go +++ b/profile.go @@ -2,10 +2,10 @@ package messenger // Profile is the public information of a Facebook user type Profile struct { - FirstName string `json:"first_name"` - LastName string `json:"last_name"` - ProfilePicURL string `json:"profile_pic"` - Locale string `json:"locale"` - Timezone int `json:"timezone"` - Gender string `json:"gender"` + FirstName string `json:"first_name"` + LastName string `json:"last_name"` + ProfilePicURL string `json:"profile_pic"` + Locale string `json:"locale"` + Timezone float64 `json:"timezone"` + Gender string `json:"gender"` }