Decided to write a bot that will send to the conference, in which he is, that only appeared post, but below mentioned code doesn't work and returns an error " internal server error" though the error points to the server, I still think that I messed up.
for event in add.listen():
if event.type == VkBotEventType.WALL_POST_NEW:
vk.messages.send(chat_id = 1, random_id = random.getrandbits(64),
message = 'a New post in the community: ',
attachment = event.obj.post_id)
In addition to this issue, I would like to know how to make a bot sent this message to all conversations that consist of?