From 4d2a6a6de21c219374d5f7b652eb2bbaad0ab2bc Mon Sep 17 00:00:00 2001 From: Ignacio Iglesias Date: Sat, 19 Mar 2016 02:08:25 +0100 Subject: [PATCH] Separated markdown sendmessage --- bashbot.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bashbot.sh b/bashbot.sh index 66d0198..9b900fa 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -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"