diff options
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)) } |