mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
~优化bot_tg机器人绑定提示
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user