# shellcheck shell=dash

___x_cmd_qywx_abot_data(){
    param:void

    [ $# -gt 0 ]    ||  set -- which

    local op="$1" ;     shift
    case "$op" in
        -h|--help)      ___x_cmd help -m qywx abot data "$@" ; return 0 ;;
        which|which_)
                        ___x_cmd_qywx_abot_data_"$op"   "$@" ;;
    esac
}

___x_cmd_qywx_abot_data_which_(){
    local chatid="$1"
    x_="${___X_CMD_QYWX_BOT_PATH}/data_${chatid}.tsv"
}

___x_cmd_qywx_abot_data_which(){
    local chatid="$1"
    [ -n "$chatid" ] || N=qywx M="Not Found chat id" log:ret:1
    local x_
    ___x_cmd_qywx_abot_data_which_ "$chatid" || return $?
    printf "%s\n" "$x_"
}