Answer the question
In order to leave comments, you need to log in
How to update the cover photo of a community in vk.com automatically?
Idea: Display a map of traffic jams along a certain street in the interactive menu using the Static Yandex api.
Problem: There is a community. The community has an interactive menu. The menu uses the internal link format . Those. external link is not loading. Is there any way to update a photo with the same ID (it is doubtful that there is such a thing). Is it possible to somehow automatically change the ID of certain photos in the menu wiki markup?
py.sy.
I'm not a developer, I can make mistakes in simple steps. Do not burn at the stake
Answer the question
In order to leave comments, you need to log in
The step of actions to automate the process you have planned will be something like this:
photo*owner*_*id*
. Accordingly, to get the object of the photo you uploaded, just substitute your data. *owner* is the ID of the owner (communities have a negative ID), and *id* is the ID of the uploaded image. Let's say your community ID is 108671097, and the ID of the uploaded image is 425093800. Your total photo object will look like this: photo-108671097_425093800
./* переменная $photo_object задается, допустим, после загрузки картинки */
$template = "==Карта пробок в Санкт-Петербурге==\n";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question