tg的api增加默认值

This commit is contained in:
johlanse 2022-08-11 14:08:28 +08:00
parent 66b35f3585
commit 60b6c0beb1
1 changed files with 3 additions and 0 deletions

View File

@ -127,5 +127,8 @@ func GetConfig() Config {
if config.SpecialMinScore == 0 { if config.SpecialMinScore == 0 {
config.SpecialMinScore = 10 config.SpecialMinScore = 10
} }
if config.TG.CustomApi == "" {
config.TG.CustomApi = "https://api.telegram.org"
}
return config return config
} }