E
E
evgeniy1grerge2020-05-03 16:53:32
Python
evgeniy1grerge, 2020-05-03 16:53:32

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

1 answer(s)
E
evgeniy1grerge, 2020-05-03
@evgeniy1grerge

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 question

Ask a Question

731 491 924 answers to any question