R
R
Robert2019-02-02 19:43:12
Python
Robert, 2019-02-02 19:43:12

Running a telegram bot on Heroku?

I’ll immediately get to the point, there is a telegram bot, I want to run it on Heroku, but to start it, I need the bot itself (the file with the bot) to be in the Github repository, which creates a situation in which I will expose the token from the bot, how can I run the bot on Heroku with this without shining a token.
PS I have not worked with Heroku yet, so if I'm wrong somewhere, please correct me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-02-02
@Kuubik

I haven't worked with Heroku yet.

And I haven't read the documentation yet.
In the script, take the token from the environment variable, and set the environment variable in the application settings .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question