From a22e92b1b550eb3bd151f3f03e3f944e15a38fd3 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Wed, 25 Sep 2024 21:06:23 +0800 Subject: [PATCH] fix notify --- .github/workflows/build.yml | 8 ++++---- scripts/telegram.mjs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b391ea9..2b3e62c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -229,10 +229,10 @@ jobs: run: npm install -g pnpm - name: Build Latest run: pnpm install && pnpm updater - # - name: Telegram Notification - # env: - # TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} - # run: pnpm telegram + - name: Telegram Notification + env: + TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} + run: pnpm telegram - name: Publish Release uses: softprops/action-gh-release@v2 with: diff --git a/scripts/telegram.mjs b/scripts/telegram.mjs index 7b23d79..b31b8f9 100644 --- a/scripts/telegram.mjs +++ b/scripts/telegram.mjs @@ -15,7 +15,7 @@ for (const line of changelog.split('\n')) { } } axios.post(`https://api.telegram.org/bot${process.env.TELEGRAM_BOT_TOKEN}/sendMessage`, { - chat_id: 2349280849, + chat_id: '@mihomo_party_group', text: content, link_preview_options: { is_disabled: false,