diff --git a/cmd/bot/main.go b/cmd/bot/main.go index cd48919..5fff1ca 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -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) }