Changed random_id to int64
This commit is contained in:
parent
b15094fa8d
commit
10af0ea3c8
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue