Explorar el Código

fix enabletgbot cli

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei hace 1 año
padre
commit
bbce1eb3f7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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()