import type { TelegramInputFile, TelegramWebhookInfo } from '@puregram/api'; import type { Telegram } from '../../telegram.js'; export interface SetWebhookOptions { /** HTTPS url telegram will POST updates to. empty string clears the webhook */ url: string; /** public-key cert for self-signed setups */ certificate?: TelegramInputFile; /** fixed ip address bypassing dns resolution for outgoing requests */ ipAddress?: string; /** simultaneous connections cap, 1-100. default 40 */ maxConnections?: number; /** update types to subscribe to, or `'auto'` to derive from handlers. empty array = telegram default */ allowedUpdates?: string[] | 'auto'; /** drop the queued backlog before subscribing */ dropPendingUpdates?: boolean; /** echoed in `x-telegram-bot-api-secret-token` on every webhook delivery */ secretToken?: string; } export interface DeleteWebhookOptions { /** drop the queued backlog when unsubscribing */ dropPendingUpdates?: boolean; } export declare function setWebhook(tg: Telegram, options: SetWebhookOptions): Promise; export declare function deleteWebhook(tg: Telegram, options?: DeleteWebhookOptions): Promise; export declare function getWebhookInfo(tg: Telegram): Promise; //# sourceMappingURL=helpers.d.ts.map