S
S
ShamiLLL2020-11-27 23:43:12
In contact with
ShamiLLL, 2020-11-27 23:43:12

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

1 answer(s)
L
Leonid, 2020-12-04
@LeoMay

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 question

Ask a Question

731 491 924 answers to any question