Comments (6)
нашёл проблему, вам необходим random_id, я сделал костыль, но вы можете рандомно генерировать его по сиду
from golang-vk-api.
А, нет, я ошибся, ничего не получилось:(
from golang-vk-api.
This works. Make sure to use a different random_id
each time.
Google translate:
Это работает. Убедитесь, что каждый раз используете разные значения random_id
.
params := url.Values{}
params.Add("random_id", "123")
_, err := client.MessagesSend(msg.UserID, links, params)
if err != nil {
log.Println(err)
}
from golang-vk-api.
This works. Make sure to use a different
random_id
each time.Google translate:
Это работает. Убедитесь, что каждый раз используете разные значенияrandom_id
.params := url.Values{} params.Add("random_id", "123") _, err := client.MessagesSend(msg.UserID, links, params) if err != nil { log.Println(err) }
А вы уверены? Я использую ключ сообщества и пытаюсь отправить сообщение человеку, который в него написал...
from golang-vk-api.
@crossworth
not working
from golang-vk-api.
I think the problem is with your input, the user id to be precise.
Could you hard code an id and test to see if it works?
Я думаю, что проблема с вашим вводом, точнее идентификатором пользователя.
Не могли бы вы жестко написать код и проверить, работает ли он?
Example:
params := url.Values{}
params.Add("random_id", "123")
_, err := client.MessagesSend(261024452, "test message", params)
if err != nil {
log.Println(err)
}
from golang-vk-api.
Related Issues (11)
- Проблема с сервисным API ключом HOT 14
- Ошибка в message.go HOT 1
- открыть makeRequest HOT 1
- Как я могу получить и отправить сообщение в беседу? HOT 1
- Wrong return types for Board AttachmentVideo
- Null Pointer Deference on calling NewVKClientWithToken with nil TokenOptions. HOT 1
- Олщ
- 2х факторная аутентификация HOT 2
- Как использовать порт? HOT 2
- Exposed secret keys HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golang-vk-api.