callback_query date is always the same #1788
Unanswered
InevitablePG
asked this question in
Q&A
Replies: 3 comments
-
callback_query is not datE. It's datA. It is used to identify clicked button and always contains what you put there when created the button. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I get it now, by any chance is there a way I could approach this situation. To prevent too many clicks from a user? |
Beta Was this translation helpful? Give feedback.
0 replies
-
All you can do - store information in your code. Telegram is just an interface with user. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
pyTelegramBotAPI==4.7.1
Termux 0.118
Python 3.11.0
I have a problem with callback_query date. I am trying to create an antiflood_middleware to avoid too many clicks in a short period of time from a user in an InlineKeyboardButton however the callback_query date is always the same no matter how many times I Click the InlineKeyboardButton even after the limitation time is over.
Or perhaps there is something I am doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions