K
K
kirito12020-08-06 20:52:05
Python
kirito1, 2020-08-06 20:52:05

How to create an entry in a VK group?

I want to create an entry in the VK group through python, or requests

Here is my code:

import requests
 
method = 'wall.post'
token = 'тут_токен_приложения'
version = 5.74
 
data={
    'access_token': token,
    'from_group': 0,
    'message': 'Привет',
    'signed': 0,
    'v':version}
 
r = requests.post('https://api.vk.com/method/wall.post', data).json()
 
print(r)


Everything works, BUT the entry is created on my page, but I want it in a group, how can I do this? Thank you very much in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-08-06
@kirito1

Open documentation, read about parameters

owner_id ID of the user or community on whose wall the post should be posted.

https://vk.com/dev/wall.post

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question