diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-04 21:37:46 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-04 21:37:46 +0300 |
commit | 133d787d38aedf9a55d2f619fbf81f45f2397a3e (patch) | |
tree | 122e0ca9d0d68bed0b177baa76785ca338a7b2b7 /telegram/handlers.go | |
parent | 5b82d5d718eea29b24eb58b66d1488ed21e13500 (diff) |
Fix lossy int64->int32 conversion
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 0b76b48..b72ff2c 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -104,13 +104,13 @@ func (c *Client) updateHandler() { func (c *Client) updateUser(update *client.UpdateUser) { cache.users[update.User.Id] = update.User show, status := userStatusToText(update.User.Status) - c.processStatusUpdate(update.User.Id, status, show) + c.processStatusUpdate(int64(update.User.Id), status, show) } // user status changed func (c *Client) updateUserStatus(update *client.UpdateUserStatus) { show, status := userStatusToText(update.Status) - c.processStatusUpdate(update.UserId, status, show, gateway.SPImmed(false)) + c.processStatusUpdate(int64(update.UserId), status, show, gateway.SPImmed(false)) } // new chat discovered @@ -149,7 +149,7 @@ func (c *Client) updateNewChat(update *client.UpdateNewChat) { } if update.Chat.Id < 0 { - c.processStatusUpdate(int32(update.Chat.Id), update.Chat.Title, "chat") + c.processStatusUpdate(update.Chat.Id, update.Chat.Title, "chat") } } |