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

289
Views
getaddrinfo ENOTFOUND api.telegram.org (Telegraf)

este es mi codigo

 const config = require('./config.json'); const {Telegraf} = require('telegraf'); // require('dotenv').config(); const bot = new Telegraf(config.BOT_TOKEN); bot.use((ctx) => { ctx.reply('Bot has started'); }); bot.launch()

cada vez que ejecuto este código me da error y el error es

D:\Danish\Node testing\Node Bot Testing\node_modules\node-fetch\lib\index.js:1491 rechazó(new FetchError( request to ${request.url} failed, reason: ${err.message} , ' sistema', err)); ^ FetchError: solicitud a https://api.telegram.org/bot5121286363:[CENSURADO]/getMe falló, motivo: getaddrinfo ENOTFOUND api.telegram.org en ClientRequest. (D:\Danish\Node testing\Node Bot Testing\node_modules\node-fetch\lib\index.js:1491:11) en ClientRequest.emit (node:events:527:28) en TLSSocket.socketErrorListener (node:_http_client :454:9) en TLSSocket.emit (nodo:eventos:527:28) en emitErrorNT (nodo:internal/streams/destroy:157:8) en emitErrorCloseNT (nodo:internal/streams/destroy:122:3) en processTicksAndRejections (node:internal/process/task_queues:83:21) { type: 'system', errno: 'ENOTFOUND', code: 'ENOTFOUND' } [nodemon] aplicación bloqueada: esperando cambios en el archivo antes de comenzar...

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!