P
P
Python Newbie2021-08-22 07:32:50
Bots
Python Newbie, 2021-08-22 07:32:50

How to make a one-time button for a telegram bot?

I'm writing a bot and there was a problem. Bot example:

User - /supercommand
Bot - Are you sure you want to use me? And under the message button.
User - clicks on the button
Bot - Ok

But how to make sure that when the user writes this command again, this message does not come to him?
I am using pytelegrammbotapi

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-08-22
@soremix

Perhaps you need to remember whether this message came to him, and if it did, then do not send

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question