D
D
Dmitry2021-01-18 17:03:02
Python
Dmitry, 2021-01-18 17:03:02

Is it possible to limit the frequency of clicking on the Inline - Telegram bot button?

Tell me - there is a code for getting a picture when you click on the Inline button - is it possible to limit the frequency of pressing the button - so that you can not press the button endlessly - for example, if the user clicks again on the button to receive a photo - a message is sent to him that you have already received a photo ... and let's repeat pressing after 2-3-4 hours - for example. python-telegrambotapi

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bbkmzzzz, 2021-01-18
@bbkmzzzz

Remember the time of the last access to the function from the user, at the next request - compare the time and do / do not do actions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question