Rename to hkt.sh

This commit is contained in:
mango
2026-03-21 01:10:53 +08:00
parent 76a263d0f9
commit 8f1171fe99
6676 changed files with 1724268 additions and 0 deletions

15
scripts/fix-telegram-menu.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
TOKEN=$(python3 -c "import json; c=json.load(open('$HOME/.openclaw/openclaw.json')); tg=c.get('telegram',c.get('channels',{}).get('telegram',{})); print(tg.get('botToken',''))")
curl -s -X POST "https://api.telegram.org/bot${TOKEN}/setMyCommands" \
-H "Content-Type: application/json" \
-d '{
"commands": [
{"command": "new", "description": "新对话"},
{"command": "stop", "description": "停止生成"},
{"command": "status", "description": "查看状态"},
{"command": "models", "description": "查看可用模型"},
{"command": "reasoning", "description": "切换推理模式"},
{"command": "restart", "description": "重启 Gateway"},
{"command": "help", "description": "帮助"}
]
}'