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
|
// Default HTTP client respects HTTP_PROXY env var automatically
|
||||||
httpClient := http.DefaultClient
|
httpClient := http.DefaultClient
|
||||||
|
|
||||||
botAPI, err := tgbotapi.NewBotAPIWithClient(token, "", httpClient)
|
botAPI, err := tgbotapi.NewBotAPIWithClient(token, tgbotapi.APIEndpoint, httpClient)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user