Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
879263b6e7 | ||
| f2bf47b30b | |||
| 432e30abe0 | |||
|
|
b3e8eaad75 | ||
| 50e3fabacd | |||
| 30f6351d77 | |||
| 01b736c27f | |||
| 42d610ee92 | |||
| cabb0bde8c | |||
| 1c51152fd0 | |||
| 1e824d9675 | |||
| 7d8733feac | |||
| 8d19c09a89 | |||
| b77edec8a4 | |||
|
|
4cf69b0361 | ||
| 1da7443671 | |||
| 9d4baeb89b | |||
|
|
d70219a909 | ||
| aa5d226863 | |||
| 8215cb77ff |
@@ -92,9 +92,9 @@ jobs:
|
||||
fi
|
||||
|
||||
# Send to second chat (with error checking)
|
||||
# if ! curl -s -f -o /dev/null -F document=@"p9_lte_combos_mod_v${{ env.MOD_VERSION }}.zip" \
|
||||
# -F caption="New LTE Module Release ${{ env.RELEASE_TAG }}" \
|
||||
# "https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_2}"; then
|
||||
# echo "Failed to send to second chat"
|
||||
# exit 1
|
||||
# fi
|
||||
if ! curl -s -f -o /dev/null -F document=@"p9_lte_combos_mod_v${{ env.MOD_VERSION }}.zip" \
|
||||
-F caption="New LTE Module Release ${{ env.RELEASE_TAG }}" \
|
||||
"https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_2}"; then
|
||||
echo "Failed to send to second chat"
|
||||
exit 1
|
||||
fi
|
||||
@@ -92,9 +92,9 @@ jobs:
|
||||
fi
|
||||
|
||||
# Send to second chat (with error checking)
|
||||
# if ! curl -s -f -o /dev/null -F document=@"p9_nr_platform_mod_v${{ env.MOD_VERSION }}.zip" \
|
||||
# -F caption="New NR Module Release ${{ env.RELEASE_TAG }}" \
|
||||
# "https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_2}"; then
|
||||
# echo "Failed to send to second chat"
|
||||
# exit 1
|
||||
# fi
|
||||
if ! curl -s -f -o /dev/null -F document=@"p9_nr_platform_mod_v${{ env.MOD_VERSION }}.zip" \
|
||||
-F caption="New NR Module Release ${{ env.RELEASE_TAG }}" \
|
||||
"https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_2}"; then
|
||||
echo "Failed to send to second chat"
|
||||
exit 1
|
||||
fi
|
||||
@@ -1,93 +0,0 @@
|
||||
name: Test Telegram Send
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
test_message:
|
||||
description: 'Test message to send'
|
||||
required: false
|
||||
default: 'Test message from Gitea Actions'
|
||||
|
||||
jobs:
|
||||
test-telegram:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Test Telegram Bot Connection
|
||||
env:
|
||||
BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
CHAT_ID_1: ${{ secrets.TELEGRAM_CHAT_ID_1_GROUP }}
|
||||
run: |
|
||||
echo "=== Telegram Configuration Check ==="
|
||||
echo "Bot token configured: $([ -n "$BOT_TOKEN" ] && echo 'YES' || echo 'NO')"
|
||||
echo "Bot token length: ${#BOT_TOKEN}"
|
||||
echo "Chat ID configured: $([ -n "$CHAT_ID_1" ] && echo 'YES' || echo 'NO')"
|
||||
echo "Chat ID value: ${CHAT_ID_1}"
|
||||
echo "===================================="
|
||||
|
||||
# Test 1: Check if bot token is valid
|
||||
echo ""
|
||||
echo "Test 1: Checking bot token validity..."
|
||||
BOT_INFO=$(curl -s "https://api.telegram.org/bot${BOT_TOKEN}/getMe")
|
||||
echo "Bot info response: $BOT_INFO"
|
||||
|
||||
if echo "$BOT_INFO" | grep -q '"ok":true'; then
|
||||
echo "✓ Bot token is valid!"
|
||||
BOT_USERNAME=$(echo "$BOT_INFO" | grep -o '"username":"[^"]*"' | cut -d'"' -f4)
|
||||
echo " Bot username: @${BOT_USERNAME}"
|
||||
else
|
||||
echo "✗ Bot token is invalid or there's an API issue"
|
||||
echo " Please check your TELEGRAM_BOT_TOKEN secret"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Test 2: Send a simple text message
|
||||
echo ""
|
||||
echo "Test 2: Sending text message..."
|
||||
TEXT_RESPONSE=$(curl -s -w "\nHTTP_CODE:%{http_code}" \
|
||||
-d "chat_id=${CHAT_ID_1}" \
|
||||
-d "text=${{ github.event.inputs.test_message }}" \
|
||||
"https://api.telegram.org/bot${BOT_TOKEN}/sendMessage")
|
||||
|
||||
HTTP_CODE=$(echo "$TEXT_RESPONSE" | grep "HTTP_CODE:" | cut -d: -f2)
|
||||
RESPONSE_BODY=$(echo "$TEXT_RESPONSE" | sed '/HTTP_CODE:/d')
|
||||
|
||||
echo "HTTP Status: $HTTP_CODE"
|
||||
echo "Response: $RESPONSE_BODY"
|
||||
|
||||
if [ "$HTTP_CODE" = "200" ]; then
|
||||
echo "✓ Text message sent successfully!"
|
||||
else
|
||||
echo "✗ Failed to send text message"
|
||||
echo " Common issues:"
|
||||
echo " - Chat ID is incorrect (should be negative for groups: -1001234567890)"
|
||||
echo " - Bot is not a member of the group/channel"
|
||||
echo " - Bot doesn't have permission to send messages"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Test 3: Create and send a test file
|
||||
echo ""
|
||||
echo "Test 3: Sending test file..."
|
||||
echo "This is a test file from Gitea Actions" > test_file.txt
|
||||
|
||||
FILE_RESPONSE=$(curl -s -w "\nHTTP_CODE:%{http_code}" \
|
||||
-F document=@"test_file.txt" \
|
||||
-F caption="Test file upload from Gitea Actions" \
|
||||
"https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_1}")
|
||||
|
||||
HTTP_CODE=$(echo "$FILE_RESPONSE" | grep "HTTP_CODE:" | cut -d: -f2)
|
||||
RESPONSE_BODY=$(echo "$FILE_RESPONSE" | sed '/HTTP_CODE:/d')
|
||||
|
||||
echo "HTTP Status: $HTTP_CODE"
|
||||
echo "Response: $RESPONSE_BODY"
|
||||
|
||||
if [ "$HTTP_CODE" = "200" ]; then
|
||||
echo "✓ File sent successfully!"
|
||||
else
|
||||
echo "✗ Failed to send file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== All tests passed! ==="
|
||||
@@ -1,5 +1,4 @@
|
||||
## [Check Releases for Magisk modules](https://github.com/high3eam/pixel9-EU-combos/releases)
|
||||
### Module includes a built-in updater
|
||||
## [Check Releases for Magisk modules](https://git.hnrk.io/henrik/pixel9-EU-combos/releases) (Module includes a built-in updater)
|
||||
## Edit combos yourself (or even better, use the binarypb editor here: [https://nxij.github.io/pixel-pb/](https://nxij.github.io/pixel-pb/), thanks to [@NXij](https://github.com/NXij))
|
||||
- Download [`protoc`](https://github.com/protocolbuffers/protobuf/releases) as well as the ShannonUeCap `.proto template` files from this repo.
|
||||
- Then use protoc to decode the protobuf binary file.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
## v42
|
||||
- Maintenance release for new updater path
|
||||
## v41
|
||||
- Added interband ULCA for combos 32A+8A+7A+3C, 20A+8A+7A+3C and 32A+20A+7A+3C
|
||||
- All included combos: [https://uecaps.hennes.xyz/view/multi/?id=24d0b9ab-70e6-4ab5-8b7e-6627e007c73e](https://uecaps.hennes.xyz/view/multi/?id=24d0b9ab-70e6-4ab5-8b7e-6627e007c73e)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
## v44
|
||||
- Maintenance update for new updater path
|
||||
## v42
|
||||
- Add n78-n78-n28-n1 SA combo with ULCA
|
||||
- All included combos: [https://uecaps.hennes.xyz/view/multi/?id=ab2eb2f3-9ad0-4e4e-9d1e-55deeda23ef1](https://uecaps.hennes.xyz/view/multi/?id=ab2eb2f3-9ad0-4e4e-9d1e-55deeda23ef1)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
id=custom_lte_p9_tokay
|
||||
name=Pixel 9 custom LTE uecap
|
||||
version=41
|
||||
versionCode=41
|
||||
version=42
|
||||
versionCode=42
|
||||
author=high3eam
|
||||
description=replaces lte uecaps binarypb with custom one for added lowband ca
|
||||
updateJson=https://raw.githubusercontent.com/high3eam/pixel9-EU-combos/main/updaterLTE.json
|
||||
updateJson=https://git.hnrk.io/henrik/pixel9-EU-combos/raw/branch/main/updaterLTE.json
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
id=custom_platform_p9_tokay
|
||||
name=Pixel 9 custom uecap platform 2CC 3CC FDD NRULCA NR UL MIMO
|
||||
version=42
|
||||
versionCode=42
|
||||
version=44
|
||||
versionCode=44
|
||||
author=high3eam
|
||||
description=replaces default platform binarypb with custom one, 2CC 3CC FDD NRULCA and FDD NR UL MIMO
|
||||
updateJson=https://raw.githubusercontent.com/high3eam/pixel9-EU-combos/main/updaterNR.json
|
||||
updateJson=https://git.hnrk.io/henrik/pixel9-EU-combos/raw/branch/main/updaterNR.json
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": "41",
|
||||
"versionCode": 41,
|
||||
"zipUrl": "https://github.com/high3eam/pixel9-EU-combos/releases/download/LTE-v41/p9_lte_combos_mod_v41.zip",
|
||||
"changelog": "https://raw.githubusercontent.com/high3eam/pixel9-EU-combos/main/changelog-LTE.md"
|
||||
"version": "42",
|
||||
"versionCode": 42,
|
||||
"zipUrl": "https://git.hnrk.io/henrik/pixel9-EU-combos/releases/download/LTE-v42/p9_lte_combos_mod_v42.zip",
|
||||
"changelog": "https://git.hnrk.io/henrik/pixel9-EU-combos/raw/branch/main/changelog-LTE.md"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": "42",
|
||||
"versionCode": 42,
|
||||
"zipUrl": "https://git.hnrk.io/henrik/pixel9-EU-combos/releases/download/NR-v42/p9_nr_platform_mod_v42.zip",
|
||||
"version": "44",
|
||||
"versionCode": 44,
|
||||
"zipUrl": "https://git.hnrk.io/henrik/pixel9-EU-combos/releases/download/NR-v44/p9_nr_platform_mod_v44.zip",
|
||||
"changelog": "https://git.hnrk.io/henrik/pixel9-EU-combos/raw/branch/main/changelog-NR.md"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user