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

313
Views
No se puede transmitir InputPeerChat a ningún tipo de InputChannel

He creado un bot usando Telegraf. Quiero que cuando un usuario envíe un mensaje, el bot le envíe el mensaje anterior. Así que quiero tomar la publicación anterior en id con Gram JS pero arroja este error

ingrese la descripción de la imagen aquí

aquí está mi código:

 bot.on("message", async (ctx) => { const { text, message_id } = ctx.message; const userId = ctx.from.id; const replyToMessage = await client.invoke( new Api.channels.GetMessages({ channel: `${ctx.chat.id}`, id: [message_id - 1], }) ); console.log(1234, replyToMessage); ctx.reply(replyToMessage); });
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!