Skip to content

Commit

Permalink
chore: ...
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Sep 3, 2024
1 parent c52999d commit a3fc1d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bypasscf_likeUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dotenv.config();
const token = process.env.TELEGRAM_BOT_TOKEN;
const chatId = process.env.TELEGRAM_CHAT_ID;
const specificUser = process.env.SPECIFIC_USER || "14790897";
let bot
let bot;
if (token && chatId) {
bot = new TelegramBot(token);
}
Expand Down Expand Up @@ -221,7 +221,9 @@ async function launchBrowserForUser(username, password) {
} catch (err) {
// throw new Error(err);
console.log("Error:", err);
sendToTelegram(`${err.message}`);
if (token && chatId) {
sendToTelegram(`${err.message}`);
}
}
}
async function login(page, username, password) {
Expand Down

0 comments on commit a3fc1d0

Please sign in to comment.