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...