A
A
amirov662022-02-20 19:09:12
Heroku
amirov66, 2022-02-20 19:09:12

How to deploy a telegram bot on Heroku?

I wrote a telegram bot with the pyTelegramBotAPI library, and decided to deploy it to Heroku using git, entered all the commands in the root directory of the bot

git init

git add .

git commit -m "First release"

heroku create nakrutkasub

git remote -v

Up to this point, everything went fine, but with the command:
git push heroku master
cmd freezes for a few minutes, and gives this:
fatal: unable to access ' https://git.heroku.com/nakrutkasub.git/ ': Failed to connect to git.heroku.com port 443 after 262510 ms: Timed out

Tried to create anew, reinstalled heroku, but the result is the same.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rag'n' Code Man, 2022-02-21
@iDmitriyWinX

Use a more convenient alternative: go to your application page, Deployselect GitHub in the section, find your repository in the list, and you can also set autodeploy when pushing to the master.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question