fix?
This commit is contained in:
@@ -4,13 +4,13 @@ MESSAGE=$(echo -e "$3")
|
|||||||
|
|
||||||
echo token=$1
|
echo token=$1
|
||||||
echo chat_id=$2
|
echo chat_id=$2
|
||||||
echo text=$3
|
echo text=$MESSAGE
|
||||||
|
|
||||||
response=$(curl -s -X -v 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}" \
|
||||||
-d "text=test: $(echo -e "$3")")
|
-d "text=test: $MESSAGE")
|
||||||
|
|
||||||
# if command -v jq >/dev/null 2>&1; then
|
# if command -v jq >/dev/null 2>&1; then
|
||||||
message_id=$(echo "$response" | jq '.result.message_id')
|
message_id=$(echo "$response" | jq '.result.message_id')
|
||||||
|
|||||||
Reference in New Issue
Block a user