diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-04 22:29:57 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-04 22:29:57 +0300 |
commit | fa841bfa8bc0941e0416608e78308401c9334ae9 (patch) | |
tree | e2f11dfba283baf8265b6ae7bad44fcdfef8cfdf /telegram/handlers.go | |
parent | 133d787d38aedf9a55d2f619fbf81f45f2397a3e (diff) |
Replace Itoa with FormatInt
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 b72ff2c..f0faa18 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -142,7 +142,7 @@ func (c *Client) updateNewChat(update *client.UpdateNewChat) { gateway.SendPresence( c.xmpp, c.jid, - gateway.SPFrom(strconv.Itoa(int(update.Chat.Id))), + gateway.SPFrom(strconv.FormatInt(update.Chat.Id, 10)), gateway.SPType("subscribe"), gateway.SPNickname(update.Chat.Title), ) @@ -202,7 +202,7 @@ func (c *Client) updateNewMessage(update *client.UpdateNewMessage) { ForceRead: true, }) // forward message to XMPP - gateway.SendMessage(c.jid, strconv.Itoa(int(update.Message.ChatId)), text, c.xmpp) + gateway.SendMessage(c.jid, strconv.FormatInt(update.Message.ChatId, 10), text, c.xmpp) } // message content updated |