Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abdul-wahab619 opened this issue Sep 4, 2024 · 2 comments
Open

Comments

@abdul-wahab619
Copy link

abdul-wahab619 commented Sep 4, 2024

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

@abdul-wahab619
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants