fixed getusr_name being called without arguments

This commit is contained in:
celso 2023-03-22 15:12:57 -03:00
parent c602c92c15
commit 0aecf3fa5b
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ getchat_title(){
local chat_title="$(tail -n 1 "${bot_tmpdir}${1}" | grep -om1\ local chat_title="$(tail -n 1 "${bot_tmpdir}${1}" | grep -om1\
'"title":"\(\\"\|[^"]*\)*","type":"group"' | head -n1)" '"title":"\(\\"\|[^"]*\)*","type":"group"' | head -n1)"
[ ! -z "${chat_title}" ] && utf-16-surrogate-pair-decode "${chat_title:9:-16}"\ [ ! -z "${chat_title}" ] && utf-16-surrogate-pair-decode "${chat_title:9:-16}"\
|| getusr_name || getusr_name "${1}"
} }
get_cbks() { get_cbks() {