fix: api endpoint

This commit is contained in:
Vaala Cat 2023-06-19 19:58:53 +08:00
parent 7bd7e940ba
commit ac593ddbc8

View File

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