K
K
kirvel2020-08-18 17:08:37
Java
kirvel, 2020-08-18 17:08:37

Uploaded a Telegram bot to heroku, but it's not responding. Why is that?

I deployed my Telegram bot on Heroku, but when I send a message to it, it is silent.

What could be the problem?

Bot.java: https://paste.ubuntu.com/p/bGfq9S3cs5/

pom.xml: https://privatebin.net/?1373e6eab934896d#8KrwkTLMr...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bio_engine, 2020-08-19
@bio_engine

1. Maybe free dynos are not allocated for your bot. Those. each user is given free N-hours per month for the operation of his application, if you want more, pay, and so this time is called free dynos, and is configured through the console.
2. On Heroku, applications can be launched in different modes, for example, by default, all applications are launched in the "web" mode, i.e. waiting to be contacted from outside.
No one will contact the bot, he himself must contact whomever he needs. This mode of operation is called "worker". It can also be configured via the console. For example:
"heroku ps:scale worker=1"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question