Skip to content

Commit 1472fff

Browse files
committed
fix: 简化通知,只发频道(避免群组重复)
1 parent 7131182 commit 1472fff

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

.github/workflows/notify.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Notify Telegram on GitHub Push
2-
description: 'Send notifications to Telegram groups (topics) and channel on push to main branch'
2+
description: 'Send notifications to Telegram channel on push to main branch'
33
on:
44
push:
55
branches:
@@ -9,26 +9,6 @@ jobs:
99
notify:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Send notification to tgmShare group topic 5
13-
env:
14-
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
15-
run: |
16-
TEXT=$'📝 资源更新\n\n请查看频道获取完整资源链接\n\n📦 https://t.me/dabaziyuan'
17-
curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
18-
-d chat_id="-1002573762160" \
19-
-d message_thread_id="5" \
20-
--data-urlencode "text=${TEXT}"
21-
22-
- name: Send notification to tgmShareAI group topic 2
23-
env:
24-
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
25-
run: |
26-
TEXT=$'📝 资源更新\n\n请查看频道获取完整资源链接\n\n📦 https://t.me/dabaziyuan'
27-
curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
28-
-d chat_id="-1003365897434" \
29-
-d message_thread_id="2" \
30-
--data-urlencode "text=${TEXT}"
31-
3212
- name: Send full content to Telegram channel
3313
env:
3414
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}

0 commit comments

Comments
 (0)