ERR_UNHANDLED_REJECTION
node:internal/process/promises:227 2020-12-19T15:51:56.527573+00:00 app[worker.1]: triggerUncaughtException(err, true /* fromPromise */); 2020-12-19T15:51:56.527574+00:00 app[worker.1]: ^ 2020-12-19T15:51:56.527574+00:00 app[worker.1]: 2020-12-19T15:51:56.527575+00:00 app[worker.1]: [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".] { 2020-12-19T15:51:56.527576+00:00 app[worker.1]: code: 'ERR_UNHANDLED_REJECTION' 2020-12-19T15:51:56.527576+00:00 app[worker.1]: } 2020-12-19T15:51:56.612210+00:00 heroku[worker.1]: Process exited with status 1 2020-12-19T15:51:56.651990+00:00 heroku[worker.1]: State changed from up to crashed
When does that happen? Have you added a .catch to see the error? Like so: msg.reply.text("Test", {parseMode: 'html'}).catch(error => console.log(error));
This should give you a more detailed error from Telegram API.
Happen when I raw any sample.
I can´t replicate that. I downloaded this repo and tested the hello-world,js example.
Works as expected.
What node version do you use?