yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.34k stars 1.51k forks source link

Fix on the next release. Remove bluebird and use native promises #1223

Open abdul-wahab619 opened 3 weeks ago

abdul-wahab619 commented 3 weeks ago

here is the error: error: [polling_error] {"code":"EFATAL","message":"EFATAL: Error: read ECONNRESET"}

abdul-wahab619 commented 3 weeks ago

I'm getting the same above error. In our country telegram is ban and I also attach vpn but still getting this error how to resolve? If any can solve please lemme know.... Here is the code: const TelegramBot = require("node-telegram-bot-api");

const token = "Enter_Your_Token"; const bot = new TelegramBot(token, { polling: true });

bot.on("message", (msg) => { const chatId = msg.chat.id; const messageText = msg.text;

if (messageText === "/start") { bot.sendMessage(chatId, "Welcome to the bot!"); } }); here is the error: error: [polling_error] {"code":"EFATAL","message":"EFATAL: Error: read ECONNRESET"}

skynet01 commented 1 week ago

plus one on this one? Anyone have any release date on this?