Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
robot de telegramas ¿Cómo escribir un nombre de usuario en la base de datos?

Estoy escribiendo un bot de Telegram. Aquí está el código. En el segundo mensaje, el bot le pide que ingrese un nombre. Cuando un usuario ingresa un nombre, debe escribirlo en la base de datos, luego presione el botón. En la base de datos hay una tabla 'UserModel' y un campo 'nombre'. Cuando llega a este mensaje, arroja un error en la consola: await UserModel.create ({name}). ¿Cómo escribir un nombre de usuario en la base de datos?

 if (msg.text === '/start') { await bot.sendMessage(msg.chat.id, "Welcome!") await bot.sendMessage(msg.chat.id, "Please, enter your name", { reply_markup: { keyboard: [ ['Next'] ] } }) await UserModel.create({name})

}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!