Answer the question
In order to leave comments, you need to log in
How do I upload a photo to a community private message?
There is a direct link to the photo.
How can I send a photo to a community member in private messages?
import vk
userid=какой вам удобно
photourl=('https://cdn2.thecatapi.com/images/MTQ5NzQ2MA.jpg')
def uploadphoto (userid, photourl):
uploadserver=api.photos.getMessagesUploadServer()
uplurl=uploadserver['upload_url']
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