# shellcheck shell=sh disable=SC2154,SC2120,SC3043,SC2034

xrc:mod:lib telegram    bot/service bot/data bot/send bot/download bot/parse

___x_cmd_telegram_bot(){
    param:subcmd ___x_cmd_telegram_bot    \
        data    "get message data path"   \
        service "manage service"          \
        send    "send msg"                \
        download "download file"

    param:subcmd:try
    param:run

    if [ "$#" -eq 0 ]; then
        ___x_cmd_telegram bot --help
    else
        ___x_cmd_telegram bot send "$@"
    fi
    return
}