~优化bot_tg机器人绑定提示

This commit is contained in:
juewuy
2026-01-25 20:18:12 +08:00
parent 89e6fe7faa
commit 219279c165
2 changed files with 3 additions and 3 deletions

View File

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

View File

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