mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-29 05:02:46 +00:00
minimize use of JsonGetXxx
This commit is contained in:
parent
ef972c5714
commit
d12ab8600d
@ -6,7 +6,7 @@
|
|||||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC1117
|
# shellcheck disable=SC1117
|
||||||
#### $$VERSION$$ v1.30-dev-15-g8399096
|
#### $$VERSION$$ v1.30-dev-25-gef972c5
|
||||||
|
|
||||||
# will be automatically sourced from bashbot
|
# will be automatically sourced from bashbot
|
||||||
|
|
||||||
@ -259,7 +259,7 @@ send_file(){
|
|||||||
esac
|
esac
|
||||||
# get file_id and file_type
|
# get file_id and file_type
|
||||||
if [ "${BOTSENT[OK]}" = "true" ]; then
|
if [ "${BOTSENT[OK]}" = "true" ]; then
|
||||||
BOTSENT[FILE_ID]="$(JsonGetString '.*,"file_id"' <<< "${res}")"
|
BOTSENT[FILE_ID]="${UPD["${what},0,file_id"]}"
|
||||||
BOTSENT[FILE_TYPE]="${what}"
|
BOTSENT[FILE_TYPE]="${what}"
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user