Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/service/setting.go')
-rw-r--r--web/service/setting.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/service/setting.go b/web/service/setting.go
index 677ccbb2..9bf74641 100644
--- a/web/service/setting.go
+++ b/web/service/setting.go
@@ -39,6 +39,7 @@ var defaultValueMap = map[string]string{
"tgBotChatId": "",
"tgRunTime": "@daily",
"tgBotBackup": "false",
+ "tgBotLoginNotify": "false",
"tgCpu": "0",
"tgLang": "en-US",
"secretEnable": "false",
@@ -266,6 +267,10 @@ func (s *SettingService) GetTgBotBackup() (bool, error) {
return s.getBool("tgBotBackup")
}
+func (s *SettingService) GetTgBotLoginNotify() (bool, error) {
+ return s.getBool("tgBotLoginNotify")
+}
+
func (s *SettingService) GetTgCpu() (int, error) {
return s.getInt("tgCpu")
}