Vkontakte API first commenter?

How to find out what the post I commented on.

https://vk.com/dev/wall.getComments - not suitable the limit view 100 comments. and then the bot will comment on every 100 comments.

my bot-user needs to comment first. but there is a problem how can I comment if it begins to comment on the last entry without stopping. that is, you need the condition to stop after one comment does not fit wall.getComments but if time.sleep(x) use the post at this time can not get out and bot prokomentiruet the same account and the bot will not comment on the first post if it comes out sooner, etc

it should also be noted that the code did not take so much memory if I have to store an array of posts that already commented.
March 20th 20 at 11:27
2 answers
March 20th 20 at 11:29
Solution
Might help:
1) sort
2) offset
3) storage of posts that are commented upon in memory (file or DB)
March 20th 20 at 11:31
Use offset

Find more questions by tags APIVKontakte