Answer the question
In order to leave comments, you need to log in
How to send user to telegram progress bar using pytelegrambotapi?
I make a bot and when you send him a command, he executes it for 15 seconds, and so that the user does not think that the bot is broken, I want the bot to send the progress bar for 15 seconds, and then go to do other actions.
How to do it on pytegrambotapi?
Answer the question
In order to leave comments, you need to log in
What do you understand by the progress bar in the telegram ???
You can just send a message to the user that the request is being executed, start executing this request (actions), and then edit this message by inserting the result of this request there.
If you want the user to see how much time is left to wait, and for this value to constantly change over time, then you won’t do this with pytelegrambotapi (or you’ll have to crutch very hard), it’s better to look at aiogram and display a message with the status of this request, which in further you will edit and change the status
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question