aboutsummaryrefslogtreecommitdiff
path: root/xmpp
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-03 19:48:41 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-03 19:48:41 +0300
commit9d31a390a8bf5c554eb0e934a2bfe2fa8feca8eb (patch)
tree0b05f0aecb4c684e183ca722239bca6197bf4e63 /xmpp
parent90f0490e1626f3e0cd753caa5a4aac7787cb6dfc (diff)
Send messages to Telegram
Diffstat (limited to 'xmpp')
-rw-r--r--xmpp/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 861ecea..5635f10 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -64,7 +64,7 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) {
toParts := strings.Split(msg.To, "@")
toID := toParts[0]
if len(toParts) > 1 {
- toIDInt, err := strconv.Atoi(toID)
+ toIDInt, err := strconv.ParseInt(toID, 10, 64)
if err == nil {
session.ProcessOutgoingMessage(toIDInt, msg.Body, 0, msg.From)
return