feat: support other api endpoint
This commit is contained in:
1 parent
e516a51ebe
commit
730aea3e3b
2 files changed
+6
-2
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user