diff --git a/bot/telegram.ts b/bot/telegram.ts index ed1903b..2c9f5fa 100644 --- a/bot/telegram.ts +++ b/bot/telegram.ts @@ -1,4 +1,5 @@ import fetch from 'node-fetch' + export async function sendToTelegram(text: string) { const URL = `https://api.telegram.org/bot${process.env.TELEGRAM_TOKEN}/sendMessage` const body = `chat_id=${process.env.TELEGRAM_CHAT_ID}&text=${text}` @@ -13,4 +14,4 @@ export async function sendToTelegram(text: string) { if (!data.ok) { console.error(data.StatusMessage) } -} \ No newline at end of file +}