Compare commits

..

3 Commits

Author SHA1 Message Date
Vaala Cat
7bd7e940ba fix: support kick cron 2023-06-19 19:58:22 +08:00
Vaala Cat
c278b3f516 feat: support kick 2023-06-19 19:58:20 +08:00
Vaala Cat
730aea3e3b feat: support other api endpoint 2023-06-08 22:28:41 +08:00

View File

@@ -25,7 +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,
// tgbotapi.APIEndpoint,
conf.GetBotSettings().TGBotApi,
client)
if err != nil {