aboutsummaryrefslogtreecommitdiff
path: root/telegram/handlers.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2020-01-05 16:03:10 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2020-01-05 16:03:10 +0300
commitb8fcac6ae24dd5e07f366741f0f282f33b18b503 (patch)
tree61f86331504dcd079f1a964d103ec299aa70f351 /telegram/handlers.go
parenta435a0a556cb88fe1fcc7e3bf860b45530d895e7 (diff)
Resend chat statuses on probe presence
Diffstat (limited to 'telegram/handlers.go')
-rw-r--r--telegram/handlers.go6
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")
}
}()
}