Answer the question
In order to leave comments, you need to log in
How to track new posts from public VK?
I saw a Telegram bot that monitors new posts from the VK public and sends them.
How does he know that a new post has been added and is tracking, or is it done via cUrl using cron?
Answer the question
In order to leave comments, you need to log in
https://vk.com/dev/wall.get
Get a wall. See the last 10 posts or 100. See the date of addition, if it is more than the last remembered, add as a new post, report, save the date of the last post. After a minute, repeat (or 3 times per second you can check) if there are any posts with a date greater than your saved one.
https://vk.com/dev/execute
pull the wall of the public, take 1 post and see if the id has changed, if so, then "uradobavilinovypost"
(that's what I said, roughly) )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question