Answer the question
In order to leave comments, you need to log in
Image storage BOT-shop?
A small bot-shop is created with a catalog (catalog of about 100-150 products) at the request of the client, the bot displays a picture of the product with its description in one message to the client. The question is, how best to store pictures of goods, in a database or in a separate catalog at the root of the bot's project? Thanks in advance for your reply.
Answer the question
In order to leave comments, you need to log in
Telegram has a file_id for each photo/video/file etc. Only once sending a picture to someone in the bot telegram will return the file_id of this photo to you. Then, instead of keeping the photo on your own, you just write down the file_id and send the file_id as a photo. This is the most convenient.
Good afternoon, it seems to me that it will be easier to use any database and take pictures, product descriptions and everything you need from it. If you write in Python, then creating such a database and a script that sends the necessary data to the user from it will take quite a bit of time, I can’t say for other languages.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question