Interested in the question of how to attach a document as a graffiti without any programs, but perhaps with an API for PHP or in another way?

I know off topic, but I just don’t know where to turn.

  • Dmitry, for ages. Did you find a solution? - I faced the same problem - VC digests .png selectively, but by what principle - for me it is not clear. I successfully attached png from the wiki, with the description: RGB 24bit + 8bit alpha, when I tried to save it as .png 24 with alpha channel in the FSH - it doesn't work. - Aleksey
  • @ Alexey found a solution, just when loading the document you need to add the parameter type = graffiti - Dmitry Frolov

1 answer 1

Found a solution, everything is loaded via the API. We upload_url first: https://api.vk.com/method/docs.getUploadServer?access_token=token

Now that we have upload_url , we upload a png image onto it using the POST method with the type=graffiti parameter passed.

As a result, we get the id of the document, which we can attach in messages or comments, and if we need to save it to our documents, we will use the docs.save method.