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

118
Vistas
Text length filter Google Apps Script

I create a telegram bot, which collects user info into gSheets. I want to create a filter. If the user wrote less than 10 symbols, bot says that this is not enough. When I tested it, bot just stopped, but JSON was still coming and being processed.

  function doPost(e) {
    let contents = JSON.parse(e.postData.contents); 
    let chat_id = contents.message.chat.id; 
    let text = contents.message.text; 
  
    if (text.length > 10) {
      sendText(chat_id,"✅ Great!");
    }
    else (text.length < 10) {
      sendText(chat_id,"😔 Its not enough.");
    }
  }
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