Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

123
Vistas
How to automate my first Telegram application?

I'm just learning the backend. I created my first application, all it does is get data -> publish it to a Telegram bot.

I want the application to work 24/7. But I don't know how to make it automated. I run it using terminal node main.js. How do I emit a command input to the terminal? (Importantly, it doesn't suit me to wrap everything in a function and call it).

I found that it can be done with node cron, but I don't know how to do it. As a result, I want to load my application on Heroku and have the node main.js command run using the task scheduler.

I want to get something like this:

 const scheduler = new ToadScheduler()
  const task = new Task('simple task', () => node main.js)
  const job = new SimpleIntervalJob({ seconds: 60, }, task)
  scheduler.addSimpleIntervalJob(
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda