A
A
apiwi2020-09-17 20:37:03
Python
apiwi, 2020-09-17 20:37:03

How to repost a NEW post from a group to another group?

I can't repost a NEW entry from one group to another, what should I do?

import vk_api
import datetime
import time

vk = vk_api.VkApi(token=" токен")
api = vk.get_api()

group = -id #Откуда воруем
my_id = -id#Куда постим

try:
    while True:
        api.wall.repost(object=group, from_group=1, group_id = my_id)
        time.sleep(10000)
except Exception as ex:
    print

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
apiwi, 2020-09-17
@apiwi

[100] One of the parameters specified was missing or invalid: object is incorrect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question