Answer the question
In order to leave comments, you need to log in
Can you please explain why I can't send a message through the vk library in python?
import vk
session = vk.AuthSession('specified', 'specified', 'specified', scope='messages')
vk_api = vk.API(session)
messages = vk.messages.send(user_id=585652658, message='Message ', random_id=get_random_id())
doesn't work, but other wall code will work:
import vk
session = vk.AuthSession('not required', 'specified', 'specified', scope='wall')
vk_api = vk. API(session)
vk_api.wall.post(message="hello")
seems to be related to VK, but I also made an official application to send a message.
Answer the question
In order to leave comments, you need to log in
I have already seen questions on this site, but the issue has not been resolved.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question