import { z } from 'zod'; import { ServiceBubble } from '../../types/service-bubble-class.js'; import type { BubbleContext } from '../../types/bubble.js'; import { CredentialType } from '@bubblelab/shared-schemas'; declare const TelegramParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; text: z.ZodString; parse_mode: z.ZodOptional>; entities: z.ZodOptional>; disable_web_page_preview: z.ZodOptional; disable_notification: z.ZodOptional; protect_content: z.ZodOptional; reply_to_message_id: z.ZodOptional; allow_sending_without_reply: z.ZodOptional; reply_markup: z.ZodOptional; callback_data: z.ZodOptional; web_app: z.ZodOptional>; login_url: z.ZodOptional>; switch_inline_query: z.ZodOptional; switch_inline_query_current_chat: z.ZodOptional; callback_game: z.ZodOptional>; pay: z.ZodOptional; }, "strip", z.ZodTypeAny, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }>, "many">, "many">; }, "strip", z.ZodTypeAny, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }>, z.ZodObject<{ keyboard: z.ZodArray; request_location: z.ZodOptional; request_poll: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "quiz" | "regular" | undefined; }, { type?: "quiz" | "regular" | undefined; }>>; web_app: z.ZodOptional>; }, "strip", z.ZodTypeAny, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }>, "many">, "many">; is_persistent: z.ZodOptional; resize_keyboard: z.ZodOptional; one_time_keyboard: z.ZodOptional; input_field_placeholder: z.ZodOptional; selective: z.ZodOptional; }, "strip", z.ZodTypeAny, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }>]>>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; chat_id: string | number; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; entities?: unknown[] | undefined; disable_web_page_preview?: boolean | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; }, { text: string; operation: "send_message"; chat_id: string | number; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; entities?: unknown[] | undefined; disable_web_page_preview?: boolean | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_photo">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; photo: z.ZodUnion<[z.ZodString, z.ZodString]>; caption: z.ZodOptional; parse_mode: z.ZodOptional>; caption_entities: z.ZodOptional>; has_spoiler: z.ZodOptional; disable_notification: z.ZodOptional; protect_content: z.ZodOptional; reply_to_message_id: z.ZodOptional; allow_sending_without_reply: z.ZodOptional; reply_markup: z.ZodOptional; callback_data: z.ZodOptional; web_app: z.ZodOptional>; login_url: z.ZodOptional>; switch_inline_query: z.ZodOptional; switch_inline_query_current_chat: z.ZodOptional; callback_game: z.ZodOptional>; pay: z.ZodOptional; }, "strip", z.ZodTypeAny, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }>, "many">, "many">; }, "strip", z.ZodTypeAny, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }>, z.ZodObject<{ keyboard: z.ZodArray; request_location: z.ZodOptional; request_poll: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "quiz" | "regular" | undefined; }, { type?: "quiz" | "regular" | undefined; }>>; web_app: z.ZodOptional>; }, "strip", z.ZodTypeAny, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }>, "many">, "many">; is_persistent: z.ZodOptional; resize_keyboard: z.ZodOptional; one_time_keyboard: z.ZodOptional; input_field_placeholder: z.ZodOptional; selective: z.ZodOptional; }, "strip", z.ZodTypeAny, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }>]>>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_photo"; chat_id: string | number; photo: string; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; caption?: string | undefined; caption_entities?: unknown[] | undefined; has_spoiler?: boolean | undefined; }, { operation: "send_photo"; chat_id: string | number; photo: string; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; caption?: string | undefined; caption_entities?: unknown[] | undefined; has_spoiler?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_document">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; document: z.ZodUnion<[z.ZodString, z.ZodString]>; thumbnail: z.ZodOptional>; caption: z.ZodOptional; parse_mode: z.ZodOptional>; caption_entities: z.ZodOptional>; disable_content_type_detection: z.ZodOptional; disable_notification: z.ZodOptional; protect_content: z.ZodOptional; reply_to_message_id: z.ZodOptional; allow_sending_without_reply: z.ZodOptional; reply_markup: z.ZodOptional; callback_data: z.ZodOptional; web_app: z.ZodOptional>; login_url: z.ZodOptional>; switch_inline_query: z.ZodOptional; switch_inline_query_current_chat: z.ZodOptional; callback_game: z.ZodOptional>; pay: z.ZodOptional; }, "strip", z.ZodTypeAny, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }>, "many">, "many">; }, "strip", z.ZodTypeAny, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }>, z.ZodObject<{ keyboard: z.ZodArray; request_location: z.ZodOptional; request_poll: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "quiz" | "regular" | undefined; }, { type?: "quiz" | "regular" | undefined; }>>; web_app: z.ZodOptional>; }, "strip", z.ZodTypeAny, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }>, "many">, "many">; is_persistent: z.ZodOptional; resize_keyboard: z.ZodOptional; one_time_keyboard: z.ZodOptional; input_field_placeholder: z.ZodOptional; selective: z.ZodOptional; }, "strip", z.ZodTypeAny, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }>]>>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_document"; chat_id: string | number; document: string; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; caption?: string | undefined; caption_entities?: unknown[] | undefined; thumbnail?: string | undefined; disable_content_type_detection?: boolean | undefined; }, { operation: "send_document"; chat_id: string | number; document: string; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; caption?: string | undefined; caption_entities?: unknown[] | undefined; thumbnail?: string | undefined; disable_content_type_detection?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"edit_message">; chat_id: z.ZodOptional>; message_id: z.ZodOptional; inline_message_id: z.ZodOptional; text: z.ZodString; parse_mode: z.ZodOptional>; entities: z.ZodOptional>; disable_web_page_preview: z.ZodOptional; reply_markup: z.ZodOptional; callback_data: z.ZodOptional; web_app: z.ZodOptional>; login_url: z.ZodOptional>; switch_inline_query: z.ZodOptional; switch_inline_query_current_chat: z.ZodOptional; callback_game: z.ZodOptional>; pay: z.ZodOptional; }, "strip", z.ZodTypeAny, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }>, "many">, "many">; }, "strip", z.ZodTypeAny, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }>>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "edit_message"; credentials?: Partial> | undefined; chat_id?: string | number | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; entities?: unknown[] | undefined; disable_web_page_preview?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | undefined; message_id?: number | undefined; inline_message_id?: string | undefined; }, { text: string; operation: "edit_message"; credentials?: Partial> | undefined; chat_id?: string | number | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; entities?: unknown[] | undefined; disable_web_page_preview?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | undefined; message_id?: number | undefined; inline_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; message_id: z.ZodNumber; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_message"; chat_id: string | number; message_id: number; credentials?: Partial> | undefined; }, { operation: "delete_message"; chat_id: string | number; message_id: number; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_me">; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_me"; credentials?: Partial> | undefined; }, { operation: "get_me"; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_chat">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_chat"; chat_id: string | number; credentials?: Partial> | undefined; }, { operation: "get_chat"; chat_id: string | number; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_updates">; offset: z.ZodOptional; limit: z.ZodDefault>; timeout: z.ZodOptional; allowed_updates: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_updates"; limit: number; credentials?: Partial> | undefined; timeout?: number | undefined; offset?: number | undefined; allowed_updates?: string[] | undefined; }, { operation: "get_updates"; credentials?: Partial> | undefined; timeout?: number | undefined; limit?: number | undefined; offset?: number | undefined; allowed_updates?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_chat_action">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; action: z.ZodEnum<["typing", "upload_photo", "record_video", "upload_video", "record_voice", "upload_voice", "upload_document", "find_location", "record_video_note", "upload_video_note", "choose_sticker"]>; message_thread_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { action: "typing" | "upload_photo" | "record_video" | "upload_video" | "record_voice" | "upload_voice" | "upload_document" | "find_location" | "record_video_note" | "upload_video_note" | "choose_sticker"; operation: "send_chat_action"; chat_id: string | number; credentials?: Partial> | undefined; message_thread_id?: number | undefined; }, { action: "typing" | "upload_photo" | "record_video" | "upload_video" | "record_voice" | "upload_voice" | "upload_document" | "find_location" | "record_video_note" | "upload_video_note" | "choose_sticker"; operation: "send_chat_action"; chat_id: string | number; credentials?: Partial> | undefined; message_thread_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"set_message_reaction">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; message_id: z.ZodNumber; reaction: z.ZodOptional; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"custom_emoji">; custom_emoji_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "custom_emoji"; custom_emoji_id: string; }, { type: "custom_emoji"; custom_emoji_id: string; }>]>, "many">>; is_big: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "set_message_reaction"; chat_id: string | number; message_id: number; credentials?: Partial> | undefined; reaction?: ({ type: "emoji"; emoji: string; } | { type: "custom_emoji"; custom_emoji_id: string; })[] | undefined; is_big?: boolean | undefined; }, { operation: "set_message_reaction"; chat_id: string | number; message_id: number; credentials?: Partial> | undefined; reaction?: ({ type: "emoji"; emoji: string; } | { type: "custom_emoji"; custom_emoji_id: string; })[] | undefined; is_big?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"set_webhook">; url: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>; ip_address: z.ZodOptional; max_connections: z.ZodOptional; allowed_updates: z.ZodOptional>; drop_pending_updates: z.ZodOptional; secret_token: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; operation: "set_webhook"; credentials?: Partial> | undefined; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; drop_pending_updates?: boolean | undefined; secret_token?: string | undefined; }, { url: string; operation: "set_webhook"; credentials?: Partial> | undefined; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; drop_pending_updates?: boolean | undefined; secret_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_webhook">; drop_pending_updates: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_webhook"; credentials?: Partial> | undefined; drop_pending_updates?: boolean | undefined; }, { operation: "delete_webhook"; credentials?: Partial> | undefined; drop_pending_updates?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_webhook_info">; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_webhook_info"; credentials?: Partial> | undefined; }, { operation: "get_webhook_info"; credentials?: Partial> | undefined; }>]>; export type TelegramParams = z.infer; export type TelegramParamsParsed = z.output; export type TelegramParamsInput = z.input; declare const TelegramResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_photo">; ok: z.ZodBoolean; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_photo"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_photo"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_document">; ok: z.ZodBoolean; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_document"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_document"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"edit_message">; ok: z.ZodBoolean; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "edit_message"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "edit_message"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_message"; ok: boolean; }, { error: string; success: boolean; operation: "delete_message"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_me">; ok: z.ZodBoolean; user: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_me"; ok: boolean; user?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_me"; ok: boolean; user?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_chat">; ok: z.ZodBoolean; chat: z.ZodOptional; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; description: z.ZodOptional; invite_link: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; description?: string | undefined; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; invite_link?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; description?: string | undefined; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; invite_link?: string | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_chat"; ok: boolean; chat?: { type: "channel" | "private" | "group" | "supergroup"; id: number; description?: string | undefined; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; invite_link?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_chat"; ok: boolean; chat?: { type: "channel" | "private" | "group" | "supergroup"; id: number; description?: string | undefined; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; invite_link?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_updates">; ok: z.ZodBoolean; updates: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; edited_message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; channel_post: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; edited_channel_post: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; callback_query: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; inline_message_id: z.ZodOptional; chat_instance: z.ZodString; data: z.ZodOptional; game_short_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; }, { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { update_id: number; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; callback_query?: { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; } | undefined; }, { update_id: number; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; callback_query?: { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; } | undefined; }>, "many">>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_updates"; ok: boolean; updates?: { update_id: number; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; callback_query?: { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; } | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_updates"; ok: boolean; updates?: { update_id: number; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; callback_query?: { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; } | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_chat_action">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_chat_action"; ok: boolean; }, { error: string; success: boolean; operation: "send_chat_action"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"set_message_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "set_message_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "set_message_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"set_webhook">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "set_webhook"; ok: boolean; }, { error: string; success: boolean; operation: "set_webhook"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_webhook">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_webhook"; ok: boolean; }, { error: string; success: boolean; operation: "delete_webhook"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_webhook_info">; ok: z.ZodBoolean; webhook_info: z.ZodOptional; last_error_date: z.ZodOptional; last_error_message: z.ZodOptional; last_synchronization_error_date: z.ZodOptional; max_connections: z.ZodOptional; allowed_updates: z.ZodOptional>; }, "strip", z.ZodTypeAny, { url: string; has_custom_certificate: boolean; pending_update_count: number; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; last_error_date?: number | undefined; last_error_message?: string | undefined; last_synchronization_error_date?: number | undefined; }, { url: string; has_custom_certificate: boolean; pending_update_count: number; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; last_error_date?: number | undefined; last_error_message?: string | undefined; last_synchronization_error_date?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_webhook_info"; ok: boolean; webhook_info?: { url: string; has_custom_certificate: boolean; pending_update_count: number; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; last_error_date?: number | undefined; last_error_message?: string | undefined; last_synchronization_error_date?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_webhook_info"; ok: boolean; webhook_info?: { url: string; has_custom_certificate: boolean; pending_update_count: number; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; last_error_date?: number | undefined; last_error_message?: string | undefined; last_synchronization_error_date?: number | undefined; } | undefined; }>]>; export type TelegramResult = z.infer; export declare class TelegramBubble extends ServiceBubble> { testCredential(): Promise; static readonly type: "service"; static readonly service = "telegram"; static readonly authType: "apikey"; static readonly bubbleName = "telegram"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; text: z.ZodString; parse_mode: z.ZodOptional>; entities: z.ZodOptional>; disable_web_page_preview: z.ZodOptional; disable_notification: z.ZodOptional; protect_content: z.ZodOptional; reply_to_message_id: z.ZodOptional; allow_sending_without_reply: z.ZodOptional; reply_markup: z.ZodOptional; callback_data: z.ZodOptional; web_app: z.ZodOptional>; login_url: z.ZodOptional>; switch_inline_query: z.ZodOptional; switch_inline_query_current_chat: z.ZodOptional; callback_game: z.ZodOptional>; pay: z.ZodOptional; }, "strip", z.ZodTypeAny, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }>, "many">, "many">; }, "strip", z.ZodTypeAny, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }>, z.ZodObject<{ keyboard: z.ZodArray; request_location: z.ZodOptional; request_poll: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "quiz" | "regular" | undefined; }, { type?: "quiz" | "regular" | undefined; }>>; web_app: z.ZodOptional>; }, "strip", z.ZodTypeAny, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }>, "many">, "many">; is_persistent: z.ZodOptional; resize_keyboard: z.ZodOptional; one_time_keyboard: z.ZodOptional; input_field_placeholder: z.ZodOptional; selective: z.ZodOptional; }, "strip", z.ZodTypeAny, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }>]>>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; chat_id: string | number; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; entities?: unknown[] | undefined; disable_web_page_preview?: boolean | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; }, { text: string; operation: "send_message"; chat_id: string | number; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; entities?: unknown[] | undefined; disable_web_page_preview?: boolean | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_photo">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; photo: z.ZodUnion<[z.ZodString, z.ZodString]>; caption: z.ZodOptional; parse_mode: z.ZodOptional>; caption_entities: z.ZodOptional>; has_spoiler: z.ZodOptional; disable_notification: z.ZodOptional; protect_content: z.ZodOptional; reply_to_message_id: z.ZodOptional; allow_sending_without_reply: z.ZodOptional; reply_markup: z.ZodOptional; callback_data: z.ZodOptional; web_app: z.ZodOptional>; login_url: z.ZodOptional>; switch_inline_query: z.ZodOptional; switch_inline_query_current_chat: z.ZodOptional; callback_game: z.ZodOptional>; pay: z.ZodOptional; }, "strip", z.ZodTypeAny, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }>, "many">, "many">; }, "strip", z.ZodTypeAny, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }>, z.ZodObject<{ keyboard: z.ZodArray; request_location: z.ZodOptional; request_poll: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "quiz" | "regular" | undefined; }, { type?: "quiz" | "regular" | undefined; }>>; web_app: z.ZodOptional>; }, "strip", z.ZodTypeAny, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }>, "many">, "many">; is_persistent: z.ZodOptional; resize_keyboard: z.ZodOptional; one_time_keyboard: z.ZodOptional; input_field_placeholder: z.ZodOptional; selective: z.ZodOptional; }, "strip", z.ZodTypeAny, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }>]>>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_photo"; chat_id: string | number; photo: string; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; caption?: string | undefined; caption_entities?: unknown[] | undefined; has_spoiler?: boolean | undefined; }, { operation: "send_photo"; chat_id: string | number; photo: string; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; caption?: string | undefined; caption_entities?: unknown[] | undefined; has_spoiler?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_document">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; document: z.ZodUnion<[z.ZodString, z.ZodString]>; thumbnail: z.ZodOptional>; caption: z.ZodOptional; parse_mode: z.ZodOptional>; caption_entities: z.ZodOptional>; disable_content_type_detection: z.ZodOptional; disable_notification: z.ZodOptional; protect_content: z.ZodOptional; reply_to_message_id: z.ZodOptional; allow_sending_without_reply: z.ZodOptional; reply_markup: z.ZodOptional; callback_data: z.ZodOptional; web_app: z.ZodOptional>; login_url: z.ZodOptional>; switch_inline_query: z.ZodOptional; switch_inline_query_current_chat: z.ZodOptional; callback_game: z.ZodOptional>; pay: z.ZodOptional; }, "strip", z.ZodTypeAny, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }>, "many">, "many">; }, "strip", z.ZodTypeAny, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }>, z.ZodObject<{ keyboard: z.ZodArray; request_location: z.ZodOptional; request_poll: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "quiz" | "regular" | undefined; }, { type?: "quiz" | "regular" | undefined; }>>; web_app: z.ZodOptional>; }, "strip", z.ZodTypeAny, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }, { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }>, "many">, "many">; is_persistent: z.ZodOptional; resize_keyboard: z.ZodOptional; one_time_keyboard: z.ZodOptional; input_field_placeholder: z.ZodOptional; selective: z.ZodOptional; }, "strip", z.ZodTypeAny, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }, { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; }>]>>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_document"; chat_id: string | number; document: string; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; caption?: string | undefined; caption_entities?: unknown[] | undefined; thumbnail?: string | undefined; disable_content_type_detection?: boolean | undefined; }, { operation: "send_document"; chat_id: string | number; document: string; credentials?: Partial> | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; disable_notification?: boolean | undefined; protect_content?: boolean | undefined; reply_to_message_id?: number | undefined; allow_sending_without_reply?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | { keyboard: { text: string; web_app?: Record | undefined; request_contact?: boolean | undefined; request_location?: boolean | undefined; request_poll?: { type?: "quiz" | "regular" | undefined; } | undefined; }[][]; is_persistent?: boolean | undefined; resize_keyboard?: boolean | undefined; one_time_keyboard?: boolean | undefined; input_field_placeholder?: string | undefined; selective?: boolean | undefined; } | undefined; caption?: string | undefined; caption_entities?: unknown[] | undefined; thumbnail?: string | undefined; disable_content_type_detection?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"edit_message">; chat_id: z.ZodOptional>; message_id: z.ZodOptional; inline_message_id: z.ZodOptional; text: z.ZodString; parse_mode: z.ZodOptional>; entities: z.ZodOptional>; disable_web_page_preview: z.ZodOptional; reply_markup: z.ZodOptional; callback_data: z.ZodOptional; web_app: z.ZodOptional>; login_url: z.ZodOptional>; switch_inline_query: z.ZodOptional; switch_inline_query_current_chat: z.ZodOptional; callback_game: z.ZodOptional>; pay: z.ZodOptional; }, "strip", z.ZodTypeAny, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }, { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }>, "many">, "many">; }, "strip", z.ZodTypeAny, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }, { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; }>>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "edit_message"; credentials?: Partial> | undefined; chat_id?: string | number | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; entities?: unknown[] | undefined; disable_web_page_preview?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | undefined; message_id?: number | undefined; inline_message_id?: string | undefined; }, { text: string; operation: "edit_message"; credentials?: Partial> | undefined; chat_id?: string | number | undefined; parse_mode?: "HTML" | "Markdown" | "MarkdownV2" | undefined; entities?: unknown[] | undefined; disable_web_page_preview?: boolean | undefined; reply_markup?: { inline_keyboard: { text: string; url?: string | undefined; callback_data?: string | undefined; web_app?: Record | undefined; login_url?: Record | undefined; switch_inline_query?: string | undefined; switch_inline_query_current_chat?: string | undefined; callback_game?: Record | undefined; pay?: boolean | undefined; }[][]; } | undefined; message_id?: number | undefined; inline_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; message_id: z.ZodNumber; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_message"; chat_id: string | number; message_id: number; credentials?: Partial> | undefined; }, { operation: "delete_message"; chat_id: string | number; message_id: number; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_me">; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_me"; credentials?: Partial> | undefined; }, { operation: "get_me"; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_chat">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_chat"; chat_id: string | number; credentials?: Partial> | undefined; }, { operation: "get_chat"; chat_id: string | number; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_updates">; offset: z.ZodOptional; limit: z.ZodDefault>; timeout: z.ZodOptional; allowed_updates: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_updates"; limit: number; credentials?: Partial> | undefined; timeout?: number | undefined; offset?: number | undefined; allowed_updates?: string[] | undefined; }, { operation: "get_updates"; credentials?: Partial> | undefined; timeout?: number | undefined; limit?: number | undefined; offset?: number | undefined; allowed_updates?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_chat_action">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; action: z.ZodEnum<["typing", "upload_photo", "record_video", "upload_video", "record_voice", "upload_voice", "upload_document", "find_location", "record_video_note", "upload_video_note", "choose_sticker"]>; message_thread_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { action: "typing" | "upload_photo" | "record_video" | "upload_video" | "record_voice" | "upload_voice" | "upload_document" | "find_location" | "record_video_note" | "upload_video_note" | "choose_sticker"; operation: "send_chat_action"; chat_id: string | number; credentials?: Partial> | undefined; message_thread_id?: number | undefined; }, { action: "typing" | "upload_photo" | "record_video" | "upload_video" | "record_voice" | "upload_voice" | "upload_document" | "find_location" | "record_video_note" | "upload_video_note" | "choose_sticker"; operation: "send_chat_action"; chat_id: string | number; credentials?: Partial> | undefined; message_thread_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"set_message_reaction">; chat_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; message_id: z.ZodNumber; reaction: z.ZodOptional; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"custom_emoji">; custom_emoji_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "custom_emoji"; custom_emoji_id: string; }, { type: "custom_emoji"; custom_emoji_id: string; }>]>, "many">>; is_big: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "set_message_reaction"; chat_id: string | number; message_id: number; credentials?: Partial> | undefined; reaction?: ({ type: "emoji"; emoji: string; } | { type: "custom_emoji"; custom_emoji_id: string; })[] | undefined; is_big?: boolean | undefined; }, { operation: "set_message_reaction"; chat_id: string | number; message_id: number; credentials?: Partial> | undefined; reaction?: ({ type: "emoji"; emoji: string; } | { type: "custom_emoji"; custom_emoji_id: string; })[] | undefined; is_big?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"set_webhook">; url: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>; ip_address: z.ZodOptional; max_connections: z.ZodOptional; allowed_updates: z.ZodOptional>; drop_pending_updates: z.ZodOptional; secret_token: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; operation: "set_webhook"; credentials?: Partial> | undefined; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; drop_pending_updates?: boolean | undefined; secret_token?: string | undefined; }, { url: string; operation: "set_webhook"; credentials?: Partial> | undefined; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; drop_pending_updates?: boolean | undefined; secret_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_webhook">; drop_pending_updates: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_webhook"; credentials?: Partial> | undefined; drop_pending_updates?: boolean | undefined; }, { operation: "delete_webhook"; credentials?: Partial> | undefined; drop_pending_updates?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_webhook_info">; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_webhook_info"; credentials?: Partial> | undefined; }, { operation: "get_webhook_info"; credentials?: Partial> | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_photo">; ok: z.ZodBoolean; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_photo"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_photo"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_document">; ok: z.ZodBoolean; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_document"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_document"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"edit_message">; ok: z.ZodBoolean; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "edit_message"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "edit_message"; ok: boolean; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_message"; ok: boolean; }, { error: string; success: boolean; operation: "delete_message"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_me">; ok: z.ZodBoolean; user: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_me"; ok: boolean; user?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_me"; ok: boolean; user?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_chat">; ok: z.ZodBoolean; chat: z.ZodOptional; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; description: z.ZodOptional; invite_link: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; description?: string | undefined; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; invite_link?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; description?: string | undefined; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; invite_link?: string | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_chat"; ok: boolean; chat?: { type: "channel" | "private" | "group" | "supergroup"; id: number; description?: string | undefined; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; invite_link?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_chat"; ok: boolean; chat?: { type: "channel" | "private" | "group" | "supergroup"; id: number; description?: string | undefined; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; invite_link?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_updates">; ok: z.ZodBoolean; updates: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; edited_message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; channel_post: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; edited_channel_post: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; callback_query: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>; message: z.ZodOptional; username: z.ZodOptional; language_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }, { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }>>; date: z.ZodNumber; chat: z.ZodObject<{ id: z.ZodNumber; type: z.ZodEnum<["private", "group", "supergroup", "channel"]>; title: z.ZodOptional; username: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }, { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }>; text: z.ZodOptional; photo: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }, { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }>, "many">>; document: z.ZodOptional; mime_type: z.ZodOptional; file_size: z.ZodOptional; }, "strip", z.ZodTypeAny, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }, { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }, { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; }>>; inline_message_id: z.ZodOptional; chat_instance: z.ZodString; data: z.ZodOptional; game_short_name: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; }, { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { update_id: number; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; callback_query?: { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; } | undefined; }, { update_id: number; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; callback_query?: { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; } | undefined; }>, "many">>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_updates"; ok: boolean; updates?: { update_id: number; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; callback_query?: { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; } | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_updates"; ok: boolean; updates?: { update_id: number; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; edited_channel_post?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; callback_query?: { id: string; from: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; }; chat_instance: string; message?: { date: number; message_id: number; chat: { type: "channel" | "private" | "group" | "supergroup"; id: number; title?: string | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; }; text?: string | undefined; photo?: { file_id: string; file_unique_id: string; width: number; height: number; file_size?: number | undefined; }[] | undefined; document?: { file_id: string; file_unique_id: string; mime_type?: string | undefined; file_size?: number | undefined; file_name?: string | undefined; } | undefined; from?: { id: number; first_name: string; is_bot: boolean; username?: string | undefined; last_name?: string | undefined; language_code?: string | undefined; } | undefined; } | undefined; data?: string | undefined; inline_message_id?: string | undefined; game_short_name?: string | undefined; } | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_chat_action">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_chat_action"; ok: boolean; }, { error: string; success: boolean; operation: "send_chat_action"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"set_message_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "set_message_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "set_message_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"set_webhook">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "set_webhook"; ok: boolean; }, { error: string; success: boolean; operation: "set_webhook"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_webhook">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_webhook"; ok: boolean; }, { error: string; success: boolean; operation: "delete_webhook"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_webhook_info">; ok: z.ZodBoolean; webhook_info: z.ZodOptional; last_error_date: z.ZodOptional; last_error_message: z.ZodOptional; last_synchronization_error_date: z.ZodOptional; max_connections: z.ZodOptional; allowed_updates: z.ZodOptional>; }, "strip", z.ZodTypeAny, { url: string; has_custom_certificate: boolean; pending_update_count: number; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; last_error_date?: number | undefined; last_error_message?: string | undefined; last_synchronization_error_date?: number | undefined; }, { url: string; has_custom_certificate: boolean; pending_update_count: number; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; last_error_date?: number | undefined; last_error_message?: string | undefined; last_synchronization_error_date?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_webhook_info"; ok: boolean; webhook_info?: { url: string; has_custom_certificate: boolean; pending_update_count: number; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; last_error_date?: number | undefined; last_error_message?: string | undefined; last_synchronization_error_date?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_webhook_info"; ok: boolean; webhook_info?: { url: string; has_custom_certificate: boolean; pending_update_count: number; allowed_updates?: string[] | undefined; ip_address?: string | undefined; max_connections?: number | undefined; last_error_date?: number | undefined; last_error_message?: string | undefined; last_synchronization_error_date?: number | undefined; } | undefined; }>]>; static readonly shortDescription = "Telegram Bot API integration for messaging and bot management"; static readonly longDescription = "\n Comprehensive Telegram Bot API integration bubble for managing messages, chats, and bot operations.\n Use cases:\n - Send text messages, photos, and documents to chats\n - Edit and delete messages\n - Get bot and chat information\n - Receive updates via polling or webhooks\n - Support for inline keyboards and reply keyboards\n \n Security Features:\n - Bot token-based authentication\n - Parameter validation and sanitization\n - Rate limiting awareness\n - Comprehensive error handling\n "; static readonly alias = "telegram"; constructor(params?: T, context?: BubbleContext, instanceId?: string); protected chooseCredential(): string | undefined; protected performAction(context?: BubbleContext): Promise>; /** * Make an API call to the Telegram Bot API */ private makeTelegramApiCall; private sendMessage; private sendPhoto; private sendDocument; private editMessage; private deleteMessage; private getMe; private getChat; private getUpdates; private sendChatAction; private setMessageReaction; private setWebhook; private deleteWebhook; private getWebhookInfo; } export {}; //# sourceMappingURL=telegram.d.ts.map