This commit is contained in:
Kirill Chikalin
2025-03-20 08:58:35 +03:00
parent 986af9d158
commit 959fd6e8d9
3 changed files with 2 additions and 3 deletions

View File

@@ -50,5 +50,5 @@ runs:
GITHUB_ACTION_PATH: ${{ github.action_path }}
- name: Send message
run: sendMessage "${{ inputs.bot_token }}" "${{ inputs.chat_id }}" "$(echo -e "${{ inputs.message }}")"
run: sendMessage "${{ inputs.bot_token }}" "${{ inputs.chat_id }}" $(echo -e "/"${{ inputs.message }}/"")
shell: bash

View File

@@ -1 +0,0 @@
echo Goodbye

View File

@@ -4,7 +4,7 @@ response=$(curl -s -X POST "https://api.telegram.org/bot$1/sendMessage" \
-d "chat_id=$2" \
-d "parse_mode=MarkdownV2" \
-d "link_preview_options={\"is_disabled\":true}" \
-d "text=test: $3")
-d "text=$3")
# if command -v jq >/dev/null 2>&1; then
message_id=$(echo "$response" | jq '.result.message_id')