I want to freeze the keyboard buttons for 4 seconds, I don't want to delete the keyboard or make it unuseful forever.The only way I know of acheiving this is storing the time of the consecutive clicks on my database and then using if statement.
if (click_2_time - click_1_time) < 4 :
pass
else:
//Do sensitive and irreversible operations
^The problem with this is that I am going to have many inline keyboards across multiple groups and using this logic becomes very complicated to keep track of individual keyboards.
Please help me out with an easier solution.