Просмотр исходного кода

fix enabletgbot cli

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 1 год назад
Родитель
Сommit
bbce1eb3f7
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      main.go

+ 3 - 0
main.go

@@ -290,6 +290,9 @@ func main() {
 		if (tgbottoken != "") || (tgbotchatid != "") || (tgbotRuntime != "") {
 			updateTgbotSetting(tgbottoken, tgbotchatid, tgbotRuntime)
 		}
+		if enabletgbot {
+			updateTgbotEnableSts(enabletgbot)
+		}
 	default:
 		fmt.Println("except 'run' or 'v2-ui' or 'setting' subcommands")
 		fmt.Println()