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)