Skip to content

Commit

Permalink
add error
Browse files Browse the repository at this point in the history
  • Loading branch information
redhocode committed Feb 17, 2024
1 parent ffc1ca6 commit 5c2226e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const {axios} = require('axios');
const Message = 'Asu babi elu';
const img = "https://www.klinikindonesia.com/image/t/tinja.jpg";
const endpoint =
"https://api.telegram.org/bot6457148300:AAHd3_gH8SW4VH9kUt3aavIRFVFt8gMrjPs/sendMessage?parse_mode=markdown&chat_id=6618165018&text=" +
Message;
// const endpoint =
// "https://api.telegram.org/bot6457148300:AAHd3_gH8SW4VH9kUt3aavIRFVFt8gMrjPs/sendMessage?parse_mode=markdown&chat_id=6618165018&text=" +
// Message;
const endpoint2 =
"https://api.telegram.org/bot6457148300:AAHd3_gH8SW4VH9kUt3aavIRFVFt8gMrjPs/sendPhoto?chat_id=6618165018&photo="+img+"&caption="+Message;

Expand All @@ -23,7 +23,7 @@ async function sendMessage(){
})
}
}catch (error) {
console.log("API down",error);
console.log("API-key Down");
}
}

Expand Down

0 comments on commit 5c2226e

Please sign in to comment.