How to do it in the telegram bot?

Hi all. Have database, it will assume 2 tables - categories and a list of positions. Of course the items have a field that indicates the category.

In the telegram bot can display the menus by category through a case.
But how to further process the selected menu item, each category template. Ie will have to change only the selected item, the condition in the DB query.
i.e. have roughly the following scheme:
List categories -> select category -> send a new menu with a list of items in this category -> choose position -> send text to describe(again, same template, changing only the fields from the DB)
July 2nd 19 at 14:01
2 answers
July 2nd 19 at 14:03
and you can link to the bot in telegrams?
July 2nd 19 at 14:05
managed to solve the problem? Now faced with a similar
alas, no. - Jody26 commented on July 2nd 19 at 14:08

Find more questions by tags TelegramPHPMySQLMessengers