/**
 * AUTO-GENERATED by scripts/api-parser.ts — DO NOT EDIT BY HAND.
 *
 * Source: https://core.telegram.org/bots/api
 * Regenerate with: bun scripts/api-parser.ts
 */
/** Chat identifier: numeric id or `@username`. */
export type ChatId = number | string;
/** Text formatting mode accepted by `parse_mode` fields. */
export type ParseMode = "Markdown" | "MarkdownV2" | "HTML";
/** Anything accepted in a file slot: file_id / URL (string) or local data. */
export type InputFile = string | Buffer | NodeJS.ReadableStream;
/** Union of the four reply-markup objects. */
export type ReplyMarkup = InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
/**
 * Builder input for setMyProfilePhoto / setBusinessAccountProfilePhoto: the
 * photo/animation field accepts raw file data; the library attaches it.
 */
export type InputProfilePhotoInput = {
    type: "static";
    photo: InputFile;
} | {
    type: "animated";
    animation: InputFile;
    main_frame_timestamp?: number;
};
/** Message content sub-event names emitted by `processUpdate`. */
export declare const MESSAGE_TYPES: readonly ["text", "animation", "audio", "channel_chat_created", "contact", "delete_chat_photo", "dice", "document", "game", "group_chat_created", "invoice", "left_chat_member", "location", "migrate_from_chat_id", "migrate_to_chat_id", "new_chat_members", "new_chat_photo", "new_chat_title", "passport_data", "photo", "pinned_message", "poll", "sticker", "successful_payment", "supergroup_chat_created", "video", "video_note", "voice", "video_chat_started", "video_chat_ended", "video_chat_participants_invited", "video_chat_scheduled", "message_auto_delete_timer_changed", "chat_invite_link", "chat_member_updated", "web_app_data", "message_reaction"];
export type MessageType = (typeof MESSAGE_TYPES)[number];
/** `Update` field names dispatched as events by `processUpdate` (every `Update` field except `update_id`). */
export declare const UPDATE_TYPES: readonly ["message", "edited_message", "channel_post", "edited_channel_post", "business_connection", "business_message", "edited_business_message", "deleted_business_messages", "guest_message", "message_reaction", "message_reaction_count", "inline_query", "chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", "purchased_paid_media", "poll", "poll_answer", "my_chat_member", "chat_member", "chat_join_request", "chat_boost", "removed_chat_boost", "managed_bot"];
export type UpdateType = (typeof UPDATE_TYPES)[number];
export type Update = {
    update_id: number;
    message?: Message;
    edited_message?: Message;
    channel_post?: Message;
    edited_channel_post?: Message;
    business_connection?: BusinessConnection;
    business_message?: Message;
    edited_business_message?: Message;
    deleted_business_messages?: BusinessMessagesDeleted;
    guest_message?: Message;
    message_reaction?: MessageReactionUpdated;
    message_reaction_count?: MessageReactionCountUpdated;
    inline_query?: InlineQuery;
    chosen_inline_result?: ChosenInlineResult;
    callback_query?: CallbackQuery;
    shipping_query?: ShippingQuery;
    pre_checkout_query?: PreCheckoutQuery;
    purchased_paid_media?: PaidMediaPurchased;
    poll?: Poll;
    poll_answer?: PollAnswer;
    my_chat_member?: ChatMemberUpdated;
    chat_member?: ChatMemberUpdated;
    chat_join_request?: ChatJoinRequest;
    chat_boost?: ChatBoostUpdated;
    removed_chat_boost?: ChatBoostRemoved;
    managed_bot?: ManagedBotUpdated;
};
export type WebhookInfo = {
    url: string;
    has_custom_certificate: boolean;
    pending_update_count: number;
    ip_address?: string;
    last_error_date?: number;
    last_error_message?: string;
    last_synchronization_error_date?: number;
    max_connections?: number;
    allowed_updates?: string[];
};
export type User = {
    id: number;
    is_bot: boolean;
    first_name: string;
    last_name?: string;
    username?: string;
    language_code?: string;
    is_premium?: true;
    added_to_attachment_menu?: true;
    can_join_groups?: boolean;
    can_read_all_group_messages?: boolean;
    supports_guest_queries?: boolean;
    supports_inline_queries?: boolean;
    can_connect_to_business?: boolean;
    has_main_web_app?: boolean;
    has_topics_enabled?: boolean;
    allows_users_to_create_topics?: boolean;
    can_manage_bots?: boolean;
    supports_join_request_queries?: boolean;
};
export type Chat = {
    id: number;
    type: string;
    title?: string;
    username?: string;
    first_name?: string;
    last_name?: string;
    is_forum?: true;
    is_direct_messages?: true;
};
export type ChatFullInfo = {
    id: number;
    type: string;
    title?: string;
    username?: string;
    first_name?: string;
    last_name?: string;
    is_forum?: true;
    is_direct_messages?: true;
    accent_color_id: number;
    max_reaction_count: number;
    photo?: ChatPhoto;
    active_usernames?: string[];
    birthdate?: Birthdate;
    business_intro?: BusinessIntro;
    business_location?: BusinessLocation;
    business_opening_hours?: BusinessOpeningHours;
    personal_chat?: Chat;
    parent_chat?: Chat;
    available_reactions?: ReactionType[];
    background_custom_emoji_id?: string;
    profile_accent_color_id?: number;
    profile_background_custom_emoji_id?: string;
    emoji_status_custom_emoji_id?: string;
    emoji_status_expiration_date?: number;
    bio?: string;
    has_private_forwards?: true;
    has_restricted_voice_and_video_messages?: true;
    join_to_send_messages?: true;
    join_by_request?: true;
    description?: string;
    invite_link?: string;
    pinned_message?: Message;
    permissions?: ChatPermissions;
    accepted_gift_types: AcceptedGiftTypes;
    can_send_paid_media?: true;
    slow_mode_delay?: number;
    unrestrict_boost_count?: number;
    message_auto_delete_time?: number;
    has_aggressive_anti_spam_enabled?: true;
    has_hidden_members?: true;
    has_protected_content?: true;
    has_visible_history?: true;
    sticker_set_name?: string;
    can_set_sticker_set?: true;
    custom_emoji_sticker_set_name?: string;
    linked_chat_id?: number;
    location?: ChatLocation;
    rating?: UserRating;
    first_profile_audio?: Audio;
    unique_gift_colors?: UniqueGiftColors;
    paid_message_star_count?: number;
    guard_bot?: User;
};
export type Message = {
    message_id: number;
    message_thread_id?: number;
    direct_messages_topic?: DirectMessagesTopic;
    from?: User;
    sender_chat?: Chat;
    sender_boost_count?: number;
    sender_business_bot?: User;
    sender_tag?: string;
    date: number;
    guest_query_id?: string;
    business_connection_id?: string;
    chat: Chat;
    forward_origin?: MessageOrigin;
    is_topic_message?: true;
    is_automatic_forward?: true;
    reply_to_message?: Message;
    external_reply?: ExternalReplyInfo;
    quote?: TextQuote;
    reply_to_story?: Story;
    reply_to_checklist_task_id?: number;
    reply_to_poll_option_id?: string;
    via_bot?: User;
    guest_bot_caller_user?: User;
    guest_bot_caller_chat?: Chat;
    edit_date?: number;
    has_protected_content?: true;
    is_from_offline?: true;
    is_paid_post?: true;
    media_group_id?: string;
    author_signature?: string;
    paid_star_count?: number;
    text?: string;
    entities?: MessageEntity[];
    link_preview_options?: LinkPreviewOptions;
    suggested_post_info?: SuggestedPostInfo;
    effect_id?: string;
    rich_message?: RichMessage;
    animation?: Animation;
    audio?: Audio;
    document?: Document;
    live_photo?: LivePhoto;
    paid_media?: PaidMediaInfo;
    photo?: PhotoSize[];
    sticker?: Sticker;
    story?: Story;
    video?: Video;
    video_note?: VideoNote;
    voice?: Voice;
    caption?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: true;
    has_media_spoiler?: true;
    checklist?: Checklist;
    contact?: Contact;
    dice?: Dice;
    game?: Game;
    poll?: Poll;
    venue?: Venue;
    location?: Location;
    new_chat_members?: User[];
    left_chat_member?: User;
    chat_owner_left?: ChatOwnerLeft;
    chat_owner_changed?: ChatOwnerChanged;
    new_chat_title?: string;
    new_chat_photo?: PhotoSize[];
    delete_chat_photo?: true;
    group_chat_created?: true;
    supergroup_chat_created?: true;
    channel_chat_created?: true;
    message_auto_delete_timer_changed?: MessageAutoDeleteTimerChanged;
    migrate_to_chat_id?: number;
    migrate_from_chat_id?: number;
    pinned_message?: MaybeInaccessibleMessage;
    invoice?: Invoice;
    successful_payment?: SuccessfulPayment;
    refunded_payment?: RefundedPayment;
    users_shared?: UsersShared;
    chat_shared?: ChatShared;
    gift?: GiftInfo;
    unique_gift?: UniqueGiftInfo;
    gift_upgrade_sent?: GiftInfo;
    connected_website?: string;
    write_access_allowed?: WriteAccessAllowed;
    passport_data?: PassportData;
    proximity_alert_triggered?: ProximityAlertTriggered;
    boost_added?: ChatBoostAdded;
    chat_background_set?: ChatBackground;
    checklist_tasks_done?: ChecklistTasksDone;
    checklist_tasks_added?: ChecklistTasksAdded;
    direct_message_price_changed?: DirectMessagePriceChanged;
    forum_topic_created?: ForumTopicCreated;
    forum_topic_edited?: ForumTopicEdited;
    forum_topic_closed?: ForumTopicClosed;
    forum_topic_reopened?: ForumTopicReopened;
    general_forum_topic_hidden?: GeneralForumTopicHidden;
    general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
    giveaway_created?: GiveawayCreated;
    giveaway?: Giveaway;
    giveaway_winners?: GiveawayWinners;
    giveaway_completed?: GiveawayCompleted;
    managed_bot_created?: ManagedBotCreated;
    paid_message_price_changed?: PaidMessagePriceChanged;
    poll_option_added?: PollOptionAdded;
    poll_option_deleted?: PollOptionDeleted;
    suggested_post_approved?: SuggestedPostApproved;
    suggested_post_approval_failed?: SuggestedPostApprovalFailed;
    suggested_post_declined?: SuggestedPostDeclined;
    suggested_post_paid?: SuggestedPostPaid;
    suggested_post_refunded?: SuggestedPostRefunded;
    video_chat_scheduled?: VideoChatScheduled;
    video_chat_started?: VideoChatStarted;
    video_chat_ended?: VideoChatEnded;
    video_chat_participants_invited?: VideoChatParticipantsInvited;
    web_app_data?: WebAppData;
    reply_markup?: InlineKeyboardMarkup;
};
export type MessageId = {
    message_id: number;
};
export type InaccessibleMessage = {
    chat: Chat;
    message_id: number;
    date: number;
};
export type MessageEntity = {
    type: string;
    offset: number;
    length: number;
    url?: string;
    user?: User;
    language?: string;
    custom_emoji_id?: string;
    unix_time?: number;
    date_time_format?: string;
};
export type TextQuote = {
    text: string;
    entities?: MessageEntity[];
    position: number;
    is_manual?: true;
};
export type ExternalReplyInfo = {
    origin: MessageOrigin;
    chat?: Chat;
    message_id?: number;
    link_preview_options?: LinkPreviewOptions;
    animation?: Animation;
    audio?: Audio;
    document?: Document;
    live_photo?: LivePhoto;
    paid_media?: PaidMediaInfo;
    photo?: PhotoSize[];
    sticker?: Sticker;
    story?: Story;
    video?: Video;
    video_note?: VideoNote;
    voice?: Voice;
    has_media_spoiler?: true;
    checklist?: Checklist;
    contact?: Contact;
    dice?: Dice;
    game?: Game;
    giveaway?: Giveaway;
    giveaway_winners?: GiveawayWinners;
    invoice?: Invoice;
    location?: Location;
    poll?: Poll;
    venue?: Venue;
};
export type ReplyParameters = {
    message_id: number;
    chat_id?: number | string;
    allow_sending_without_reply?: boolean;
    quote?: string;
    quote_parse_mode?: string;
    quote_entities?: MessageEntity[];
    quote_position?: number;
    checklist_task_id?: number;
    poll_option_id?: string;
};
export type MessageOriginUser = {
    type: string;
    date: number;
    sender_user: User;
};
export type MessageOriginHiddenUser = {
    type: string;
    date: number;
    sender_user_name: string;
};
export type MessageOriginChat = {
    type: string;
    date: number;
    sender_chat: Chat;
    author_signature?: string;
};
export type MessageOriginChannel = {
    type: string;
    date: number;
    chat: Chat;
    message_id: number;
    author_signature?: string;
};
export type PhotoSize = {
    file_id: string;
    file_unique_id: string;
    width: number;
    height: number;
    file_size?: number;
};
export type Animation = {
    file_id: string;
    file_unique_id: string;
    width: number;
    height: number;
    duration: number;
    thumbnail?: PhotoSize;
    file_name?: string;
    mime_type?: string;
    file_size?: number;
};
export type Audio = {
    file_id: string;
    file_unique_id: string;
    duration: number;
    performer?: string;
    title?: string;
    file_name?: string;
    mime_type?: string;
    file_size?: number;
    thumbnail?: PhotoSize;
};
export type Document = {
    file_id: string;
    file_unique_id: string;
    thumbnail?: PhotoSize;
    file_name?: string;
    mime_type?: string;
    file_size?: number;
};
export type LivePhoto = {
    photo?: PhotoSize[];
    file_id: string;
    file_unique_id: string;
    width: number;
    height: number;
    duration: number;
    mime_type?: string;
    file_size?: number;
};
export type Story = {
    chat: Chat;
    id: number;
};
export type VideoQuality = {
    file_id: string;
    file_unique_id: string;
    width: number;
    height: number;
    codec: string;
    file_size?: number;
};
export type Video = {
    file_id: string;
    file_unique_id: string;
    width: number;
    height: number;
    duration: number;
    thumbnail?: PhotoSize;
    cover?: PhotoSize[];
    start_timestamp?: number;
    qualities?: VideoQuality[];
    file_name?: string;
    mime_type?: string;
    file_size?: number;
};
export type VideoNote = {
    file_id: string;
    file_unique_id: string;
    length: number;
    duration: number;
    thumbnail?: PhotoSize;
    file_size?: number;
};
export type Voice = {
    file_id: string;
    file_unique_id: string;
    duration: number;
    mime_type?: string;
    file_size?: number;
};
export type PaidMediaInfo = {
    star_count: number;
    paid_media: PaidMedia[];
};
export type PaidMediaLivePhoto = {
    type: string;
    live_photo: LivePhoto;
};
export type PaidMediaPhoto = {
    type: string;
    photo: PhotoSize[];
};
export type PaidMediaPreview = {
    type: string;
    width?: number;
    height?: number;
    duration?: number;
};
export type PaidMediaVideo = {
    type: string;
    video: Video;
};
export type Contact = {
    phone_number: string;
    first_name: string;
    last_name?: string;
    user_id?: number;
    vcard?: string;
};
export type Dice = {
    emoji: string;
    value: number;
};
export type Link = {
    url: string;
};
export type PollMedia = {
    animation?: Animation;
    audio?: Audio;
    document?: Document;
    link?: Link;
    live_photo?: LivePhoto;
    location?: Location;
    photo?: PhotoSize[];
    sticker?: Sticker;
    venue?: Venue;
    video?: Video;
};
export type PollOption = {
    persistent_id: string;
    text: string;
    text_entities?: MessageEntity[];
    media?: PollMedia;
    voter_count: number;
    added_by_user?: User;
    added_by_chat?: Chat;
    addition_date?: number;
};
export type InputPollOption = {
    text: string;
    text_parse_mode?: string;
    text_entities?: MessageEntity[];
    media?: InputPollOptionMedia;
};
export type PollAnswer = {
    poll_id: string;
    voter_chat?: Chat;
    user?: User;
    option_ids: number[];
    option_persistent_ids: string[];
};
export type Poll = {
    id: string;
    question: string;
    question_entities?: MessageEntity[];
    options: PollOption[];
    total_voter_count: number;
    is_closed: boolean;
    is_anonymous: boolean;
    type: string;
    allows_multiple_answers: boolean;
    allows_revoting: boolean;
    members_only: boolean;
    country_codes?: string[];
    correct_option_ids?: number[];
    explanation?: string;
    explanation_entities?: MessageEntity[];
    explanation_media?: PollMedia;
    open_period?: number;
    close_date?: number;
    description?: string;
    description_entities?: MessageEntity[];
    media?: PollMedia;
};
export type ChecklistTask = {
    id: number;
    text: string;
    text_entities?: MessageEntity[];
    completed_by_user?: User;
    completed_by_chat?: Chat;
    completion_date?: number;
};
export type Checklist = {
    title: string;
    title_entities?: MessageEntity[];
    tasks: ChecklistTask[];
    others_can_add_tasks?: true;
    others_can_mark_tasks_as_done?: true;
};
export type InputChecklistTask = {
    id: number;
    text: string;
    parse_mode?: string;
    text_entities?: MessageEntity[];
};
export type InputChecklist = {
    title: string;
    parse_mode?: string;
    title_entities?: MessageEntity[];
    tasks: InputChecklistTask[];
    others_can_add_tasks?: boolean;
    others_can_mark_tasks_as_done?: boolean;
};
export type ChecklistTasksDone = {
    checklist_message?: Message;
    marked_as_done_task_ids?: number[];
    marked_as_not_done_task_ids?: number[];
};
export type ChecklistTasksAdded = {
    checklist_message?: Message;
    tasks: ChecklistTask[];
};
export type Location = {
    latitude: number;
    longitude: number;
    horizontal_accuracy?: number;
    live_period?: number;
    heading?: number;
    proximity_alert_radius?: number;
};
export type Venue = {
    location: Location;
    title: string;
    address: string;
    foursquare_id?: string;
    foursquare_type?: string;
    google_place_id?: string;
    google_place_type?: string;
};
export type WebAppData = {
    data: string;
    button_text: string;
};
export type ProximityAlertTriggered = {
    traveler: User;
    watcher: User;
    distance: number;
};
export type MessageAutoDeleteTimerChanged = {
    message_auto_delete_time: number;
};
export type ManagedBotCreated = {
    bot: User;
};
export type ManagedBotUpdated = {
    user: User;
    bot: User;
};
export type PollOptionAdded = {
    poll_message?: MaybeInaccessibleMessage;
    option_persistent_id: string;
    option_text: string;
    option_text_entities?: MessageEntity[];
};
export type PollOptionDeleted = {
    poll_message?: MaybeInaccessibleMessage;
    option_persistent_id: string;
    option_text: string;
    option_text_entities?: MessageEntity[];
};
export type ChatBoostAdded = {
    boost_count: number;
};
export type BackgroundFillSolid = {
    type: string;
    color: number;
};
export type BackgroundFillGradient = {
    type: string;
    top_color: number;
    bottom_color: number;
    rotation_angle: number;
};
export type BackgroundFillFreeformGradient = {
    type: string;
    colors: number[];
};
export type BackgroundTypeFill = {
    type: string;
    fill: BackgroundFill;
    dark_theme_dimming: number;
};
export type BackgroundTypeWallpaper = {
    type: string;
    document: Document;
    dark_theme_dimming: number;
    is_blurred?: true;
    is_moving?: true;
};
export type BackgroundTypePattern = {
    type: string;
    document: Document;
    fill: BackgroundFill;
    intensity: number;
    is_inverted?: true;
    is_moving?: true;
};
export type BackgroundTypeChatTheme = {
    type: string;
    theme_name: string;
};
export type ChatBackground = {
    type: BackgroundType;
};
export type ForumTopicCreated = {
    name: string;
    icon_color: number;
    icon_custom_emoji_id?: string;
    is_name_implicit?: true;
};
export type ForumTopicEdited = {
    name?: string;
    icon_custom_emoji_id?: string;
};
export type SharedUser = {
    user_id: number;
    first_name?: string;
    last_name?: string;
    username?: string;
    photo?: PhotoSize[];
};
export type UsersShared = {
    request_id: number;
    users: SharedUser[];
};
export type ChatShared = {
    request_id: number;
    chat_id: number;
    title?: string;
    username?: string;
    photo?: PhotoSize[];
};
export type WriteAccessAllowed = {
    from_request?: boolean;
    web_app_name?: string;
    from_attachment_menu?: boolean;
};
export type VideoChatScheduled = {
    start_date: number;
};
export type VideoChatEnded = {
    duration: number;
};
export type VideoChatParticipantsInvited = {
    users: User[];
};
export type PaidMessagePriceChanged = {
    paid_message_star_count: number;
};
export type DirectMessagePriceChanged = {
    are_direct_messages_enabled: boolean;
    direct_message_star_count?: number;
};
export type SuggestedPostApproved = {
    suggested_post_message?: Message;
    price?: SuggestedPostPrice;
    send_date: number;
};
export type SuggestedPostApprovalFailed = {
    suggested_post_message?: Message;
    price: SuggestedPostPrice;
};
export type SuggestedPostDeclined = {
    suggested_post_message?: Message;
    comment?: string;
};
export type SuggestedPostPaid = {
    suggested_post_message?: Message;
    currency: string;
    amount?: number;
    star_amount?: StarAmount;
};
export type SuggestedPostRefunded = {
    suggested_post_message?: Message;
    reason: string;
};
export type GiveawayCreated = {
    prize_star_count?: number;
};
export type Giveaway = {
    chats: Chat[];
    winners_selection_date: number;
    winner_count: number;
    only_new_members?: true;
    has_public_winners?: true;
    prize_description?: string;
    country_codes?: string[];
    prize_star_count?: number;
    premium_subscription_month_count?: number;
};
export type GiveawayWinners = {
    chat: Chat;
    giveaway_message_id: number;
    winners_selection_date: number;
    winner_count: number;
    winners: User[];
    additional_chat_count?: number;
    prize_star_count?: number;
    premium_subscription_month_count?: number;
    unclaimed_prize_count?: number;
    only_new_members?: true;
    was_refunded?: true;
    prize_description?: string;
};
export type GiveawayCompleted = {
    winner_count: number;
    unclaimed_prize_count?: number;
    giveaway_message?: Message;
    is_star_giveaway?: true;
};
export type LinkPreviewOptions = {
    is_disabled?: boolean;
    url?: string;
    prefer_small_media?: boolean;
    prefer_large_media?: boolean;
    show_above_text?: boolean;
};
export type SuggestedPostPrice = {
    currency: string;
    amount: number;
};
export type SuggestedPostInfo = {
    state: string;
    price?: SuggestedPostPrice;
    send_date?: number;
};
export type SuggestedPostParameters = {
    price?: SuggestedPostPrice;
    send_date?: number;
};
export type DirectMessagesTopic = {
    topic_id: number;
    user?: User;
};
export type UserProfilePhotos = {
    total_count: number;
    photos: PhotoSize[][];
};
export type UserProfileAudios = {
    total_count: number;
    audios: Audio[];
};
export type File = {
    file_id: string;
    file_unique_id: string;
    file_size?: number;
    file_path?: string;
};
export type WebAppInfo = {
    url: string;
};
export type ReplyKeyboardMarkup = {
    keyboard: KeyboardButton[][];
    is_persistent?: boolean;
    resize_keyboard?: boolean;
    one_time_keyboard?: boolean;
    input_field_placeholder?: string;
    selective?: boolean;
};
export type KeyboardButton = {
    text: string;
    icon_custom_emoji_id?: string;
    style?: string;
    request_users?: KeyboardButtonRequestUsers;
    request_chat?: KeyboardButtonRequestChat;
    request_managed_bot?: KeyboardButtonRequestManagedBot;
    request_contact?: boolean;
    request_location?: boolean;
    request_poll?: KeyboardButtonPollType;
    web_app?: WebAppInfo;
};
export type KeyboardButtonRequestUsers = {
    request_id: number;
    user_is_bot?: boolean;
    user_is_premium?: boolean;
    max_quantity?: number;
    request_name?: boolean;
    request_username?: boolean;
    request_photo?: boolean;
};
export type KeyboardButtonRequestChat = {
    request_id: number;
    chat_is_channel: boolean;
    chat_is_forum?: boolean;
    chat_has_username?: boolean;
    chat_is_created?: boolean;
    user_administrator_rights?: ChatAdministratorRights;
    bot_administrator_rights?: ChatAdministratorRights;
    bot_is_member?: boolean;
    request_title?: boolean;
    request_username?: boolean;
    request_photo?: boolean;
};
export type KeyboardButtonRequestManagedBot = {
    request_id: number;
    suggested_name?: string;
    suggested_username?: string;
};
export type KeyboardButtonPollType = {
    type?: string;
};
export type ReplyKeyboardRemove = {
    remove_keyboard: true;
    selective?: boolean;
};
export type InlineKeyboardMarkup = {
    inline_keyboard: InlineKeyboardButton[][];
};
export type InlineKeyboardButton = {
    text: string;
    icon_custom_emoji_id?: string;
    style?: string;
    url?: string;
    callback_data?: string;
    web_app?: WebAppInfo;
    login_url?: LoginUrl;
    switch_inline_query?: string;
    switch_inline_query_current_chat?: string;
    switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat;
    copy_text?: CopyTextButton;
    callback_game?: CallbackGame;
    pay?: boolean;
};
export type LoginUrl = {
    url: string;
    forward_text?: string;
    bot_username?: string;
    request_write_access?: boolean;
};
export type SwitchInlineQueryChosenChat = {
    query?: string;
    allow_user_chats?: boolean;
    allow_bot_chats?: boolean;
    allow_group_chats?: boolean;
    allow_channel_chats?: boolean;
};
export type CopyTextButton = {
    text: string;
};
export type CallbackQuery = {
    id: string;
    from: User;
    message?: MaybeInaccessibleMessage;
    inline_message_id?: string;
    chat_instance: string;
    data?: string;
    game_short_name?: string;
};
export type ForceReply = {
    force_reply: true;
    input_field_placeholder?: string;
    selective?: boolean;
};
export type ChatPhoto = {
    small_file_id: string;
    small_file_unique_id: string;
    big_file_id: string;
    big_file_unique_id: string;
};
export type ChatInviteLink = {
    invite_link: string;
    creator: User;
    creates_join_request: boolean;
    is_primary: boolean;
    is_revoked: boolean;
    name?: string;
    expire_date?: number;
    member_limit?: number;
    pending_join_request_count?: number;
    subscription_period?: number;
    subscription_price?: number;
};
export type ChatAdministratorRights = {
    is_anonymous: boolean;
    can_manage_chat: boolean;
    can_delete_messages: boolean;
    can_manage_video_chats: boolean;
    can_restrict_members: boolean;
    can_promote_members: boolean;
    can_change_info: boolean;
    can_invite_users: boolean;
    can_post_stories: boolean;
    can_edit_stories: boolean;
    can_delete_stories: boolean;
    can_post_messages?: boolean;
    can_edit_messages?: boolean;
    can_pin_messages?: boolean;
    can_manage_topics?: boolean;
    can_manage_direct_messages?: boolean;
    can_manage_tags?: boolean;
};
export type ChatMemberUpdated = {
    chat: Chat;
    from: User;
    date: number;
    old_chat_member: ChatMember;
    new_chat_member: ChatMember;
    invite_link?: ChatInviteLink;
    via_join_request?: boolean;
    via_chat_folder_invite_link?: boolean;
};
export type ChatMemberOwner = {
    status: string;
    user: User;
    is_anonymous: boolean;
    custom_title?: string;
};
export type ChatMemberAdministrator = {
    status: string;
    user: User;
    can_be_edited: boolean;
    is_anonymous: boolean;
    can_manage_chat: boolean;
    can_delete_messages: boolean;
    can_manage_video_chats: boolean;
    can_restrict_members: boolean;
    can_promote_members: boolean;
    can_change_info: boolean;
    can_invite_users: boolean;
    can_post_stories: boolean;
    can_edit_stories: boolean;
    can_delete_stories: boolean;
    can_post_messages?: boolean;
    can_edit_messages?: boolean;
    can_pin_messages?: boolean;
    can_manage_topics?: boolean;
    can_manage_direct_messages?: boolean;
    can_manage_tags?: boolean;
    custom_title?: string;
};
export type ChatMemberMember = {
    status: string;
    tag?: string;
    user: User;
    until_date?: number;
};
export type ChatMemberRestricted = {
    status: string;
    tag?: string;
    user: User;
    is_member: boolean;
    can_send_messages: boolean;
    can_send_audios: boolean;
    can_send_documents: boolean;
    can_send_photos: boolean;
    can_send_videos: boolean;
    can_send_video_notes: boolean;
    can_send_voice_notes: boolean;
    can_send_polls: boolean;
    can_send_other_messages: boolean;
    can_add_web_page_previews: boolean;
    can_react_to_messages: boolean;
    can_edit_tag: boolean;
    can_change_info: boolean;
    can_invite_users: boolean;
    can_pin_messages: boolean;
    can_manage_topics: boolean;
    until_date: number;
};
export type ChatMemberLeft = {
    status: string;
    user: User;
};
export type ChatMemberBanned = {
    status: string;
    user: User;
    until_date: number;
};
export type ChatJoinRequest = {
    chat: Chat;
    from: User;
    user_chat_id: number;
    date: number;
    bio?: string;
    invite_link?: ChatInviteLink;
    query_id?: string;
};
export type ChatPermissions = {
    can_send_messages?: boolean;
    can_send_audios?: boolean;
    can_send_documents?: boolean;
    can_send_photos?: boolean;
    can_send_videos?: boolean;
    can_send_video_notes?: boolean;
    can_send_voice_notes?: boolean;
    can_send_polls?: boolean;
    can_send_other_messages?: boolean;
    can_add_web_page_previews?: boolean;
    can_react_to_messages?: boolean;
    can_edit_tag?: boolean;
    can_change_info?: boolean;
    can_invite_users?: boolean;
    can_pin_messages?: boolean;
    can_manage_topics?: boolean;
};
export type Birthdate = {
    day: number;
    month: number;
    year?: number;
};
export type BusinessIntro = {
    title?: string;
    message?: string;
    sticker?: Sticker;
};
export type BusinessLocation = {
    address: string;
    location?: Location;
};
export type BusinessOpeningHoursInterval = {
    opening_minute: number;
    closing_minute: number;
};
export type BusinessOpeningHours = {
    time_zone_name: string;
    opening_hours: BusinessOpeningHoursInterval[];
};
export type UserRating = {
    level: number;
    rating: number;
    current_level_rating: number;
    next_level_rating?: number;
};
export type StoryAreaPosition = {
    x_percentage: number;
    y_percentage: number;
    width_percentage: number;
    height_percentage: number;
    rotation_angle: number;
    corner_radius_percentage: number;
};
export type LocationAddress = {
    country_code: string;
    state?: string;
    city?: string;
    street?: string;
};
export type StoryAreaTypeLocation = {
    type: string;
    latitude: number;
    longitude: number;
    address?: LocationAddress;
};
export type StoryAreaTypeSuggestedReaction = {
    type: string;
    reaction_type: ReactionType;
    is_dark?: boolean;
    is_flipped?: boolean;
};
export type StoryAreaTypeLink = {
    type: string;
    url: string;
};
export type StoryAreaTypeWeather = {
    type: string;
    temperature: number;
    emoji: string;
    background_color: number;
};
export type StoryAreaTypeUniqueGift = {
    type: string;
    name: string;
};
export type StoryArea = {
    position: StoryAreaPosition;
    type: StoryAreaType;
};
export type ChatLocation = {
    location: Location;
    address: string;
};
export type ReactionTypeEmoji = {
    type: string;
    emoji: string;
};
export type ReactionTypeCustomEmoji = {
    type: string;
    custom_emoji_id: string;
};
export type ReactionTypePaid = {
    type: string;
};
export type ReactionCount = {
    type: ReactionType;
    total_count: number;
};
export type MessageReactionUpdated = {
    chat: Chat;
    message_id: number;
    user?: User;
    actor_chat?: Chat;
    date: number;
    old_reaction: ReactionType[];
    new_reaction: ReactionType[];
};
export type MessageReactionCountUpdated = {
    chat: Chat;
    message_id: number;
    date: number;
    reactions: ReactionCount[];
};
export type ForumTopic = {
    message_thread_id: number;
    name: string;
    icon_color: number;
    icon_custom_emoji_id?: string;
    is_name_implicit?: true;
};
export type GiftBackground = {
    center_color: number;
    edge_color: number;
    text_color: number;
};
export type Gift = {
    id: string;
    sticker: Sticker;
    star_count: number;
    upgrade_star_count?: number;
    is_premium?: true;
    has_colors?: true;
    total_count?: number;
    remaining_count?: number;
    personal_total_count?: number;
    personal_remaining_count?: number;
    background?: GiftBackground;
    unique_gift_variant_count?: number;
    publisher_chat?: Chat;
};
export type Gifts = {
    gifts: Gift[];
};
export type UniqueGiftModel = {
    name: string;
    sticker: Sticker;
    rarity_per_mille: number;
    rarity?: string;
};
export type UniqueGiftSymbol = {
    name: string;
    sticker: Sticker;
    rarity_per_mille: number;
};
export type UniqueGiftBackdropColors = {
    center_color: number;
    edge_color: number;
    symbol_color: number;
    text_color: number;
};
export type UniqueGiftBackdrop = {
    name: string;
    colors: UniqueGiftBackdropColors;
    rarity_per_mille: number;
};
export type UniqueGiftColors = {
    model_custom_emoji_id: string;
    symbol_custom_emoji_id: string;
    light_theme_main_color: number;
    light_theme_other_colors: number[];
    dark_theme_main_color: number;
    dark_theme_other_colors: number[];
};
export type UniqueGift = {
    gift_id: string;
    base_name: string;
    name: string;
    number: number;
    model: UniqueGiftModel;
    symbol: UniqueGiftSymbol;
    backdrop: UniqueGiftBackdrop;
    is_premium?: true;
    is_burned?: true;
    is_from_blockchain?: true;
    colors?: UniqueGiftColors;
    publisher_chat?: Chat;
};
export type GiftInfo = {
    gift: Gift;
    owned_gift_id?: string;
    convert_star_count?: number;
    prepaid_upgrade_star_count?: number;
    is_upgrade_separate?: true;
    can_be_upgraded?: true;
    text?: string;
    entities?: MessageEntity[];
    is_private?: true;
    unique_gift_number?: number;
};
export type UniqueGiftInfo = {
    gift: UniqueGift;
    origin: string;
    last_resale_currency?: string;
    last_resale_amount?: number;
    owned_gift_id?: string;
    transfer_star_count?: number;
    next_transfer_date?: number;
};
export type OwnedGiftRegular = {
    type: string;
    gift: Gift;
    owned_gift_id?: string;
    sender_user?: User;
    send_date: number;
    text?: string;
    entities?: MessageEntity[];
    is_private?: true;
    is_saved?: true;
    can_be_upgraded?: true;
    was_refunded?: true;
    convert_star_count?: number;
    prepaid_upgrade_star_count?: number;
    is_upgrade_separate?: true;
    unique_gift_number?: number;
};
export type OwnedGiftUnique = {
    type: string;
    gift: UniqueGift;
    owned_gift_id?: string;
    sender_user?: User;
    send_date: number;
    is_saved?: true;
    can_be_transferred?: true;
    transfer_star_count?: number;
    next_transfer_date?: number;
};
export type OwnedGifts = {
    total_count: number;
    gifts: OwnedGift[];
    next_offset?: string;
};
export type BotAccessSettings = {
    is_access_restricted: boolean;
    added_users?: User[];
};
export type AcceptedGiftTypes = {
    unlimited_gifts: boolean;
    limited_gifts: boolean;
    unique_gifts: boolean;
    premium_subscription: boolean;
    gifts_from_channels: boolean;
};
export type StarAmount = {
    amount: number;
    nanostar_amount?: number;
};
export type BotCommand = {
    command: string;
    description: string;
};
export type BotCommandScopeDefault = {
    type: string;
};
export type BotCommandScopeAllPrivateChats = {
    type: string;
};
export type BotCommandScopeAllGroupChats = {
    type: string;
};
export type BotCommandScopeAllChatAdministrators = {
    type: string;
};
export type BotCommandScopeChat = {
    type: string;
    chat_id: number | string;
};
export type BotCommandScopeChatAdministrators = {
    type: string;
    chat_id: number | string;
};
export type BotCommandScopeChatMember = {
    type: string;
    chat_id: number | string;
    user_id: number;
};
export type BotName = {
    name: string;
};
export type BotDescription = {
    description: string;
};
export type BotShortDescription = {
    short_description: string;
};
export type MenuButtonCommands = {
    type: string;
};
export type MenuButtonWebApp = {
    type: string;
    text: string;
    web_app: WebAppInfo;
};
export type MenuButtonDefault = {
    type: string;
};
export type ChatBoostSourcePremium = {
    source: string;
    user: User;
};
export type ChatBoostSourceGiftCode = {
    source: string;
    user: User;
};
export type ChatBoostSourceGiveaway = {
    source: string;
    giveaway_message_id: number;
    user?: User;
    prize_star_count?: number;
    is_unclaimed?: true;
};
export type ChatBoost = {
    boost_id: string;
    add_date: number;
    expiration_date: number;
    source: ChatBoostSource;
};
export type ChatBoostUpdated = {
    chat: Chat;
    boost: ChatBoost;
};
export type ChatBoostRemoved = {
    chat: Chat;
    boost_id: string;
    remove_date: number;
    source: ChatBoostSource;
};
export type ChatOwnerLeft = {
    new_owner?: User;
};
export type ChatOwnerChanged = {
    new_owner: User;
};
export type UserChatBoosts = {
    boosts: ChatBoost[];
};
export type BusinessBotRights = {
    can_reply?: true;
    can_read_messages?: true;
    can_delete_sent_messages?: true;
    can_delete_all_messages?: true;
    can_edit_name?: true;
    can_edit_bio?: true;
    can_edit_profile_photo?: true;
    can_edit_username?: true;
    can_change_gift_settings?: true;
    can_view_gifts_and_stars?: true;
    can_convert_gifts_to_stars?: true;
    can_transfer_and_upgrade_gifts?: true;
    can_transfer_stars?: true;
    can_manage_stories?: true;
};
export type BusinessConnection = {
    id: string;
    user: User;
    user_chat_id: number;
    date: number;
    rights?: BusinessBotRights;
    is_enabled: boolean;
};
export type BusinessMessagesDeleted = {
    business_connection_id: string;
    chat: Chat;
    message_ids: number[];
};
export type SentWebAppMessage = {
    inline_message_id?: string;
};
export type SentGuestMessage = {
    inline_message_id: string;
};
export type PreparedInlineMessage = {
    id: string;
    expiration_date: number;
};
export type PreparedKeyboardButton = {
    id: string;
};
export type ResponseParameters = {
    migrate_to_chat_id?: number;
    retry_after?: number;
};
export type InputMediaAnimation = {
    type: string;
    media: string;
    thumbnail?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    width?: number;
    height?: number;
    duration?: number;
    has_spoiler?: boolean;
};
export type InputMediaAudio = {
    type: string;
    media: string;
    thumbnail?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    duration?: number;
    performer?: string;
    title?: string;
};
export type InputMediaDocument = {
    type: string;
    media: string;
    thumbnail?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    disable_content_type_detection?: boolean;
};
export type InputMediaLink = {
    type: string;
    url: string;
};
export type InputMediaLivePhoto = {
    type: string;
    media: string;
    photo: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    has_spoiler?: boolean;
};
export type InputMediaLocation = {
    type: string;
    latitude: number;
    longitude: number;
    horizontal_accuracy?: number;
};
export type InputMediaPhoto = {
    type: string;
    media: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    has_spoiler?: boolean;
};
export type InputMediaSticker = {
    type: string;
    media: string;
    emoji?: string;
};
export type InputMediaVenue = {
    type: string;
    latitude: number;
    longitude: number;
    title: string;
    address: string;
    foursquare_id?: string;
    foursquare_type?: string;
    google_place_id?: string;
    google_place_type?: string;
};
export type InputMediaVideo = {
    type: string;
    media: string;
    thumbnail?: string;
    cover?: string;
    start_timestamp?: number;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    width?: number;
    height?: number;
    duration?: number;
    supports_streaming?: boolean;
    has_spoiler?: boolean;
};
export type InputPaidMediaLivePhoto = {
    type: string;
    media: string;
    photo: string;
};
export type InputPaidMediaPhoto = {
    type: string;
    media: string;
};
export type InputPaidMediaVideo = {
    type: string;
    media: string;
    thumbnail?: string;
    cover?: string;
    start_timestamp?: number;
    width?: number;
    height?: number;
    duration?: number;
    supports_streaming?: boolean;
};
export type InputProfilePhotoStatic = {
    type: string;
    photo: string;
};
export type InputProfilePhotoAnimated = {
    type: string;
    animation: string;
    main_frame_timestamp?: number;
};
export type InputStoryContentPhoto = {
    type: string;
    photo: string;
};
export type InputStoryContentVideo = {
    type: string;
    video: string;
    duration?: number;
    cover_frame_timestamp?: number;
    is_animation?: boolean;
};
export type Sticker = {
    file_id: string;
    file_unique_id: string;
    type: string;
    width: number;
    height: number;
    is_animated: boolean;
    is_video: boolean;
    thumbnail?: PhotoSize;
    emoji?: string;
    set_name?: string;
    premium_animation?: File;
    mask_position?: MaskPosition;
    custom_emoji_id?: string;
    needs_repainting?: true;
    file_size?: number;
};
export type StickerSet = {
    name: string;
    title: string;
    sticker_type: string;
    stickers: Sticker[];
    thumbnail?: PhotoSize;
};
export type MaskPosition = {
    point: string;
    x_shift: number;
    y_shift: number;
    scale: number;
};
export type InputSticker = {
    sticker: string;
    format: string;
    emoji_list: string[];
    mask_position?: MaskPosition;
    keywords?: string[];
};
export type RichMessage = {
    blocks: RichBlock[];
    is_rtl?: boolean;
};
export type InputRichMessage = {
    html?: string;
    markdown?: string;
    is_rtl?: boolean;
    skip_entity_detection?: boolean;
};
export type RichTextBold = {
    type: string;
    text: RichText;
};
export type RichTextItalic = {
    type: string;
    text: RichText;
};
export type RichTextUnderline = {
    type: string;
    text: RichText;
};
export type RichTextStrikethrough = {
    type: string;
    text: RichText;
};
export type RichTextSpoiler = {
    type: string;
    text: RichText;
};
export type RichTextDateTime = {
    type: string;
    text: RichText;
    unix_time: number;
    date_time_format: string;
};
export type RichTextTextMention = {
    type: string;
    text: RichText;
    user: User;
};
export type RichTextSubscript = {
    type: string;
    text: RichText;
};
export type RichTextSuperscript = {
    type: string;
    text: RichText;
};
export type RichTextMarked = {
    type: string;
    text: RichText;
};
export type RichTextCode = {
    type: string;
    text: RichText;
};
export type RichTextCustomEmoji = {
    type: string;
    custom_emoji_id: string;
    alternative_text: string;
};
export type RichTextMathematicalExpression = {
    type: string;
    expression: string;
};
export type RichTextUrl = {
    type: string;
    text: RichText;
    url: string;
};
export type RichTextEmailAddress = {
    type: string;
    text: RichText;
    email_address: string;
};
export type RichTextPhoneNumber = {
    type: string;
    text: RichText;
    phone_number: string;
};
export type RichTextBankCardNumber = {
    type: string;
    text: RichText;
    bank_card_number: string;
};
export type RichTextMention = {
    type: string;
    text: RichText;
    username: string;
};
export type RichTextHashtag = {
    type: string;
    text: RichText;
    hashtag: string;
};
export type RichTextCashtag = {
    type: string;
    text: RichText;
    cashtag: string;
};
export type RichTextBotCommand = {
    type: string;
    text: RichText;
    bot_command: string;
};
export type RichTextAnchor = {
    type: string;
    name: string;
};
export type RichTextAnchorLink = {
    type: string;
    text: RichText;
    anchor_name: string;
};
export type RichTextReference = {
    type: string;
    text: RichText;
    name: string;
};
export type RichTextReferenceLink = {
    type: string;
    text: RichText;
    reference_name: string;
};
export type RichBlockCaption = {
    text: RichText;
    credit?: RichText;
};
export type RichBlockTableCell = {
    text?: RichText;
    is_header?: true;
    colspan?: number;
    rowspan?: number;
    align: string;
    valign: string;
};
export type RichBlockListItem = {
    label: string;
    blocks: RichBlock[];
    has_checkbox?: true;
    is_checked?: true;
    value?: number;
    type?: string;
};
export type RichBlockParagraph = {
    type: string;
    text: RichText;
};
export type RichBlockSectionHeading = {
    type: string;
    text: RichText;
    size: number;
};
export type RichBlockPreformatted = {
    type: string;
    text: RichText;
    language?: string;
};
export type RichBlockFooter = {
    type: string;
    text: RichText;
};
export type RichBlockDivider = {
    type: string;
};
export type RichBlockMathematicalExpression = {
    type: string;
    expression: string;
};
export type RichBlockAnchor = {
    type: string;
    name: string;
};
export type RichBlockList = {
    type: string;
    items: RichBlockListItem[];
};
export type RichBlockBlockQuotation = {
    type: string;
    blocks: RichBlock[];
    credit?: RichText;
};
export type RichBlockPullQuotation = {
    type: string;
    text: RichText;
    credit?: RichText;
};
export type RichBlockCollage = {
    type: string;
    blocks: RichBlock[];
    caption?: RichBlockCaption;
};
export type RichBlockSlideshow = {
    type: string;
    blocks: RichBlock[];
    caption?: RichBlockCaption;
};
export type RichBlockTable = {
    type: string;
    cells: RichBlockTableCell[][];
    is_bordered?: true;
    is_striped?: true;
    caption?: RichText;
};
export type RichBlockDetails = {
    type: string;
    summary: RichText;
    blocks: RichBlock[];
    is_open?: true;
};
export type RichBlockMap = {
    type: string;
    location: Location;
    zoom: number;
    width: number;
    height: number;
    caption?: RichBlockCaption;
};
export type RichBlockAnimation = {
    type: string;
    animation: Animation;
    has_spoiler?: true;
    caption?: RichBlockCaption;
};
export type RichBlockAudio = {
    type: string;
    audio: Audio;
    caption?: RichBlockCaption;
};
export type RichBlockPhoto = {
    type: string;
    photo: PhotoSize[];
    has_spoiler?: true;
    caption?: RichBlockCaption;
};
export type RichBlockVideo = {
    type: string;
    video: Video;
    has_spoiler?: true;
    caption?: RichBlockCaption;
};
export type RichBlockVoiceNote = {
    type: string;
    voice_note: Voice;
    caption?: RichBlockCaption;
};
export type RichBlockThinking = {
    type: string;
    text: RichText;
};
export type InlineQuery = {
    id: string;
    from: User;
    query: string;
    offset: string;
    chat_type?: string;
    location?: Location;
};
export type InlineQueryResultsButton = {
    text: string;
    web_app?: WebAppInfo;
    start_parameter?: string;
};
export type InlineQueryResultArticle = {
    type: string;
    id: string;
    title: string;
    input_message_content: InputMessageContent;
    reply_markup?: InlineKeyboardMarkup;
    url?: string;
    description?: string;
    thumbnail_url?: string;
    thumbnail_width?: number;
    thumbnail_height?: number;
};
export type InlineQueryResultPhoto = {
    type: string;
    id: string;
    photo_url: string;
    thumbnail_url: string;
    photo_width?: number;
    photo_height?: number;
    title?: string;
    description?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultGif = {
    type: string;
    id: string;
    gif_url: string;
    gif_width?: number;
    gif_height?: number;
    gif_duration?: number;
    thumbnail_url: string;
    thumbnail_mime_type?: string;
    title?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultMpeg4Gif = {
    type: string;
    id: string;
    mpeg4_url: string;
    mpeg4_width?: number;
    mpeg4_height?: number;
    mpeg4_duration?: number;
    thumbnail_url: string;
    thumbnail_mime_type?: string;
    title?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultVideo = {
    type: string;
    id: string;
    video_url: string;
    mime_type: string;
    thumbnail_url: string;
    title: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    video_width?: number;
    video_height?: number;
    video_duration?: number;
    description?: string;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultAudio = {
    type: string;
    id: string;
    audio_url: string;
    title: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    performer?: string;
    audio_duration?: number;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultVoice = {
    type: string;
    id: string;
    voice_url: string;
    title: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    voice_duration?: number;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultDocument = {
    type: string;
    id: string;
    title: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    document_url: string;
    mime_type: string;
    description?: string;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
    thumbnail_url?: string;
    thumbnail_width?: number;
    thumbnail_height?: number;
};
export type InlineQueryResultLocation = {
    type: string;
    id: string;
    latitude: number;
    longitude: number;
    title: string;
    horizontal_accuracy?: number;
    live_period?: number;
    heading?: number;
    proximity_alert_radius?: number;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
    thumbnail_url?: string;
    thumbnail_width?: number;
    thumbnail_height?: number;
};
export type InlineQueryResultVenue = {
    type: string;
    id: string;
    latitude: number;
    longitude: number;
    title: string;
    address: string;
    foursquare_id?: string;
    foursquare_type?: string;
    google_place_id?: string;
    google_place_type?: string;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
    thumbnail_url?: string;
    thumbnail_width?: number;
    thumbnail_height?: number;
};
export type InlineQueryResultContact = {
    type: string;
    id: string;
    phone_number: string;
    first_name: string;
    last_name?: string;
    vcard?: string;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
    thumbnail_url?: string;
    thumbnail_width?: number;
    thumbnail_height?: number;
};
export type InlineQueryResultGame = {
    type: string;
    id: string;
    game_short_name: string;
    reply_markup?: InlineKeyboardMarkup;
};
export type InlineQueryResultCachedPhoto = {
    type: string;
    id: string;
    photo_file_id: string;
    title?: string;
    description?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultCachedGif = {
    type: string;
    id: string;
    gif_file_id: string;
    title?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultCachedMpeg4Gif = {
    type: string;
    id: string;
    mpeg4_file_id: string;
    title?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultCachedSticker = {
    type: string;
    id: string;
    sticker_file_id: string;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultCachedDocument = {
    type: string;
    id: string;
    title: string;
    document_file_id: string;
    description?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultCachedVideo = {
    type: string;
    id: string;
    video_file_id: string;
    title: string;
    description?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultCachedVoice = {
    type: string;
    id: string;
    voice_file_id: string;
    title: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InlineQueryResultCachedAudio = {
    type: string;
    id: string;
    audio_file_id: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    reply_markup?: InlineKeyboardMarkup;
    input_message_content?: InputMessageContent;
};
export type InputTextMessageContent = {
    message_text: string;
    parse_mode?: string;
    entities?: MessageEntity[];
    link_preview_options?: LinkPreviewOptions;
};
export type InputRichMessageContent = {
    rich_message: InputRichMessage;
};
export type InputLocationMessageContent = {
    latitude: number;
    longitude: number;
    horizontal_accuracy?: number;
    live_period?: number;
    heading?: number;
    proximity_alert_radius?: number;
};
export type InputVenueMessageContent = {
    latitude: number;
    longitude: number;
    title: string;
    address: string;
    foursquare_id?: string;
    foursquare_type?: string;
    google_place_id?: string;
    google_place_type?: string;
};
export type InputContactMessageContent = {
    phone_number: string;
    first_name: string;
    last_name?: string;
    vcard?: string;
};
export type InputInvoiceMessageContent = {
    title: string;
    description: string;
    payload: string;
    provider_token?: string;
    currency: string;
    prices: LabeledPrice[];
    max_tip_amount?: number;
    suggested_tip_amounts?: number[];
    provider_data?: string;
    photo_url?: string;
    photo_size?: number;
    photo_width?: number;
    photo_height?: number;
    need_name?: boolean;
    need_phone_number?: boolean;
    need_email?: boolean;
    need_shipping_address?: boolean;
    send_phone_number_to_provider?: boolean;
    send_email_to_provider?: boolean;
    is_flexible?: boolean;
};
export type ChosenInlineResult = {
    result_id: string;
    from: User;
    location?: Location;
    inline_message_id?: string;
    query: string;
};
export type LabeledPrice = {
    label: string;
    amount: number;
};
export type Invoice = {
    title: string;
    description: string;
    start_parameter: string;
    currency: string;
    total_amount: number;
};
export type ShippingAddress = {
    country_code: string;
    state: string;
    city: string;
    street_line1: string;
    street_line2: string;
    post_code: string;
};
export type OrderInfo = {
    name?: string;
    phone_number?: string;
    email?: string;
    shipping_address?: ShippingAddress;
};
export type ShippingOption = {
    id: string;
    title: string;
    prices: LabeledPrice[];
};
export type SuccessfulPayment = {
    currency: string;
    total_amount: number;
    invoice_payload: string;
    subscription_expiration_date?: number;
    is_recurring?: true;
    is_first_recurring?: true;
    shipping_option_id?: string;
    order_info?: OrderInfo;
    telegram_payment_charge_id: string;
    provider_payment_charge_id: string;
};
export type RefundedPayment = {
    currency: string;
    total_amount: number;
    invoice_payload: string;
    telegram_payment_charge_id: string;
    provider_payment_charge_id?: string;
};
export type ShippingQuery = {
    id: string;
    from: User;
    invoice_payload: string;
    shipping_address: ShippingAddress;
};
export type PreCheckoutQuery = {
    id: string;
    from: User;
    currency: string;
    total_amount: number;
    invoice_payload: string;
    shipping_option_id?: string;
    order_info?: OrderInfo;
};
export type PaidMediaPurchased = {
    from: User;
    paid_media_payload: string;
};
export type RevenueWithdrawalStatePending = {
    type: string;
};
export type RevenueWithdrawalStateSucceeded = {
    type: string;
    date: number;
    url: string;
};
export type RevenueWithdrawalStateFailed = {
    type: string;
};
export type AffiliateInfo = {
    affiliate_user?: User;
    affiliate_chat?: Chat;
    commission_per_mille: number;
    amount: number;
    nanostar_amount?: number;
};
export type TransactionPartnerUser = {
    type: string;
    transaction_type: string;
    user: User;
    affiliate?: AffiliateInfo;
    invoice_payload?: string;
    subscription_period?: number;
    paid_media?: PaidMedia[];
    paid_media_payload?: string;
    gift?: Gift;
    premium_subscription_duration?: number;
};
export type TransactionPartnerChat = {
    type: string;
    chat: Chat;
    gift?: Gift;
};
export type TransactionPartnerAffiliateProgram = {
    type: string;
    sponsor_user?: User;
    commission_per_mille: number;
};
export type TransactionPartnerFragment = {
    type: string;
    withdrawal_state?: RevenueWithdrawalState;
};
export type TransactionPartnerTelegramAds = {
    type: string;
};
export type TransactionPartnerTelegramApi = {
    type: string;
    request_count: number;
};
export type TransactionPartnerOther = {
    type: string;
};
export type StarTransaction = {
    id: string;
    amount: number;
    nanostar_amount?: number;
    date: number;
    source?: TransactionPartner;
    receiver?: TransactionPartner;
};
export type StarTransactions = {
    transactions: StarTransaction[];
};
export type PassportData = {
    data: EncryptedPassportElement[];
    credentials: EncryptedCredentials;
};
export type PassportFile = {
    file_id: string;
    file_unique_id: string;
    file_size: number;
    file_date: number;
};
export type EncryptedPassportElement = {
    type: string;
    data?: string;
    phone_number?: string;
    email?: string;
    files?: PassportFile[];
    front_side?: PassportFile;
    reverse_side?: PassportFile;
    selfie?: PassportFile;
    translation?: PassportFile[];
    hash: string;
};
export type EncryptedCredentials = {
    data: string;
    hash: string;
    secret: string;
};
export type PassportElementErrorDataField = {
    source: string;
    type: string;
    field_name: string;
    data_hash: string;
    message: string;
};
export type PassportElementErrorFrontSide = {
    source: string;
    type: string;
    file_hash: string;
    message: string;
};
export type PassportElementErrorReverseSide = {
    source: string;
    type: string;
    file_hash: string;
    message: string;
};
export type PassportElementErrorSelfie = {
    source: string;
    type: string;
    file_hash: string;
    message: string;
};
export type PassportElementErrorFile = {
    source: string;
    type: string;
    file_hash: string;
    message: string;
};
export type PassportElementErrorFiles = {
    source: string;
    type: string;
    file_hashes: string[];
    message: string;
};
export type PassportElementErrorTranslationFile = {
    source: string;
    type: string;
    file_hash: string;
    message: string;
};
export type PassportElementErrorTranslationFiles = {
    source: string;
    type: string;
    file_hashes: string[];
    message: string;
};
export type PassportElementErrorUnspecified = {
    source: string;
    type: string;
    element_hash: string;
    message: string;
};
export type Game = {
    title: string;
    description: string;
    photo: PhotoSize[];
    text?: string;
    text_entities?: MessageEntity[];
    animation?: Animation;
};
export type GameHighScore = {
    position: number;
    user: User;
    score: number;
};
export type CallbackGame = Record<string, never>;
export type ForumTopicClosed = Record<string, never>;
export type ForumTopicReopened = Record<string, never>;
export type GeneralForumTopicHidden = Record<string, never>;
export type GeneralForumTopicUnhidden = Record<string, never>;
export type VideoChatStarted = Record<string, never>;
export type MaybeInaccessibleMessage = Message | InaccessibleMessage;
export type MessageOrigin = MessageOriginUser | MessageOriginHiddenUser | MessageOriginChat | MessageOriginChannel;
export type PaidMedia = PaidMediaLivePhoto | PaidMediaPhoto | PaidMediaPreview | PaidMediaVideo;
export type InputPollMedia = InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaLivePhoto | InputMediaLocation | InputMediaPhoto | InputMediaVenue | InputMediaVideo;
export type InputPollOptionMedia = InputMediaAnimation | InputMediaLink | InputMediaLivePhoto | InputMediaLocation | InputMediaPhoto | InputMediaSticker | InputMediaVenue | InputMediaVideo;
export type BackgroundFill = BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient;
export type BackgroundType = BackgroundTypeFill | BackgroundTypeWallpaper | BackgroundTypePattern | BackgroundTypeChatTheme;
export type ChatMember = ChatMemberOwner | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned;
export type StoryAreaType = StoryAreaTypeLocation | StoryAreaTypeSuggestedReaction | StoryAreaTypeLink | StoryAreaTypeWeather | StoryAreaTypeUniqueGift;
export type ReactionType = ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid;
export type OwnedGift = OwnedGiftRegular | OwnedGiftUnique;
export type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
export type MenuButton = MenuButtonCommands | MenuButtonWebApp | MenuButtonDefault;
export type ChatBoostSource = ChatBoostSourcePremium | ChatBoostSourceGiftCode | ChatBoostSourceGiveaway;
export type InputMedia = InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaLivePhoto | InputMediaPhoto | InputMediaVideo;
export type InputPaidMedia = InputPaidMediaLivePhoto | InputPaidMediaPhoto | InputPaidMediaVideo;
export type InputProfilePhoto = InputProfilePhotoStatic | InputProfilePhotoAnimated;
export type InputStoryContent = InputStoryContentPhoto | InputStoryContentVideo;
export type RichText = RichTextBold | RichTextItalic | RichTextUnderline | RichTextStrikethrough | RichTextSpoiler | RichTextDateTime | RichTextTextMention | RichTextSubscript | RichTextSuperscript | RichTextMarked | RichTextCode | RichTextCustomEmoji | RichTextMathematicalExpression | RichTextUrl | RichTextEmailAddress | RichTextPhoneNumber | RichTextBankCardNumber | RichTextMention | RichTextHashtag | RichTextCashtag | RichTextBotCommand | RichTextAnchor | RichTextAnchorLink | RichTextReference | RichTextReferenceLink;
export type RichBlock = RichBlockParagraph | RichBlockSectionHeading | RichBlockPreformatted | RichBlockFooter | RichBlockDivider | RichBlockMathematicalExpression | RichBlockAnchor | RichBlockList | RichBlockBlockQuotation | RichBlockPullQuotation | RichBlockCollage | RichBlockSlideshow | RichBlockTable | RichBlockDetails | RichBlockMap | RichBlockAnimation | RichBlockAudio | RichBlockPhoto | RichBlockVideo | RichBlockVoiceNote | RichBlockThinking;
export type InlineQueryResult = InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice;
export type InputMessageContent = InputTextMessageContent | InputRichMessageContent | InputLocationMessageContent | InputVenueMessageContent | InputContactMessageContent | InputInvoiceMessageContent;
export type RevenueWithdrawalState = RevenueWithdrawalStatePending | RevenueWithdrawalStateSucceeded | RevenueWithdrawalStateFailed;
export type TransactionPartner = TransactionPartnerUser | TransactionPartnerChat | TransactionPartnerAffiliateProgram | TransactionPartnerFragment | TransactionPartnerTelegramAds | TransactionPartnerTelegramApi | TransactionPartnerOther;
export type PassportElementError = PassportElementErrorDataField | PassportElementErrorFrontSide | PassportElementErrorReverseSide | PassportElementErrorSelfie | PassportElementErrorFile | PassportElementErrorFiles | PassportElementErrorTranslationFile | PassportElementErrorTranslationFiles | PassportElementErrorUnspecified;
export type GetUpdatesParams = {
    offset?: number;
    limit?: number;
    timeout?: number;
    allowed_updates?: string[];
};
export type GetUpdatesResult = Update[];
export type SetWebhookParams = {
    url: string;
    certificate?: InputFile;
    ip_address?: string;
    max_connections?: number;
    allowed_updates?: string[];
    drop_pending_updates?: boolean;
    secret_token?: string;
};
export type SetWebhookResult = boolean;
export type DeleteWebhookParams = {
    drop_pending_updates?: boolean;
};
export type DeleteWebhookResult = boolean;
export type GetWebhookInfoParams = Record<string, never>;
export type GetWebhookInfoResult = WebhookInfo;
export type GetMeParams = Record<string, never>;
export type GetMeResult = User;
export type LogOutParams = Record<string, never>;
export type LogOutResult = boolean;
export type CloseParams = Record<string, never>;
export type CloseResult = boolean;
export type SendMessageParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    text: string;
    parse_mode?: string;
    entities?: MessageEntity[];
    link_preview_options?: LinkPreviewOptions;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendMessageResult = Message;
export type ForwardMessageParams = {
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    from_chat_id: number | string;
    video_start_timestamp?: number;
    disable_notification?: boolean;
    protect_content?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    message_id: number;
};
export type ForwardMessageResult = Message;
export type ForwardMessagesParams = {
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    from_chat_id: number | string;
    message_ids: number[];
    disable_notification?: boolean;
    protect_content?: boolean;
};
export type ForwardMessagesResult = MessageId[];
export type CopyMessageParams = {
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    from_chat_id: number | string;
    message_id: number;
    video_start_timestamp?: number;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type CopyMessageResult = MessageId;
export type CopyMessagesParams = {
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    from_chat_id: number | string;
    message_ids: number[];
    disable_notification?: boolean;
    protect_content?: boolean;
    remove_caption?: boolean;
};
export type CopyMessagesResult = MessageId[];
export type SendPhotoParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    photo: InputFile | string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    has_spoiler?: boolean;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendPhotoResult = Message;
export type SendLivePhotoParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    live_photo: InputFile | string;
    photo: InputFile | string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    has_spoiler?: boolean;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendLivePhotoResult = Message;
export type SendAudioParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    audio: InputFile | string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    duration?: number;
    performer?: string;
    title?: string;
    thumbnail?: InputFile | string;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendAudioResult = Message;
export type SendDocumentParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    document: InputFile | string;
    thumbnail?: InputFile | string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    disable_content_type_detection?: boolean;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendDocumentResult = Message;
export type SendVideoParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    video: InputFile | string;
    duration?: number;
    width?: number;
    height?: number;
    thumbnail?: InputFile | string;
    cover?: InputFile | string;
    start_timestamp?: number;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    has_spoiler?: boolean;
    supports_streaming?: boolean;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendVideoResult = Message;
export type SendAnimationParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    animation: InputFile | string;
    duration?: number;
    width?: number;
    height?: number;
    thumbnail?: InputFile | string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    has_spoiler?: boolean;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendAnimationResult = Message;
export type SendVoiceParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    voice: InputFile | string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    duration?: number;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendVoiceResult = Message;
export type SendVideoNoteParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    video_note: InputFile | string;
    duration?: number;
    length?: number;
    thumbnail?: InputFile | string;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendVideoNoteResult = Message;
export type SendPaidMediaParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    star_count: number;
    media: InputPaidMedia[];
    payload?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendPaidMediaResult = Message;
export type SendMediaGroupParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    media: (InputMediaAudio | InputMediaDocument | InputMediaLivePhoto | InputMediaPhoto | InputMediaVideo)[];
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    reply_parameters?: ReplyParameters;
};
export type SendMediaGroupResult = Message[];
export type SendLocationParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    latitude: number;
    longitude: number;
    horizontal_accuracy?: number;
    live_period?: number;
    heading?: number;
    proximity_alert_radius?: number;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendLocationResult = Message;
export type SendVenueParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    latitude: number;
    longitude: number;
    title: string;
    address: string;
    foursquare_id?: string;
    foursquare_type?: string;
    google_place_id?: string;
    google_place_type?: string;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendVenueResult = Message;
export type SendContactParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    phone_number: string;
    first_name: string;
    last_name?: string;
    vcard?: string;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendContactResult = Message;
export type SendPollParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    question: string;
    question_parse_mode?: string;
    question_entities?: MessageEntity[];
    options: InputPollOption[];
    is_anonymous?: boolean;
    type?: string;
    allows_multiple_answers?: boolean;
    allows_revoting?: boolean;
    shuffle_options?: boolean;
    allow_adding_options?: boolean;
    hide_results_until_closes?: boolean;
    members_only?: boolean;
    country_codes?: string[];
    correct_option_ids?: number[];
    explanation?: string;
    explanation_parse_mode?: string;
    explanation_entities?: MessageEntity[];
    explanation_media?: InputPollMedia;
    open_period?: number;
    close_date?: number;
    is_closed?: boolean;
    description?: string;
    description_parse_mode?: string;
    description_entities?: MessageEntity[];
    media?: InputPollMedia;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendPollResult = Message;
export type SendChecklistParams = {
    business_connection_id: string;
    chat_id: number | string;
    checklist: InputChecklist;
    disable_notification?: boolean;
    protect_content?: boolean;
    message_effect_id?: string;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup;
};
export type SendChecklistResult = Message;
export type SendDiceParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    emoji?: string;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendDiceResult = Message;
export type SendMessageDraftParams = {
    chat_id: number;
    message_thread_id?: number;
    draft_id: number;
    text?: string;
    parse_mode?: string;
    entities?: MessageEntity[];
};
export type SendMessageDraftResult = boolean;
export type SendChatActionParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    action: string;
};
export type SendChatActionResult = boolean;
export type SetMessageReactionParams = {
    chat_id: number | string;
    message_id: number;
    reaction?: ReactionType[];
    is_big?: boolean;
};
export type SetMessageReactionResult = boolean;
export type GetUserProfilePhotosParams = {
    user_id: number;
    offset?: number;
    limit?: number;
};
export type GetUserProfilePhotosResult = UserProfilePhotos;
export type GetUserProfileAudiosParams = {
    user_id: number;
    offset?: number;
    limit?: number;
};
export type GetUserProfileAudiosResult = UserProfileAudios;
export type SetUserEmojiStatusParams = {
    user_id: number;
    emoji_status_custom_emoji_id?: string;
    emoji_status_expiration_date?: number;
};
export type SetUserEmojiStatusResult = boolean;
export type GetFileParams = {
    file_id: string;
};
export type GetFileResult = File;
export type BanChatMemberParams = {
    chat_id: number | string;
    user_id: number;
    until_date?: number;
    revoke_messages?: boolean;
};
export type BanChatMemberResult = boolean;
export type UnbanChatMemberParams = {
    chat_id: number | string;
    user_id: number;
    only_if_banned?: boolean;
};
export type UnbanChatMemberResult = boolean;
export type RestrictChatMemberParams = {
    chat_id: number | string;
    user_id: number;
    permissions: ChatPermissions;
    use_independent_chat_permissions?: boolean;
    until_date?: number;
};
export type RestrictChatMemberResult = boolean;
export type PromoteChatMemberParams = {
    chat_id: number | string;
    user_id: number;
    is_anonymous?: boolean;
    can_manage_chat?: boolean;
    can_delete_messages?: boolean;
    can_manage_video_chats?: boolean;
    can_restrict_members?: boolean;
    can_promote_members?: boolean;
    can_change_info?: boolean;
    can_invite_users?: boolean;
    can_post_stories?: boolean;
    can_edit_stories?: boolean;
    can_delete_stories?: boolean;
    can_post_messages?: boolean;
    can_edit_messages?: boolean;
    can_pin_messages?: boolean;
    can_manage_topics?: boolean;
    can_manage_direct_messages?: boolean;
    can_manage_tags?: boolean;
};
export type PromoteChatMemberResult = boolean;
export type SetChatAdministratorCustomTitleParams = {
    chat_id: number | string;
    user_id: number;
    custom_title: string;
};
export type SetChatAdministratorCustomTitleResult = boolean;
export type SetChatMemberTagParams = {
    chat_id: number | string;
    user_id: number;
    tag?: string;
};
export type SetChatMemberTagResult = boolean;
export type BanChatSenderChatParams = {
    chat_id: number | string;
    sender_chat_id: number;
};
export type BanChatSenderChatResult = boolean;
export type UnbanChatSenderChatParams = {
    chat_id: number | string;
    sender_chat_id: number;
};
export type UnbanChatSenderChatResult = boolean;
export type SetChatPermissionsParams = {
    chat_id: number | string;
    permissions: ChatPermissions;
    use_independent_chat_permissions?: boolean;
};
export type SetChatPermissionsResult = boolean;
export type ExportChatInviteLinkParams = {
    chat_id: number | string;
};
export type ExportChatInviteLinkResult = string;
export type CreateChatInviteLinkParams = {
    chat_id: number | string;
    name?: string;
    expire_date?: number;
    member_limit?: number;
    creates_join_request?: boolean;
};
export type CreateChatInviteLinkResult = ChatInviteLink;
export type EditChatInviteLinkParams = {
    chat_id: number | string;
    invite_link: string;
    name?: string;
    expire_date?: number;
    member_limit?: number;
    creates_join_request?: boolean;
};
export type EditChatInviteLinkResult = ChatInviteLink;
export type CreateChatSubscriptionInviteLinkParams = {
    chat_id: number | string;
    name?: string;
    subscription_period: number;
    subscription_price: number;
};
export type CreateChatSubscriptionInviteLinkResult = ChatInviteLink;
export type EditChatSubscriptionInviteLinkParams = {
    chat_id: number | string;
    invite_link: string;
    name?: string;
};
export type EditChatSubscriptionInviteLinkResult = ChatInviteLink;
export type RevokeChatInviteLinkParams = {
    chat_id: number | string;
    invite_link: string;
};
export type RevokeChatInviteLinkResult = ChatInviteLink;
export type ApproveChatJoinRequestParams = {
    chat_id: number | string;
    user_id: number;
};
export type ApproveChatJoinRequestResult = boolean;
export type DeclineChatJoinRequestParams = {
    chat_id: number | string;
    user_id: number;
};
export type DeclineChatJoinRequestResult = boolean;
export type AnswerChatJoinRequestQueryParams = {
    chat_join_request_query_id: string;
    result: string;
};
export type AnswerChatJoinRequestQueryResult = boolean;
export type SendChatJoinRequestWebAppParams = {
    chat_join_request_query_id: string;
    web_app_url: string;
};
export type SendChatJoinRequestWebAppResult = boolean;
export type SetChatPhotoParams = {
    chat_id: number | string;
    photo: InputFile;
};
export type SetChatPhotoResult = boolean;
export type DeleteChatPhotoParams = {
    chat_id: number | string;
};
export type DeleteChatPhotoResult = boolean;
export type SetChatTitleParams = {
    chat_id: number | string;
    title: string;
};
export type SetChatTitleResult = boolean;
export type SetChatDescriptionParams = {
    chat_id: number | string;
    description?: string;
};
export type SetChatDescriptionResult = boolean;
export type PinChatMessageParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_id: number;
    disable_notification?: boolean;
};
export type PinChatMessageResult = boolean;
export type UnpinChatMessageParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_id?: number;
};
export type UnpinChatMessageResult = boolean;
export type UnpinAllChatMessagesParams = {
    chat_id: number | string;
};
export type UnpinAllChatMessagesResult = boolean;
export type LeaveChatParams = {
    chat_id: number | string;
};
export type LeaveChatResult = boolean;
export type GetChatParams = {
    chat_id: number | string;
};
export type GetChatResult = ChatFullInfo;
export type GetChatAdministratorsParams = {
    chat_id: number | string;
    return_bots?: boolean;
};
export type GetChatAdministratorsResult = ChatMember[];
export type GetChatMemberCountParams = {
    chat_id: number | string;
};
export type GetChatMemberCountResult = number;
export type GetChatMemberParams = {
    chat_id: number | string;
    user_id: number;
};
export type GetChatMemberResult = ChatMember;
export type GetUserPersonalChatMessagesParams = {
    user_id: number;
    limit: number;
};
export type GetUserPersonalChatMessagesResult = Message[];
export type SetChatStickerSetParams = {
    chat_id: number | string;
    sticker_set_name: string;
};
export type SetChatStickerSetResult = boolean;
export type DeleteChatStickerSetParams = {
    chat_id: number | string;
};
export type DeleteChatStickerSetResult = boolean;
export type GetForumTopicIconStickersParams = Record<string, never>;
export type GetForumTopicIconStickersResult = Sticker[];
export type CreateForumTopicParams = {
    chat_id: number | string;
    name: string;
    icon_color?: number;
    icon_custom_emoji_id?: string;
};
export type CreateForumTopicResult = ForumTopic;
export type EditForumTopicParams = {
    chat_id: number | string;
    message_thread_id: number;
    name?: string;
    icon_custom_emoji_id?: string;
};
export type EditForumTopicResult = boolean;
export type CloseForumTopicParams = {
    chat_id: number | string;
    message_thread_id: number;
};
export type CloseForumTopicResult = boolean;
export type ReopenForumTopicParams = {
    chat_id: number | string;
    message_thread_id: number;
};
export type ReopenForumTopicResult = boolean;
export type DeleteForumTopicParams = {
    chat_id: number | string;
    message_thread_id: number;
};
export type DeleteForumTopicResult = boolean;
export type UnpinAllForumTopicMessagesParams = {
    chat_id: number | string;
    message_thread_id: number;
};
export type UnpinAllForumTopicMessagesResult = boolean;
export type EditGeneralForumTopicParams = {
    chat_id: number | string;
    name: string;
};
export type EditGeneralForumTopicResult = boolean;
export type CloseGeneralForumTopicParams = {
    chat_id: number | string;
};
export type CloseGeneralForumTopicResult = boolean;
export type ReopenGeneralForumTopicParams = {
    chat_id: number | string;
};
export type ReopenGeneralForumTopicResult = boolean;
export type HideGeneralForumTopicParams = {
    chat_id: number | string;
};
export type HideGeneralForumTopicResult = boolean;
export type UnhideGeneralForumTopicParams = {
    chat_id: number | string;
};
export type UnhideGeneralForumTopicResult = boolean;
export type UnpinAllGeneralForumTopicMessagesParams = {
    chat_id: number | string;
};
export type UnpinAllGeneralForumTopicMessagesResult = boolean;
export type AnswerCallbackQueryParams = {
    callback_query_id: string;
    text?: string;
    show_alert?: boolean;
    url?: string;
    cache_time?: number;
};
export type AnswerCallbackQueryResult = boolean;
export type AnswerGuestQueryParams = {
    guest_query_id: string;
    result: InlineQueryResult;
};
export type AnswerGuestQueryResult = SentGuestMessage;
export type GetUserChatBoostsParams = {
    chat_id: number | string;
    user_id: number;
};
export type GetUserChatBoostsResult = UserChatBoosts;
export type GetBusinessConnectionParams = {
    business_connection_id: string;
};
export type GetBusinessConnectionResult = BusinessConnection;
export type GetManagedBotTokenParams = {
    user_id: number;
};
export type GetManagedBotTokenResult = BusinessConnection;
export type ReplaceManagedBotTokenParams = {
    user_id: number;
};
export type ReplaceManagedBotTokenResult = string;
export type GetManagedBotAccessSettingsParams = {
    user_id: number;
};
export type GetManagedBotAccessSettingsResult = BotAccessSettings;
export type SetManagedBotAccessSettingsParams = {
    user_id: number;
    is_access_restricted: boolean;
    added_user_ids?: number[];
};
export type SetManagedBotAccessSettingsResult = boolean;
export type SetMyCommandsParams = {
    commands: BotCommand[];
    scope?: BotCommandScope;
    language_code?: string;
};
export type SetMyCommandsResult = boolean;
export type DeleteMyCommandsParams = {
    scope?: BotCommandScope;
    language_code?: string;
};
export type DeleteMyCommandsResult = boolean;
export type GetMyCommandsParams = {
    scope?: BotCommandScope;
    language_code?: string;
};
export type GetMyCommandsResult = BotCommand[];
export type SetMyNameParams = {
    name?: string;
    language_code?: string;
};
export type SetMyNameResult = boolean;
export type GetMyNameParams = {
    language_code?: string;
};
export type GetMyNameResult = BotName;
export type SetMyDescriptionParams = {
    description?: string;
    language_code?: string;
};
export type SetMyDescriptionResult = boolean;
export type GetMyDescriptionParams = {
    language_code?: string;
};
export type GetMyDescriptionResult = BotDescription;
export type SetMyShortDescriptionParams = {
    short_description?: string;
    language_code?: string;
};
export type SetMyShortDescriptionResult = boolean;
export type GetMyShortDescriptionParams = {
    language_code?: string;
};
export type GetMyShortDescriptionResult = BotShortDescription;
export type SetMyProfilePhotoParams = {
    photo: InputProfilePhoto;
};
export type SetMyProfilePhotoResult = boolean;
export type RemoveMyProfilePhotoParams = Record<string, never>;
export type RemoveMyProfilePhotoResult = boolean;
export type SetChatMenuButtonParams = {
    chat_id?: number;
    menu_button?: MenuButton;
};
export type SetChatMenuButtonResult = boolean;
export type GetChatMenuButtonParams = {
    chat_id?: number;
};
export type GetChatMenuButtonResult = MenuButton;
export type SetMyDefaultAdministratorRightsParams = {
    rights?: ChatAdministratorRights;
    for_channels?: boolean;
};
export type SetMyDefaultAdministratorRightsResult = boolean;
export type GetMyDefaultAdministratorRightsParams = {
    for_channels?: boolean;
};
export type GetMyDefaultAdministratorRightsResult = ChatAdministratorRights;
export type GetAvailableGiftsParams = Record<string, never>;
export type GetAvailableGiftsResult = Gifts;
export type SendGiftParams = {
    user_id?: number;
    chat_id?: number | string;
    gift_id: string;
    pay_for_upgrade?: boolean;
    text?: string;
    text_parse_mode?: string;
    text_entities?: MessageEntity[];
};
export type SendGiftResult = boolean;
export type GiftPremiumSubscriptionParams = {
    user_id: number;
    month_count: number;
    star_count: number;
    text?: string;
    text_parse_mode?: string;
    text_entities?: MessageEntity[];
};
export type GiftPremiumSubscriptionResult = boolean;
export type VerifyUserParams = {
    user_id: number;
    custom_description?: string;
};
export type VerifyUserResult = boolean;
export type VerifyChatParams = {
    chat_id: number | string;
    custom_description?: string;
};
export type VerifyChatResult = boolean;
export type RemoveUserVerificationParams = {
    user_id: number;
};
export type RemoveUserVerificationResult = boolean;
export type RemoveChatVerificationParams = {
    chat_id: number | string;
};
export type RemoveChatVerificationResult = boolean;
export type ReadBusinessMessageParams = {
    business_connection_id: string;
    chat_id: number;
    message_id: number;
};
export type ReadBusinessMessageResult = boolean;
export type DeleteBusinessMessagesParams = {
    business_connection_id: string;
    message_ids: number[];
};
export type DeleteBusinessMessagesResult = boolean;
export type SetBusinessAccountNameParams = {
    business_connection_id: string;
    first_name: string;
    last_name?: string;
};
export type SetBusinessAccountNameResult = boolean;
export type SetBusinessAccountUsernameParams = {
    business_connection_id: string;
    username?: string;
};
export type SetBusinessAccountUsernameResult = boolean;
export type SetBusinessAccountBioParams = {
    business_connection_id: string;
    bio?: string;
};
export type SetBusinessAccountBioResult = boolean;
export type SetBusinessAccountProfilePhotoParams = {
    business_connection_id: string;
    photo: InputProfilePhoto;
    is_public?: boolean;
};
export type SetBusinessAccountProfilePhotoResult = boolean;
export type RemoveBusinessAccountProfilePhotoParams = {
    business_connection_id: string;
    is_public?: boolean;
};
export type RemoveBusinessAccountProfilePhotoResult = boolean;
export type SetBusinessAccountGiftSettingsParams = {
    business_connection_id: string;
    show_gift_button: boolean;
    accepted_gift_types: AcceptedGiftTypes;
};
export type SetBusinessAccountGiftSettingsResult = boolean;
export type GetBusinessAccountStarBalanceParams = {
    business_connection_id: string;
};
export type GetBusinessAccountStarBalanceResult = StarAmount;
export type TransferBusinessAccountStarsParams = {
    business_connection_id: string;
    star_count: number;
};
export type TransferBusinessAccountStarsResult = boolean;
export type GetBusinessAccountGiftsParams = {
    business_connection_id: string;
    exclude_unsaved?: boolean;
    exclude_saved?: boolean;
    exclude_unlimited?: boolean;
    exclude_limited_upgradable?: boolean;
    exclude_limited_non_upgradable?: boolean;
    exclude_unique?: boolean;
    exclude_from_blockchain?: boolean;
    sort_by_price?: boolean;
    offset?: string;
    limit?: number;
};
export type GetBusinessAccountGiftsResult = OwnedGifts;
export type GetUserGiftsParams = {
    user_id: number;
    exclude_unlimited?: boolean;
    exclude_limited_upgradable?: boolean;
    exclude_limited_non_upgradable?: boolean;
    exclude_from_blockchain?: boolean;
    exclude_unique?: boolean;
    sort_by_price?: boolean;
    offset?: string;
    limit?: number;
};
export type GetUserGiftsResult = OwnedGifts;
export type GetChatGiftsParams = {
    chat_id: number | string;
    exclude_unsaved?: boolean;
    exclude_saved?: boolean;
    exclude_unlimited?: boolean;
    exclude_limited_upgradable?: boolean;
    exclude_limited_non_upgradable?: boolean;
    exclude_from_blockchain?: boolean;
    exclude_unique?: boolean;
    sort_by_price?: boolean;
    offset?: string;
    limit?: number;
};
export type GetChatGiftsResult = OwnedGifts;
export type ConvertGiftToStarsParams = {
    business_connection_id: string;
    owned_gift_id: string;
};
export type ConvertGiftToStarsResult = boolean;
export type UpgradeGiftParams = {
    business_connection_id: string;
    owned_gift_id: string;
    keep_original_details?: boolean;
    star_count?: number;
};
export type UpgradeGiftResult = boolean;
export type TransferGiftParams = {
    business_connection_id: string;
    owned_gift_id: string;
    new_owner_chat_id: number;
    star_count?: number;
};
export type TransferGiftResult = boolean;
export type PostStoryParams = {
    business_connection_id: string;
    content: InputStoryContent;
    active_period: number;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    areas?: StoryArea[];
    post_to_chat_page?: boolean;
    protect_content?: boolean;
};
export type PostStoryResult = Story;
export type RepostStoryParams = {
    business_connection_id: string;
    from_chat_id: number;
    from_story_id: number;
    active_period: number;
    post_to_chat_page?: boolean;
    protect_content?: boolean;
};
export type RepostStoryResult = Story;
export type EditStoryParams = {
    business_connection_id: string;
    story_id: number;
    content: InputStoryContent;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    areas?: StoryArea[];
};
export type EditStoryResult = Story;
export type DeleteStoryParams = {
    business_connection_id: string;
    story_id: number;
};
export type DeleteStoryResult = boolean;
export type AnswerWebAppQueryParams = {
    web_app_query_id: string;
    result: InlineQueryResult;
};
export type AnswerWebAppQueryResult = SentWebAppMessage;
export type SavePreparedInlineMessageParams = {
    user_id: number;
    result: InlineQueryResult;
    allow_user_chats?: boolean;
    allow_bot_chats?: boolean;
    allow_group_chats?: boolean;
    allow_channel_chats?: boolean;
};
export type SavePreparedInlineMessageResult = PreparedInlineMessage;
export type SavePreparedKeyboardButtonParams = {
    user_id: number;
    button: KeyboardButton;
};
export type SavePreparedKeyboardButtonResult = PreparedInlineMessage;
export type EditMessageTextParams = {
    business_connection_id?: string;
    chat_id?: number | string;
    message_id?: number;
    inline_message_id?: string;
    text?: string;
    parse_mode?: string;
    entities?: MessageEntity[];
    link_preview_options?: LinkPreviewOptions;
    rich_message?: InputRichMessage;
    reply_markup?: InlineKeyboardMarkup;
};
export type EditMessageTextResult = Message | boolean;
export type EditMessageCaptionParams = {
    business_connection_id?: string;
    chat_id?: number | string;
    message_id?: number;
    inline_message_id?: string;
    caption?: string;
    parse_mode?: string;
    caption_entities?: MessageEntity[];
    show_caption_above_media?: boolean;
    reply_markup?: InlineKeyboardMarkup;
};
export type EditMessageCaptionResult = Message | boolean;
export type EditMessageMediaParams = {
    business_connection_id?: string;
    chat_id?: number | string;
    message_id?: number;
    inline_message_id?: string;
    media: InputMedia;
    reply_markup?: InlineKeyboardMarkup;
};
export type EditMessageMediaResult = Message | boolean;
export type EditMessageLiveLocationParams = {
    business_connection_id?: string;
    chat_id?: number | string;
    message_id?: number;
    inline_message_id?: string;
    latitude: number;
    longitude: number;
    live_period?: number;
    horizontal_accuracy?: number;
    heading?: number;
    proximity_alert_radius?: number;
    reply_markup?: InlineKeyboardMarkup;
};
export type EditMessageLiveLocationResult = Message | boolean;
export type StopMessageLiveLocationParams = {
    business_connection_id?: string;
    chat_id?: number | string;
    message_id?: number;
    inline_message_id?: string;
    reply_markup?: InlineKeyboardMarkup;
};
export type StopMessageLiveLocationResult = Message | boolean;
export type EditMessageChecklistParams = {
    business_connection_id: string;
    chat_id: number | string;
    message_id: number;
    checklist: InputChecklist;
    reply_markup?: InlineKeyboardMarkup;
};
export type EditMessageChecklistResult = Message;
export type EditMessageReplyMarkupParams = {
    business_connection_id?: string;
    chat_id?: number | string;
    message_id?: number;
    inline_message_id?: string;
    reply_markup?: InlineKeyboardMarkup;
};
export type EditMessageReplyMarkupResult = Message | boolean;
export type StopPollParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_id: number;
    reply_markup?: InlineKeyboardMarkup;
};
export type StopPollResult = Poll;
export type ApproveSuggestedPostParams = {
    chat_id: number;
    message_id: number;
    send_date?: number;
};
export type ApproveSuggestedPostResult = boolean;
export type DeclineSuggestedPostParams = {
    chat_id: number;
    message_id: number;
    comment?: string;
};
export type DeclineSuggestedPostResult = boolean;
export type DeleteMessageParams = {
    chat_id: number | string;
    message_id: number;
};
export type DeleteMessageResult = boolean;
export type DeleteMessagesParams = {
    chat_id: number | string;
    message_ids: number[];
};
export type DeleteMessagesResult = boolean;
export type DeleteMessageReactionParams = {
    chat_id: number | string;
    message_id: number;
    user_id?: number;
    actor_chat_id?: number;
};
export type DeleteMessageReactionResult = boolean;
export type DeleteAllMessageReactionsParams = {
    chat_id: number | string;
    user_id?: number;
    actor_chat_id?: number;
};
export type DeleteAllMessageReactionsResult = boolean;
export type SendStickerParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    sticker: InputFile | string;
    emoji?: string;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendStickerResult = Message;
export type GetStickerSetParams = {
    name: string;
};
export type GetStickerSetResult = StickerSet;
export type GetCustomEmojiStickersParams = {
    custom_emoji_ids: string[];
};
export type GetCustomEmojiStickersResult = Sticker[];
export type UploadStickerFileParams = {
    user_id: number;
    sticker: InputFile;
    sticker_format: string;
};
export type UploadStickerFileResult = File;
export type CreateNewStickerSetParams = {
    user_id: number;
    name: string;
    title: string;
    stickers: InputSticker[];
    sticker_type?: string;
    needs_repainting?: boolean;
};
export type CreateNewStickerSetResult = boolean;
export type AddStickerToSetParams = {
    user_id: number;
    name: string;
    sticker: InputSticker;
};
export type AddStickerToSetResult = boolean;
export type SetStickerPositionInSetParams = {
    sticker: string;
    position: number;
};
export type SetStickerPositionInSetResult = boolean;
export type DeleteStickerFromSetParams = {
    sticker: string;
};
export type DeleteStickerFromSetResult = boolean;
export type ReplaceStickerInSetParams = {
    user_id: number;
    name: string;
    old_sticker: string;
    sticker: InputSticker;
};
export type ReplaceStickerInSetResult = boolean;
export type SetStickerEmojiListParams = {
    sticker: string;
    emoji_list: string[];
};
export type SetStickerEmojiListResult = boolean;
export type SetStickerKeywordsParams = {
    sticker: string;
    keywords?: string[];
};
export type SetStickerKeywordsResult = boolean;
export type SetStickerMaskPositionParams = {
    sticker: string;
    mask_position?: MaskPosition;
};
export type SetStickerMaskPositionResult = boolean;
export type SetStickerSetTitleParams = {
    name: string;
    title: string;
};
export type SetStickerSetTitleResult = boolean;
export type SetStickerSetThumbnailParams = {
    name: string;
    user_id: number;
    thumbnail?: InputFile | string;
    format: string;
};
export type SetStickerSetThumbnailResult = boolean;
export type SetCustomEmojiStickerSetThumbnailParams = {
    name: string;
    custom_emoji_id?: string;
};
export type SetCustomEmojiStickerSetThumbnailResult = boolean;
export type DeleteStickerSetParams = {
    name: string;
};
export type DeleteStickerSetResult = boolean;
export type SendRichMessageParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    rich_message: InputRichMessage;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
};
export type SendRichMessageResult = Message;
export type SendRichMessageDraftParams = {
    chat_id: number;
    message_thread_id?: number;
    draft_id: number;
    rich_message: InputRichMessage;
};
export type SendRichMessageDraftResult = boolean;
export type AnswerInlineQueryParams = {
    inline_query_id: string;
    results: InlineQueryResult[];
    cache_time?: number;
    is_personal?: boolean;
    next_offset?: string;
    button?: InlineQueryResultsButton;
};
export type AnswerInlineQueryResult = boolean;
export type SendInvoiceParams = {
    chat_id: number | string;
    message_thread_id?: number;
    direct_messages_topic_id?: number;
    title: string;
    description: string;
    payload: string;
    provider_token?: string;
    currency: string;
    prices: LabeledPrice[];
    max_tip_amount?: number;
    suggested_tip_amounts?: number[];
    start_parameter?: string;
    provider_data?: string;
    photo_url?: string;
    photo_size?: number;
    photo_width?: number;
    photo_height?: number;
    need_name?: boolean;
    need_phone_number?: boolean;
    need_email?: boolean;
    need_shipping_address?: boolean;
    send_phone_number_to_provider?: boolean;
    send_email_to_provider?: boolean;
    is_flexible?: boolean;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    suggested_post_parameters?: SuggestedPostParameters;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup;
};
export type SendInvoiceResult = Message;
export type CreateInvoiceLinkParams = {
    business_connection_id?: string;
    title: string;
    description: string;
    payload: string;
    provider_token?: string;
    currency: string;
    prices: LabeledPrice[];
    subscription_period?: number;
    max_tip_amount?: number;
    suggested_tip_amounts?: number[];
    provider_data?: string;
    photo_url?: string;
    photo_size?: number;
    photo_width?: number;
    photo_height?: number;
    need_name?: boolean;
    need_phone_number?: boolean;
    need_email?: boolean;
    need_shipping_address?: boolean;
    send_phone_number_to_provider?: boolean;
    send_email_to_provider?: boolean;
    is_flexible?: boolean;
};
export type CreateInvoiceLinkResult = string;
export type AnswerShippingQueryParams = {
    shipping_query_id: string;
    ok: boolean;
    shipping_options?: ShippingOption[];
    error_message?: string;
};
export type AnswerShippingQueryResult = boolean;
export type AnswerPreCheckoutQueryParams = {
    pre_checkout_query_id: string;
    ok: boolean;
    error_message?: string;
};
export type AnswerPreCheckoutQueryResult = boolean;
export type GetMyStarBalanceParams = Record<string, never>;
export type GetMyStarBalanceResult = StarAmount;
export type GetStarTransactionsParams = {
    offset?: number;
    limit?: number;
};
export type GetStarTransactionsResult = StarTransactions;
export type RefundStarPaymentParams = {
    user_id: number;
    telegram_payment_charge_id: string;
};
export type RefundStarPaymentResult = boolean;
export type EditUserStarSubscriptionParams = {
    user_id: number;
    telegram_payment_charge_id: string;
    is_canceled: boolean;
};
export type EditUserStarSubscriptionResult = boolean;
export type SetPassportDataErrorsParams = {
    user_id: number;
    errors: PassportElementError[];
};
export type SetPassportDataErrorsResult = boolean;
export type SendGameParams = {
    business_connection_id?: string;
    chat_id: number | string;
    message_thread_id?: number;
    game_short_name: string;
    disable_notification?: boolean;
    protect_content?: boolean;
    allow_paid_broadcast?: boolean;
    message_effect_id?: string;
    reply_parameters?: ReplyParameters;
    reply_markup?: InlineKeyboardMarkup;
};
export type SendGameResult = Message;
export type SetGameScoreParams = {
    user_id: number;
    score: number;
    force?: boolean;
    disable_edit_message?: boolean;
    chat_id?: number;
    message_id?: number;
    inline_message_id?: string;
};
export type SetGameScoreResult = Message | boolean;
export type GetGameHighScoresParams = {
    user_id: number;
    chat_id?: number;
    message_id?: number;
    inline_message_id?: string;
};
export type GetGameHighScoresResult = GameHighScore[];
//# sourceMappingURL=schemas.d.ts.map