You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please help me!, error below happen when running the bot for the first time! : error: [polling_error] {"code":"EFATAL","message":"EFATAL: AggregateError"}
Here is my code:
const TelegramBot = require('node-telegram-bot-api');
const token = '8067368517:AAE4hmj4buXNUitqdsBViJMt7RGB660QM08';
const bot = new TelegramBot(token, {polling: true});
bot.on('message', (msg) => {
var Hi = "hi";
if (msg.text.toString().toLowerCase().indexOf(Hi) === 0) {
bot.sendMessage(msg.chat.id,"Hello dear user");
}
});
I am using the Windows 10 operating system and VPN, why does this situation still occur
The text was updated successfully, but these errors were encountered:
Please help me!, error below happen when running the bot for the first time! :
error: [polling_error] {"code":"EFATAL","message":"EFATAL: AggregateError"}
Here is my code:
I am using the Windows 10 operating system and VPN, why does this situation still occur
The text was updated successfully, but these errors were encountered: