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 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 |