Separated markdown sendmessage

This commit is contained in:
Ignacio Iglesias 2016-03-19 02:08:25 +01:00
parent 76e96c05a1
commit 4d2a6a6de2
1 changed files with 5 additions and 1 deletions

View File

@ -60,11 +60,15 @@ send_message() {
fi
if [ "$sent" != "y" ];then
res=$(curl -s "$MSG_URL" -F "chat_id=$chat" -F "text=$text" -F "parse_mode=markdown")
res=$(curl -s "$MSG_URL" -F "chat_id=$chat" -F "text=$text")
fi
}
send_markdown_message() {
res=$(curl -s "$MSG_URL" -F "chat_id=$1" -F "text=$2" -F "parse_mode=markdown")
}
send_keyboard() {
local chat="$1"
local text="$2"