From df67445aaab7bfe8772d3f51256f66b787480993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=B6=85=E8=B6=8A?= <993921@qq.com> Date: Sat, 16 Mar 2024 09:19:51 +0800 Subject: [PATCH] WIP: turn to local --- telegram/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telegram/root.go b/telegram/root.go index 7a5b376..9cf2b0f 100644 --- a/telegram/root.go +++ b/telegram/root.go @@ -13,7 +13,9 @@ var Bot *tb.Bot // BotStart 机器人启动 func BotStart() { setting := tb.Settings{ - Token: config.TelegramC.BotToken, + Token: func() string { + config.TelegramC.BotToken, + }(), Updates: 100, Poller: &tb.LongPoller{Timeout: 10 * time.Second, AllowedUpdates: []string{ "message",