This commit is contained in:
Kirill Chikalin
2025-03-20 08:30:46 +03:00
parent db88d660cf
commit a5f446cc39

View File

@@ -4,13 +4,13 @@ MESSAGE=$(echo -e "$3")
echo token=$1
echo chat_id=$2
echo text=$3
echo text=$MESSAGE
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}" \
-d "text=test: $(echo -e "$3")")
-d "text=test: $MESSAGE")
# if command -v jq >/dev/null 2>&1; then
message_id=$(echo "$response" | jq '.result.message_id')