fix hmtl with urlencode

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-03-31 14:54:58 +02:00
parent f67503c0e2
commit 92e9e9c3f5
8 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
}

View File

@ -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

2
notify
View File

@ -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

View File

@ -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

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
#### $$VERSION$$ v0.5-rc-0-g0c144bc
#### $$VERSION$$ v0.5-rc-3-gf67503c
#
# Easy Versioning in git:
#