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'
description: 'Greet someone'
inputs:
text:
message:
description: "Text"
required: false
default: ""
@@ -62,7 +62,7 @@ runs:
GITHUB_ACTION_PATH: ${{ github.action_path }}
- 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
- name: Run goodbye.sh

View File

@@ -6,7 +6,7 @@ echo token=$1
echo chat_id=$2
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 "parse_mode=MarkdownV2" \
-d "link_preview_options={\"is_disabled\":true}" \