From 92e9e9c3f56e01a3bd63be4283510bd33bb0b020 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sun, 31 Mar 2019 14:54:58 +0200 Subject: [PATCH] fix hmtl with urlencode --- README.md | 2 +- bashbot.cron | 2 +- bashbot.rc | 2 +- bashbot.sh | 4 ++-- commands.sh | 2 +- notify | 2 +- question | 2 +- version | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0fd8317..1c933a4 100644 --- a/README.md +++ b/README.md @@ -445,4 +445,4 @@ No - its not more or less insecure as any other Bot written in any other languag If you feel that there's something missing or if you found a bug, feel free to submit a pull request! -#### $$VERSION$$ v0.5-rc-2-g46cf959 +#### $$VERSION$$ v0.5-rc-3-gf67503c diff --git a/bashbot.cron b/bashbot.cron index 91d811e..123f930 100644 --- a/bashbot.cron +++ b/bashbot.cron @@ -7,7 +7,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v0.5-rc-0-g0c144bc +#### $$VERSION$$ v0.5-rc-3-gf67503c SHELL=/bin/sh diff --git a/bashbot.rc b/bashbot.rc index 1cb8bdf..eb17b76 100755 --- a/bashbot.rc +++ b/bashbot.rc @@ -1,7 +1,7 @@ #!/bin/sh # description: Start or stop telegram-bash-bot # -#### $$VERSION$$ v0.5-rc-0-g0c144bc +#### $$VERSION$$ v0.5-rc-3-gf67503c # ### BEGIN INIT INFO # Provides: bashbot diff --git a/bashbot.sh b/bashbot.sh index ff4fb9c..2bfd52e 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -10,7 +10,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v0.5-rc-1-g050d376 +#### $$VERSION$$ v0.5-rc-3-gf67503c # are we runnig in a terminal? if [ -t 1 ] && [ "$TERM" != "" ]; then @@ -187,7 +187,7 @@ send_markdown_message() { send_html_message() { text="$2" until [ "$(echo -n "$text" | wc -m)" -eq "0" ]; do - res="$(curl -s "$MSG_URL" -F "chat_id=$1" --data-urlencode "text=${text:0:4096}" -F "parse_mode=html")" + res="$(curl -s "$MSG_URL" -d "chat_id=$1" --data-urlencode "text=${text:0:4096}" -d "parse_mode=html")" text="${text:4096}" done } diff --git a/commands.sh b/commands.sh index b70729a..cd3eadb 100755 --- a/commands.sh +++ b/commands.sh @@ -4,7 +4,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v0.5-rc-0-g0c144bc +#### $$VERSION$$ v0.5-rc-3-gf67503c # adjust your language setting here, e.g.when run from other user or cron. # https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment diff --git a/notify b/notify index 69822cd..9e09814 100755 --- a/notify +++ b/notify @@ -2,7 +2,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) -#### $$VERSION$$ v0.5-rc-0-g0c144bc +#### $$VERSION$$ v0.5-rc-3-gf67503c # adjust your language setting here # https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment diff --git a/question b/question index 7b25b8c..96cd161 100755 --- a/question +++ b/question @@ -3,7 +3,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) -#### $$VERSION$$ v0.5-rc-0-g0c144bc +#### $$VERSION$$ v0.5-rc-3-gf67503c # adjust your language setting here # https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment diff --git a/version b/version index 90f1b3a..79e21fe 100755 --- a/version +++ b/version @@ -1,6 +1,6 @@ #!/bin/sh # -#### $$VERSION$$ v0.5-rc-0-g0c144bc +#### $$VERSION$$ v0.5-rc-3-gf67503c # # Easy Versioning in git: #