D
D
Darklez2016-08-27 12:15:12
PHP
Darklez, 2016-08-27 12:15:12

How to create a cart function in telegram?

Good afternoon,
There is a php script that shows products by search in a telegram - pulls data from the database and sends it as a list of products with prices and names.
How can we implement the basket function in this case?
So that you can add products to the cart (for example /plusID /minusID), and then after adding, generate and display a link with all ids.
For example, if you add products with id 1;2;3, then generate a link domain/?add=1&2&3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nllm, 2016-08-27
@nllm

Use inline buttons. Pass the product id in the callback. Make the basket in the form of a table in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question