From d12ab8600dfb6d35a605190af6b216a0bde7e6db Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Fri, 15 Jan 2021 19:40:31 +0100 Subject: [PATCH] minimize use of JsonGetXxx --- modules/sendMessage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sendMessage.sh b/modules/sendMessage.sh index 8c4e0e3..daf4d89 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-15-g8399096 +#### $$VERSION$$ v1.30-dev-25-gef972c5 # will be automatically sourced from bashbot @@ -259,7 +259,7 @@ send_file(){ esac # get file_id and file_type if [ "${BOTSENT[OK]}" = "true" ]; then - BOTSENT[FILE_ID]="$(JsonGetString '.*,"file_id"' <<< "${res}")" + BOTSENT[FILE_ID]="${UPD["${what},0,file_id"]}" BOTSENT[FILE_TYPE]="${what}" fi return 0