diff options
Diffstat (limited to 'telegram/handlers.go')
-rw-r--r-- | telegram/handlers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/telegram/handlers.go b/telegram/handlers.go index aaa1e3d..aef8286 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -120,13 +120,13 @@ func (c *Client) updateHandler() { func (c *Client) updateUser(update *client.UpdateUser) { c.cache.SetUser(update.User.Id, update.User) show, status := c.userStatusToText(update.User.Status) - go c.processStatusUpdate(int64(update.User.Id), status, show) + go c.ProcessStatusUpdate(int64(update.User.Id), status, show) } // user status changed func (c *Client) updateUserStatus(update *client.UpdateUserStatus) { show, status := c.userStatusToText(update.Status) - go c.processStatusUpdate(int64(update.UserId), status, show, gateway.SPImmed(false)) + go c.ProcessStatusUpdate(int64(update.UserId), status, show, gateway.SPImmed(false)) } // new chat discovered @@ -166,7 +166,7 @@ func (c *Client) updateNewChat(update *client.UpdateNewChat) { } if update.Chat.Id < 0 { - c.processStatusUpdate(update.Chat.Id, update.Chat.Title, "chat") + c.ProcessStatusUpdate(update.Chat.Id, update.Chat.Title, "chat") } }() } |