main: pass correct APIEndpoint to NewBotAPIWithClient

This commit is contained in:
2026-06-23 21:00:27 +03:30
parent 3aaf5b326d
commit b0fcb7a6c3

View File

@@ -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)
} }