Answer the question
In order to leave comments, you need to log in
How to add products to the catalog in telegram bot?
How can I add products to the catalog in the telegram bot? Product model fields: title, description, and link to the image. So far, only this thought came to mind: add a button to add a product (only in a dialogue with the admin) and when clicked, the bot activates a variable (?) like is_adding and it waits for a message like:
product name: name; product description: description; link: link;
Tell me how can I do it
Answer the question
In order to leave comments, you need to log in
And make a command like
/add product name:name; product description:description;link:link;
too easy? If so, then
1. Create a button for adding a product
2. When you click on the button, remember the state, write it to some dictionary
3. The next message with the desired state will be considered as adding a product
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question