Is there a way to set the timeout for callback from users? For example if I sent message with the inline keyboard and callback query in buttons in it, but I want to handle query only in 20 minutes after it has been sent, but cancel it if button has been pressed later.
Yes, I can send date and time in callback data, but it will take a bit of time to chage some parts of code, moreover I want to learn a new way for experience if it exists :)
Is there a way to set the timeout for callback from users? For example if I sent message with the inline keyboard and callback query in buttons in it, but I want to handle query only in 20 minutes after it has been sent, but cancel it if button has been pressed later. Yes, I can send date and time in callback data, but it will take a bit of time to chage some parts of code, moreover I want to learn a new way for experience if it exists :)