Closed ahmadbadpey closed 4 years ago
@ahmadbadpey Sorry for the late reply to this...
Easiest would be to pass the page / photo ID together with the callback_data
, then you can edit the message and update the URL to the next / previous image respectively.
@ahmadbadpey did you solved your problem?
I'm working on a telegram bot shop via https://github.com/php-telegram-bot/core in laravel.
In this app , each Product has many images that path of them is stored on th DB.
Now I want when send details of a product , images of that shown one by one that user can navigate them via a prev and next inline keyboard. like this picture :
For that after show all products in the shop as a inline query and after use choose one of them , On Chosen inline result Command, I get a product Id and fetch first image of that from DB like this :
Also
showProductKeyboard
ofKeyboardController
is like this :And finally
show-product
blade is simple as :Problem is that I do not know how can I implement what I want .