S
S
slinger9802017-04-16 22:39:51
Messengers
slinger980, 2017-04-16 22:39:51

Where to place the files uploaded by the bot?

There is a bot in Telegram that collects information about users (Answers, photos, documents, etc.). The bot is deployed on heroku. The data is stored in a special folder (like b.d.). As I noticed, the data is periodically deleted. IMHO, there are 2 possible solutions:
1. Somehow change the heroku settings so that the data remains intact.
2. Upload data to a separate server.
I'm more interested in the second option. How to transfer data from heroku to hosting? Just need an idea (Bot wrote in NodeJS, the server is supposed to be in PHP)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Uno, 2017-04-16
@Noizefan

I don't understand what you are stuck on. Script handler on the server, transferring the file by the bot to the server.
I recommend storing text data in a database on a server with a bot, and if files disappear, upload them to a separate one.
And I recommend to look at other hosters (I have nothing personal, but since such problems).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question