Answer the question
In order to leave comments, you need to log in
Vkontakte API: how to easily get the names of the authors of forwarded private messages?
Good day.
I encountered the following problem when implementing the display of forwarded messages in a conversation: the “message” object contains the fwd_messages field, which is an array of exactly the same, but slightly truncated, objects, that is, only the sender ID and text are offered. At the same time, I do not want to receive regular messages in the application, go through all the messages and again request information about users if there are those among them whose information is not stored in the local database.
Tried to solve this with a stored procedure, but the @. passes only through the top level, and there can be several forwarded messages, and they themselves have an infinite level of nesting. Recursion and local functions are not supported in VKScript.
Maybe someone already found a beautiful solution to this problem? I would be grateful for any solution, except for the simplest one from the first paragraph.
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