export interface WebhookOptions { /** shared secret echoed in `x-telegram-bot-api-secret-token`. mismatched/missing requests get 401 when set */ secretToken?: string; /** * webhook-reply optimization (default on) — api calls returning `true` (chat * actions, reactions, deletions, …) ride the 200 body, saving a round-trip. * data-returning methods (sendMessage, getChat, …) still round-trip. invisible * to userland: `await tg.api.X(...)` resolves the same either way. * disable only when proxies/firewalls strip non-empty 200 bodies */ webhookReply?: boolean; /** * max wait between request arrival and the 200 response. dispatch keeps * running after — awaited by `tg.shutdown()`. default 25_000ms sits under * telegram's ~60s retry threshold. only active with `webhookReply` */ timeoutMilliseconds?: number; /** * `nodeAdapter` body-size cap; requests over the limit return 413. default * 1MB (telegram updates are typically <100KB). other adapters use their * framework's own limits */ maxBodyBytes?: number; } export interface ResolvedWebhookOptions { secretToken: string | undefined; webhookReply: boolean; timeoutMilliseconds: number; maxBodyBytes: number; } export declare const DEFAULT_MAX_BODY_BYTES = 1048576; export declare const DEFAULT_TIMEOUT_MS = 25000; export declare function resolveWebhookOptions(input?: WebhookOptions): { secretToken: string | undefined; webhookReply: boolean; timeoutMilliseconds: number; maxBodyBytes: number; }; //# sourceMappingURL=options.d.ts.map