From 60b6c0beb1dfd08f623ef8859f4fdeb1c9e8381a Mon Sep 17 00:00:00 2001 From: johlanse Date: Thu, 11 Aug 2022 14:08:28 +0800 Subject: [PATCH] =?UTF-8?q?tg=E7=9A=84api=E5=A2=9E=E5=8A=A0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/config.go b/conf/config.go index 2836217..e511798 100644 --- a/conf/config.go +++ b/conf/config.go @@ -127,5 +127,8 @@ func GetConfig() Config { if config.SpecialMinScore == 0 { config.SpecialMinScore = 10 } + if config.TG.CustomApi == "" { + config.TG.CustomApi = "https://api.telegram.org" + } return config }