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"
|
||||
|
||||
func Message(userId int64, message string) {
|
||||
randomId := rand.Int31()
|
||||
randomId := rand.Int63()
|
||||
params := []string{
|
||||
"access_token=" + Token,
|
||||
"peer_id=" + strconv.FormatInt(userId, 10),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue