test
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
MESSAGE=$(echo -e "$3")
|
MESSAGE=$(echo -e "$3")
|
||||||
|
|
||||||
echo token=$1
|
token=$1
|
||||||
echo chat_id=$2
|
echo chat_id=$2
|
||||||
echo text=$MESSAGE
|
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$token/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}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user