K
K
Killeravt2020-12-21 01:44:51
Heroku
Killeravt, 2020-12-21 01:44:51

How to make helper text file for telegram bot on Heroku?

There is a telegram bot, I want to make a newsletter for those who wish. The bot is made in python and uploaded to the GitHub repository. For mailing, you need a separate txt file, in which ids will be written (the script has already been written). Question: how can I upload a text file to Heroku and specify the path of this file in the program itself. If this is not possible, what are some alternative easy ways to create a third-party file that the program can modify and read?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wispik, 2020-12-21
@Wispik

Did you at least try uploading the file to Heroku before asking the question? The question is what? On heroku, everything is perfectly uploaded and the path is indicated relative to your executable file

K
Killeravt, 2020-12-21
@Killeravt

I've uploaded a bot there for a long time. I'm interested in how to put an additional text file there, with which my program can interact (write and read user ids). I need to specify the location of the file in the python code itself, but I did not find information about specifying the location of the file on heroku.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question