main: pass correct APIEndpoint to NewBotAPIWithClient
This commit is contained in:
@@ -23,7 +23,7 @@ func main() {
|
||||
// Default HTTP client respects HTTP_PROXY env var automatically
|
||||
httpClient := http.DefaultClient
|
||||
|
||||
botAPI, err := tgbotapi.NewBotAPIWithClient(token, "", httpClient)
|
||||
botAPI, err := tgbotapi.NewBotAPIWithClient(token, tgbotapi.APIEndpoint, httpClient)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user