E
E
Eugene2016-11-26 14:04:06
PHP
Eugene, 2016-11-26 14:04:06

How to do it in telegram bot?

Hello. I have a DB, in it we will assume 2 tables - categories and the list of positions. Naturally, the positions have a field that indicates the category.
In a telegram bot, I can easily display a menu by category through case.
But how to further process the selected menu item, each category is a template. Those. You will have to change only the condition in the database query for the selected item.
those. we have something like this:
List of categories -> category selection -> send a new menu with a list of positions for this category -> select a position -> send a text with a description (again, the template, we only change the fields from the database)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question