~优化bot_tg机器人绑定提示

# Conflicts:
#	scripts/menus/7_gateway.sh
#	scripts/menus/bot_tg_bind.sh
This commit is contained in:
juewuy
2026-01-25 20:18:12 +08:00
parent 213eccc436
commit 9029a2ce82
2 changed files with 3 additions and 3 deletions

View File

@@ -155,13 +155,13 @@ set_bot_tg_config(){
JSON=$(cat <<EOF
{
"commands": [
{"command": "crash", "description": "呼出ShellCrash菜单"},
{"command": "$my_alias", "description": "呼出ShellCrash菜单"},
{"command": "help", "description": "查看帮助"}
]
}
EOF
)
TEXT='已完成Telegram机器人设置'
TEXT="已完成Telegram机器人设置请使用 /$my_alias 呼出功能菜单!"
. "$CRASHDIR"/libs/web_json.sh
bot_api="https://api.telegram.org/bot$TOKEN"
web_json_post "$bot_api/setMyCommands" "$JSON"

View File

@@ -20,7 +20,7 @@ tg_push_token(){
push_TG="$TOKEN"
setconfig push_TG "$TOKEN"
setconfig chat_ID "$chat_ID"
"$CRASHDIR"/start.sh logger "已完成Telegram日志推送设置" 32
. "$CRASHDIR"/libs/logger.sh && logger "已完成Telegram日志推送设置" 32
}
get_chatid(){
i=1