From 87f618fadbcbc9ed6db7ca3903c68ce01c84b003 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Thu, 14 Jan 2021 18:25:53 +0100 Subject: [PATCH] modules: sendMessage: send_sticker --- modules/sendMessage.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/sendMessage.sh b/modules/sendMessage.sh index e4c8808..feb5e55 100644 --- a/modules/sendMessage.sh +++ b/modules/sendMessage.sh @@ -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