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 {
|
try {
|
||||||
// await axios.post(
|
await axios.post(
|
||||||
// `https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage`,
|
`https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage`,
|
||||||
// {
|
{
|
||||||
// chat_id: TELEGRAM_CHAT_ID,
|
chat_id: TELEGRAM_CHAT_ID,
|
||||||
// text: message,
|
text: message,
|
||||||
// parse_mode: 'HTML'
|
parse_mode: 'HTML'
|
||||||
// }
|
}
|
||||||
// );
|
);
|
||||||
console.log(message);
|
// console.log(message);
|
||||||
console.log('✓ Telegram notification sent');
|
console.log('✓ Telegram notification sent');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('✗ Failed to send Telegram notification:', error.response?.data || error.message);
|
console.error('✗ Failed to send Telegram notification:', error.response?.data || error.message);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue