K
K
kos94ok2019-03-18 13:42:41
Python
kos94ok, 2019-03-18 13:42:41

Why is the post made on behalf of the user and not the VK API group?

Why is the post made on behalf of the user and not the VK API group?

vk_session = vk_api.VkApi('+791111111', '1')
vk_session.auth()
vk = vk_session.get_api()

@client.on(events.NewMessage(chats=('chat')))
async def normal_handler(event):
  message = event.message
  client = event.client 
  media = event.message.media
  await vk.wall.post(owner_id='id', message=event.raw_text) #Отправляем сообщение
client.start()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kos94ok, 2019-03-18
@kos94ok

Solved by changing wall type to limited

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question