Compare commits

..

2 Commits

Author SHA1 Message Date
Vaala Cat
60d6572331 fix: support kick cron 2023-06-19 19:56:10 +08:00
Vaala Cat
f0c2083bd7 feat: support kick 2023-06-19 19:21:26 +08:00

View File

@@ -25,8 +25,7 @@ func Run(sendFunc func(string)) {
client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}} client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}}
conf.Bot, err = tgbotapi.NewBotAPIWithClient( conf.Bot, err = tgbotapi.NewBotAPIWithClient(
conf.GetBotSettings().BotToken, conf.GetBotSettings().BotToken,
// tgbotapi.APIEndpoint, tgbotapi.APIEndpoint,
conf.GetBotSettings().TGBotApi,
client) client)
if err != nil { if err != nil {