Answer the question
In order to leave comments, you need to log in
How to remember the penultimate message of a user?
How can you remember the penultimate message of the user so that the bot in VK, relying on it, can already perform different tasks depending on this penultimate message?
Answer the question
In order to leave comments, you need to log in
I'm not sure about practicality, but I would create a list, add the last elements there, and then cut it down to the last two, respectively, a list of two elements in the first place contains the penultimate one. You can contact him. But I think there is a better solution
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question