diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-12 01:48:35 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-12 01:48:35 +0300 |
commit | 74a872a30bf023cf37d9d3d30e28c25d84c69ffe (patch) | |
tree | 1ae2497e083b21971fb027c53056301012213113 /telegram/handlers.go | |
parent | 9e785a56d29f617a29afb941476c73f43bcdb3cc (diff) |
Timezone support
Diffstat (limited to 'telegram/handlers.go')
-rw-r--r-- | telegram/handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/handlers.go b/telegram/handlers.go index 0cc3fad..d6aba94 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -103,13 +103,13 @@ func (c *Client) updateHandler() { // new user discovered func (c *Client) updateUser(update *client.UpdateUser) { c.cache.users[update.User.Id] = update.User - show, status := userStatusToText(update.User.Status) + show, status := c.userStatusToText(update.User.Status) c.processStatusUpdate(int64(update.User.Id), status, show) } // user status changed func (c *Client) updateUserStatus(update *client.UpdateUserStatus) { - show, status := userStatusToText(update.Status) + show, status := c.userStatusToText(update.Status) c.processStatusUpdate(int64(update.UserId), status, show, gateway.SPImmed(false)) } |