feat: support other api endpoint

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

No files matched your search

+2 -1
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 {