Skip to content

Commit

Permalink
修复部分用户无法发送tg消息问题
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejun committed Jan 3, 2025
1 parent 56fe372 commit 7a2b5f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions revive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SENDTYPE=${SENDTYPE:-null}
TELEGRAM_TOKEN=${TELEGRAM_TOKEN:-null}
TELEGRAM_USERID=${TELEGRAM_USERID:-null}
WXSENDKEY=${WXSENDKEY:-null}
BUTTON_URL=${BUTTON_URL:-null}
LOGININFO=${LOGININFO:-N}
export TELEGRAM_TOKEN TELEGRAM_USERID BUTTON_URL

Expand Down
7 changes: 6 additions & 1 deletion tgsend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ formatted_msg=$(echo "$result" | awk -F'|' '{print $1}')
host=$(echo "$result" | awk -F'|' '{print $2}')
user=$(echo "$result" | awk -F'|' '{print $3}')

button_url=${BUTTON_URL:-"https://www.youtube.com/@frankiejun8965"}
if [[ "$BUTTON_URL" == "null" ]]; then
button_url="https://www.youtube.com/@frankiejun8965"
else
button_url=${BUTTON_URL}
fi

URL="https://api.telegram.org/bot${telegramBotToken}/sendMessage"

if [[ -n "$PASS" ]]; then
Expand Down

0 comments on commit 7a2b5f1

Please sign in to comment.