modules: sendMessage: send_sticker

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-14 18:25:53 +01:00
parent daeffb30e8
commit 87f618fadb

View File

@ -6,7 +6,7 @@
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
# shellcheck disable=SC1117
#### $$VERSION$$ v1.30-dev-2-gcc299a5
#### $$VERSION$$ v1.30-dev-5-gdaeffb3
# will be automatically sourced from bashbot
@ -143,6 +143,11 @@ send_button() {
send_inline_keyboard "$1" "$2" '[ {"text":"'"$(JsonEscape "$3")"'", "url":"'"$4"'"}]'
}
# $1 chat, $2 file_id on telegram server
send_sticker() {
sendJson "$1" '"sticker": "'"$2"'"' "${URL}/setChatDescription"
}
if [ -z "${BASHBOT_WGET}" ] && _exists curl ; then
# there are no checks if URL or ID exists