Answer the question
In order to leave comments, you need to log in
How to upload a link with pictures in VK API?
Good afternoon!
I need to publish a post in vk using api and so that information would be pulled up from the page indicated in the description.
I'm trying to pass it through the attachments attribute, just insert a link in the body of the post ( nnmclub.to/forum/viewtopic.php?t=1028933) or refer to the image (' assets.nnm-club.ws/forum/image.php?link=http ://s01... ') - the only result of adding a link as text:
How to download a post preview or at least a picture (without uploading to the VK server first) using api?
The request as a whole looks like this:
r = ' https://api.vk.com/method/wall.post?attachments= ' + ' nnmclub.to/forum/viewtopic.php?t=1028933 ' + '&owner_id=-' + self.id_group_l.text () + '&publish_date=' + str(data) + '&message=' + text + '&version=' + '5.52' + '&access_token=' + self.access_token
r = requests.get(r)
r = r.json ()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question