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

195
Vistas
How fix Error message bot Telegram with JS

How can I fix this error in JS?

error_code: 403, description: 'Forbidden: bot was blocked by the user'

This initial code

bot.start( (ctx) => {
    console.log(ctx.chat.id)
    if (newClient(ctx.message.chat.id)) {
        createLog(ctx.message.chat.id)
        ctx.reply("Message")
    } else {
        ctx.reply("Message")
    }
})
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The error message obviously says what happened; The bot was blocked by the user.

To fix that, you have to add a condition that checks if the user blocked the bot. Or the user should unblock the bot.

about 4 years ago · Juan Pablo Isaza Denunciar
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