update gitignore
This commit is contained in:
parent
1ec3a710b2
commit
51a2d5a61e
18
src/index.js
18
src/index.js
|
|
@ -179,15 +179,15 @@ async function notifyTelegram(message) {
|
|||
}
|
||||
|
||||
try {
|
||||
// await axios.post(
|
||||
// `https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage`,
|
||||
// {
|
||||
// chat_id: TELEGRAM_CHAT_ID,
|
||||
// text: message,
|
||||
// parse_mode: 'HTML'
|
||||
// }
|
||||
// );
|
||||
console.log(message);
|
||||
await axios.post(
|
||||
`https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage`,
|
||||
{
|
||||
chat_id: TELEGRAM_CHAT_ID,
|
||||
text: message,
|
||||
parse_mode: 'HTML'
|
||||
}
|
||||
);
|
||||
// console.log(message);
|
||||
console.log('✓ Telegram notification sent');
|
||||
} catch (error) {
|
||||
console.error('✗ Failed to send Telegram notification:', error.response?.data || error.message);
|
||||
|
|
|
|||
Loading…
Reference in New Issue