From 37269ef8516b4b79ecfc39d210d13461f771d894 Mon Sep 17 00:00:00 2001 From: juewuy Date: Tue, 10 Feb 2026 19:31:15 +0800 Subject: [PATCH] =?UTF-8?q?~=E5=A2=9E=E5=8A=A0=E6=AF=8F=E6=AC=A1=E5=90=AF?= =?UTF-8?q?=E5=8A=A8tg=5Fbot=E6=9C=8D=E5=8A=A1=E6=97=B6=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E8=8F=9C=E5=8D=95=E7=9A=84=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/menus/7_gateway.sh | 10 ++++++++++ scripts/menus/bot_tg.sh | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/menus/7_gateway.sh b/scripts/menus/7_gateway.sh index ec10a710..9aba7b65 100644 --- a/scripts/menus/7_gateway.sh +++ b/scripts/menus/7_gateway.sh @@ -195,6 +195,7 @@ set_bot_tg(){ echo "-----------------------------------------------" echo -e " 1 启用/关闭TG-BOT服务 \033[32m$bot_tg_service\033[0m" echo -e " 2 TG-BOT绑定设置 \033[32m$TG_CHATID_info\033[0m" + echo -e " 3 启动时推送菜单 \033[32m$TG_menupush\033[0m" echo -e " 0 返回上级菜单 \033[0m" echo "-----------------------------------------------" read -p "请输入对应数字 > " num @@ -223,6 +224,15 @@ set_bot_tg(){ set_bot_tg_init set_bot_tg ;; + 3) + if [ "$TG_menupush" = ON ];then + TG_menupush=OFF + else + TG_menupush=ON + fi + setconfig TG_menupush "$TG_menupush" + set_bot_tg + ;; *) errornum ;; diff --git a/scripts/menus/bot_tg.sh b/scripts/menus/bot_tg.sh index 9f3c554e..15a53181 100644 --- a/scripts/menus/bot_tg.sh +++ b/scripts/menus/bot_tg.sh @@ -320,7 +320,7 @@ polling(){ done } -#send_menu +[ "$TG_menupush" = ON ] && send_menu polling