feat: support other api endpoint

This commit is contained in:
Vaala Cat
2023-06-08 22:28:41 +08:00
parent e516a51ebe
commit 730aea3e3b
2 changed files with 6 additions and 2 deletions

View File

@@ -24,7 +24,8 @@ func Run(sendFunc func(string) error) {
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 {