Skip to content

Commit f82c491

Browse files
authored
[Telegram Bot] Added more exchanges to the notification list (#1562)
This pull request updates the `.github/workflows/notify-telegram-groups.yml` file to add new Telegram chat groups for notification purposes. It includes both the definitions of the new chat IDs and the logic to send release notifications to these groups. ### Additions to Telegram chat groups: * Added six new Telegram chat groups with their corresponding `CHAT_ID` variables: - Uphold <> Grove (POKT) (`CHAT_11`) - Pokt <> Kraken {EF introduction} (`CHAT_12`) - Bitrue & Pocket Network (`CHAT_13`) - HTX <> POKT (`CHAT_14`) - POKT <> Upbit (`CHAT_15`) - KuCoin <> POKT (`CHAT_16`) (`[.github/workflows/notify-telegram-groups.ymlR44-R61](diffhunk://#diff-0a288cac82f672a5126b866175da1b6b6d3de5d4a7206b7737173fcd41406f46R44-R61)`) ### Logic for sending notifications: * Added notification logic for each of the six new chat groups, including `curl` commands to send messages and descriptive `echo` statements for logging. (`[.github/workflows/notify-telegram-groups.ymlR133-R174](diffhunk://#diff-0a288cac82f672a5126b866175da1b6b6d3de5d4a7206b7737173fcd41406f46R133-R174)`)
1 parent a4a646d commit f82c491

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

.github/workflows/notify-telegram-groups.yml

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,24 @@ jobs:
6868
6969
# POKT Network | AscendEX
7070
CHAT_10="-4565872373"
71+
72+
# Uphold <> Grove (POKT)
73+
CHAT_11="-1002227693360"
74+
75+
# Pokt <> Kraken {EF introduction}
76+
CHAT_12="-1002405763552"
77+
78+
# Bitrue & Pocket Network
79+
CHAT_13="-618542738"
80+
81+
# HTX <> POKT
82+
CHAT_14="-1002898513049"
83+
84+
# POKT <> Upbit
85+
CHAT_15="-1002653157934"
86+
87+
# KuCoin <> POKT
88+
CHAT_16="-775612675"
7189
7290
# Safely construct message using printf to avoid command execution
7391
RELEASE_NAME="${{ steps.get_release.outputs.release_name }}"
@@ -140,4 +158,40 @@ jobs:
140158
echo "Sending to POKT Network | AscendEX ($CHAT_10)"
141159
curl -s -X POST https://api.telegram.org/bot7267336172:AAEYaEeY0i7DfbL7SsRjPf09N67mvLo8WC4/sendMessage \
142160
-d chat_id="$CHAT_10" \
143-
--data-urlencode text="$MESSAGE"
161+
--data-urlencode text="$MESSAGE" \
162+
163+
# Send to Uphold <> Grove (POKT)
164+
echo "Sending to Uphold <> Grove (POKT) ($CHAT_11)"
165+
curl -s -X POST https://api.telegram.org/bot7267336172:AAEYaEeY0i7DfbL7SsRjPf09N67mvLo8WC4/sendMessage \
166+
-d chat_id="$CHAT_11" \
167+
--data-urlencode text="$MESSAGE" \
168+
169+
# Send to Pokt <> Kraken {EF introduction}
170+
echo "Sending to Pokt <> Kraken {EF introduction} ($CHAT_12)"
171+
curl -s -X POST https://api.telegram.org/bot7267336172:AAEYaEeY0i7DfbL7SsRjPf09N67mvLo8WC4/sendMessage \
172+
-d chat_id="$CHAT_12" \
173+
--data-urlencode text="$MESSAGE" \
174+
175+
# Send to Bitrue & Pocket Network
176+
echo "Sending to Bitrue & Pocket Network ($CHAT_13)"
177+
curl -s -X POST https://api.telegram.org/bot7267336172:AAEYaEeY0i7DfbL7SsRjPf09N67mvLo8WC4/sendMessage \
178+
-d chat_id="$CHAT_13" \
179+
--data-urlencode text="$MESSAGE" \
180+
181+
# Send to HTX <> POKT
182+
echo "Sending to HTX <> POKT ($CHAT_14)"
183+
curl -s -X POST https://api.telegram.org/bot7267336172:AAEYaEeY0i7DfbL7SsRjPf09N67mvLo8WC4/sendMessage \
184+
-d chat_id="$CHAT_14" \
185+
--data-urlencode text="$MESSAGE" \
186+
187+
# Send to POKT <> Upbit
188+
echo "Sending to POKT <> Upbit ($CHAT_15)"
189+
curl -s -X POST https://api.telegram.org/bot7267336172:AAEYaEeY0i7DfbL7SsRjPf09N67mvLo8WC4/sendMessage \
190+
-d chat_id="$CHAT_15" \
191+
--data-urlencode text="$MESSAGE" \
192+
193+
# Send to KuCoin <> POKT
194+
echo "Sending to KuCoin <> POKT ($CHAT_16)"
195+
curl -s -X POST https://api.telegram.org/bot7267336172:AAEYaEeY0i7DfbL7SsRjPf09N67mvLo8WC4/sendMessage \
196+
-d chat_id="$CHAT_16" \
197+
--data-urlencode text="$MESSAGE" \

0 commit comments

Comments
 (0)