small fixes

This commit is contained in:
2026-02-18 14:05:36 +03:00
parent 434638a61d
commit d84b0a1b55
3 changed files with 6 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ func (r TelegramRequest[R, P]) DoWithContext(ctx context.Context, api *API) (R,
}
api.Logger.Debugln("RES", r.method, string(data))
if res.StatusCode != http.StatusOK {
return zero, fmt.Errorf("unexpected status code: %d", res.StatusCode)
return zero, fmt.Errorf("unexpected status code: %d, %s", res.StatusCode, string(data))
}
var resp ApiResponse[R]