Changed random_id to int64

This commit is contained in:
Artyom Belousov 2019-11-05 23:06:06 +03:00
parent b15094fa8d
commit 10af0ea3c8

View file

@ -14,7 +14,7 @@ import (
const SendMessageUrl = "https://api.vk.com/method/messages.send" const SendMessageUrl = "https://api.vk.com/method/messages.send"
func Message(userId int64, message string) { func Message(userId int64, message string) {
randomId := rand.Int31() randomId := rand.Int63()
params := []string{ params := []string{
"access_token=" + Token, "access_token=" + Token,
"peer_id=" + strconv.FormatInt(userId, 10), "peer_id=" + strconv.FormatInt(userId, 10),