From b0fcb7a6c32ddcb85b9db0e8e697d9a033a847c4 Mon Sep 17 00:00:00 2001 From: db123 Date: Tue, 23 Jun 2026 21:00:27 +0330 Subject: [PATCH] main: pass correct APIEndpoint to NewBotAPIWithClient --- cmd/bot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }