import time
def callback_handler(update, context):
query = update.callback_query
# Disable the button
context.bot.answer_callback_query(callback_query_id=query.id, text="Button disabled", show_alert=False, disable_notification=True)
# Start the timer
time.sleep(10)
# Enable the button
context.bot.answer_callback_query(callback_query_id=query.id, text="Button enabled", show_alert=False, enable_notification=True)
@bot.message_handler(commands=['info'])
def handle_message(message):
bot.send_message(chat_id=message.chat.id, text='Enter text:')
bot.register_next_step_handler(message, process_text)
def process_text(message):
model = message.text
# выполнить дальнейшую обработку введенного текста