TG button waits for answer when callback is used whith register_next_step_handler #2424
-
Hey guys!! I'm trying to recreate user scenario similar to one in Botfather when for renaming a bot you first click on button and then TG gives you prompt asking for new name. So when I use callback function to compose buttons and then register_next_step_handler - to prompt user for input, the button switches to some kind of wait state flashing and not allowing any interactions (see the screenshot). And after timeout of 20-30 secs it turns into 'clickable' mode again. Could you please suggest a workaround or point me to an example where such scenario is used? Thanks!! My goal is make the button clickable many times, always asking for input. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the solution: put this to callback_query_handler: |
Beta Was this translation helpful? Give feedback.
Found the solution: put this to callback_query_handler:
bot.answer_callback_query(call.id)