telegram-bot-raw 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +312 -0
  3. package/index.d.ts +633 -0
  4. package/index.js +276 -0
  5. package/package.json +43 -0
package/index.d.ts ADDED
@@ -0,0 +1,633 @@
1
+ import { File as InputFile } from 'node:buffer';
2
+ export { InputFile };
3
+
4
+ declare type Currency = 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ARS' | 'AUD' | 'AZN' | 'BAM' | 'BDT' | 'BGN' | 'BHD' | 'BND' | 'BOB' | 'BRL' | 'BYN' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CZK' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ETB' | 'EUR' | 'GBP' | 'GEL' | 'GHS' | 'GTQ' | 'HKD' | 'HNL' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KRW' | 'KZT' | 'LBP' | 'LKR' | 'MAD' | 'MDL' | 'MMK' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MXN' | 'MYR' | 'MZN' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'PAB' | 'PEN' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'SAR' | 'SEK' | 'SGD' | 'SYP' | 'THB' | 'TJS' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VND' | 'YER' | 'ZAR';
5
+ declare type ParseMode = 'HTML' | 'Markdown' | 'MarkdownV2';
6
+ declare type ReplyMarkup = ForceReply | InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove;
7
+
8
+ export type BackgroundFill = BackgroundFillFreeformGradient | BackgroundFillGradient | BackgroundFillSolid;
9
+ export type BackgroundType = BackgroundTypeChatTheme | BackgroundTypeFill | BackgroundTypePattern | BackgroundTypeWallpaper;
10
+ export type BotCommandScope = BotCommandScopeAllChatAdministrators | BotCommandScopeAllGroupChats | BotCommandScopeAllPrivateChats | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember | BotCommandScopeDefault;
11
+ export type ChatBoostSource = ChatBoostSourceGiftCode | ChatBoostSourceGiveaway | ChatBoostSourcePremium;
12
+ export type ChatMember = ChatMemberAdministrator | ChatMemberBanned | ChatMemberLeft | ChatMemberMember | ChatMemberOwner | ChatMemberRestricted;
13
+ export type InlineQueryResult = InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultContact | InlineQueryResultDocument | InlineQueryResultGame | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice;
14
+ export type InputMedia = InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo;
15
+ export type InputMessageContent = InputContactMessageContent | InputInvoiceMessageContent | InputLocationMessageContent | InputTextMessageContent | InputVenueMessageContent;
16
+ export type InputPaidMedia = InputPaidMediaPhoto | InputPaidMediaVideo;
17
+ export type InputProfilePhoto = InputProfilePhotoAnimated | InputProfilePhotoStatic;
18
+ export type InputStoryContent = InputStoryContentPhoto | InputStoryContentVideo;
19
+ export type MaybeInaccessibleMessage = InaccessibleMessage | Message;
20
+ export type MenuButton = MenuButtonCommands | MenuButtonDefault | MenuButtonWebApp;
21
+ export type MessageOrigin = MessageOriginChannel | MessageOriginChat | MessageOriginHiddenUser | MessageOriginUser;
22
+ export type OwnedGift = OwnedGiftRegular | OwnedGiftUnique;
23
+ export type PaidMedia = PaidMediaPhoto | PaidMediaPreview | PaidMediaVideo;
24
+ export type PassportElementError = PassportElementErrorDataField | PassportElementErrorFile | PassportElementErrorFiles | PassportElementErrorFrontSide | PassportElementErrorReverseSide | PassportElementErrorSelfie | PassportElementErrorTranslationFile | PassportElementErrorTranslationFiles | PassportElementErrorUnspecified;
25
+ export type ReactionType = ReactionTypeCustomEmoji | ReactionTypeEmoji | ReactionTypePaid;
26
+ export type RevenueWithdrawalState = RevenueWithdrawalStateFailed | RevenueWithdrawalStatePending | RevenueWithdrawalStateSucceeded;
27
+ export type StoryAreaType = StoryAreaTypeLink | StoryAreaTypeLocation | StoryAreaTypeSuggestedReaction | StoryAreaTypeUniqueGift | StoryAreaTypeWeather;
28
+ export type TransactionPartner = TransactionPartnerAffiliateProgram | TransactionPartnerChat | TransactionPartnerFragment | TransactionPartnerOther | TransactionPartnerTelegramAds | TransactionPartnerTelegramApi | TransactionPartnerUser;
29
+
30
+ export interface AcceptedGiftTypes { gifts_from_channels: boolean, limited_gifts: boolean, premium_subscription: boolean, unique_gifts: boolean, unlimited_gifts: boolean }
31
+ export interface AffiliateInfo { affiliate_chat?: Chat, affiliate_user?: User, amount: number, commission_per_mille: number, nanostar_amount?: number }
32
+ export interface Animation { duration: number, file_id: string, file_name?: string, file_size?: number, file_unique_id: string, height: number, mime_type?: string, thumbnail?: PhotoSize, width: number }
33
+ export interface Audio { duration: number, file_id: string, file_name?: string, file_size?: number, file_unique_id: string, mime_type?: string, performer?: string, thumbnail?: PhotoSize, title?: string }
34
+ export interface BackgroundFillFreeformGradient { colors: number[], type: 'freeform_gradient' }
35
+ export interface BackgroundFillGradient { bottom_color: number, rotation_angle: number, top_color: number, type: 'gradient' }
36
+ export interface BackgroundFillSolid { color: number, type: 'solid' }
37
+ export interface BackgroundTypeChatTheme { theme_name: string, type: 'chat_theme' }
38
+ export interface BackgroundTypeFill { dark_theme_dimming: number, fill: BackgroundFill, type: 'fill' }
39
+ export interface BackgroundTypePattern { document: Document, fill: BackgroundFill, intensity: number, is_inverted?: true, is_moving?: true, type: 'pattern' }
40
+ export interface BackgroundTypeWallpaper { dark_theme_dimming: number, document: Document, is_blurred?: true, is_moving?: true, type: 'wallpaper' }
41
+ export interface Birthdate { day: number, month: number, year?: number }
42
+ export interface BotCommand { command: string, description: string }
43
+ export interface BotCommandScopeAllChatAdministrators { type: 'all_chat_administrators' }
44
+ export interface BotCommandScopeAllGroupChats { type: 'all_group_chats' }
45
+ export interface BotCommandScopeAllPrivateChats { type: 'all_private_chats' }
46
+ export interface BotCommandScopeChat { chat_id: number | string, type: 'chat' }
47
+ export interface BotCommandScopeChatAdministrators { chat_id: number | string, type: 'chat_administrators' }
48
+ export interface BotCommandScopeChatMember { chat_id: number | string, type: 'chat_member', user_id: number }
49
+ export interface BotCommandScopeDefault { type: 'default' }
50
+ export interface BotDescription { description: string }
51
+ export interface BotName { name: string }
52
+ export interface BotShortDescription { short_description: string }
53
+ export interface BusinessBotRights { can_change_gift_settings?: true, can_convert_gifts_to_stars?: true, can_delete_all_messages?: true, can_delete_sent_messages?: true, can_edit_bio?: true, can_edit_name?: true, can_edit_profile_photo?: true, can_edit_username?: true, can_manage_stories?: true, can_read_messages?: true, can_reply?: true, can_transfer_and_upgrade_gifts?: true, can_transfer_stars?: true, can_view_gifts_and_stars?: true }
54
+ export interface BusinessConnection { date: number, id: string, is_enabled: boolean, rights?: BusinessBotRights, user: User, user_chat_id: number }
55
+ export interface BusinessIntro { message?: string, sticker?: Sticker, title?: string }
56
+ export interface BusinessLocation { address: string, location?: Location }
57
+ export interface BusinessMessagesDeleted { business_connection_id: string, chat: Chat, message_ids: number[] }
58
+ export interface BusinessOpeningHours { opening_hours: BusinessOpeningHoursInterval[], time_zone_name: string }
59
+ export interface BusinessOpeningHoursInterval { closing_minute: number, opening_minute: number }
60
+ export interface CallbackGame {}
61
+ export interface CallbackQuery { chat_instance: string, data?: string, from: User, game_short_name?: string, id: string, inline_message_id?: string, message?: MaybeInaccessibleMessage }
62
+ export interface Chat { first_name?: string, id: number, is_direct_messages?: true, is_forum?: true, last_name?: string, title?: string, type: 'channel' | 'group' | 'private' | 'supergroup', username?: string }
63
+ export interface ChatAdministratorRights { can_change_info: boolean, can_delete_messages: boolean, can_delete_stories: boolean, can_edit_messages?: boolean, can_edit_stories: boolean, can_invite_users: boolean, can_manage_chat: boolean, can_manage_direct_messages?: boolean, can_manage_tags?: boolean, can_manage_topics?: boolean, can_manage_video_chats: boolean, can_pin_messages?: boolean, can_post_messages?: boolean, can_post_stories: boolean, can_promote_members: boolean, can_restrict_members: boolean, is_anonymous: boolean }
64
+ export interface ChatBackground { type: BackgroundType }
65
+ export interface ChatBoost { add_date: number, boost_id: string, expiration_date: number, source: ChatBoostSource }
66
+ export interface ChatBoostAdded { boost_count: number }
67
+ export interface ChatBoostRemoved { boost_id: string, chat: Chat, remove_date: number, source: ChatBoostSource }
68
+ export interface ChatBoostSourceGiftCode { source: 'gift_code', user: User }
69
+ export interface ChatBoostSourceGiveaway { giveaway_message_id: number, is_unclaimed?: true, prize_star_count?: number, source: 'giveaway', user?: User }
70
+ export interface ChatBoostSourcePremium { source: 'premium', user: User }
71
+ export interface ChatBoostUpdated { boost: ChatBoost, chat: Chat }
72
+ export interface ChatFullInfo { accent_color_id: number, accepted_gift_types: AcceptedGiftTypes, active_usernames?: string[], available_reactions?: ReactionType[], background_custom_emoji_id?: string, bio?: string, birthdate?: Birthdate, business_intro?: BusinessIntro, business_location?: BusinessLocation, business_opening_hours?: BusinessOpeningHours, can_send_paid_media?: true, can_set_sticker_set?: true, custom_emoji_sticker_set_name?: string, description?: string, emoji_status_custom_emoji_id?: string, emoji_status_expiration_date?: number, first_name?: string, first_profile_audio?: Audio, has_aggressive_anti_spam_enabled?: true, has_hidden_members?: true, has_private_forwards?: true, has_protected_content?: true, has_restricted_voice_and_video_messages?: true, has_visible_history?: true, id: number, invite_link?: string, is_direct_messages?: true, is_forum?: true, join_by_request?: true, join_to_send_messages?: true, last_name?: string, linked_chat_id?: number, location?: ChatLocation, max_reaction_count: number, message_auto_delete_time?: number, paid_message_star_count?: number, parent_chat?: Chat, permissions?: ChatPermissions, personal_chat?: Chat, photo?: ChatPhoto, pinned_message?: Message, profile_accent_color_id?: number, profile_background_custom_emoji_id?: string, rating?: UserRating, slow_mode_delay?: number, sticker_set_name?: string, title?: string, type: 'channel' | 'group' | 'private' | 'supergroup', unique_gift_colors?: UniqueGiftColors, unrestrict_boost_count?: number, username?: string }
73
+ export interface ChatInviteLink { creates_join_request: boolean, creator: User, expire_date?: number, invite_link: string, is_primary: boolean, is_revoked: boolean, member_limit?: number, name?: string, pending_join_request_count?: number, subscription_period?: number, subscription_price?: number }
74
+ export interface ChatJoinRequest { bio?: string, chat: Chat, date: number, from: User, invite_link?: ChatInviteLink, user_chat_id: number }
75
+ export interface ChatLocation { address: string, location: Location }
76
+ export interface ChatMemberAdministrator { can_be_edited: boolean, can_change_info: boolean, can_delete_messages: boolean, can_delete_stories: boolean, can_edit_messages?: boolean, can_edit_stories: boolean, can_invite_users: boolean, can_manage_chat: boolean, can_manage_direct_messages?: boolean, can_manage_tags?: boolean, can_manage_topics?: boolean, can_manage_video_chats: boolean, can_pin_messages?: boolean, can_post_messages?: boolean, can_post_stories: boolean, can_promote_members: boolean, can_restrict_members: boolean, custom_title?: string, is_anonymous: boolean, status: 'administrator', user: User }
77
+ export interface ChatMemberBanned { status: 'kicked', until_date: number, user: User }
78
+ export interface ChatMemberLeft { status: 'left', user: User }
79
+ export interface ChatMemberMember { status: 'member', tag?: string, until_date?: number, user: User }
80
+ export interface ChatMemberOwner { custom_title?: string, is_anonymous: boolean, status: 'creator', user: User }
81
+ export interface ChatMemberRestricted { can_add_web_page_previews: boolean, can_change_info: boolean, can_edit_tag: boolean, can_invite_users: boolean, can_manage_topics: boolean, can_pin_messages: boolean, can_send_audios: boolean, can_send_documents: boolean, can_send_messages: boolean, can_send_other_messages: boolean, can_send_photos: boolean, can_send_polls: boolean, can_send_video_notes: boolean, can_send_videos: boolean, can_send_voice_notes: boolean, is_member: boolean, status: 'restricted', tag?: string, until_date: number, user: User }
82
+ export interface ChatMemberUpdated { chat: Chat, date: number, from: User, invite_link?: ChatInviteLink, new_chat_member: ChatMember, old_chat_member: ChatMember, via_chat_folder_invite_link?: boolean, via_join_request?: boolean }
83
+ export interface ChatOwnerChanged { new_owner: User }
84
+ export interface ChatOwnerLeft { new_owner?: User }
85
+ export interface ChatPermissions { can_add_web_page_previews?: boolean, can_change_info?: boolean, can_edit_tag?: boolean, can_invite_users?: boolean, can_manage_topics?: boolean, can_pin_messages?: boolean, can_send_audios?: boolean, can_send_documents?: boolean, can_send_messages?: boolean, can_send_other_messages?: boolean, can_send_photos?: boolean, can_send_polls?: boolean, can_send_video_notes?: boolean, can_send_videos?: boolean, can_send_voice_notes?: boolean }
86
+ export interface ChatPhoto { big_file_id: string, big_file_unique_id: string, small_file_id: string, small_file_unique_id: string }
87
+ export interface ChatShared { chat_id: number, photo?: PhotoSize[], request_id: number, title?: string, username?: string }
88
+ export interface Checklist { others_can_add_tasks?: true, others_can_mark_tasks_as_done?: true, tasks: ChecklistTask[], title: string, title_entities?: MessageEntity[] }
89
+ export interface ChecklistTask { completed_by_chat?: Chat, completed_by_user?: User, completion_date?: number, id: number, text: string, text_entities?: MessageEntity[] }
90
+ export interface ChecklistTasksAdded { checklist_message?: Message, tasks: ChecklistTask[] }
91
+ export interface ChecklistTasksDone { checklist_message?: Message, marked_as_done_task_ids?: number[], marked_as_not_done_task_ids?: number[] }
92
+ export interface ChosenInlineResult { from: User, inline_message_id?: string, location?: Location, query: string, result_id: string }
93
+ export interface Contact { first_name: string, last_name?: string, phone_number: string, user_id?: number, vcard?: string }
94
+ export interface CopyTextButton { text: string }
95
+ export interface Dice { emoji: string, value: number }
96
+ export interface DirectMessagePriceChanged { are_direct_messages_enabled: boolean, direct_message_star_count?: number }
97
+ export interface DirectMessagesTopic { topic_id: number, user: User }
98
+ export interface Document { file_id: string, file_name?: string, file_size?: number, file_unique_id: string, mime_type?: string, thumbnail?: PhotoSize }
99
+ export interface EncryptedCredentials { data: string, hash: string, secret: string }
100
+ export interface EncryptedPassportElement { data?: string, email?: string, files?: PassportFile[], front_side?: PassportFile, hash: string, phone_number?: string, reverse_side?: PassportFile, selfie?: PassportFile, translation?: PassportFile[], type: 'address' | 'bank_statement' | 'driver_license' | 'email' | 'identity_card' | 'internal_passport' | 'passport_registration' | 'passport' | 'personal_details' | 'phone_number' | 'rental_agreement' | 'temporary_registration' | 'utility_bill' }
101
+ export interface ExternalReplyInfo { animation?: Animation, audio?: Audio, chat?: Chat, checklist?: Checklist, contact?: Contact, dice?: Dice, document?: Document, game?: Game, giveaway?: Giveaway, giveaway_winners?: GiveawayWinners, has_media_spoiler?: true, invoice?: Invoice, link_preview_options?: LinkPreviewOptions, location?: Location, message_id?: number, origin: MessageOrigin, paid_media?: PaidMediaInfo, photo?: PhotoSize[], poll?: Poll, sticker?: Sticker, story?: Story, venue?: Venue, video?: Video, video_note?: VideoNote, voice?: Voice }
102
+ export interface File { file_id: string, file_path?: string, file_size?: number, file_unique_id: string }
103
+ export interface ForceReply { force_reply: true, input_field_placeholder?: string, selective?: boolean }
104
+ export interface ForumTopic { icon_color: number, icon_custom_emoji_id?: string, is_name_implicit?: true, message_thread_id: number, name: string }
105
+ export interface ForumTopicClosed {}
106
+ export interface ForumTopicCreated { icon_color: number, icon_custom_emoji_id?: string, is_name_implicit?: true, name: string }
107
+ export interface ForumTopicEdited { icon_custom_emoji_id?: string, name?: string }
108
+ export interface ForumTopicReopened {}
109
+ export interface Game { animation?: Animation, description: string, photo: PhotoSize[], text?: string, text_entities?: MessageEntity[], title: string }
110
+ export interface GameHighScore { position: number, score: number, user: User }
111
+ export interface GeneralForumTopicHidden {}
112
+ export interface GeneralForumTopicUnhidden {}
113
+ export interface Gift { background?: GiftBackground, has_colors?: true, id: string, is_premium?: true, personal_remaining_count?: number, personal_total_count?: number, publisher_chat?: Chat, remaining_count?: number, star_count: number, sticker: Sticker, total_count?: number, unique_gift_variant_count?: number, upgrade_star_count?: number }
114
+ export interface GiftBackground { center_color: number, edge_color: number, text_color: number }
115
+ export interface GiftInfo { can_be_upgraded?: true, convert_star_count?: number, entities?: MessageEntity[], gift: Gift, is_private?: true, is_upgrade_separate?: true, owned_gift_id?: string, prepaid_upgrade_star_count?: number, text?: string, unique_gift_number?: number }
116
+ export interface Gifts { gifts: Gift[] }
117
+ export interface Giveaway { chats: Chat[], country_codes?: string[], has_public_winners?: true, only_new_members?: true, premium_subscription_month_count?: number, prize_description?: string, prize_star_count?: number, winner_count: number, winners_selection_date: number }
118
+ export interface GiveawayCompleted { giveaway_message?: Message, is_star_giveaway?: true, unclaimed_prize_count?: number, winner_count: number }
119
+ export interface GiveawayCreated { prize_star_count?: number }
120
+ export interface GiveawayWinners { additional_chat_count?: number, chat: Chat, giveaway_message_id: number, only_new_members?: true, premium_subscription_month_count?: number, prize_description?: string, prize_star_count?: number, unclaimed_prize_count?: number, was_refunded?: true, winner_count: number, winners: User[], winners_selection_date: number }
121
+ export interface InaccessibleMessage { chat: Chat, message_id: number, date: 0 }
122
+ export interface InlineKeyboardButton { callback_data?: string, callback_game?: CallbackGame, copy_text?: CopyTextButton, icon_custom_emoji_id?: string, login_url?: LoginUrl, style?: 'danger' | 'primary' | 'success', switch_inline_query?: string, switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat, switch_inline_query_current_chat?: string, text: string, url?: string, web_app?: WebAppInfo }
123
+ export interface InlineKeyboardMarkup { inline_keyboard: InlineKeyboardButton[][] }
124
+ export interface InlineQuery { chat_type?: 'channel' | 'group' | 'private' | 'sender' | 'supergroup', from: User, id: string, location?: Location, offset: string, query: string }
125
+ export interface InlineQueryResultArticle { description?: string, id: string, input_message_content: InputMessageContent, reply_markup?: InlineKeyboardMarkup, thumbnail_height?: number, thumbnail_url?: string, thumbnail_width?: number, title: string, type: 'article', url?: string }
126
+ export interface InlineQueryResultAudio { audio_duration?: number, audio_url: string, caption?: string, caption_entities?: MessageEntity[], id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, performer?: string, reply_markup?: InlineKeyboardMarkup, title: string, type: 'audio' }
127
+ export interface InlineQueryResultCachedAudio { audio_file_id: string, caption?: string, caption_entities?: MessageEntity[], id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, type: 'audio' }
128
+ export interface InlineQueryResultCachedDocument { caption?: string, caption_entities?: MessageEntity[], description?: string, document_file_id: string, id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, title: string, type: 'document' }
129
+ export interface InlineQueryResultCachedGif { caption?: string, caption_entities?: MessageEntity[], gif_file_id: string, id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean, title?: string, type: 'gif' }
130
+ export interface InlineQueryResultCachedMpeg4Gif { caption?: string, caption_entities?: MessageEntity[], id: string, input_message_content?: InputMessageContent, mpeg4_file_id: string, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean, title?: string, type: 'mpeg4_gif' }
131
+ export interface InlineQueryResultCachedPhoto { caption?: string, caption_entities?: MessageEntity[], description?: string, id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, photo_file_id: string, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean, title?: string, type: 'photo' }
132
+ export interface InlineQueryResultCachedSticker { id: string, input_message_content?: InputMessageContent, reply_markup?: InlineKeyboardMarkup, sticker_file_id: string, type: 'sticker' }
133
+ export interface InlineQueryResultCachedVideo { caption?: string, caption_entities?: MessageEntity[], description?: string, id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean, title: string, type: 'video', video_file_id: string }
134
+ export interface InlineQueryResultCachedVoice { caption?: string, caption_entities?: MessageEntity[], id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, title: string, type: 'voice', voice_file_id: string }
135
+ export interface InlineQueryResultContact { first_name: string, id: string, input_message_content?: InputMessageContent, last_name?: string, phone_number: string, reply_markup?: InlineKeyboardMarkup, thumbnail_height?: number, thumbnail_url?: string, thumbnail_width?: number, type: 'contact', vcard?: string }
136
+ export interface InlineQueryResultDocument { caption?: string, caption_entities?: MessageEntity[], description?: string, document_url: string, id: string, input_message_content?: InputMessageContent, mime_type: 'application/pdf' | 'application/zip', parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, thumbnail_height?: number, thumbnail_url?: string, thumbnail_width?: number, title: string, type: 'document' }
137
+ export interface InlineQueryResultGame { game_short_name: string, id: string, reply_markup?: InlineKeyboardMarkup, type: 'game' }
138
+ export interface InlineQueryResultGif { caption?: string, caption_entities?: MessageEntity[], gif_duration?: number, gif_height?: number, gif_url: string, gif_width?: number, id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean, thumbnail_mime_type?: 'image/gif' | 'image/jpeg' | 'video/mp4', thumbnail_url: string, title?: string, type: 'gif' }
139
+ export interface InlineQueryResultLocation { heading?: number, horizontal_accuracy?: number, id: string, input_message_content?: InputMessageContent, latitude: number, live_period?: number, longitude: number, proximity_alert_radius?: number, reply_markup?: InlineKeyboardMarkup, thumbnail_height?: number, thumbnail_url?: string, thumbnail_width?: number, title: string, type: 'location' }
140
+ export interface InlineQueryResultMpeg4Gif { caption?: string, caption_entities?: MessageEntity[], id: string, input_message_content?: InputMessageContent, mpeg4_duration?: number, mpeg4_height?: number, mpeg4_url: string, mpeg4_width?: number, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean, thumbnail_mime_type?: 'image/gif' | 'image/jpeg' | 'video/mp4', thumbnail_url: string, title?: string, type: 'mpeg4_gif' }
141
+ export interface InlineQueryResultPhoto { caption?: string, caption_entities?: MessageEntity[], description?: string, id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, photo_height?: number, photo_url: string, photo_width?: number, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean, thumbnail_url: string, title?: string, type: 'photo' }
142
+ export interface InlineQueryResultsButton { start_parameter?: string, text: string, web_app?: WebAppInfo }
143
+ export interface InlineQueryResultVenue { address: string, foursquare_id?: string, foursquare_type?: string, google_place_id?: string, google_place_type?: string, id: string, input_message_content?: InputMessageContent, latitude: number, longitude: number, reply_markup?: InlineKeyboardMarkup, thumbnail_height?: number, thumbnail_url?: string, thumbnail_width?: number, title: string, type: 'venue' }
144
+ export interface InlineQueryResultVideo { caption?: string, caption_entities?: MessageEntity[], description?: string, id: string, input_message_content?: InputMessageContent, mime_type: 'text/html' | 'video/mp4', parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean, thumbnail_url: string, title: string, type: 'video', video_duration?: number, video_height?: number, video_url: string, video_width?: number }
145
+ export interface InlineQueryResultVoice { caption?: string, caption_entities?: MessageEntity[], id: string, input_message_content?: InputMessageContent, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, title: string, type: 'voice', voice_duration?: number, voice_url: string }
146
+ export interface InputChecklist { others_can_add_tasks?: boolean, others_can_mark_tasks_as_done?: boolean, parse_mode?: ParseMode, tasks: InputChecklistTask[], title: string, title_entities?: MessageEntity[] }
147
+ export interface InputChecklistTask { id: number, parse_mode?: ParseMode, text: string, text_entities?: MessageEntity[] }
148
+ export interface InputContactMessageContent { first_name: string, last_name?: string, phone_number: string, vcard?: string }
149
+ export interface InputInvoiceMessageContent { currency: Currency | 'XTR', description: string, is_flexible?: boolean, max_tip_amount?: number, need_email?: boolean, need_name?: boolean, need_phone_number?: boolean, need_shipping_address?: boolean, payload: string, photo_height?: number, photo_size?: number, photo_url?: string, photo_width?: number, prices: LabeledPrice[], provider_data?: string, provider_token?: string, send_email_to_provider?: boolean, send_phone_number_to_provider?: boolean, suggested_tip_amounts?: number[], title: string }
150
+ export interface InputLocationMessageContent { heading?: number, horizontal_accuracy?: number, latitude: number, live_period?: number, longitude: number, proximity_alert_radius?: number }
151
+ export interface InputMediaAnimation { caption?: string, caption_entities?: MessageEntity[], duration?: number, has_spoiler?: boolean, height?: number, media: string, parse_mode?: ParseMode, show_caption_above_media?: boolean, thumbnail?: string, type: 'animation', width?: number }
152
+ export interface InputMediaAudio { caption?: string, caption_entities?: MessageEntity[], duration?: number, media: string, parse_mode?: ParseMode, performer?: string, thumbnail?: string, title?: string, type: 'audio' }
153
+ export interface InputMediaDocument { caption?: string, caption_entities?: MessageEntity[], disable_content_type_detection?: boolean, media: string, parse_mode?: ParseMode, thumbnail?: string, type: 'document' }
154
+ export interface InputMediaPhoto { caption?: string, caption_entities?: MessageEntity[], has_spoiler?: boolean, media: string, parse_mode?: ParseMode, show_caption_above_media?: boolean, type: 'photo' }
155
+ export interface InputMediaVideo { caption?: string, caption_entities?: MessageEntity[], cover?: string, duration?: number, has_spoiler?: boolean, height?: number, media: string, parse_mode?: ParseMode, show_caption_above_media?: boolean, start_timestamp?: number, supports_streaming?: boolean, thumbnail?: string, type: 'video', width?: number }
156
+ export interface InputPaidMediaPhoto { media: string, type: 'photo' }
157
+ export interface InputPaidMediaVideo { cover?: string, duration?: number, height?: number, media: string, start_timestamp?: number, supports_streaming?: boolean, thumbnail?: string, type: 'video', width?: number }
158
+ export interface InputPollOption { text: string, text_entities?: MessageEntity[], text_parse_mode?: ParseMode }
159
+ export interface InputProfilePhotoAnimated { animation: string, main_frame_timestamp?: number, type: 'animated' }
160
+ export interface InputProfilePhotoStatic { photo: string, type: 'static' }
161
+ export interface InputSticker { emoji_list: string[], format: 'animated' | 'static' | 'video', keywords?: string[], mask_position?: MaskPosition, sticker: string }
162
+ export interface InputStoryContentPhoto { photo: string, type: 'photo' }
163
+ export interface InputStoryContentVideo { cover_frame_timestamp?: number, duration?: number, is_animation?: boolean, type: string, video: 'video' }
164
+ export interface InputTextMessageContent { entities?: MessageEntity[], link_preview_options?: LinkPreviewOptions, message_text: string, parse_mode?: ParseMode }
165
+ export interface InputVenueMessageContent { address: string, foursquare_id?: string, foursquare_type?: string, google_place_id?: string, google_place_type?: string, latitude: number, longitude: number, title: string }
166
+ export interface Invoice { currency: Currency | 'XTR', description: string, start_parameter: string, title: string, total_amount: number }
167
+ export interface KeyboardButton { icon_custom_emoji_id?: string, request_chat?: KeyboardButtonRequestChat, request_contact?: boolean, request_location?: boolean, request_poll?: KeyboardButtonPollType, request_users?: KeyboardButtonRequestUsers, style?: 'danger' | 'primary' | 'success', text: string, web_app?: WebAppInfo }
168
+ export interface KeyboardButtonPollType { type: string }
169
+ export interface KeyboardButtonRequestChat { bot_administrator_rights?: ChatAdministratorRights, bot_is_member?: boolean, chat_has_username?: boolean, chat_is_channel: boolean, chat_is_created?: boolean, chat_is_forum?: boolean, request_id: number, request_photo?: boolean, request_title?: boolean, request_username?: boolean, user_administrator_rights?: ChatAdministratorRights }
170
+ export interface KeyboardButtonRequestUsers { max_quantity?: number, request_id: number, request_name?: boolean, request_photo?: boolean, request_username?: boolean, user_is_bot?: boolean, user_is_premium?: boolean }
171
+ export interface LabeledPrice { amount: number, label: string }
172
+ export interface LinkPreviewOptions { is_disabled?: boolean, prefer_large_media?: boolean, prefer_small_media?: boolean, show_above_text?: boolean, url?: string }
173
+ export interface Location { heading?: number, horizontal_accuracy?: number, latitude: number, live_period?: number, longitude: number, proximity_alert_radius?: number }
174
+ export interface LocationAddress { city?: string, country_code: string, state?: string, street?: string }
175
+ export interface LoginUrl { bot_username?: string, forward_text?: string, request_write_access?: boolean, url: string }
176
+ export interface MaskPosition { point: 'chin' | 'eyes' | 'forehead' | 'mouth', scale: number, x_shift: number, y_shift: number }
177
+ export interface MenuButtonCommands { type: 'commands' }
178
+ export interface MenuButtonDefault { type: 'default' }
179
+ export interface MenuButtonWebApp { text: string, type: 'web_app', web_app: WebAppInfo }
180
+ export interface Message { animation?: Animation, audio?: Audio, author_signature?: string, boost_added?: ChatBoostAdded, business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], channel_chat_created?: true, chat: Chat, chat_background_set?: ChatBackground, chat_owner_changed?: ChatOwnerChanged, chat_owner_left?: ChatOwnerLeft, chat_shared?: ChatShared, checklist?: Checklist, checklist_tasks_added?: ChecklistTasksAdded, checklist_tasks_done?: ChecklistTasksDone, connected_website?: string, contact?: Contact, date: number, delete_chat_photo?: true, dice?: Dice, direct_message_price_changed?: DirectMessagePriceChanged, direct_messages_topic?: DirectMessagesTopic, document?: Document, edit_date?: number, effect_id?: string, entities?: MessageEntity[], external_reply?: ExternalReplyInfo, forum_topic_closed?: ForumTopicClosed, forum_topic_created?: ForumTopicCreated, forum_topic_edited?: ForumTopicEdited, forum_topic_reopened?: ForumTopicReopened, forward_origin?: MessageOrigin, from?: User, game?: Game, general_forum_topic_hidden?: GeneralForumTopicHidden, general_forum_topic_unhidden?: GeneralForumTopicUnhidden, gift?: GiftInfo, gift_upgrade_sent?: GiftInfo, giveaway?: Giveaway, giveaway_completed?: GiveawayCompleted, giveaway_created?: GiveawayCreated, giveaway_winners?: GiveawayWinners, group_chat_created?: true, has_media_spoiler?: true, has_protected_content?: true, invoice?: Invoice, is_automatic_forward?: true, is_from_offline?: true, is_paid_post?: true, is_topic_message?: true, left_chat_member?: User, link_preview_options?: LinkPreviewOptions, location?: Location, media_group_id?: string, message_auto_delete_timer_changed?: MessageAutoDeleteTimerChanged, message_id: number, message_thread_id?: number, migrate_from_chat_id?: number, migrate_to_chat_id?: number, new_chat_members?: User[], new_chat_photo?: PhotoSize[], new_chat_title?: string, paid_media?: PaidMediaInfo, paid_message_price_changed?: PaidMessagePriceChanged, paid_star_count?: number, passport_data?: PassportData, photo?: PhotoSize[], pinned_message?: MaybeInaccessibleMessage, poll?: Poll, proximity_alert_triggered?: ProximityAlertTriggered, quote?: TextQuote, refunded_payment?: RefundedPayment, reply_markup?: InlineKeyboardMarkup, reply_to_checklist_task_id?: number, reply_to_message?: Message, reply_to_story?: Story, sender_boost_count?: number, sender_business_bot?: User, sender_chat?: Chat, sender_tag?: string, show_caption_above_media?: true, sticker?: Sticker, story?: Story, successful_payment?: SuccessfulPayment, suggested_post_approval_failed?: SuggestedPostApprovalFailed, suggested_post_approved?: SuggestedPostApproved, suggested_post_declined?: SuggestedPostDeclined, suggested_post_info?: SuggestedPostInfo, suggested_post_paid?: SuggestedPostPaid, suggested_post_refunded?: SuggestedPostRefunded, supergroup_chat_created?: true, text?: string, unique_gift?: UniqueGiftInfo, users_shared?: UsersShared, venue?: Venue, via_bot?: User, video?: Video, video_chat_ended?: VideoChatEnded, video_chat_participants_invited?: VideoChatParticipantsInvited, video_chat_scheduled?: VideoChatScheduled, video_chat_started?: VideoChatStarted, video_note?: VideoNote, voice?: Voice, web_app_data?: WebAppData, write_access_allowed?: WriteAccessAllowed }
181
+ export interface MessageAutoDeleteTimerChanged { message_auto_delete_time: number }
182
+ export interface MessageEntity { custom_emoji_id?: string, date_time_format?: string, language?: string, length: number, offset: number, type: 'blockquote' | 'bold' | 'bot_command' | 'cashtag' | 'code' | 'custom_emoji' | 'date_time' | 'email' | 'expandable_blockquote' | 'hashtag' | 'italic' | 'mention' | 'phone_number' | 'pre' | 'spoiler' | 'strikethrough' | 'text_link' | 'text_mention' | 'underline' | 'url', unix_time?: number, url?: string, user?: User }
183
+ export interface MessageId { message_id: number }
184
+ export interface MessageOriginChannel { author_signature?: string, chat: Chat, date: number, message_id: number, type: 'channel' }
185
+ export interface MessageOriginChat { author_signature?: string, date: number, sender_chat: Chat, type: 'chat' }
186
+ export interface MessageOriginHiddenUser { date: number, sender_user_name: string, type: 'hidden_user' }
187
+ export interface MessageOriginUser { date: number, sender_user: User, type: 'user' }
188
+ export interface MessageReactionCountUpdated { chat: Chat, date: number, message_id: number, reactions: ReactionCount[] }
189
+ export interface MessageReactionUpdated { actor_chat?: Chat, chat: Chat, date: number, message_id: number, new_reaction: ReactionType[], old_reaction: ReactionType[], user?: User }
190
+ export interface OrderInfo { email?: string, name?: string, phone_number?: string, shipping_address?: ShippingAddress }
191
+ export interface OwnedGiftRegular { can_be_upgraded?: true, convert_star_count?: number, entities?: MessageEntity[], gift: Gift, is_private?: true, is_saved?: true, is_upgrade_separate?: true, owned_gift_id?: string, prepaid_upgrade_star_count?: number, send_date: number, sender_user?: User, text?: string, type: 'regular', unique_gift_number?: number, was_refunded?: true }
192
+ export interface OwnedGifts { gifts: OwnedGift[], next_offset?: string, total_count: number }
193
+ export interface OwnedGiftUnique { can_be_transferred?: true, gift: UniqueGift, is_saved?: true, next_transfer_date?: number, owned_gift_id?: string, send_date: number, sender_user?: User, transfer_star_count?: number, type: 'unique' }
194
+ export interface PaidMediaInfo { star_count: number, paid_media: PaidMedia[] }
195
+ export interface PaidMediaPhoto { photo: PhotoSize[], type: 'photo' }
196
+ export interface PaidMediaPreview { duration?: number, height?: number, type: 'preview', width?: number }
197
+ export interface PaidMediaPurchased { from: User, paid_media_payload: string }
198
+ export interface PaidMediaVideo { type: 'video', video: Video }
199
+ export interface PaidMessagePriceChanged { paid_message_star_count: number }
200
+ export interface PassportData { credentials: EncryptedCredentials, data: EncryptedPassportElement[] }
201
+ export interface PassportElementErrorDataField { data_hash: string, field_name: string, message: string, source: 'data', type: 'address' | 'driver_license' | 'identity_card' | 'internal_passport' | 'passport' | 'personal_details' }
202
+ export interface PassportElementErrorFile { file_hash: string, message: string, source: 'file', type: 'bank_statement' | 'passport_registration' | 'rental_agreement' | 'temporary_registration' | 'utility_bill' }
203
+ export interface PassportElementErrorFiles { file_hashes: string[], message: string, source: 'files', type: 'bank_statement' | 'passport_registration' | 'rental_agreement' | 'temporary_registration' | 'utility_bill' }
204
+ export interface PassportElementErrorFrontSide { file_hash: string, message: string, source: 'front_side', type: 'driver_license' | 'identity_card' | 'internal_passport' | 'passport' }
205
+ export interface PassportElementErrorReverseSide { file_hash: string, message: string, source: 'reverse_side', type: 'driver_license' | 'identity_card' }
206
+ export interface PassportElementErrorSelfie { file_hash: string, message: string, source: 'selfie', type: 'driver_license' | 'identity_card' | 'internal_passport' | 'passport' }
207
+ export interface PassportElementErrorTranslationFile { file_hash: string, message: string, source: 'translation_file', type: 'bank_statement' | 'driver_license' | 'identity_card' | 'internal_passport' | 'passport' | 'passport_registration' | 'rental_agreement' | 'temporary_registration' | 'utility_bill' }
208
+ export interface PassportElementErrorTranslationFiles { file_hashes: string[], message: string, source: 'translation_files', type: 'bank_statement' | 'driver_license' | 'identity_card' | 'internal_passport' | 'passport' | 'passport_registration' | 'rental_agreement' | 'temporary_registration' | 'utility_bill' }
209
+ export interface PassportElementErrorUnspecified { element_hash: string, message: string, source: 'unspecified', type: string }
210
+ export interface PassportFile { file_date: number, file_id: string, file_size: number, file_unique_id: string }
211
+ export interface PhotoSize { file_id: string, file_size?: number, file_unique_id: string, height: number, width: number }
212
+ export interface Poll { allows_multiple_answers: boolean, close_date?: number, correct_option_id?: number, explanation?: string, explanation_entities?: MessageEntity[], id: string, is_anonymous: boolean, is_closed: boolean, open_period?: number, options: PollOption[], question: string, question_entities?: MessageEntity[], total_voter_count: number, type: 'quiz' | 'regular' }
213
+ export interface PollAnswer { option_ids: number[], poll_id: string, user?: User, voter_chat?: Chat }
214
+ export interface PollOption { text: string, text_entities?: MessageEntity[], voter_count: number }
215
+ export interface PreCheckoutQuery { currency: Currency | 'XTR', from: User, id: string, invoice_payload: string, order_info?: OrderInfo, shipping_option_id?: string, total_amount: number }
216
+ export interface PreparedInlineMessage { expiration_date: number, id: string }
217
+ export interface ProximityAlertTriggered { distance: number, traveler: User, watcher: User }
218
+ export interface ReactionCount { total_count: number, type: ReactionType }
219
+ export interface ReactionTypeCustomEmoji { custom_emoji_id: string, type: 'custom_emoji' }
220
+ export interface ReactionTypeEmoji { emoji: '\u2603' | '\u26A1' | '\u270D' | '\u2764' | '\u2764\u200D\uD83D\uDD25' | '\uD83C\uDD92' | '\uD83C\uDF1A' | '\uD83C\uDF2D' | '\uD83C\uDF4C' | '\uD83C\uDF53' | '\uD83C\uDF7E' | '\uD83C\uDF83' | '\uD83C\uDF84' | '\uD83C\uDF85' | '\uD83C\uDF89' | '\uD83C\uDFC6' | '\uD83D\uDC33' | '\uD83D\uDC40' | '\uD83D\uDC4C' | '\uD83D\uDC4D' | '\uD83D\uDC4E' | '\uD83D\uDC4F' | '\uD83D\uDC68\u200D\uD83D\uDCBB' | '\uD83D\uDC7B' | '\uD83D\uDC7E' | '\uD83D\uDC85' | '\uD83D\uDC8A' | '\uD83D\uDC8B' | '\uD83D\uDC94' | '\uD83D\uDC98' | '\uD83D\uDCA9' | '\uD83D\uDCAF' | '\uD83D\uDD25' | '\uD83D\uDD4A' | '\uD83D\uDD95' | '\uD83D\uDDFF' | '\uD83D\uDE01' | '\uD83D\uDE07' | '\uD83D\uDE08' | '\uD83D\uDE0D' | '\uD83D\uDE0E' | '\uD83D\uDE10' | '\uD83D\uDE18' | '\uD83D\uDE21' | '\uD83D\uDE22' | '\uD83D\uDE28' | '\uD83D\uDE2D' | '\uD83D\uDE31' | '\uD83D\uDE34' | '\uD83D\uDE48' | '\uD83D\uDE49' | '\uD83D\uDE4A' | '\uD83D\uDE4F' | '\uD83E\uDD13' | '\uD83E\uDD14' | '\uD83E\uDD17' | '\uD83E\uDD1D' | '\uD83E\uDD21' | '\uD83E\uDD23' | '\uD83E\uDD28' | '\uD83E\uDD29' | '\uD83E\uDD2A' | '\uD83E\uDD2C' | '\uD83E\uDD2E' | '\uD83E\uDD2F' | '\uD83E\uDD37' | '\uD83E\uDD37\u200D\u2640' | '\uD83E\uDD37\u200D\u2642' | '\uD83E\uDD70' | '\uD83E\uDD71' | '\uD83E\uDD74' | '\uD83E\uDD84' | '\uD83E\uDEE1', type: 'emoji' }
221
+ export interface ReactionTypePaid { type: 'paid' }
222
+ export interface RefundedPayment { currency: 'XTR', invoice_payload: string, provider_payment_charge_id?: string, telegram_payment_charge_id: string, total_amount: number }
223
+ export interface ReplyKeyboardMarkup { input_field_placeholder?: string, is_persistent?: boolean, keyboard: KeyboardButton[][], one_time_keyboard?: boolean, resize_keyboard?: boolean, selective?: boolean }
224
+ export interface ReplyKeyboardRemove { remove_keyboard: true, selective?: boolean }
225
+ export interface ReplyParameters { allow_sending_without_reply?: boolean, chat_id?: number | string, checklist_task_id?: number, message_id: number, quote?: string, quote_entities?: MessageEntity[], quote_parse_mode?: ParseMode, quote_position?: number }
226
+ export interface ResponseParameters { migrate_to_chat_id?: number, retry_after?: number }
227
+ export interface RevenueWithdrawalStateFailed { type: 'failed' }
228
+ export interface RevenueWithdrawalStatePending { type: 'pending' }
229
+ export interface RevenueWithdrawalStateSucceeded { date: number, type: 'succeeded', url: string }
230
+ export interface SentWebAppMessage { inline_message_id?: string }
231
+ export interface SharedUser { first_name?: string, last_name?: string, photo?: PhotoSize[], user_id: number, username?: string }
232
+ export interface ShippingAddress { city: string, country_code: string, post_code: string, state: string, street_line1: string, street_line2: string }
233
+ export interface ShippingOption { id: string, prices: LabeledPrice[], title: string }
234
+ export interface ShippingQuery { from: User, id: string, invoice_payload: string, shipping_address: ShippingAddress }
235
+ export interface StarAmount { amount: number, nanostar_amount?: number }
236
+ export interface StarTransaction { amount: number, date: number, id: string, nanostar_amount?: number, receiver?: TransactionPartner, source?: TransactionPartner }
237
+ export interface StarTransactions { transactions: StarTransaction[] }
238
+ export interface Sticker { custom_emoji_id?: string, emoji?: string, file_id: string, file_size?: number, file_unique_id: string, height: number, is_animated: boolean, is_video: boolean, mask_position?: MaskPosition, needs_repainting?: true, premium_animation?: File, set_name?: string, thumbnail?: PhotoSize, type: 'custom_emoji' | 'mask' | 'regular', width: number }
239
+ export interface StickerSet { name: string, sticker_type: 'custom_emoji' | 'mask' | 'regular', stickers: Sticker[], thumbnail?: PhotoSize, title: string }
240
+ export interface Story { chat: Chat, id: number }
241
+ export interface StoryArea { position: StoryAreaPosition, type: StoryAreaType }
242
+ export interface StoryAreaPosition { corner_radius_percentage: number, height_percentage: number, rotation_angle: number, width_percentage: number, x_percentage: number, y_percentage: number }
243
+ export interface StoryAreaTypeLink { type: 'link', url: string }
244
+ export interface StoryAreaTypeLocation { address?: LocationAddress, latitude: number, longitude: number, type: 'location' }
245
+ export interface StoryAreaTypeSuggestedReaction { is_dark?: boolean, is_flipped?: boolean, reaction_type: ReactionType, type: 'suggested_reaction' }
246
+ export interface StoryAreaTypeUniqueGift { name: string, type: 'unique_gift' }
247
+ export interface StoryAreaTypeWeather { background_color: number, emoji: string, temperature: number, type: 'weather' }
248
+ export interface SuccessfulPayment { currency: Currency | 'XTR', invoice_payload: string, is_first_recurring?: true, is_recurring?: true, order_info?: OrderInfo, provider_payment_charge_id: string, shipping_option_id?: string, subscription_expiration_date?: number, telegram_payment_charge_id: string, total_amount: number }
249
+ export interface SuggestedPostApprovalFailed { price: SuggestedPostPrice, suggested_post_message?: Message }
250
+ export interface SuggestedPostApproved { price?: SuggestedPostPrice, send_date: number, suggested_post_message?: Message }
251
+ export interface SuggestedPostDeclined { comment?: string, suggested_post_message?: Message }
252
+ export interface SuggestedPostInfo { price?: SuggestedPostPrice, send_date?: number, state: 'approved' | 'declined' | 'pending' }
253
+ export interface SuggestedPostPaid { amount?: number, currency: 'TON' | 'XTR', star_amount?: StarAmount, suggested_post_message?: Message }
254
+ export interface SuggestedPostParameters { price?: SuggestedPostPrice, send_date?: number }
255
+ export interface SuggestedPostPrice { amount: number, currency: 'TON' | 'XTR' }
256
+ export interface SuggestedPostRefunded { reason: 'payment_refunded' | 'post_deleted', suggested_post_message?: Message }
257
+ export interface SwitchInlineQueryChosenChat { allow_bot_chats?: boolean, allow_channel_chats?: boolean, allow_group_chats?: boolean, allow_user_chats?: boolean, query?: string }
258
+ export interface TextQuote { entities?: MessageEntity[], is_manual?: true, position: number, text: string }
259
+ export interface TransactionPartnerAffiliateProgram { commission_per_mille: number, sponsor_user?: User, type: 'affiliate_program' }
260
+ export interface TransactionPartnerChat { chat: Chat, gift?: Gift, type: 'chat' }
261
+ export interface TransactionPartnerFragment { type: 'fragment', withdrawal_state?: RevenueWithdrawalState }
262
+ export interface TransactionPartnerOther { type: 'other' }
263
+ export interface TransactionPartnerTelegramAds { type: 'telegram_ads' }
264
+ export interface TransactionPartnerTelegramApi { request_count: number, type: 'telegram_api' }
265
+ export interface TransactionPartnerUser { affiliate?: AffiliateInfo, gift?: Gift, invoice_payload?: string, paid_media?: PaidMedia[], paid_media_payload?: string, premium_subscription_duration?: number, subscription_period?: number, transaction_type: 'business_account_transfer' | 'gift_purchase' | 'invoice_payment' | 'paid_media_payment' | 'premium_purchase', type: 'user', user: User }
266
+ export interface UniqueGift { backdrop: UniqueGiftBackdrop, base_name: string, colors?: UniqueGiftColors, gift_id: string, is_burned?: true, is_from_blockchain?: true, is_premium?: true, model: UniqueGiftModel, name: string, number: number, publisher_chat?: Chat, symbol: UniqueGiftSymbol }
267
+ export interface UniqueGiftBackdrop { colors: UniqueGiftBackdropColors, name: string, rarity_per_mille: number }
268
+ export interface UniqueGiftBackdropColors { center_color: number, edge_color: number, symbol_color: number, text_color: number }
269
+ export interface UniqueGiftColors { dark_theme_main_color: number, dark_theme_other_colors: number[], light_theme_main_color: number, light_theme_other_colors: number[], model_custom_emoji_id: string, symbol_custom_emoji_id: string }
270
+ export interface UniqueGiftInfo { gift: UniqueGift, last_resale_amount?: number, last_resale_currency?: 'TON' | 'XTR', next_transfer_date?: number, origin: 'gifted_upgrade' | 'offer' | 'resale' | 'transfer' | 'upgrade', owned_gift_id?: string, transfer_star_count?: number }
271
+ export interface UniqueGiftModel { name: string, rarity?: 'epic' | 'legendary' | 'rare' | 'uncommon', rarity_per_mille: number, sticker: Sticker }
272
+ export interface UniqueGiftSymbol { name: string, rarity_per_mille: number, sticker: Sticker }
273
+ export interface Update { business_connection?: BusinessConnection, business_message?: Message, callback_query?: CallbackQuery, channel_post?: Message, chat_boost?: ChatBoostUpdated, chat_join_request?: ChatJoinRequest, chat_member?: ChatMemberUpdated, chosen_inline_result?: ChosenInlineResult, deleted_business_messages?: BusinessMessagesDeleted, edited_business_message?: Message, edited_channel_post?: Message, edited_message?: Message, inline_query?: InlineQuery, message?: Message, message_reaction?: MessageReactionUpdated, message_reaction_count?: MessageReactionCountUpdated, my_chat_member?: ChatMemberUpdated, poll?: Poll, poll_answer?: PollAnswer, pre_checkout_query?: PreCheckoutQuery, purchased_paid_media?: PaidMediaPurchased, removed_chat_boost?: ChatBoostRemoved, shipping_query?: ShippingQuery, update_id: number }
274
+ export interface User { added_to_attachment_menu?: true, allows_users_to_create_topics?: boolean, can_connect_to_business?: boolean, can_join_groups?: boolean, can_read_all_group_messages?: boolean, first_name: string, has_main_web_app?: boolean, has_topics_enabled?: boolean, id: number, is_bot: boolean, is_premium?: true, language_code?: string, last_name?: string, supports_inline_queries?: boolean, username?: string }
275
+ export interface UserChatBoosts { boosts: ChatBoost[] }
276
+ export interface UserProfileAudios { audios: Audio[], total_count: number }
277
+ export interface UserProfilePhotos { photos: PhotoSize[][], total_count: number }
278
+ export interface UserRating { current_level_rating: number, level: number, next_level_rating?: number, rating: number }
279
+ export interface UsersShared { request_id: number, users: SharedUser[] }
280
+ export interface Venue { address: string, foursquare_id?: string, foursquare_type?: string, google_place_id?: string, google_place_type?: string, location: Location, title: string }
281
+ export interface Video { cover?: PhotoSize[], duration: number, file_id: string, file_name?: string, file_size?: number, file_unique_id: string, height: number, mime_type?: string, qualities?: VideoQuality[], start_timestamp?: number, thumbnail?: PhotoSize, width: number }
282
+ export interface VideoChatEnded { duration: number }
283
+ export interface VideoChatParticipantsInvited { users: User[] }
284
+ export interface VideoChatScheduled { start_date: number }
285
+ export interface VideoChatStarted {}
286
+ export interface VideoNote { duration: number, file_id: string, file_size?: number, file_unique_id: string, length: number, thumbnail?: PhotoSize }
287
+ export interface VideoQuality { codec: string, file_id: string, file_size?: number, file_unique_id: string, height: number, width: number }
288
+ export interface Voice { duration: number, file_id: string, file_size?: number, file_unique_id: string, mime_type?: string }
289
+ export interface WebAppData { button_text: string, data: string }
290
+ export interface WebAppInfo { url: string }
291
+ export interface WebhookInfo { allowed_updates?: string[], has_custom_certificate: boolean, ip_address?: string, last_error_date?: number, last_error_message?: string, last_synchronization_error_date?: number, max_connections?: number, pending_update_count: number, url: string }
292
+ export interface WriteAccessAllowed { from_attachment_menu?: boolean, from_request?: boolean, web_app_name?: string }
293
+
294
+ export interface AddStickerToSetParams { name: string, sticker: InputSticker, user_id: number }
295
+ export interface AnswerCallbackQueryParams { cache_time?: number, callback_query_id: string, show_alert?: boolean, text?: string, url?: string }
296
+ export interface AnswerInlineQueryParams { button?: InlineQueryResultsButton, cache_time?: number, inline_query_id: string, is_personal?: boolean, next_offset?: string, results: InlineQueryResult[] }
297
+ export interface AnswerPreCheckoutQueryParams { error_message?: string, ok: boolean, pre_checkout_query_id: string }
298
+ export interface AnswerShippingQueryParams { error_message?: string, ok: boolean, shipping_options?: ShippingOption[], shipping_query_id: string }
299
+ export interface AnswerWebAppQueryParams { result: InlineQueryResult, web_app_query_id: string }
300
+ export interface ApproveChatJoinRequestParams { chat_id: number | string, user_id: number }
301
+ export interface ApproveSuggestedPostParams { chat_id: number, message_id: number, send_date?: number }
302
+ export interface BanChatMemberParams { chat_id: number | string, revoke_messages?: boolean, until_date?: number, user_id: number }
303
+ export interface BanChatSenderChatParams { chat_id: number | string, sender_chat_id: number }
304
+ export interface CloseForumTopicParams { chat_id: number | string, message_thread_id: number }
305
+ export interface CloseGeneralForumTopicParams { chat_id: number | string }
306
+ export interface ConvertGiftToStarsParams { business_connection_id: string, owned_gift_id: string }
307
+ export interface CopyMessageParams { allow_paid_broadcast?: boolean, caption?: string, caption_entities?: MessageEntity[], chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, from_chat_id: number | string, message_effect_id?: string, message_id: number, message_thread_id?: number, parse_mode?: ParseMode, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, show_caption_above_media?: boolean, suggested_post_parameters?: SuggestedPostParameters, video_start_timestamp?: number }
308
+ export interface CopyMessagesParams { chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, from_chat_id: number | string, message_ids: number[], message_thread_id?: number, protect_content?: boolean, remove_caption?: boolean }
309
+ export interface CreateChatInviteLinkParams { chat_id: number | string, creates_join_request?: boolean, expire_date?: number, member_limit?: number, name?: string }
310
+ export interface CreateChatSubscriptionInviteLinkParams { chat_id: number | string, name?: string, subscription_period: number, subscription_price: number }
311
+ export interface CreateForumTopicParams { chat_id: number | string, icon_color?: 0x6FB9F0 | 0x8EEE98 | 0xCB86DB | 0xFB6F5F | 0xFF93B2 | 0xFFD67E; icon_custom_emoji_id?: string, name: string }
312
+ export interface CreateInvoiceLinkParams { business_connection_id?: string, currency: Currency | 'XTR', description: string, is_flexible?: boolean, max_tip_amount?: number, need_email?: boolean, need_name?: boolean, need_phone_number?: boolean, need_shipping_address?: boolean, payload: string, photo_height?: number, photo_size?: number, photo_url?: string, photo_width?: number, prices: LabeledPrice[], provider_data?: string, provider_token?: string, send_email_to_provider?: boolean, send_phone_number_to_provider?: boolean, subscription_period?: number, suggested_tip_amounts?: number[], title: string }
313
+ export interface CreateNewStickerSetParams { name: string, needs_repainting?: boolean, sticker_type?: 'custom_emoji' | 'mask' | 'regular', stickers: InputSticker[], title: string, user_id: number }
314
+ export interface DeclineChatJoinRequestParams { chat_id: number | string, user_id: number }
315
+ export interface DeclineSuggestedPostParams { chat_id: number, message_id: number, comment?: string }
316
+ export interface DeleteBusinessMessagesParams { business_connection_id: string, message_ids: number[] }
317
+ export interface DeleteChatPhotoParams { chat_id: number | string }
318
+ export interface DeleteChatStickerSetParams { chat_id: number | string }
319
+ export interface DeleteForumTopicParams { chat_id: number | string, message_thread_id: number }
320
+ export interface DeleteMessageParams { chat_id: number | string, message_id: number }
321
+ export interface DeleteMessagesParams { chat_id: number | string, message_ids: number[] }
322
+ export interface DeleteMyCommandsParams { language_code?: string, scope?: BotCommandScope }
323
+ export interface DeleteStickerFromSetParams { sticker: string }
324
+ export interface DeleteStickerSetParams { name: string }
325
+ export interface DeleteStoryParams { business_connection_id: string, story_id: number }
326
+ export interface DeleteWebhookParams { drop_pending_updates?: boolean }
327
+ export interface EditChatInviteLinkParams { chat_id: number | string, creates_join_request?: boolean, expire_date?: number, invite_link: string, member_limit?: number, name?: string }
328
+ export interface EditChatSubscriptionInviteLinkParams { chat_id: number | string, invite_link: string, name?: string }
329
+ export interface EditForumTopicParams { chat_id: number | string, icon_custom_emoji_id?: string, message_thread_id: number, name?: string }
330
+ export interface EditGeneralForumTopicParams { chat_id: number | string, message_thread_id: number }
331
+ export interface EditMessageCaptionParams { business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], chat_id?: number | string, inline_message_id?: string, message_id?: number, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, show_caption_above_media?: boolean }
332
+ export interface EditMessageChecklistParams { business_connection_id: string, chat_id: number, checklist: InputChecklist, message_id: number, reply_markup?: InlineKeyboardMarkup }
333
+ export interface EditMessageLiveLocationParams { business_connection_id?: string, chat_id?: number | string, heading?: number, horizontal_accuracy?: number, inline_message_id?: string, latitude: number, live_period?: number, longitude: number, message_id?: number, proximity_alert_radius?: number, reply_markup?: InlineKeyboardMarkup }
334
+ export interface EditMessageMediaParams { business_connection_id?: string, chat_id?: number | string, inline_message_id?: string, media: InputMedia, message_id?: number, reply_markup?: InlineKeyboardMarkup }
335
+ export interface EditMessageReplyMarkupParams { business_connection_id?: string, chat_id?: number | string, inline_message_id?: string, message_id?: number, reply_markup?: InlineKeyboardMarkup }
336
+ export interface EditMessageTextParams { business_connection_id?: string, chat_id?: number | string, entities?: MessageEntity[], inline_message_id?: string, link_preview_options?: LinkPreviewOptions, message_id?: number, parse_mode?: ParseMode, reply_markup?: InlineKeyboardMarkup, text: string }
337
+ export interface EditStoryParams { areas?: StoryArea[], business_connection_id: string, caption?: string, caption_entities?: MessageEntity[], content: InputStoryContent, parse_mode?: ParseMode, story_id: number }
338
+ export interface EditUserStarSubscriptionParams { is_canceled: boolean, telegram_payment_charge_id: string, user_id: number }
339
+ export interface ExportChatInviteLinkParams { chat_id: number | string }
340
+ export interface ForwardMessageParams { chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, from_chat_id: number | string, message_effect_id?: string, message_id: number, message_thread_id?: number, protect_content?: boolean, suggested_post_parameters?: SuggestedPostParameters, video_start_timestamp?: number }
341
+ export interface ForwardMessagesParams { chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, from_chat_id: number | string, message_ids: number[], message_thread_id?: number, protect_content?: boolean }
342
+ export interface GetBusinessAccountGiftsParams { business_connection_id: string, exclude_from_blockchain?: boolean, exclude_limited_non_upgradable?: boolean, exclude_limited_upgradable?: boolean, exclude_saved?: boolean, exclude_unique?: boolean, exclude_unlimited?: boolean, exclude_unsaved?: boolean, limit?: number, offset?: string, sort_by_price?: boolean }
343
+ export interface GetBusinessAccountStarBalanceParams { business_connection_id: string }
344
+ export interface GetBusinessConnectionParams { business_connection_id: string }
345
+ export interface GetChatAdministratorsParams { chat_id: number | string }
346
+ export interface GetChatGiftsParams { chat_id: number | string, exclude_from_blockchain?: boolean, exclude_limited_non_upgradable?: boolean, exclude_limited_upgradable?: boolean, exclude_saved?: boolean, exclude_unique?: boolean, exclude_unlimited?: boolean, exclude_unsaved?: boolean, limit?: number, offset?: string, sort_by_price?: boolean }
347
+ export interface GetChatMemberCountParams { chat_id: number | string }
348
+ export interface GetChatMemberParams { chat_id: number | string, user_id: number }
349
+ export interface GetChatMenuButtonParams { chat_id?: number }
350
+ export interface GetChatParams { chat_id: number | string }
351
+ export interface GetCustomEmojiStickersParams { custom_emoji_ids: string[] }
352
+ export interface GetFileParams { file_id: string }
353
+ export interface GetGameHighScoresParams { chat_id?: number, inline_message_id?: string, message_id?: number, user_id: number }
354
+ export interface GetMyCommandsParams { language_code?: string, scope?: BotCommandScope }
355
+ export interface GetMyDefaultAdministratorRightsParams { for_channels?: boolean }
356
+ export interface GetMyDescriptionParams { language_code?: string }
357
+ export interface GetMyNameParams { language_code?: string }
358
+ export interface GetMyShortDescriptionParams { language_code?: string }
359
+ export interface GetStarTransactionsParams { limit?: number, offset?: number }
360
+ export interface GetStickerSetParams { name: string }
361
+ export interface GetUpdatesParams { allowed_updates?: string[], limit?: number, offset?: number, timeout?: number }
362
+ export interface GetUserChatBoostsParams { chat_id: number | string, user_id: number }
363
+ export interface GetUserGiftsParams { exclude_from_blockchain?: boolean, exclude_limited_non_upgradable?: boolean, exclude_limited_upgradable?: boolean, exclude_unique?: boolean, exclude_unlimited?: boolean, limit?: number, offset?: string, sort_by_price?: boolean, user_id: number }
364
+ export interface GetUserProfileAudiosParams { limit?: number, offset?: number, user_id: number }
365
+ export interface GetUserProfilePhotosParams { limit?: number, offset?: number, user_id: number }
366
+ export interface GiftPremiumSubscriptionParams { month_count: 3 | 6 | 12, star_count: 1000 | 1500 | 2500, text?: string, text_entities?: MessageEntity[], text_parse_mode?: ParseMode, user_id: number }
367
+ export interface HideGeneralForumTopicParams { chat_id: number | string }
368
+ export interface LeaveChatParams { chat_id: number | string }
369
+ export interface PinChatMessageParams { business_connection_id?: string, chat_id: number | string, disable_notification?: boolean, message_id: number }
370
+ export interface PostStoryParams { active_period: 21600 | 43200 | 86400 | 172800, areas?: StoryArea[], business_connection_id: string, caption?: string, caption_entities?: MessageEntity[], content: InputStoryContent, parse_mode?: ParseMode, post_to_chat_page?: boolean, protect_content?: boolean }
371
+ export interface PromoteChatMemberParams { can_change_info?: boolean, can_delete_messages?: boolean, can_delete_stories?: boolean, can_edit_messages?: boolean, can_edit_stories?: boolean, can_invite_users?: boolean, can_manage_chat?: boolean, can_manage_direct_messages?: boolean, can_manage_tags?: boolean, can_manage_topics?: boolean, can_manage_video_chats?: boolean, can_pin_messages?: boolean, can_post_messages?: boolean, can_post_stories?: boolean, can_promote_members?: boolean, can_restrict_members?: boolean, chat_id: number | string, is_anonymous?: boolean, user_id: number }
372
+ export interface ReadBusinessMessageParams { business_connection_id: string, chat_id: number, message_id: number }
373
+ export interface RefundStarPaymentParams { telegram_payment_charge_id: string, user_id: number }
374
+ export interface RemoveBusinessAccountProfilePhotoParams { business_connection_id: string, is_public?: boolean }
375
+ export interface RemoveChatVerificationParams { chat_id: number | string }
376
+ export interface RemoveUserVerificationParams { user_id: number }
377
+ export interface ReopenForumTopicParams { chat_id: number | string, message_thread_id: number }
378
+ export interface ReopenGeneralForumTopicParams { chat_id: number | string }
379
+ export interface ReplaceStickerInSetParams { name: string, old_sticker: string, sticker: InputSticker, user_id: number }
380
+ export interface RepostStoryParams { active_period: 21600 | 43200 | 86400 | 172800, business_connection_id: string, from_chat_id: number, from_story_id: number, post_to_chat_page?: boolean, protect_content?: boolean }
381
+ export interface RestrictChatMemberParams { chat_id: number | string, permissions: ChatPermissions, until_date?: number, use_independent_chat_permissions?: boolean, user_id: number }
382
+ export interface RevokeChatInviteLinkParams { chat_id: number | string, invite_link: string }
383
+ export interface SavePreparedInlineMessageParams { allow_bot_chats?: boolean, allow_channel_chats?: boolean, allow_group_chats?: boolean, allow_user_chats?: boolean, result: InlineQueryResult, user_id: number }
384
+ export interface SendAnimationParams { allow_paid_broadcast?: boolean, animation: InputFile | string, business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, duration?: number, has_spoiler?: boolean, height?: number, message_effect_id?: string, message_thread_id?: number, parse_mode?: ParseMode, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, show_caption_above_media?: boolean, suggested_post_parameters?: SuggestedPostParameters, thumbnail?: InputFile | string, width?: number }
385
+ export interface SendAudioParams { allow_paid_broadcast?: boolean, audio: InputFile | string, business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, duration?: number, message_effect_id?: string, message_thread_id?: number, parse_mode?: ParseMode, performer?: string, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters, thumbnail?: InputFile | string, title?: string }
386
+ export interface SendChatActionParams { action: 'choose_sticker' | 'find_location' | 'record_video' | 'record_video_note' | 'record_voice' | 'typing' | 'upload_document' | 'upload_photo' | 'upload_video' | 'upload_video_note' | 'upload_voice', business_connection_id?: string, chat_id: number | string, message_thread_id?: number }
387
+ export interface SendChecklistParams { business_connection_id: string, chat_id: number, checklist: InputChecklist, disable_notification?: boolean, message_effect_id?: string, protect_content?: boolean, reply_markup?: InlineKeyboardMarkup, reply_parameters?: ReplyParameters }
388
+ export interface SendContactParams { allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, first_name: string, last_name?: string, message_effect_id?: string, message_thread_id?: number, phone_number: string, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters, vcard?: string }
389
+ export interface SendDiceParams { allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, emoji?: '\u26BD' | '\uD83C\uDFAF' | '\uD83C\uDFB0' | '\uD83C\uDFB2' | '\uD83C\uDFB3' | '\uD83C\uDFC0', message_effect_id?: string, message_thread_id?: number, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters }
390
+ export interface SendDocumentParams { allow_paid_broadcast?: boolean, business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], chat_id: number | string, direct_messages_topic_id?: number, disable_content_type_detection?: boolean, disable_notification?: boolean, document: InputFile | string, message_effect_id?: string, message_thread_id?: number, parse_mode?: ParseMode, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters, thumbnail?: InputFile | string }
391
+ export interface SendGameParams { allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number, disable_notification?: boolean, game_short_name: string, message_effect_id?: string, message_thread_id?: number, protect_content?: boolean, reply_markup?: InlineKeyboardMarkup, reply_parameters?: ReplyParameters }
392
+ export interface SendGiftParams { chat_id?: number | string, gift_id: string, pay_for_upgrade?: boolean, text?: string, text_entities?: MessageEntity[], text_parse_mode?: ParseMode, user_id?: number }
393
+ export interface SendInvoiceParams { allow_paid_broadcast?: boolean, chat_id: number | string, currency: Currency | 'XTR', description: string, direct_messages_topic_id?: number, disable_notification?: boolean, is_flexible?: boolean, max_tip_amount?: number, message_effect_id?: string, message_thread_id?: number, need_email?: boolean, need_name?: boolean, need_phone_number?: boolean, need_shipping_address?: boolean, payload: string, photo_height?: number, photo_size?: number, photo_url?: string, photo_width?: number, prices: LabeledPrice[], protect_content?: boolean, provider_data?: string, provider_token?: string, reply_markup?: InlineKeyboardMarkup, reply_parameters?: ReplyParameters, send_email_to_provider?: boolean, send_phone_number_to_provider?: boolean, start_parameter?: string, suggested_post_parameters?: SuggestedPostParameters, suggested_tip_amounts?: number[], title: string }
394
+ export interface SendLocationParams { allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, heading?: number, horizontal_accuracy?: number, latitude: number, live_period?: number, longitude: number, message_effect_id?: string, message_thread_id?: number, protect_content?: boolean, proximity_alert_radius?: number, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters }
395
+ export interface SendMediaGroupParams { allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, media: (InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo)[], message_effect_id?: string, message_thread_id?: number, protect_content?: boolean, reply_parameters?: ReplyParameters }
396
+ export interface SendMessageDraftParams { chat_id: number, draft_id: number, entities?: MessageEntity[], message_thread_id?: number, parse_mode?: ParseMode, text: string }
397
+ export interface SendMessageParams { allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, entities?: MessageEntity[], link_preview_options?: LinkPreviewOptions, message_effect_id?: string, message_thread_id?: number, parse_mode?: ParseMode, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters, text: string }
398
+ export interface SendPaidMediaParams { allow_paid_broadcast?: boolean, business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, media: InputPaidMedia[], message_thread_id?: number, parse_mode?: ParseMode, payload?: string, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, show_caption_above_media?: boolean, star_count: number, suggested_post_parameters?: SuggestedPostParameters }
399
+ export interface SendPhotoParams { allow_paid_broadcast?: boolean, business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, has_spoiler?: boolean, message_effect_id?: string, message_thread_id?: number, parse_mode?: ParseMode, photo: InputFile | string, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, show_caption_above_media?: boolean, suggested_post_parameters?: SuggestedPostParameters }
400
+ export interface SendPollParams { allow_paid_broadcast?: boolean, allows_multiple_answers?: boolean, business_connection_id?: string, chat_id: number | string, close_date?: number, correct_option_id?: number, disable_notification?: boolean, explanation?: string, explanation_entities?: MessageEntity[], explanation_parse_mode?: ParseMode, is_anonymous?: boolean, is_closed?: boolean, message_effect_id?: string, message_thread_id?: number, open_period?: number, options: InputPollOption[], protect_content?: boolean, question: string, question_entities?: MessageEntity[], question_parse_mode?: string, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, type?: 'regular' | 'quiz' }
401
+ export interface SendStickerParams { allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, emoji?: string, message_effect_id?: string, message_thread_id?: number, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, sticker: InputFile | string, suggested_post_parameters?: SuggestedPostParameters }
402
+ export interface SendVenueParams { address: string, allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, foursquare_id?: string, foursquare_type?: string, google_place_id?: string, google_place_type?: string, latitude: number, longitude: number, message_effect_id?: string, message_thread_id?: number, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters, title: string }
403
+ export interface SendVideoNoteParams { allow_paid_broadcast?: boolean, business_connection_id?: string, chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, duration?: number, length?: number, message_effect_id?: string, message_thread_id?: number, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters, thumbnail?: InputFile | string, video_note: InputFile | string }
404
+ export interface SendVideoParams { allow_paid_broadcast?: boolean, business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], chat_id: number | string, cover?: InputFile | string, direct_messages_topic_id?: number, disable_notification?: boolean, duration?: number, has_spoiler?: boolean, height?: number, message_effect_id?: string, message_thread_id?: number, parse_mode?: ParseMode, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, show_caption_above_media?: boolean, start_timestamp?: number, suggested_post_parameters?: SuggestedPostParameters, supports_streaming?: boolean, thumbnail?: InputFile | string, video: InputFile | string, width?: number }
405
+ export interface SendVoiceParams { allow_paid_broadcast?: boolean, business_connection_id?: string, caption?: string, caption_entities?: MessageEntity[], chat_id: number | string, direct_messages_topic_id?: number, disable_notification?: boolean, duration?: number, message_effect_id?: string, message_thread_id?: number, parse_mode?: ParseMode, protect_content?: boolean, reply_markup?: ReplyMarkup, reply_parameters?: ReplyParameters, suggested_post_parameters?: SuggestedPostParameters, voice: InputFile | string }
406
+ export interface SetBusinessAccountBioParams { bio?: string, business_connection_id: string }
407
+ export interface SetBusinessAccountGiftSettingsParams { accepted_gift_types: AcceptedGiftTypes, business_connection_id: string, show_gift_button: boolean }
408
+ export interface SetBusinessAccountNameParams { business_connection_id: string, first_name: string, last_name?: string }
409
+ export interface SetBusinessAccountProfilePhotoParams { business_connection_id: string, is_public?: boolean, photo: InputProfilePhoto }
410
+ export interface SetBusinessAccountUsernameParams { business_connection_id: string, username?: string }
411
+ export interface SetChatAdministratorCustomTitleParams { chat_id: number | string, custom_title: string, user_id: number }
412
+ export interface SetChatDescriptionParams { chat_id: number | string, description?: string }
413
+ export interface SetChatMemberTagParams { chat_id: number | string, tag?: string, user_id: number }
414
+ export interface SetChatMenuButtonParams { chat_id?: number, menu_button?: MenuButton }
415
+ export interface SetChatPermissionsParams { chat_id: number | string, permissions: ChatPermissions, use_independent_chat_permissions?: boolean }
416
+ export interface SetChatPhotoParams { chat_id: number | string, photo: InputFile }
417
+ export interface SetChatStickerSetParams { chat_id: number | string, sticker_set_name: string }
418
+ export interface SetChatTitleParams { chat_id: number | string, title: string }
419
+ export interface SetCustomEmojiStickerSetThumbnailParams { custom_emoji_id?: string, name: string }
420
+ export interface SetGameScoreParams { chat_id?: number, disable_edit_message?: boolean, force?: boolean, inline_message_id?: string, message_id?: number, score: number, user_id: number }
421
+ export interface SetMessageReactionParams { chat_id: number | string, is_big?: boolean, message_id: number, reaction?: ReactionType[] }
422
+ export interface SetMyCommandsParams { commands: BotCommand[], language_code?: string, scope?: BotCommandScope }
423
+ export interface SetMyDefaultAdministratorRightsParams { for_channels?: boolean, rights?: ChatAdministratorRights }
424
+ export interface SetMyDescriptionParams { description?: string, language_code?: string }
425
+ export interface SetMyNameParams { language_code?: string, name?: string }
426
+ export interface SetMyProfilePhotoParams { photo: InputProfilePhoto }
427
+ export interface SetMyShortDescriptionParams { language_code?: string, short_description?: string }
428
+ export interface SetPassportDataErrorsParams { errors: PassportElementError[], user_id: number }
429
+ export interface SetStickerEmojiListParams { emoji_list: string[], sticker: string }
430
+ export interface SetStickerKeywordsParams { keywords?: string[], sticker: string }
431
+ export interface SetStickerMaskPositionParams { mask_position?: MaskPosition, sticker: string }
432
+ export interface SetStickerPositionInSetParams { position: number, sticker: string }
433
+ export interface SetStickerSetThumbnailParams { format: 'animated' | 'static' | 'video', name: string, thumbnail?: InputFile | string, user_id: number }
434
+ export interface SetStickerSetTitleParams { name: string, title: string }
435
+ export interface SetUserEmojiStatusParams { emoji_status_custom_emoji_id?: string, emoji_status_expiration_date?: number, user_id: number }
436
+ export interface SetWebhookParams { allowed_updates?: string[], certificate?: InputFile, drop_pending_updates?: boolean, ip_address?: string, max_connections?: number, secret_token?: string, url: string }
437
+ export interface StopMessageLiveLocationParams { business_connection_id?: string, chat_id?: number | string, inline_message_id?: string, message_id?: number, reply_markup?: InlineKeyboardMarkup }
438
+ export interface StopPollParams { business_connection_id?: string, chat_id: number | string, message_id: number, reply_markup?: InlineKeyboardMarkup }
439
+ export interface TransferBusinessAccountStarsParams { business_connection_id: string, star_count: number }
440
+ export interface TransferGiftParams { business_connection_id: string, new_owner_chat_id: number, owned_gift_id: string, star_count?: number }
441
+ export interface UnbanChatMemberParams { chat_id: number | string, only_if_banned?: boolean, user_id: number }
442
+ export interface UnbanChatSenderChatParams { chat_id: number | string, sender_chat_id: number }
443
+ export interface UnhideGeneralForumTopicParams { chat_id: number | string }
444
+ export interface UnpinAllChatMessagesParams { chat_id: number | string }
445
+ export interface UnpinAllForumTopicMessagesParams { chat_id: number | string, message_thread_id: number }
446
+ export interface UnpinAllGeneralForumTopicMessagesParams { chat_id: number | string }
447
+ export interface UnpinChatMessageParams { business_connection_id?: string, chat_id: number | string, message_id?: number }
448
+ export interface UpgradeGiftParams { business_connection_id: string, keep_original_details?: boolean, owned_gift_id: string, star_count?: number }
449
+ export interface UploadStickerFileParams { sticker: InputFile, sticker_format: 'animated' | 'static' | 'video', user_id: number }
450
+ export interface VerifyChatParams { custom_description?: string, chat_id: number | string }
451
+ export interface VerifyUserParams { custom_description?: string, user_id: number }
452
+
453
+ export type ApiTransport = (url: string, init: RequestInit) => Promise<Response>;
454
+
455
+ export class ApiError extends Error {
456
+ readonly code: number;
457
+ constructor(message: string, code: number);
458
+ }
459
+
460
+ export class Api {
461
+ static readonly version: string;
462
+ static call<T>(api: Api, method: string, params?: Record<string, any>): Promise<T>;
463
+ constructor(botToken: string);
464
+ addStickerToSet(params: AddStickerToSetParams): Promise<true>;
465
+ answerCallbackQuery(params: AnswerCallbackQueryParams): Promise<true>;
466
+ answerInlineQuery(params: AnswerInlineQueryParams): Promise<true>;
467
+ answerPreCheckoutQuery(params: AnswerPreCheckoutQueryParams): Promise<true>;
468
+ answerShippingQuery(params: AnswerShippingQueryParams): Promise<true>;
469
+ answerWebAppQuery(params: AnswerWebAppQueryParams): Promise<SentWebAppMessage>;
470
+ approveChatJoinRequest(params: ApproveChatJoinRequestParams): Promise<true>;
471
+ approveSuggestedPost(params: ApproveSuggestedPostParams): Promise<true>;
472
+ banChatMember(params: BanChatMemberParams): Promise<true>;
473
+ banChatSenderChat(params: BanChatSenderChatParams): Promise<true>;
474
+ close(): Promise<true>;
475
+ closeForumTopic(params: CloseForumTopicParams): Promise<true>;
476
+ closeGeneralForumTopic(params: CloseGeneralForumTopicParams): Promise<true>;
477
+ convertGiftToStars(params: ConvertGiftToStarsParams): Promise<true>;
478
+ copyMessage(params: CopyMessageParams): Promise<MessageId>;
479
+ copyMessages(params: CopyMessagesParams): Promise<MessageId[]>;
480
+ createChatInviteLink(params: CreateChatInviteLinkParams): Promise<ChatInviteLink>;
481
+ createChatSubscriptionInviteLink(params: CreateChatSubscriptionInviteLinkParams): Promise<ChatInviteLink>;
482
+ createForumTopic(params: CreateForumTopicParams): Promise<ForumTopic>;
483
+ createInvoiceLink(params: CreateInvoiceLinkParams): Promise<string>;
484
+ createNewStickerSet(params: CreateNewStickerSetParams): Promise<true>;
485
+ declineChatJoinRequest(params: DeclineChatJoinRequestParams): Promise<true>;
486
+ declineSuggestedPost(params: DeclineSuggestedPostParams): Promise<true>;
487
+ deleteBusinessMessages(params: DeleteBusinessMessagesParams): Promise<true>;
488
+ deleteChatPhoto(params: DeleteChatPhotoParams): Promise<true>;
489
+ deleteChatStickerSet(params: DeleteChatStickerSetParams): Promise<true>;
490
+ deleteForumTopic(params: DeleteForumTopicParams): Promise<true>;
491
+ deleteMessage(params: DeleteMessageParams): Promise<true>;
492
+ deleteMessages(params: DeleteMessagesParams): Promise<true>;
493
+ deleteMyCommands(params?: DeleteMyCommandsParams): Promise<true>;
494
+ deleteStickerFromSet(params: DeleteStickerFromSetParams): Promise<true>;
495
+ deleteStickerSet(params: DeleteStickerSetParams): Promise<true>;
496
+ deleteStory(params: DeleteStoryParams): Promise<true>;
497
+ deleteWebhook(params?: DeleteWebhookParams): Promise<true>;
498
+ editChatInviteLink(params: EditChatInviteLinkParams): Promise<ChatInviteLink>;
499
+ editChatSubscriptionInviteLink(params: EditChatSubscriptionInviteLinkParams): Promise<ChatInviteLink>;
500
+ editForumTopic(params: EditForumTopicParams): Promise<true>;
501
+ editGeneralForumTopic(params: EditGeneralForumTopicParams): Promise<true>;
502
+ editMessageCaption(params?: EditMessageCaptionParams): Promise<Message | true>;
503
+ editMessageChecklist(params: EditMessageChecklistParams): Promise<Message>;
504
+ editMessageLiveLocation(params: EditMessageLiveLocationParams): Promise<Message | true>;
505
+ editMessageMedia(params: EditMessageMediaParams): Promise<Message | true>;
506
+ editMessageReplyMarkup(params?: EditMessageReplyMarkupParams): Promise<Message | true>;
507
+ editMessageText(params: EditMessageTextParams): Promise<Message | true>;
508
+ editStory(params: EditStoryParams): Promise<Story>;
509
+ editUserStarSubscription(params: EditUserStarSubscriptionParams): Promise<true>;
510
+ exportChatInviteLink(params: ExportChatInviteLinkParams): Promise<string>;
511
+ forwardMessage(params: ForwardMessageParams): Promise<Message>;
512
+ forwardMessages(params: ForwardMessagesParams): Promise<MessageId[]>;
513
+ getAvailableGifts(): Promise<Gifts>;
514
+ getBusinessAccountGifts(params: GetBusinessAccountGiftsParams): Promise<OwnedGifts>;
515
+ getBusinessAccountStarBalance(params: GetBusinessAccountStarBalanceParams): Promise<StarAmount>;
516
+ getBusinessConnection(params: GetBusinessConnectionParams): Promise<BusinessConnection>;
517
+ getChat(params: GetChatParams): Promise<ChatFullInfo>;
518
+ getChatAdministrators(params: GetChatAdministratorsParams): Promise<ChatMember[]>;
519
+ getChatGifts(params: GetChatGiftsParams): Promise<OwnedGifts>;
520
+ getChatMember(params: GetChatMemberParams): Promise<ChatMember>;
521
+ getChatMemberCount(params: GetChatMemberCountParams): Promise<number>;
522
+ getChatMenuButton(params?: GetChatMenuButtonParams): Promise<MenuButton>;
523
+ getCustomEmojiStickers(params: GetCustomEmojiStickersParams): Promise<Sticker[]>;
524
+ getFile(params: GetFileParams): Promise<File>;
525
+ getForumTopicIconStickers(): Promise<Sticker[]>;
526
+ getGameHighScores(params: GetGameHighScoresParams): Promise<GameHighScore>;
527
+ getMe(): Promise<User>;
528
+ getMyCommands(params?: GetMyCommandsParams): Promise<BotCommand>;
529
+ getMyDefaultAdministratorRights(params?: GetMyDefaultAdministratorRightsParams): Promise<ChatAdministratorRights>;
530
+ getMyDescription(params?: GetMyDescriptionParams): Promise<BotDescription>;
531
+ getMyName(params?: GetMyNameParams): Promise<BotName>;
532
+ getMyShortDescription(params?: GetMyShortDescriptionParams): Promise<BotShortDescription>;
533
+ getMyStarBalance(): Promise<StarAmount>;
534
+ getStarTransactions(params?: GetStarTransactionsParams): Promise<StarTransactions>;
535
+ getStickerSet(params: GetStickerSetParams): Promise<StickerSet>;
536
+ getUpdates(params?: GetUpdatesParams): Promise<Update[]>;
537
+ getUserChatBoosts(params: GetUserChatBoostsParams): Promise<UserChatBoosts>;
538
+ getUserGifts(params: GetUserGiftsParams): Promise<OwnedGifts>;
539
+ getUserProfileAudios(params: GetUserProfileAudiosParams): Promise<UserProfileAudios>;
540
+ getUserProfilePhotos(params: GetUserProfilePhotosParams): Promise<UserProfilePhotos>;
541
+ getWebhookInfo(): Promise<WebhookInfo>;
542
+ giftPremiumSubscription(params: GiftPremiumSubscriptionParams): Promise<true>;
543
+ hideGeneralForumTopic(params: HideGeneralForumTopicParams): Promise<true>;
544
+ leaveChat(params: LeaveChatParams): Promise<true>;
545
+ logOut(): Promise<true>;
546
+ pinChatMessage(params: PinChatMessageParams): Promise<true>;
547
+ postStory(params: PostStoryParams): Promise<Story>;
548
+ promoteChatMember(params: PromoteChatMemberParams): Promise<true>;
549
+ readBusinessMessage(params: ReadBusinessMessageParams): Promise<true>;
550
+ refundStarPayment(params: RefundStarPaymentParams): Promise<true>;
551
+ removeBusinessAccountProfilePhoto(params: RemoveBusinessAccountProfilePhotoParams): Promise<true>;
552
+ removeChatVerification(params: RemoveChatVerificationParams): Promise<true>;
553
+ removeMyProfilePhoto(): Promise<true>;
554
+ removeUserVerification(params: RemoveUserVerificationParams): Promise<true>;
555
+ reopenForumTopic(params: ReopenForumTopicParams): Promise<true>;
556
+ reopenGeneralForumTopic(params: ReopenGeneralForumTopicParams): Promise<true>;
557
+ replaceStickerInSet(params: ReplaceStickerInSetParams): Promise<true>;
558
+ repostStory(params: RepostStoryParams): Promise<Story>;
559
+ restrictChatMember(params: RestrictChatMemberParams): Promise<true>;
560
+ revokeChatInviteLink(params: RevokeChatInviteLinkParams): Promise<ChatInviteLink>;
561
+ savePreparedInlineMessage(params: SavePreparedInlineMessageParams): Promise<PreparedInlineMessage>;
562
+ sendAnimation(params: SendAnimationParams): Promise<Message>;
563
+ sendAudio(params: SendAudioParams): Promise<Message>;
564
+ sendChatAction(params: SendChatActionParams): Promise<true>;
565
+ sendChecklist(params: SendChecklistParams): Promise<Message>;
566
+ sendContact(params: SendContactParams): Promise<Message>;
567
+ sendDice(params: SendDiceParams): Promise<Message>;
568
+ sendDocument(params: SendDocumentParams): Promise<Message>;
569
+ sendGame(params: SendGameParams): Promise<Message>;
570
+ sendGift(params: SendGiftParams): Promise<true>;
571
+ sendInvoice(params: SendInvoiceParams): Promise<Message>;
572
+ sendLocation(params: SendLocationParams): Promise<Message>;
573
+ sendMediaGroup(params: SendMediaGroupParams): Promise<Message>;
574
+ sendMessage(params: SendMessageParams): Promise<Message>;
575
+ sendMessageDraft(params: SendMessageDraftParams): Promise<true>;
576
+ sendPaidMedia(params: SendPaidMediaParams): Promise<Message>;
577
+ sendPhoto(params: SendPhotoParams): Promise<Message>;
578
+ sendPoll(params: SendPollParams): Promise<Message>;
579
+ sendSticker(params: SendStickerParams): Promise<Message>;
580
+ sendVenue(params: SendVenueParams): Promise<Message>;
581
+ sendVideo(params: SendVideoParams): Promise<Message>;
582
+ sendVideoNote(params: SendVideoNoteParams): Promise<Message>;
583
+ sendVoice(params: SendVoiceParams): Promise<Message>;
584
+ setBusinessAccountBio(params: SetBusinessAccountBioParams): Promise<true>;
585
+ setBusinessAccountGiftSettings(params: SetBusinessAccountGiftSettingsParams): Promise<true>;
586
+ setBusinessAccountName(params: SetBusinessAccountNameParams): Promise<true>;
587
+ setBusinessAccountProfilePhoto(params: SetBusinessAccountProfilePhotoParams): Promise<true>;
588
+ setBusinessAccountUsername(params: SetBusinessAccountUsernameParams): Promise<true>;
589
+ setChatAdministratorCustomTitle(params: SetChatAdministratorCustomTitleParams): Promise<true>;
590
+ setChatDescription(params: SetChatDescriptionParams): Promise<true>;
591
+ setChatMemberTag(params: SetChatMemberTagParams): Promise<true>;
592
+ setChatMenuButton(params?: SetChatMenuButtonParams): Promise<true>;
593
+ setChatPermissions(params: SetChatPermissionsParams): Promise<true>;
594
+ setChatPhoto(params: SetChatPhotoParams): Promise<true>;
595
+ setChatStickerSet(params: SetChatStickerSetParams): Promise<true>;
596
+ setChatTitle(params: SetChatTitleParams): Promise<true>;
597
+ setCustomEmojiStickerSetThumbnail(params: SetCustomEmojiStickerSetThumbnailParams): Promise<true>;
598
+ setGameScore(params: SetGameScoreParams): Promise<Message | true>;
599
+ setMessageReaction(params: SetMessageReactionParams): Promise<true>;
600
+ setMyCommands(params: SetMyCommandsParams): Promise<true>;
601
+ setMyDefaultAdministratorRights(params?: SetMyDefaultAdministratorRightsParams): Promise<true>;
602
+ setMyDescription(params?: SetMyDescriptionParams): Promise<true>;
603
+ setMyName(params?: SetMyNameParams): Promise<true>;
604
+ setMyProfilePhoto(params: SetMyProfilePhotoParams): Promise<true>;
605
+ setMyShortDescription(params?: SetMyShortDescriptionParams): Promise<true>;
606
+ setPassportDataErrors(params: SetPassportDataErrorsParams): Promise<true>;
607
+ setStickerEmojiList(params: SetStickerEmojiListParams): Promise<true>;
608
+ setStickerKeywords(params: SetStickerKeywordsParams): Promise<true>;
609
+ setStickerMaskPosition(params: SetStickerMaskPositionParams): Promise<true>;
610
+ setStickerPositionInSet(params: SetStickerPositionInSetParams): Promise<true>;
611
+ setStickerSetThumbnail(params: SetStickerSetThumbnailParams): Promise<true>;
612
+ setStickerSetTitle(params: SetStickerSetTitleParams): Promise<true>;
613
+ setUserEmojiStatus(params: SetUserEmojiStatusParams): Promise<true>;
614
+ setWebhook(params: SetWebhookParams): Promise<true>;
615
+ stopMessageLiveLocation(params?: StopMessageLiveLocationParams): Promise<Message | true>;
616
+ stopPoll(params: StopPollParams): Promise<Poll>;
617
+ transferBusinessAccountStars(params: TransferBusinessAccountStarsParams): Promise<true>;
618
+ transferGift(params: TransferGiftParams): Promise<true>;
619
+ unbanChatMember(params: UnbanChatMemberParams): Promise<true>;
620
+ unbanChatSenderChat(params: UnbanChatSenderChatParams): Promise<true>;
621
+ unhideGeneralForumTopic(params: UnhideGeneralForumTopicParams): Promise<true>;
622
+ unpinAllChatMessages(params: UnpinAllChatMessagesParams): Promise<true>;
623
+ unpinAllForumTopicMessages(params: UnpinAllForumTopicMessagesParams): Promise<true>;
624
+ unpinAllGeneralForumTopicMessages(params: UnpinAllGeneralForumTopicMessagesParams): Promise<true>;
625
+ unpinChatMessage(params: UnpinChatMessageParams): Promise<true>;
626
+ upgradeGift(params: UpgradeGiftParams): Promise<true>;
627
+ uploadStickerFile(params: UploadStickerFileParams): Promise<File>;
628
+ verifyChat(params: VerifyChatParams): Promise<true>;
629
+ verifyUser(params: VerifyUserParams): Promise<true>;
630
+ keepAlive: boolean;
631
+ timeout: number;
632
+ transport: ApiTransport | null;
633
+ }