Compare commits

...

2 Commits

Author SHA1 Message Date
Kirill Chikalin
db88d660cf text to message 2025-03-20 08:27:28 +03:00
Kirill Chikalin
d185edb3fc curl -v 2025-03-20 08:26:07 +03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
name: 'Hello World' name: 'Hello World'
description: 'Greet someone' description: 'Greet someone'
inputs: inputs:
text: message:
description: "Text" description: "Text"
required: false required: false
default: "" default: ""
@@ -62,7 +62,7 @@ runs:
GITHUB_ACTION_PATH: ${{ github.action_path }} GITHUB_ACTION_PATH: ${{ github.action_path }}
- name: Send message - name: Send message
run: sendMessage ${{ inputs.bot_token }} ${{ inputs.chat_id }} ${{ inputs.text }} run: sendMessage ${{ inputs.bot_token }} ${{ inputs.chat_id }} ${{ inputs.message }}
shell: bash shell: bash
- name: Run goodbye.sh - name: Run goodbye.sh

View File

@@ -6,7 +6,7 @@ echo token=$1
echo chat_id=$2 echo chat_id=$2
echo text=$3 echo text=$3
response=$(curl -s -X POST "https://api.telegram.org/bot$1/sendMessage" \ response=$(curl -s -X -v POST "https://api.telegram.org/bot$1/sendMessage" \
-d "chat_id=$2" \ -d "chat_id=$2" \
-d "parse_mode=MarkdownV2" \ -d "parse_mode=MarkdownV2" \
-d "link_preview_options={\"is_disabled\":true}" \ -d "link_preview_options={\"is_disabled\":true}" \