From ac593ddbc832eb70e7ff83a0fd8f43188820be9e Mon Sep 17 00:00:00 2001 From: Vaala Cat <-e> Date: Mon, 19 Jun 2023 19:58:53 +0800 Subject: [PATCH] fix: api endpoint --- services/tgbot/bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/tgbot/bot.go b/services/tgbot/bot.go index e861b1a..28f3b81 100644 --- a/services/tgbot/bot.go +++ b/services/tgbot/bot.go @@ -25,8 +25,8 @@ func Run(sendFunc func(string)) { client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}} conf.Bot, err = tgbotapi.NewBotAPIWithClient( conf.GetBotSettings().BotToken, - // tgbotapi.APIEndpoint, - conf.GetBotSettings().TGBotApi, + tgbotapi.APIEndpoint, + // conf.GetBotSettings().TGBotApi, client) if err != nil {