mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-12 00:11:31 +00:00
~优化bot_tg机器人绑定提示
# Conflicts: # scripts/menus/7_gateway.sh # scripts/menus/bot_tg_bind.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user