K
K
kuzubina2020-05-07 12:15:56
Node.js
kuzubina, 2020-05-07 12:15:56

How to make a similar slider in telegram bot?

Hello!
People, please tell me how to make a similar kind of slider in the
joxi.ru/ZrJ56MdTMxDqXA
cart using node-telegram-bot-api
I tried one solution, when you click on the next button, the next message is formed from the array and the previous one is deleted, but there is a sub-second delay during the transition which is visible (the message is deleted then a new one appears). In many of these bots, I see that it works very smoothly, the buttons are not updated noticeably and the images seem to be pulling up some kind of lazyload, although I did not find such a solution in the dock. Maybe someone came across?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Orlov, 2020-05-07
@kuzubina

Please update the message. That's the whole secret. When sending the first one, save its identifier, and then just update this message on it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question