@effect-ak/tg-bot-client 0.5.4 → 0.6.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.
- package/dist/bot.d.ts +111 -0
- package/dist/bot.js +1 -0
- package/dist/bot.mjs +1 -0
- package/dist/config-BZUAEyeb.d.ts +3070 -0
- package/dist/index.d.ts +37 -3555
- package/dist/index.js +1 -22
- package/dist/index.mjs +1 -22
- package/dist/webapp.d.ts +391 -0
- package/dist/webapp.js +1 -0
- package/dist/webapp.mjs +0 -0
- package/package.json +18 -5
- package/readme.md +28 -19
package/dist/index.d.ts
CHANGED
|
@@ -1,3570 +1,52 @@
|
|
|
1
|
-
import * as effect_Cause from 'effect/Cause';
|
|
2
|
-
import * as effect_Types from 'effect/Types';
|
|
3
|
-
import * as Data from 'effect/Data';
|
|
4
1
|
import * as Micro from 'effect/Micro';
|
|
5
|
-
import
|
|
2
|
+
import { A as Api, T as TgBotClientError, a as TgBotApiToken, U as Update } from './config-BZUAEyeb.js';
|
|
3
|
+
export { bF as AcceptedGiftTypes, c as AddStickerToSetInput, bG as AffiliateInfo, bE as AllowedUpdateName, bH as Animation, d as AnswerCallbackQueryInput, e as AnswerInlineQueryInput, f as AnswerPreCheckoutQueryInput, g as AnswerShippingQueryInput, h as AnswerWebAppQueryInput, i as ApproveChatJoinRequestInput, bI as Audio, bJ as BackgroundFill, bK as BackgroundFillFreeformGradient, bL as BackgroundFillGradient, bM as BackgroundFillSolid, bN as BackgroundType, bO as BackgroundTypeChatTheme, bP as BackgroundTypeFill, bQ as BackgroundTypePattern, bR as BackgroundTypeWallpaper, B as BanChatMemberInput, j as BanChatSenderChatInput, bS as Birthdate, bT as BotCommand, bU as BotCommandScope, bV as BotCommandScopeAllChatAdministrators, bW as BotCommandScopeAllGroupChats, bX as BotCommandScopeAllPrivateChats, bY as BotCommandScopeChat, bZ as BotCommandScopeChatAdministrators, b_ as BotCommandScopeChatMember, b$ as BotCommandScopeDefault, c0 as BotDescription, c1 as BotName, c2 as BotShortDescription, c3 as BusinessBotRights, c4 as BusinessConnection, c5 as BusinessIntro, c6 as BusinessLocation, c7 as BusinessMessagesDeleted, c8 as BusinessOpeningHours, c9 as BusinessOpeningHoursInterval, ca as CallbackGame, cb as CallbackQuery, cc as Chat, cd as ChatAdministratorRights, ce as ChatBackground, cf as ChatBoost, cg as ChatBoostAdded, ch as ChatBoostRemoved, ci as ChatBoostSource, cj as ChatBoostSourceGiftCode, ck as ChatBoostSourceGiveaway, cl as ChatBoostSourcePremium, cm as ChatBoostUpdated, cn as ChatFullInfo, co as ChatInviteLink, cp as ChatJoinRequest, cq as ChatLocation, cr as ChatMember, cs as ChatMemberAdministrator, ct as ChatMemberBanned, cu as ChatMemberLeft, cv as ChatMemberMember, cw as ChatMemberOwner, cx as ChatMemberRestricted, cy as ChatMemberUpdated, cz as ChatPermissions, cA as ChatPhoto, cB as ChatShared, cC as ChosenInlineResult, k as CloseForumTopicInput, l as CloseGeneralForumTopicInput, C as CloseInput, cD as Contact, m as ConvertGiftToStarsInput, n as CopyMessageInput, o as CopyMessagesInput, cE as CopyTextButton, p as CreateChatInviteLinkInput, q as CreateChatSubscriptionInviteLinkInput, r as CreateForumTopicInput, s as CreateInvoiceLinkInput, t as CreateNewStickerSetInput, D as DeclineChatJoinRequestInput, u as DeleteBusinessMessagesInput, v as DeleteChatPhotoInput, w as DeleteChatStickerSetInput, x as DeleteForumTopicInput, y as DeleteMessageInput, z as DeleteMessagesInput, E as DeleteMyCommandsInput, F as DeleteStickerFromSetInput, G as DeleteStickerSetInput, H as DeleteStoryInput, I as DeleteWebhookInput, cF as Dice, cG as Document, J as EditChatInviteLinkInput, K as EditChatSubscriptionInviteLinkInput, L as EditForumTopicInput, M as EditGeneralForumTopicInput, N as EditMessageCaptionInput, O as EditMessageLiveLocationInput, P as EditMessageMediaInput, Q as EditMessageReplyMarkupInput, R as EditMessageTextInput, S as EditStoryInput, V as EditUserStarSubscriptionInput, cH as EncryptedCredentials, cI as EncryptedPassportElement, W as ExportChatInviteLinkInput, cJ as ExternalReplyInfo, cK as File, cL as ForceReply, cM as ForumTopic, cN as ForumTopicClosed, cO as ForumTopicCreated, cP as ForumTopicEdited, cQ as ForumTopicReopened, X as ForwardMessageInput, Y as ForwardMessagesInput, cR as Game, cS as GameHighScore, cT as GeneralForumTopicHidden, cU as GeneralForumTopicUnhidden, Z as GetAvailableGiftsInput, _ as GetBusinessAccountGiftsInput, $ as GetBusinessAccountStarBalanceInput, a0 as GetBusinessConnectionInput, a2 as GetChatAdministratorsInput, a1 as GetChatInput, a4 as GetChatMemberCountInput, a3 as GetChatMemberInput, a5 as GetChatMenuButtonInput, a6 as GetCustomEmojiStickersInput, a7 as GetFileInput, a8 as GetForumTopicIconStickersInput, a9 as GetGameHighScoresInput, aa as GetMeInput, ab as GetMyCommandsInput, ac as GetMyDefaultAdministratorRightsInput, ad as GetMyDescriptionInput, ae as GetMyNameInput, af as GetMyShortDescriptionInput, ag as GetStarTransactionsInput, ah as GetStickerSetInput, ai as GetUpdatesInput, aj as GetUserChatBoostsInput, ak as GetUserProfilePhotosInput, al as GetWebhookInfoInput, cV as Gift, cW as GiftInfo, am as GiftPremiumSubscriptionInput, cX as Gifts, cY as Giveaway, cZ as GiveawayCompleted, c_ as GiveawayCreated, c$ as GiveawayWinners, an as HideGeneralForumTopicInput, d0 as InaccessibleMessage, d1 as InlineKeyboardButton, d2 as InlineKeyboardMarkup, d3 as InlineQuery, d4 as InlineQueryResult, d5 as InlineQueryResultArticle, d6 as InlineQueryResultAudio, d7 as InlineQueryResultCachedAudio, d8 as InlineQueryResultCachedDocument, d9 as InlineQueryResultCachedGif, da as InlineQueryResultCachedMpeg4Gif, db as InlineQueryResultCachedPhoto, dc as InlineQueryResultCachedSticker, dd as InlineQueryResultCachedVideo, de as InlineQueryResultCachedVoice, df as InlineQueryResultContact, dg as InlineQueryResultDocument, dh as InlineQueryResultGame, di as InlineQueryResultGif, dj as InlineQueryResultLocation, dk as InlineQueryResultMpeg4Gif, dl as InlineQueryResultPhoto, dn as InlineQueryResultVenue, dp as InlineQueryResultVideo, dq as InlineQueryResultVoice, dm as InlineQueryResultsButton, dr as InputContactMessageContent, ds as InputFile, dt as InputInvoiceMessageContent, du as InputLocationMessageContent, dv as InputMedia, dw as InputMediaAnimation, dx as InputMediaAudio, dy as InputMediaDocument, dz as InputMediaPhoto, dA as InputMediaVideo, dB as InputMessageContent, dC as InputPaidMedia, dD as InputPaidMediaPhoto, dE as InputPaidMediaVideo, dF as InputPollOption, dG as InputProfilePhoto, dH as InputProfilePhotoAnimated, dI as InputProfilePhotoStatic, dJ as InputSticker, dK as InputStoryContent, dL as InputStoryContentPhoto, dM as InputStoryContentVideo, dN as InputTextMessageContent, dO as InputVenueMessageContent, dP as Invoice, dQ as KeyboardButton, dR as KeyboardButtonPollType, dS as KeyboardButtonRequestChat, dT as KeyboardButtonRequestUsers, dU as LabeledPrice, ao as LeaveChatInput, dV as LinkPreviewOptions, dW as Location, dX as LocationAddress, ap as LogOutInput, dY as LoginUrl, dZ as MaskPosition, d_ as MaybeInaccessibleMessage, d$ as MenuButton, e0 as MenuButtonCommands, e1 as MenuButtonDefault, e2 as MenuButtonWebApp, e3 as Message, e4 as MessageAutoDeleteTimerChanged, e5 as MessageEntity, e6 as MessageId, e7 as MessageOrigin, e8 as MessageOriginChannel, e9 as MessageOriginChat, ea as MessageOriginHiddenUser, eb as MessageOriginUser, ec as MessageReactionCountUpdated, ed as MessageReactionUpdated, ee as OrderInfo, ef as OwnedGift, eg as OwnedGiftRegular, ei as OwnedGiftUnique, eh as OwnedGifts, ej as PaidMedia, ek as PaidMediaInfo, el as PaidMediaPhoto, em as PaidMediaPreview, en as PaidMediaPurchased, eo as PaidMediaVideo, ep as PaidMessagePriceChanged, eq as PassportData, er as PassportElementError, es as PassportElementErrorDataField, et as PassportElementErrorFile, eu as PassportElementErrorFiles, ev as PassportElementErrorFrontSide, ew as PassportElementErrorReverseSide, ex as PassportElementErrorSelfie, ey as PassportElementErrorTranslationFile, ez as PassportElementErrorTranslationFiles, eA as PassportElementErrorUnspecified, eB as PassportFile, eC as PhotoSize, aq as PinChatMessageInput, eD as Poll, eE as PollAnswer, eF as PollOption, ar as PostStoryInput, eG as PreCheckoutQuery, eH as PreparedInlineMessage, as as PromoteChatMemberInput, eI as ProximityAlertTriggered, eJ as ReactionCount, eK as ReactionType, eL as ReactionTypeCustomEmoji, eM as ReactionTypeEmoji, eN as ReactionTypePaid, at as ReadBusinessMessageInput, au as RefundStarPaymentInput, eO as RefundedPayment, av as RemoveBusinessAccountProfilePhotoInput, aw as RemoveChatVerificationInput, ax as RemoveUserVerificationInput, ay as ReopenForumTopicInput, az as ReopenGeneralForumTopicInput, aA as ReplaceStickerInSetInput, eP as ReplyKeyboardMarkup, eQ as ReplyKeyboardRemove, eR as ReplyParameters, eS as ResponseParameters, aB as RestrictChatMemberInput, eT as RevenueWithdrawalState, eU as RevenueWithdrawalStateFailed, eV as RevenueWithdrawalStatePending, eW as RevenueWithdrawalStateSucceeded, aC as RevokeChatInviteLinkInput, aD as SavePreparedInlineMessageInput, aE as SendAnimationInput, aF as SendAudioInput, aG as SendChatActionInput, aH as SendContactInput, aI as SendDiceInput, aJ as SendDocumentInput, aK as SendGameInput, aL as SendGiftInput, aM as SendInvoiceInput, aN as SendLocationInput, aO as SendMediaGroupInput, aP as SendMessageInput, aQ as SendPaidMediaInput, aR as SendPhotoInput, aS as SendPollInput, aT as SendStickerInput, aU as SendVenueInput, aV as SendVideoInput, aW as SendVideoNoteInput, aX as SendVoiceInput, eX as SentWebAppMessage, aY as SetBusinessAccountBioInput, aZ as SetBusinessAccountGiftSettingsInput, a_ as SetBusinessAccountNameInput, a$ as SetBusinessAccountProfilePhotoInput, b0 as SetBusinessAccountUsernameInput, b1 as SetChatAdministratorCustomTitleInput, b2 as SetChatDescriptionInput, b3 as SetChatMenuButtonInput, b4 as SetChatPermissionsInput, b5 as SetChatPhotoInput, b6 as SetChatStickerSetInput, b7 as SetChatTitleInput, b8 as SetCustomEmojiStickerSetThumbnailInput, b9 as SetGameScoreInput, ba as SetMessageReactionInput, bb as SetMyCommandsInput, bc as SetMyDefaultAdministratorRightsInput, bd as SetMyDescriptionInput, be as SetMyNameInput, bf as SetMyShortDescriptionInput, bg as SetPassportDataErrorsInput, bh as SetStickerEmojiListInput, bi as SetStickerKeywordsInput, bj as SetStickerMaskPositionInput, bk as SetStickerPositionInSetInput, bl as SetStickerSetThumbnailInput, bm as SetStickerSetTitleInput, bn as SetUserEmojiStatusInput, bo as SetWebhookInput, eY as SharedUser, eZ as ShippingAddress, e_ as ShippingOption, e$ as ShippingQuery, f0 as StarAmount, f1 as StarTransaction, f2 as StarTransactions, f3 as Sticker, f4 as StickerSet, bp as StopMessageLiveLocationInput, bq as StopPollInput, f5 as Story, f6 as StoryArea, f7 as StoryAreaPosition, f8 as StoryAreaType, f9 as StoryAreaTypeLink, fa as StoryAreaTypeLocation, fb as StoryAreaTypeSuggestedReaction, fc as StoryAreaTypeUniqueGift, fd as StoryAreaTypeWeather, fe as SuccessfulPayment, ff as SwitchInlineQueryChosenChat, fg as TextQuote, b as TgBotApiBaseUrl, fh as TransactionPartner, fi as TransactionPartnerAffiliateProgram, fj as TransactionPartnerChat, fk as TransactionPartnerFragment, fl as TransactionPartnerOther, fm as TransactionPartnerTelegramAds, fn as TransactionPartnerTelegramApi, fo as TransactionPartnerUser, br as TransferBusinessAccountStarsInput, bs as TransferGiftInput, bt as UnbanChatMemberInput, bu as UnbanChatSenderChatInput, bv as UnhideGeneralForumTopicInput, fp as UniqueGift, fq as UniqueGiftBackdrop, fr as UniqueGiftBackdropColors, fs as UniqueGiftInfo, ft as UniqueGiftModel, fu as UniqueGiftSymbol, bw as UnpinAllChatMessagesInput, bx as UnpinAllForumTopicMessagesInput, by as UnpinAllGeneralForumTopicMessagesInput, bz as UnpinChatMessageInput, bA as UpgradeGiftInput, bB as UploadStickerFileInput, fv as User, fw as UserChatBoosts, fx as UserProfilePhotos, fy as UsersShared, fz as Venue, bC as VerifyChatInput, bD as VerifyUserInput, fA as Video, fB as VideoChatEnded, fC as VideoChatParticipantsInvited, fD as VideoChatScheduled, fE as VideoChatStarted, fF as VideoNote, fG as Voice, fH as WebAppData, fI as WebAppInfo, fJ as WebhookInfo, fK as WriteAccessAllowed } from './config-BZUAEyeb.js';
|
|
4
|
+
import 'effect/Cause';
|
|
5
|
+
import 'effect/Types';
|
|
6
|
+
import 'effect/Context';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
bot_token: string;
|
|
9
|
-
base_url?: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
declare const TgBotClientConfig_base: Context.TagClass<TgBotClientConfig, "TgBotClientConfig", Required<TgBotClientSettingsInput>>;
|
|
13
|
-
declare class TgBotClientConfig extends TgBotClientConfig_base {
|
|
14
|
-
}
|
|
8
|
+
declare const executeTgBotMethod: <M extends keyof Api>(method: M, input: Parameters<Api[M]>[0]) => Micro.Micro<ReturnType<Api[M]>, TgBotClientError, TgBotApiToken>;
|
|
15
9
|
|
|
16
|
-
type
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
cause: unknown;
|
|
32
|
-
}>;
|
|
33
|
-
declare const TgBotClientError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
34
|
-
readonly _tag: "TgBotClientError";
|
|
35
|
-
} & Readonly<A>;
|
|
36
|
-
declare class TgBotClientError extends TgBotClientError_base<{
|
|
37
|
-
reason: ErrorReason;
|
|
38
|
-
}> {
|
|
39
|
-
static readonly missingSuccess: TgBotClientError;
|
|
40
|
-
}
|
|
10
|
+
type GetFile = {
|
|
11
|
+
fileId: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const getFile: ({ fileId, type }: GetFile) => Micro.Micro<File, TgBotClientError, TgBotApiToken>;
|
|
15
|
+
declare const getFileAsBase64String: ({ fileId, type, }: GetFile & {
|
|
16
|
+
type: string;
|
|
17
|
+
}) => Micro.Micro<{
|
|
18
|
+
encoded: string;
|
|
19
|
+
file_name: string;
|
|
20
|
+
}, TgBotClientError, TgBotApiToken>;
|
|
21
|
+
declare const getFileBytes: (fileId: string) => Micro.Micro<{
|
|
22
|
+
content: ArrayBuffer;
|
|
23
|
+
file_name: string;
|
|
24
|
+
}, TgBotClientError, TgBotApiToken>;
|
|
41
25
|
|
|
42
|
-
|
|
43
|
-
readonly
|
|
44
|
-
|
|
45
|
-
declare class FetchUpdatesError extends FetchUpdatesError_base<{
|
|
46
|
-
name: "TooManyEmptyResponses" | "NoUpdatesToCommit";
|
|
47
|
-
}> {
|
|
26
|
+
interface TgBotClient {
|
|
27
|
+
readonly execute: <M extends keyof Api>(method: M, input: Parameters<Api[M]>[0]) => Promise<ReturnType<Api[M]>>;
|
|
28
|
+
readonly getFile: (input: GetFile) => Promise<File>;
|
|
48
29
|
}
|
|
30
|
+
type MakeTgClient = {
|
|
31
|
+
bot_token: string;
|
|
32
|
+
};
|
|
33
|
+
declare function makeTgBotClient(config: MakeTgClient): TgBotClient;
|
|
49
34
|
|
|
50
|
-
|
|
51
|
-
unlimited_gifts: boolean;
|
|
52
|
-
limited_gifts: boolean;
|
|
53
|
-
unique_gifts: boolean;
|
|
54
|
-
premium_subscription: boolean;
|
|
55
|
-
}
|
|
56
|
-
interface AffiliateInfo {
|
|
57
|
-
commission_per_mille: number;
|
|
58
|
-
amount: number;
|
|
59
|
-
affiliate_user?: User;
|
|
60
|
-
affiliate_chat?: Chat;
|
|
61
|
-
nanostar_amount?: number;
|
|
62
|
-
}
|
|
63
|
-
interface Animation {
|
|
64
|
-
file_id: string;
|
|
65
|
-
file_unique_id: string;
|
|
66
|
-
width: number;
|
|
67
|
-
height: number;
|
|
68
|
-
duration: number;
|
|
69
|
-
thumbnail?: PhotoSize;
|
|
70
|
-
file_name?: string;
|
|
71
|
-
mime_type?: string;
|
|
72
|
-
file_size?: number;
|
|
73
|
-
}
|
|
74
|
-
interface Audio {
|
|
75
|
-
file_id: string;
|
|
76
|
-
file_unique_id: string;
|
|
77
|
-
duration: number;
|
|
78
|
-
performer?: string;
|
|
79
|
-
title?: string;
|
|
80
|
-
file_name?: string;
|
|
81
|
-
mime_type?: string;
|
|
82
|
-
file_size?: number;
|
|
83
|
-
thumbnail?: PhotoSize;
|
|
84
|
-
}
|
|
85
|
-
type BackgroundFill = BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient;
|
|
86
|
-
interface BackgroundFillFreeformGradient {
|
|
87
|
-
type: "freeform_gradient";
|
|
88
|
-
colors: number[];
|
|
89
|
-
}
|
|
90
|
-
interface BackgroundFillGradient {
|
|
91
|
-
type: "gradient";
|
|
92
|
-
top_color: number;
|
|
93
|
-
bottom_color: number;
|
|
94
|
-
rotation_angle: number;
|
|
95
|
-
}
|
|
96
|
-
interface BackgroundFillSolid {
|
|
97
|
-
type: "solid";
|
|
98
|
-
color: number;
|
|
99
|
-
}
|
|
100
|
-
type BackgroundType = BackgroundTypeFill | BackgroundTypeWallpaper | BackgroundTypePattern | BackgroundTypeChatTheme;
|
|
101
|
-
interface BackgroundTypeChatTheme {
|
|
102
|
-
type: "chat_theme";
|
|
103
|
-
theme_name: string;
|
|
104
|
-
}
|
|
105
|
-
interface BackgroundTypeFill {
|
|
106
|
-
type: "fill";
|
|
107
|
-
fill: BackgroundFill;
|
|
108
|
-
dark_theme_dimming: number;
|
|
109
|
-
}
|
|
110
|
-
interface BackgroundTypePattern {
|
|
111
|
-
type: "pattern";
|
|
112
|
-
document: Document;
|
|
113
|
-
fill: BackgroundFill;
|
|
114
|
-
intensity: number;
|
|
115
|
-
is_inverted?: boolean;
|
|
116
|
-
is_moving?: boolean;
|
|
117
|
-
}
|
|
118
|
-
interface BackgroundTypeWallpaper {
|
|
119
|
-
type: "wallpaper";
|
|
120
|
-
document: Document;
|
|
121
|
-
dark_theme_dimming: number;
|
|
122
|
-
is_blurred?: boolean;
|
|
123
|
-
is_moving?: boolean;
|
|
124
|
-
}
|
|
125
|
-
interface Birthdate {
|
|
126
|
-
day: number;
|
|
127
|
-
month: number;
|
|
128
|
-
year?: number;
|
|
129
|
-
}
|
|
130
|
-
interface BotCommand {
|
|
131
|
-
command: string;
|
|
132
|
-
description: string;
|
|
133
|
-
}
|
|
134
|
-
type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
|
|
135
|
-
interface BotCommandScopeAllChatAdministrators {
|
|
136
|
-
type: "all_chat_administrators";
|
|
137
|
-
}
|
|
138
|
-
interface BotCommandScopeAllGroupChats {
|
|
139
|
-
type: "all_group_chats";
|
|
140
|
-
}
|
|
141
|
-
interface BotCommandScopeAllPrivateChats {
|
|
142
|
-
type: "all_private_chats";
|
|
143
|
-
}
|
|
144
|
-
interface BotCommandScopeChat {
|
|
145
|
-
type: "chat";
|
|
146
|
-
chat_id: number | string;
|
|
147
|
-
}
|
|
148
|
-
interface BotCommandScopeChatAdministrators {
|
|
149
|
-
type: "chat_administrators";
|
|
150
|
-
chat_id: number | string;
|
|
151
|
-
}
|
|
152
|
-
interface BotCommandScopeChatMember {
|
|
153
|
-
type: "chat_member";
|
|
154
|
-
chat_id: number | string;
|
|
155
|
-
user_id: number;
|
|
156
|
-
}
|
|
157
|
-
interface BotCommandScopeDefault {
|
|
158
|
-
type: "default";
|
|
159
|
-
}
|
|
160
|
-
interface BotDescription {
|
|
161
|
-
description: string;
|
|
162
|
-
}
|
|
163
|
-
interface BotName {
|
|
164
|
-
name: string;
|
|
165
|
-
}
|
|
166
|
-
interface BotShortDescription {
|
|
167
|
-
short_description: string;
|
|
168
|
-
}
|
|
169
|
-
interface BusinessBotRights {
|
|
170
|
-
can_reply?: boolean;
|
|
171
|
-
can_read_messages?: boolean;
|
|
172
|
-
can_delete_outgoing_messages?: boolean;
|
|
173
|
-
can_delete_all_messages?: boolean;
|
|
174
|
-
can_edit_name?: boolean;
|
|
175
|
-
can_edit_bio?: boolean;
|
|
176
|
-
can_edit_profile_photo?: boolean;
|
|
177
|
-
can_edit_username?: boolean;
|
|
178
|
-
can_change_gift_settings?: boolean;
|
|
179
|
-
can_view_gifts_and_stars?: boolean;
|
|
180
|
-
can_convert_gifts_to_stars?: boolean;
|
|
181
|
-
can_transfer_and_upgrade_gifts?: boolean;
|
|
182
|
-
can_transfer_stars?: boolean;
|
|
183
|
-
can_manage_stories?: boolean;
|
|
184
|
-
}
|
|
185
|
-
interface BusinessConnection {
|
|
186
|
-
id: string;
|
|
187
|
-
user: User;
|
|
188
|
-
user_chat_id: number;
|
|
189
|
-
date: number;
|
|
190
|
-
is_enabled: boolean;
|
|
191
|
-
rights?: BusinessBotRights;
|
|
192
|
-
}
|
|
193
|
-
interface BusinessIntro {
|
|
194
|
-
title?: string;
|
|
195
|
-
message?: string;
|
|
196
|
-
sticker?: Sticker;
|
|
197
|
-
}
|
|
198
|
-
interface BusinessLocation {
|
|
199
|
-
address: string;
|
|
200
|
-
location?: Location;
|
|
201
|
-
}
|
|
202
|
-
interface BusinessMessagesDeleted {
|
|
203
|
-
business_connection_id: string;
|
|
204
|
-
chat: Chat;
|
|
205
|
-
message_ids: number[];
|
|
206
|
-
}
|
|
207
|
-
interface BusinessOpeningHours {
|
|
208
|
-
time_zone_name: string;
|
|
209
|
-
opening_hours: BusinessOpeningHoursInterval[];
|
|
210
|
-
}
|
|
211
|
-
interface BusinessOpeningHoursInterval {
|
|
212
|
-
opening_minute: number;
|
|
213
|
-
closing_minute: number;
|
|
214
|
-
}
|
|
215
|
-
type CallbackGame = never;
|
|
216
|
-
interface CallbackQuery {
|
|
217
|
-
id: string;
|
|
218
|
-
from: User;
|
|
219
|
-
chat_instance: string;
|
|
220
|
-
message?: MaybeInaccessibleMessage;
|
|
221
|
-
inline_message_id?: string;
|
|
222
|
-
data?: string;
|
|
223
|
-
game_short_name?: string;
|
|
224
|
-
}
|
|
225
|
-
interface Chat {
|
|
226
|
-
id: number;
|
|
227
|
-
type: "private" | "group" | "supergroup" | "channel";
|
|
228
|
-
title?: string;
|
|
229
|
-
username?: string;
|
|
230
|
-
first_name?: string;
|
|
231
|
-
last_name?: string;
|
|
232
|
-
is_forum?: boolean;
|
|
233
|
-
}
|
|
234
|
-
interface ChatAdministratorRights {
|
|
235
|
-
is_anonymous: boolean;
|
|
236
|
-
can_manage_chat: boolean;
|
|
237
|
-
can_delete_messages: boolean;
|
|
238
|
-
can_manage_video_chats: boolean;
|
|
239
|
-
can_restrict_members: boolean;
|
|
240
|
-
can_promote_members: boolean;
|
|
241
|
-
can_change_info: boolean;
|
|
242
|
-
can_invite_users: boolean;
|
|
243
|
-
can_post_stories: boolean;
|
|
244
|
-
can_edit_stories: boolean;
|
|
245
|
-
can_delete_stories: boolean;
|
|
246
|
-
can_post_messages?: boolean;
|
|
247
|
-
can_edit_messages?: boolean;
|
|
248
|
-
can_pin_messages?: boolean;
|
|
249
|
-
can_manage_topics?: boolean;
|
|
250
|
-
}
|
|
251
|
-
interface ChatBackground {
|
|
252
|
-
type: BackgroundType;
|
|
253
|
-
}
|
|
254
|
-
interface ChatBoost {
|
|
255
|
-
boost_id: string;
|
|
256
|
-
add_date: number;
|
|
257
|
-
expiration_date: number;
|
|
258
|
-
source: ChatBoostSource;
|
|
259
|
-
}
|
|
260
|
-
interface ChatBoostAdded {
|
|
261
|
-
boost_count: number;
|
|
262
|
-
}
|
|
263
|
-
interface ChatBoostRemoved {
|
|
264
|
-
chat: Chat;
|
|
265
|
-
boost_id: string;
|
|
266
|
-
remove_date: number;
|
|
267
|
-
source: ChatBoostSource;
|
|
268
|
-
}
|
|
269
|
-
type ChatBoostSource = ChatBoostSourcePremium | ChatBoostSourceGiftCode | ChatBoostSourceGiveaway;
|
|
270
|
-
interface ChatBoostSourceGiftCode {
|
|
271
|
-
source: "gift_code";
|
|
272
|
-
user: User;
|
|
273
|
-
}
|
|
274
|
-
interface ChatBoostSourceGiveaway {
|
|
275
|
-
source: "giveaway";
|
|
276
|
-
giveaway_message_id: number;
|
|
277
|
-
user?: User;
|
|
278
|
-
prize_star_count?: number;
|
|
279
|
-
is_unclaimed?: boolean;
|
|
280
|
-
}
|
|
281
|
-
interface ChatBoostSourcePremium {
|
|
282
|
-
source: "premium";
|
|
283
|
-
user: User;
|
|
284
|
-
}
|
|
285
|
-
interface ChatBoostUpdated {
|
|
286
|
-
chat: Chat;
|
|
287
|
-
boost: ChatBoost;
|
|
288
|
-
}
|
|
289
|
-
interface ChatFullInfo {
|
|
290
|
-
id: number;
|
|
291
|
-
type: "private" | "group" | "supergroup" | "channel";
|
|
292
|
-
accent_color_id: number;
|
|
293
|
-
max_reaction_count: number;
|
|
294
|
-
accepted_gift_types: AcceptedGiftTypes;
|
|
295
|
-
title?: string;
|
|
296
|
-
username?: string;
|
|
297
|
-
first_name?: string;
|
|
298
|
-
last_name?: string;
|
|
299
|
-
is_forum?: boolean;
|
|
300
|
-
photo?: ChatPhoto;
|
|
301
|
-
active_usernames?: string[];
|
|
302
|
-
birthdate?: Birthdate;
|
|
303
|
-
business_intro?: BusinessIntro;
|
|
304
|
-
business_location?: BusinessLocation;
|
|
305
|
-
business_opening_hours?: BusinessOpeningHours;
|
|
306
|
-
personal_chat?: Chat;
|
|
307
|
-
available_reactions?: ReactionType[];
|
|
308
|
-
background_custom_emoji_id?: string;
|
|
309
|
-
profile_accent_color_id?: number;
|
|
310
|
-
profile_background_custom_emoji_id?: string;
|
|
311
|
-
emoji_status_custom_emoji_id?: string;
|
|
312
|
-
emoji_status_expiration_date?: number;
|
|
313
|
-
bio?: string;
|
|
314
|
-
has_private_forwards?: boolean;
|
|
315
|
-
has_restricted_voice_and_video_messages?: boolean;
|
|
316
|
-
join_to_send_messages?: boolean;
|
|
317
|
-
join_by_request?: boolean;
|
|
318
|
-
description?: string;
|
|
319
|
-
invite_link?: string;
|
|
320
|
-
pinned_message?: Message;
|
|
321
|
-
permissions?: ChatPermissions;
|
|
322
|
-
can_send_paid_media?: boolean;
|
|
323
|
-
slow_mode_delay?: number;
|
|
324
|
-
unrestrict_boost_count?: number;
|
|
325
|
-
message_auto_delete_time?: number;
|
|
326
|
-
has_aggressive_anti_spam_enabled?: boolean;
|
|
327
|
-
has_hidden_members?: boolean;
|
|
328
|
-
has_protected_content?: boolean;
|
|
329
|
-
has_visible_history?: boolean;
|
|
330
|
-
sticker_set_name?: string;
|
|
331
|
-
can_set_sticker_set?: boolean;
|
|
332
|
-
custom_emoji_sticker_set_name?: string;
|
|
333
|
-
linked_chat_id?: number;
|
|
334
|
-
location?: ChatLocation;
|
|
335
|
-
}
|
|
336
|
-
interface ChatInviteLink {
|
|
337
|
-
invite_link: string;
|
|
338
|
-
creator: User;
|
|
339
|
-
creates_join_request: boolean;
|
|
340
|
-
is_primary: boolean;
|
|
341
|
-
is_revoked: boolean;
|
|
342
|
-
name?: string;
|
|
343
|
-
expire_date?: number;
|
|
344
|
-
member_limit?: number;
|
|
345
|
-
pending_join_request_count?: number;
|
|
346
|
-
subscription_period?: number;
|
|
347
|
-
subscription_price?: number;
|
|
348
|
-
}
|
|
349
|
-
interface ChatJoinRequest {
|
|
350
|
-
chat: Chat;
|
|
351
|
-
from: User;
|
|
352
|
-
user_chat_id: number;
|
|
353
|
-
date: number;
|
|
354
|
-
bio?: string;
|
|
355
|
-
invite_link?: ChatInviteLink;
|
|
356
|
-
}
|
|
357
|
-
interface ChatLocation {
|
|
358
|
-
location: Location;
|
|
359
|
-
address: string;
|
|
360
|
-
}
|
|
361
|
-
type ChatMember = ChatMemberOwner | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned;
|
|
362
|
-
interface ChatMemberAdministrator {
|
|
363
|
-
status: "administrator";
|
|
364
|
-
user: User;
|
|
365
|
-
can_be_edited: boolean;
|
|
366
|
-
is_anonymous: boolean;
|
|
367
|
-
can_manage_chat: boolean;
|
|
368
|
-
can_delete_messages: boolean;
|
|
369
|
-
can_manage_video_chats: boolean;
|
|
370
|
-
can_restrict_members: boolean;
|
|
371
|
-
can_promote_members: boolean;
|
|
372
|
-
can_change_info: boolean;
|
|
373
|
-
can_invite_users: boolean;
|
|
374
|
-
can_post_stories: boolean;
|
|
375
|
-
can_edit_stories: boolean;
|
|
376
|
-
can_delete_stories: boolean;
|
|
377
|
-
can_post_messages?: boolean;
|
|
378
|
-
can_edit_messages?: boolean;
|
|
379
|
-
can_pin_messages?: boolean;
|
|
380
|
-
can_manage_topics?: boolean;
|
|
381
|
-
custom_title?: string;
|
|
382
|
-
}
|
|
383
|
-
interface ChatMemberBanned {
|
|
384
|
-
status: "kicked";
|
|
385
|
-
user: User;
|
|
386
|
-
until_date: number;
|
|
387
|
-
}
|
|
388
|
-
interface ChatMemberLeft {
|
|
389
|
-
status: "left";
|
|
390
|
-
user: User;
|
|
391
|
-
}
|
|
392
|
-
interface ChatMemberMember {
|
|
393
|
-
status: "member";
|
|
394
|
-
user: User;
|
|
395
|
-
until_date?: number;
|
|
396
|
-
}
|
|
397
|
-
interface ChatMemberOwner {
|
|
398
|
-
status: "creator";
|
|
399
|
-
user: User;
|
|
400
|
-
is_anonymous: boolean;
|
|
401
|
-
custom_title?: string;
|
|
402
|
-
}
|
|
403
|
-
interface ChatMemberRestricted {
|
|
404
|
-
status: "restricted";
|
|
405
|
-
user: User;
|
|
406
|
-
is_member: boolean;
|
|
407
|
-
can_send_messages: boolean;
|
|
408
|
-
can_send_audios: boolean;
|
|
409
|
-
can_send_documents: boolean;
|
|
410
|
-
can_send_photos: boolean;
|
|
411
|
-
can_send_videos: boolean;
|
|
412
|
-
can_send_video_notes: boolean;
|
|
413
|
-
can_send_voice_notes: boolean;
|
|
414
|
-
can_send_polls: boolean;
|
|
415
|
-
can_send_other_messages: boolean;
|
|
416
|
-
can_add_web_page_previews: boolean;
|
|
417
|
-
can_change_info: boolean;
|
|
418
|
-
can_invite_users: boolean;
|
|
419
|
-
can_pin_messages: boolean;
|
|
420
|
-
can_manage_topics: boolean;
|
|
421
|
-
until_date: number;
|
|
422
|
-
}
|
|
423
|
-
interface ChatMemberUpdated {
|
|
424
|
-
chat: Chat;
|
|
425
|
-
from: User;
|
|
426
|
-
date: number;
|
|
427
|
-
old_chat_member: ChatMember;
|
|
428
|
-
new_chat_member: ChatMember;
|
|
429
|
-
invite_link?: ChatInviteLink;
|
|
430
|
-
via_join_request?: boolean;
|
|
431
|
-
via_chat_folder_invite_link?: boolean;
|
|
432
|
-
}
|
|
433
|
-
interface ChatPermissions {
|
|
434
|
-
can_send_messages?: boolean;
|
|
435
|
-
can_send_audios?: boolean;
|
|
436
|
-
can_send_documents?: boolean;
|
|
437
|
-
can_send_photos?: boolean;
|
|
438
|
-
can_send_videos?: boolean;
|
|
439
|
-
can_send_video_notes?: boolean;
|
|
440
|
-
can_send_voice_notes?: boolean;
|
|
441
|
-
can_send_polls?: boolean;
|
|
442
|
-
can_send_other_messages?: boolean;
|
|
443
|
-
can_add_web_page_previews?: boolean;
|
|
444
|
-
can_change_info?: boolean;
|
|
445
|
-
can_invite_users?: boolean;
|
|
446
|
-
can_pin_messages?: boolean;
|
|
447
|
-
can_manage_topics?: boolean;
|
|
448
|
-
}
|
|
449
|
-
interface ChatPhoto {
|
|
450
|
-
small_file_id: string;
|
|
451
|
-
small_file_unique_id: string;
|
|
452
|
-
big_file_id: string;
|
|
453
|
-
big_file_unique_id: string;
|
|
454
|
-
}
|
|
455
|
-
interface ChatShared {
|
|
456
|
-
request_id: number;
|
|
457
|
-
chat_id: number;
|
|
458
|
-
title?: string;
|
|
459
|
-
username?: string;
|
|
460
|
-
photo?: PhotoSize[];
|
|
461
|
-
}
|
|
462
|
-
interface ChosenInlineResult {
|
|
463
|
-
result_id: string;
|
|
464
|
-
from: User;
|
|
465
|
-
query: string;
|
|
466
|
-
location?: Location;
|
|
467
|
-
inline_message_id?: string;
|
|
468
|
-
}
|
|
469
|
-
interface Contact {
|
|
470
|
-
phone_number: string;
|
|
471
|
-
first_name: string;
|
|
472
|
-
last_name?: string;
|
|
473
|
-
user_id?: number;
|
|
474
|
-
vcard?: string;
|
|
475
|
-
}
|
|
476
|
-
interface CopyTextButton {
|
|
477
|
-
text: string;
|
|
478
|
-
}
|
|
479
|
-
interface Dice {
|
|
480
|
-
emoji: string;
|
|
481
|
-
value: number;
|
|
482
|
-
}
|
|
483
|
-
interface Document {
|
|
484
|
-
file_id: string;
|
|
485
|
-
file_unique_id: string;
|
|
486
|
-
thumbnail?: PhotoSize;
|
|
487
|
-
file_name?: string;
|
|
488
|
-
mime_type?: string;
|
|
489
|
-
file_size?: number;
|
|
490
|
-
}
|
|
491
|
-
interface EncryptedCredentials {
|
|
492
|
-
data: string;
|
|
493
|
-
hash: string;
|
|
494
|
-
secret: string;
|
|
495
|
-
}
|
|
496
|
-
interface EncryptedPassportElement {
|
|
497
|
-
type: string;
|
|
498
|
-
hash: string;
|
|
499
|
-
data?: string;
|
|
500
|
-
phone_number?: string;
|
|
501
|
-
email?: string;
|
|
502
|
-
files?: PassportFile[];
|
|
503
|
-
front_side?: PassportFile;
|
|
504
|
-
reverse_side?: PassportFile;
|
|
505
|
-
selfie?: PassportFile;
|
|
506
|
-
translation?: PassportFile[];
|
|
507
|
-
}
|
|
508
|
-
interface ExternalReplyInfo {
|
|
509
|
-
origin: MessageOrigin;
|
|
510
|
-
chat?: Chat;
|
|
511
|
-
message_id?: number;
|
|
512
|
-
link_preview_options?: LinkPreviewOptions;
|
|
513
|
-
animation?: Animation;
|
|
514
|
-
audio?: Audio;
|
|
515
|
-
document?: Document;
|
|
516
|
-
paid_media?: PaidMediaInfo;
|
|
517
|
-
photo?: PhotoSize[];
|
|
518
|
-
sticker?: Sticker;
|
|
519
|
-
story?: Story;
|
|
520
|
-
video?: Video;
|
|
521
|
-
video_note?: VideoNote;
|
|
522
|
-
voice?: Voice;
|
|
523
|
-
has_media_spoiler?: boolean;
|
|
524
|
-
contact?: Contact;
|
|
525
|
-
dice?: Dice;
|
|
526
|
-
game?: Game;
|
|
527
|
-
giveaway?: Giveaway;
|
|
528
|
-
giveaway_winners?: GiveawayWinners;
|
|
529
|
-
invoice?: Invoice;
|
|
530
|
-
location?: Location;
|
|
531
|
-
poll?: Poll;
|
|
532
|
-
venue?: Venue;
|
|
533
|
-
}
|
|
534
|
-
interface File$1 {
|
|
535
|
-
file_id: string;
|
|
536
|
-
file_unique_id: string;
|
|
537
|
-
file_size?: number;
|
|
538
|
-
file_path?: string;
|
|
539
|
-
}
|
|
540
|
-
interface ForceReply {
|
|
541
|
-
force_reply: boolean;
|
|
542
|
-
input_field_placeholder?: string;
|
|
543
|
-
selective?: boolean;
|
|
544
|
-
}
|
|
545
|
-
interface ForumTopic {
|
|
546
|
-
message_thread_id: number;
|
|
547
|
-
name: string;
|
|
548
|
-
icon_color: number;
|
|
549
|
-
icon_custom_emoji_id?: string;
|
|
550
|
-
}
|
|
551
|
-
type ForumTopicClosed = never;
|
|
552
|
-
interface ForumTopicCreated {
|
|
553
|
-
name: string;
|
|
554
|
-
icon_color: number;
|
|
555
|
-
icon_custom_emoji_id?: string;
|
|
556
|
-
}
|
|
557
|
-
interface ForumTopicEdited {
|
|
558
|
-
name?: string;
|
|
559
|
-
icon_custom_emoji_id?: string;
|
|
560
|
-
}
|
|
561
|
-
type ForumTopicReopened = never;
|
|
562
|
-
interface Game {
|
|
563
|
-
title: string;
|
|
564
|
-
description: string;
|
|
565
|
-
photo: PhotoSize[];
|
|
566
|
-
text?: string;
|
|
567
|
-
text_entities?: MessageEntity[];
|
|
568
|
-
animation?: Animation;
|
|
569
|
-
}
|
|
570
|
-
interface GameHighScore {
|
|
571
|
-
position: number;
|
|
572
|
-
user: User;
|
|
573
|
-
score: number;
|
|
574
|
-
}
|
|
575
|
-
type GeneralForumTopicHidden = never;
|
|
576
|
-
type GeneralForumTopicUnhidden = never;
|
|
577
|
-
interface Gift {
|
|
578
|
-
id: string;
|
|
579
|
-
sticker: Sticker;
|
|
580
|
-
star_count: number;
|
|
581
|
-
upgrade_star_count?: number;
|
|
582
|
-
total_count?: number;
|
|
583
|
-
remaining_count?: number;
|
|
584
|
-
}
|
|
585
|
-
interface GiftInfo {
|
|
586
|
-
gift: Gift;
|
|
587
|
-
owned_gift_id?: string;
|
|
588
|
-
convert_star_count?: number;
|
|
589
|
-
prepaid_upgrade_star_count?: number;
|
|
590
|
-
can_be_upgraded?: boolean;
|
|
591
|
-
text?: string;
|
|
592
|
-
entities?: MessageEntity[];
|
|
593
|
-
is_private?: boolean;
|
|
594
|
-
}
|
|
595
|
-
interface Gifts {
|
|
596
|
-
gifts: Gift[];
|
|
597
|
-
}
|
|
598
|
-
interface Giveaway {
|
|
599
|
-
chats: Chat[];
|
|
600
|
-
winners_selection_date: number;
|
|
601
|
-
winner_count: number;
|
|
602
|
-
only_new_members?: boolean;
|
|
603
|
-
has_public_winners?: boolean;
|
|
604
|
-
prize_description?: string;
|
|
605
|
-
country_codes?: string[];
|
|
606
|
-
prize_star_count?: number;
|
|
607
|
-
premium_subscription_month_count?: number;
|
|
608
|
-
}
|
|
609
|
-
interface GiveawayCompleted {
|
|
610
|
-
winner_count: number;
|
|
611
|
-
unclaimed_prize_count?: number;
|
|
612
|
-
giveaway_message?: Message;
|
|
613
|
-
is_star_giveaway?: boolean;
|
|
614
|
-
}
|
|
615
|
-
interface GiveawayCreated {
|
|
616
|
-
prize_star_count?: number;
|
|
617
|
-
}
|
|
618
|
-
interface GiveawayWinners {
|
|
619
|
-
chat: Chat;
|
|
620
|
-
giveaway_message_id: number;
|
|
621
|
-
winners_selection_date: number;
|
|
622
|
-
winner_count: number;
|
|
623
|
-
winners: User[];
|
|
624
|
-
additional_chat_count?: number;
|
|
625
|
-
prize_star_count?: number;
|
|
626
|
-
premium_subscription_month_count?: number;
|
|
627
|
-
unclaimed_prize_count?: number;
|
|
628
|
-
only_new_members?: boolean;
|
|
629
|
-
was_refunded?: boolean;
|
|
630
|
-
prize_description?: string;
|
|
631
|
-
}
|
|
632
|
-
interface InaccessibleMessage {
|
|
633
|
-
chat: Chat;
|
|
634
|
-
message_id: number;
|
|
635
|
-
date: number;
|
|
636
|
-
}
|
|
637
|
-
interface InlineKeyboardButton {
|
|
638
|
-
text: string;
|
|
639
|
-
url?: string;
|
|
640
|
-
callback_data?: string;
|
|
641
|
-
web_app?: WebAppInfo;
|
|
642
|
-
login_url?: LoginUrl;
|
|
643
|
-
switch_inline_query?: string;
|
|
644
|
-
switch_inline_query_current_chat?: string;
|
|
645
|
-
switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat;
|
|
646
|
-
copy_text?: CopyTextButton;
|
|
647
|
-
callback_game?: CallbackGame;
|
|
648
|
-
pay?: boolean;
|
|
649
|
-
}
|
|
650
|
-
interface InlineKeyboardMarkup {
|
|
651
|
-
inline_keyboard: InlineKeyboardButton[][];
|
|
652
|
-
}
|
|
653
|
-
interface InlineQuery {
|
|
654
|
-
id: string;
|
|
655
|
-
from: User;
|
|
656
|
-
query: string;
|
|
657
|
-
offset: string;
|
|
658
|
-
chat_type?: string;
|
|
659
|
-
location?: Location;
|
|
660
|
-
}
|
|
661
|
-
type InlineQueryResult = InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice;
|
|
662
|
-
interface InlineQueryResultArticle {
|
|
663
|
-
type: "article";
|
|
664
|
-
id: string;
|
|
665
|
-
title: string;
|
|
666
|
-
input_message_content: InputMessageContent;
|
|
667
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
668
|
-
url?: string;
|
|
669
|
-
description?: string;
|
|
670
|
-
thumbnail_url?: string;
|
|
671
|
-
thumbnail_width?: number;
|
|
672
|
-
thumbnail_height?: number;
|
|
673
|
-
}
|
|
674
|
-
interface InlineQueryResultAudio {
|
|
675
|
-
type: "audio";
|
|
676
|
-
id: string;
|
|
677
|
-
audio_url: string;
|
|
678
|
-
title: string;
|
|
679
|
-
caption?: string;
|
|
680
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
681
|
-
caption_entities?: MessageEntity[];
|
|
682
|
-
performer?: string;
|
|
683
|
-
audio_duration?: number;
|
|
684
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
685
|
-
input_message_content?: InputMessageContent;
|
|
686
|
-
}
|
|
687
|
-
interface InlineQueryResultCachedAudio {
|
|
688
|
-
type: "audio";
|
|
689
|
-
id: string;
|
|
690
|
-
audio_file_id: string;
|
|
691
|
-
caption?: string;
|
|
692
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
693
|
-
caption_entities?: MessageEntity[];
|
|
694
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
695
|
-
input_message_content?: InputMessageContent;
|
|
696
|
-
}
|
|
697
|
-
interface InlineQueryResultCachedDocument {
|
|
698
|
-
type: "document";
|
|
699
|
-
id: string;
|
|
700
|
-
title: string;
|
|
701
|
-
document_file_id: string;
|
|
702
|
-
description?: string;
|
|
703
|
-
caption?: string;
|
|
704
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
705
|
-
caption_entities?: MessageEntity[];
|
|
706
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
707
|
-
input_message_content?: InputMessageContent;
|
|
708
|
-
}
|
|
709
|
-
interface InlineQueryResultCachedGif {
|
|
710
|
-
type: "gif";
|
|
711
|
-
id: string;
|
|
712
|
-
gif_file_id: string;
|
|
713
|
-
title?: string;
|
|
714
|
-
caption?: string;
|
|
715
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
716
|
-
caption_entities?: MessageEntity[];
|
|
717
|
-
show_caption_above_media?: boolean;
|
|
718
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
719
|
-
input_message_content?: InputMessageContent;
|
|
720
|
-
}
|
|
721
|
-
interface InlineQueryResultCachedMpeg4Gif {
|
|
722
|
-
type: "mpeg4_gif";
|
|
723
|
-
id: string;
|
|
724
|
-
mpeg4_file_id: string;
|
|
725
|
-
title?: string;
|
|
726
|
-
caption?: string;
|
|
727
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
728
|
-
caption_entities?: MessageEntity[];
|
|
729
|
-
show_caption_above_media?: boolean;
|
|
730
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
731
|
-
input_message_content?: InputMessageContent;
|
|
732
|
-
}
|
|
733
|
-
interface InlineQueryResultCachedPhoto {
|
|
734
|
-
type: "photo";
|
|
735
|
-
id: string;
|
|
736
|
-
photo_file_id: string;
|
|
737
|
-
title?: string;
|
|
738
|
-
description?: string;
|
|
739
|
-
caption?: string;
|
|
740
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
741
|
-
caption_entities?: MessageEntity[];
|
|
742
|
-
show_caption_above_media?: boolean;
|
|
743
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
744
|
-
input_message_content?: InputMessageContent;
|
|
745
|
-
}
|
|
746
|
-
interface InlineQueryResultCachedSticker {
|
|
747
|
-
type: "sticker";
|
|
748
|
-
id: string;
|
|
749
|
-
sticker_file_id: string;
|
|
750
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
751
|
-
input_message_content?: InputMessageContent;
|
|
752
|
-
}
|
|
753
|
-
interface InlineQueryResultCachedVideo {
|
|
754
|
-
type: "video";
|
|
755
|
-
id: string;
|
|
756
|
-
video_file_id: string;
|
|
757
|
-
title: string;
|
|
758
|
-
description?: string;
|
|
759
|
-
caption?: string;
|
|
760
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
761
|
-
caption_entities?: MessageEntity[];
|
|
762
|
-
show_caption_above_media?: boolean;
|
|
763
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
764
|
-
input_message_content?: InputMessageContent;
|
|
765
|
-
}
|
|
766
|
-
interface InlineQueryResultCachedVoice {
|
|
767
|
-
type: "voice";
|
|
768
|
-
id: string;
|
|
769
|
-
voice_file_id: string;
|
|
770
|
-
title: string;
|
|
771
|
-
caption?: string;
|
|
772
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
773
|
-
caption_entities?: MessageEntity[];
|
|
774
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
775
|
-
input_message_content?: InputMessageContent;
|
|
776
|
-
}
|
|
777
|
-
interface InlineQueryResultContact {
|
|
778
|
-
type: "contact";
|
|
779
|
-
id: string;
|
|
780
|
-
phone_number: string;
|
|
781
|
-
first_name: string;
|
|
782
|
-
last_name?: string;
|
|
783
|
-
vcard?: string;
|
|
784
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
785
|
-
input_message_content?: InputMessageContent;
|
|
786
|
-
thumbnail_url?: string;
|
|
787
|
-
thumbnail_width?: number;
|
|
788
|
-
thumbnail_height?: number;
|
|
789
|
-
}
|
|
790
|
-
interface InlineQueryResultDocument {
|
|
791
|
-
type: "document";
|
|
792
|
-
id: string;
|
|
793
|
-
title: string;
|
|
794
|
-
document_url: string;
|
|
795
|
-
mime_type: string;
|
|
796
|
-
caption?: string;
|
|
797
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
798
|
-
caption_entities?: MessageEntity[];
|
|
799
|
-
description?: string;
|
|
800
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
801
|
-
input_message_content?: InputMessageContent;
|
|
802
|
-
thumbnail_url?: string;
|
|
803
|
-
thumbnail_width?: number;
|
|
804
|
-
thumbnail_height?: number;
|
|
805
|
-
}
|
|
806
|
-
interface InlineQueryResultGame {
|
|
807
|
-
type: "game";
|
|
808
|
-
id: string;
|
|
809
|
-
game_short_name: string;
|
|
810
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
811
|
-
}
|
|
812
|
-
interface InlineQueryResultGif {
|
|
813
|
-
type: "gif";
|
|
814
|
-
id: string;
|
|
815
|
-
gif_url: string;
|
|
816
|
-
thumbnail_url: string;
|
|
817
|
-
gif_width?: number;
|
|
818
|
-
gif_height?: number;
|
|
819
|
-
gif_duration?: number;
|
|
820
|
-
thumbnail_mime_type?: "image/jpeg" | "image/gif" | "video/mp4";
|
|
821
|
-
title?: string;
|
|
822
|
-
caption?: string;
|
|
823
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
824
|
-
caption_entities?: MessageEntity[];
|
|
825
|
-
show_caption_above_media?: boolean;
|
|
826
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
827
|
-
input_message_content?: InputMessageContent;
|
|
828
|
-
}
|
|
829
|
-
interface InlineQueryResultLocation {
|
|
830
|
-
type: "location";
|
|
831
|
-
id: string;
|
|
832
|
-
latitude: number;
|
|
833
|
-
longitude: number;
|
|
834
|
-
title: string;
|
|
835
|
-
horizontal_accuracy?: number;
|
|
836
|
-
live_period?: number;
|
|
837
|
-
heading?: number;
|
|
838
|
-
proximity_alert_radius?: number;
|
|
839
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
840
|
-
input_message_content?: InputMessageContent;
|
|
841
|
-
thumbnail_url?: string;
|
|
842
|
-
thumbnail_width?: number;
|
|
843
|
-
thumbnail_height?: number;
|
|
844
|
-
}
|
|
845
|
-
interface InlineQueryResultMpeg4Gif {
|
|
846
|
-
type: "mpeg4_gif";
|
|
847
|
-
id: string;
|
|
848
|
-
mpeg4_url: string;
|
|
849
|
-
thumbnail_url: string;
|
|
850
|
-
mpeg4_width?: number;
|
|
851
|
-
mpeg4_height?: number;
|
|
852
|
-
mpeg4_duration?: number;
|
|
853
|
-
thumbnail_mime_type?: "image/jpeg" | "image/gif" | "video/mp4";
|
|
854
|
-
title?: string;
|
|
855
|
-
caption?: string;
|
|
856
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
857
|
-
caption_entities?: MessageEntity[];
|
|
858
|
-
show_caption_above_media?: boolean;
|
|
859
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
860
|
-
input_message_content?: InputMessageContent;
|
|
861
|
-
}
|
|
862
|
-
interface InlineQueryResultPhoto {
|
|
863
|
-
type: "photo";
|
|
864
|
-
id: string;
|
|
865
|
-
photo_url: string;
|
|
866
|
-
thumbnail_url: string;
|
|
867
|
-
photo_width?: number;
|
|
868
|
-
photo_height?: number;
|
|
869
|
-
title?: string;
|
|
870
|
-
description?: string;
|
|
871
|
-
caption?: string;
|
|
872
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
873
|
-
caption_entities?: MessageEntity[];
|
|
874
|
-
show_caption_above_media?: boolean;
|
|
875
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
876
|
-
input_message_content?: InputMessageContent;
|
|
877
|
-
}
|
|
878
|
-
interface InlineQueryResultsButton {
|
|
879
|
-
text: string;
|
|
880
|
-
web_app?: WebAppInfo;
|
|
881
|
-
start_parameter?: string;
|
|
882
|
-
}
|
|
883
|
-
interface InlineQueryResultVenue {
|
|
884
|
-
type: "venue";
|
|
885
|
-
id: string;
|
|
886
|
-
latitude: number;
|
|
887
|
-
longitude: number;
|
|
888
|
-
title: string;
|
|
889
|
-
address: string;
|
|
890
|
-
foursquare_id?: string;
|
|
891
|
-
foursquare_type?: string;
|
|
892
|
-
google_place_id?: string;
|
|
893
|
-
google_place_type?: string;
|
|
894
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
895
|
-
input_message_content?: InputMessageContent;
|
|
896
|
-
thumbnail_url?: string;
|
|
897
|
-
thumbnail_width?: number;
|
|
898
|
-
thumbnail_height?: number;
|
|
899
|
-
}
|
|
900
|
-
interface InlineQueryResultVideo {
|
|
901
|
-
type: "video";
|
|
902
|
-
id: string;
|
|
903
|
-
video_url: string;
|
|
904
|
-
mime_type: string;
|
|
905
|
-
thumbnail_url: string;
|
|
906
|
-
title: string;
|
|
907
|
-
caption?: string;
|
|
908
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
909
|
-
caption_entities?: MessageEntity[];
|
|
910
|
-
show_caption_above_media?: boolean;
|
|
911
|
-
video_width?: number;
|
|
912
|
-
video_height?: number;
|
|
913
|
-
video_duration?: number;
|
|
914
|
-
description?: string;
|
|
915
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
916
|
-
input_message_content?: InputMessageContent;
|
|
917
|
-
}
|
|
918
|
-
interface InlineQueryResultVoice {
|
|
919
|
-
type: "voice";
|
|
920
|
-
id: string;
|
|
921
|
-
voice_url: string;
|
|
922
|
-
title: string;
|
|
923
|
-
caption?: string;
|
|
924
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
925
|
-
caption_entities?: MessageEntity[];
|
|
926
|
-
voice_duration?: number;
|
|
927
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
928
|
-
input_message_content?: InputMessageContent;
|
|
929
|
-
}
|
|
930
|
-
interface InputContactMessageContent {
|
|
931
|
-
phone_number: string;
|
|
932
|
-
first_name: string;
|
|
933
|
-
last_name?: string;
|
|
934
|
-
vcard?: string;
|
|
935
|
-
}
|
|
936
|
-
type InputFile = {
|
|
35
|
+
type FileContent = {
|
|
937
36
|
file_content: Uint8Array;
|
|
938
37
|
file_name: string;
|
|
939
38
|
};
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
description: string;
|
|
943
|
-
payload: string;
|
|
944
|
-
currency: string;
|
|
945
|
-
prices: LabeledPrice[];
|
|
946
|
-
provider_token?: string;
|
|
947
|
-
max_tip_amount?: number;
|
|
948
|
-
suggested_tip_amounts?: number[];
|
|
949
|
-
provider_data?: string;
|
|
950
|
-
photo_url?: string;
|
|
951
|
-
photo_size?: number;
|
|
952
|
-
photo_width?: number;
|
|
953
|
-
photo_height?: number;
|
|
954
|
-
need_name?: boolean;
|
|
955
|
-
need_phone_number?: boolean;
|
|
956
|
-
need_email?: boolean;
|
|
957
|
-
need_shipping_address?: boolean;
|
|
958
|
-
send_phone_number_to_provider?: boolean;
|
|
959
|
-
send_email_to_provider?: boolean;
|
|
960
|
-
is_flexible?: boolean;
|
|
961
|
-
}
|
|
962
|
-
interface InputLocationMessageContent {
|
|
963
|
-
latitude: number;
|
|
964
|
-
longitude: number;
|
|
965
|
-
horizontal_accuracy?: number;
|
|
966
|
-
live_period?: number;
|
|
967
|
-
heading?: number;
|
|
968
|
-
proximity_alert_radius?: number;
|
|
969
|
-
}
|
|
970
|
-
type InputMedia = InputMediaAnimation | InputMediaDocument | InputMediaAudio | InputMediaPhoto | InputMediaVideo;
|
|
971
|
-
interface InputMediaAnimation {
|
|
972
|
-
type: "animation";
|
|
973
|
-
media: string;
|
|
974
|
-
thumbnail?: string;
|
|
975
|
-
caption?: string;
|
|
976
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
977
|
-
caption_entities?: MessageEntity[];
|
|
978
|
-
show_caption_above_media?: boolean;
|
|
979
|
-
width?: number;
|
|
980
|
-
height?: number;
|
|
981
|
-
duration?: number;
|
|
982
|
-
has_spoiler?: boolean;
|
|
983
|
-
}
|
|
984
|
-
interface InputMediaAudio {
|
|
985
|
-
type: "audio";
|
|
986
|
-
media: string;
|
|
987
|
-
thumbnail?: string;
|
|
988
|
-
caption?: string;
|
|
989
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
990
|
-
caption_entities?: MessageEntity[];
|
|
991
|
-
duration?: number;
|
|
992
|
-
performer?: string;
|
|
993
|
-
title?: string;
|
|
994
|
-
}
|
|
995
|
-
interface InputMediaDocument {
|
|
996
|
-
type: "document";
|
|
997
|
-
media: string;
|
|
998
|
-
thumbnail?: string;
|
|
999
|
-
caption?: string;
|
|
1000
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
1001
|
-
caption_entities?: MessageEntity[];
|
|
1002
|
-
disable_content_type_detection?: boolean;
|
|
1003
|
-
}
|
|
1004
|
-
interface InputMediaPhoto {
|
|
1005
|
-
type: "photo";
|
|
1006
|
-
media: string;
|
|
1007
|
-
caption?: string;
|
|
1008
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
1009
|
-
caption_entities?: MessageEntity[];
|
|
1010
|
-
show_caption_above_media?: boolean;
|
|
1011
|
-
has_spoiler?: boolean;
|
|
1012
|
-
}
|
|
1013
|
-
interface InputMediaVideo {
|
|
1014
|
-
type: "video";
|
|
1015
|
-
media: string;
|
|
1016
|
-
thumbnail?: string;
|
|
1017
|
-
cover?: string;
|
|
1018
|
-
start_timestamp?: number;
|
|
1019
|
-
caption?: string;
|
|
1020
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
1021
|
-
caption_entities?: MessageEntity[];
|
|
1022
|
-
show_caption_above_media?: boolean;
|
|
1023
|
-
width?: number;
|
|
1024
|
-
height?: number;
|
|
1025
|
-
duration?: number;
|
|
1026
|
-
supports_streaming?: boolean;
|
|
1027
|
-
has_spoiler?: boolean;
|
|
1028
|
-
}
|
|
1029
|
-
type InputMessageContent = InputTextMessageContent | InputLocationMessageContent | InputVenueMessageContent | InputContactMessageContent | InputInvoiceMessageContent;
|
|
1030
|
-
type InputPaidMedia = InputPaidMediaPhoto | InputPaidMediaVideo;
|
|
1031
|
-
interface InputPaidMediaPhoto {
|
|
1032
|
-
type: "photo";
|
|
1033
|
-
media: string;
|
|
1034
|
-
}
|
|
1035
|
-
interface InputPaidMediaVideo {
|
|
1036
|
-
type: "video";
|
|
1037
|
-
media: string;
|
|
1038
|
-
thumbnail?: string;
|
|
1039
|
-
cover?: string;
|
|
1040
|
-
start_timestamp?: number;
|
|
1041
|
-
width?: number;
|
|
1042
|
-
height?: number;
|
|
1043
|
-
duration?: number;
|
|
1044
|
-
supports_streaming?: boolean;
|
|
1045
|
-
}
|
|
1046
|
-
interface InputPollOption {
|
|
1047
|
-
text: string;
|
|
1048
|
-
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
1049
|
-
text_entities?: MessageEntity[];
|
|
1050
|
-
}
|
|
1051
|
-
type InputProfilePhoto = InputProfilePhotoStatic | InputProfilePhotoAnimated;
|
|
1052
|
-
interface InputProfilePhotoAnimated {
|
|
1053
|
-
type: "animated";
|
|
1054
|
-
animation: string;
|
|
1055
|
-
main_frame_timestamp?: number;
|
|
1056
|
-
}
|
|
1057
|
-
interface InputProfilePhotoStatic {
|
|
1058
|
-
type: "static";
|
|
1059
|
-
photo: string;
|
|
1060
|
-
}
|
|
1061
|
-
interface InputSticker {
|
|
1062
|
-
sticker: string;
|
|
1063
|
-
format: "static" | "animated" | "video";
|
|
1064
|
-
emoji_list: string[];
|
|
1065
|
-
mask_position?: MaskPosition;
|
|
1066
|
-
keywords?: string[];
|
|
1067
|
-
}
|
|
1068
|
-
type InputStoryContent = InputStoryContentPhoto | InputStoryContentVideo;
|
|
1069
|
-
interface InputStoryContentPhoto {
|
|
1070
|
-
type: "photo";
|
|
1071
|
-
photo: string;
|
|
1072
|
-
}
|
|
1073
|
-
interface InputStoryContentVideo {
|
|
1074
|
-
type: "video";
|
|
1075
|
-
video: string;
|
|
1076
|
-
duration?: number;
|
|
1077
|
-
cover_frame_timestamp?: number;
|
|
1078
|
-
is_animation?: boolean;
|
|
1079
|
-
}
|
|
1080
|
-
interface InputTextMessageContent {
|
|
1081
|
-
message_text: string;
|
|
1082
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
1083
|
-
entities?: MessageEntity[];
|
|
1084
|
-
link_preview_options?: LinkPreviewOptions;
|
|
1085
|
-
}
|
|
1086
|
-
interface InputVenueMessageContent {
|
|
1087
|
-
latitude: number;
|
|
1088
|
-
longitude: number;
|
|
1089
|
-
title: string;
|
|
1090
|
-
address: string;
|
|
1091
|
-
foursquare_id?: string;
|
|
1092
|
-
foursquare_type?: string;
|
|
1093
|
-
google_place_id?: string;
|
|
1094
|
-
google_place_type?: string;
|
|
1095
|
-
}
|
|
1096
|
-
interface Invoice {
|
|
1097
|
-
title: string;
|
|
1098
|
-
description: string;
|
|
1099
|
-
start_parameter: string;
|
|
1100
|
-
currency: string;
|
|
1101
|
-
total_amount: number;
|
|
1102
|
-
}
|
|
1103
|
-
interface KeyboardButton {
|
|
1104
|
-
text: string;
|
|
1105
|
-
request_users?: KeyboardButtonRequestUsers;
|
|
1106
|
-
request_chat?: KeyboardButtonRequestChat;
|
|
1107
|
-
request_contact?: boolean;
|
|
1108
|
-
request_location?: boolean;
|
|
1109
|
-
request_poll?: KeyboardButtonPollType;
|
|
1110
|
-
web_app?: WebAppInfo;
|
|
1111
|
-
}
|
|
1112
|
-
interface KeyboardButtonPollType {
|
|
1113
|
-
type?: string;
|
|
1114
|
-
}
|
|
1115
|
-
interface KeyboardButtonRequestChat {
|
|
1116
|
-
request_id: number;
|
|
1117
|
-
chat_is_channel: boolean;
|
|
1118
|
-
chat_is_forum?: boolean;
|
|
1119
|
-
chat_has_username?: boolean;
|
|
1120
|
-
chat_is_created?: boolean;
|
|
1121
|
-
user_administrator_rights?: ChatAdministratorRights;
|
|
1122
|
-
bot_administrator_rights?: ChatAdministratorRights;
|
|
1123
|
-
bot_is_member?: boolean;
|
|
1124
|
-
request_title?: boolean;
|
|
1125
|
-
request_username?: boolean;
|
|
1126
|
-
request_photo?: boolean;
|
|
1127
|
-
}
|
|
1128
|
-
interface KeyboardButtonRequestUsers {
|
|
1129
|
-
request_id: number;
|
|
1130
|
-
user_is_bot?: boolean;
|
|
1131
|
-
user_is_premium?: boolean;
|
|
1132
|
-
max_quantity?: number;
|
|
1133
|
-
request_name?: boolean;
|
|
1134
|
-
request_username?: boolean;
|
|
1135
|
-
request_photo?: boolean;
|
|
1136
|
-
}
|
|
1137
|
-
interface LabeledPrice {
|
|
1138
|
-
label: string;
|
|
1139
|
-
amount: number;
|
|
1140
|
-
}
|
|
1141
|
-
interface LinkPreviewOptions {
|
|
1142
|
-
is_disabled?: boolean;
|
|
1143
|
-
url?: string;
|
|
1144
|
-
prefer_small_media?: boolean;
|
|
1145
|
-
prefer_large_media?: boolean;
|
|
1146
|
-
show_above_text?: boolean;
|
|
1147
|
-
}
|
|
1148
|
-
interface Location {
|
|
1149
|
-
latitude: number;
|
|
1150
|
-
longitude: number;
|
|
1151
|
-
horizontal_accuracy?: number;
|
|
1152
|
-
live_period?: number;
|
|
1153
|
-
heading?: number;
|
|
1154
|
-
proximity_alert_radius?: number;
|
|
1155
|
-
}
|
|
1156
|
-
interface LocationAddress {
|
|
1157
|
-
country_code: string;
|
|
1158
|
-
state?: string;
|
|
1159
|
-
city?: string;
|
|
1160
|
-
street?: string;
|
|
1161
|
-
}
|
|
1162
|
-
interface LoginUrl {
|
|
1163
|
-
url: string;
|
|
1164
|
-
forward_text?: string;
|
|
1165
|
-
bot_username?: string;
|
|
1166
|
-
request_write_access?: boolean;
|
|
1167
|
-
}
|
|
1168
|
-
interface MaskPosition {
|
|
1169
|
-
point: string;
|
|
1170
|
-
x_shift: number;
|
|
1171
|
-
y_shift: number;
|
|
1172
|
-
scale: number;
|
|
1173
|
-
}
|
|
1174
|
-
type MaybeInaccessibleMessage = Message | InaccessibleMessage;
|
|
1175
|
-
type MenuButton = MenuButtonCommands | MenuButtonWebApp | MenuButtonDefault;
|
|
1176
|
-
interface MenuButtonCommands {
|
|
1177
|
-
type: "commands";
|
|
1178
|
-
}
|
|
1179
|
-
interface MenuButtonDefault {
|
|
1180
|
-
type: "default";
|
|
1181
|
-
}
|
|
1182
|
-
interface MenuButtonWebApp {
|
|
1183
|
-
type: "web_app";
|
|
1184
|
-
text: string;
|
|
1185
|
-
web_app: WebAppInfo;
|
|
1186
|
-
}
|
|
1187
|
-
interface Message {
|
|
1188
|
-
message_id: number;
|
|
1189
|
-
date: number;
|
|
1190
|
-
chat: Chat;
|
|
1191
|
-
message_thread_id?: number;
|
|
1192
|
-
from?: User;
|
|
1193
|
-
sender_chat?: Chat;
|
|
1194
|
-
sender_boost_count?: number;
|
|
1195
|
-
sender_business_bot?: User;
|
|
1196
|
-
business_connection_id?: string;
|
|
1197
|
-
forward_origin?: MessageOrigin;
|
|
1198
|
-
is_topic_message?: boolean;
|
|
1199
|
-
is_automatic_forward?: boolean;
|
|
1200
|
-
reply_to_message?: Message;
|
|
1201
|
-
external_reply?: ExternalReplyInfo;
|
|
1202
|
-
quote?: TextQuote;
|
|
1203
|
-
reply_to_story?: Story;
|
|
1204
|
-
via_bot?: User;
|
|
1205
|
-
edit_date?: number;
|
|
1206
|
-
has_protected_content?: boolean;
|
|
1207
|
-
is_from_offline?: boolean;
|
|
1208
|
-
media_group_id?: string;
|
|
1209
|
-
author_signature?: string;
|
|
1210
|
-
paid_star_count?: number;
|
|
1211
|
-
text?: string;
|
|
1212
|
-
entities?: MessageEntity[];
|
|
1213
|
-
link_preview_options?: LinkPreviewOptions;
|
|
1214
|
-
effect_id?: string;
|
|
1215
|
-
animation?: Animation;
|
|
1216
|
-
audio?: Audio;
|
|
1217
|
-
document?: Document;
|
|
1218
|
-
paid_media?: PaidMediaInfo;
|
|
1219
|
-
photo?: PhotoSize[];
|
|
1220
|
-
sticker?: Sticker;
|
|
1221
|
-
story?: Story;
|
|
1222
|
-
video?: Video;
|
|
1223
|
-
video_note?: VideoNote;
|
|
1224
|
-
voice?: Voice;
|
|
1225
|
-
caption?: string;
|
|
1226
|
-
caption_entities?: MessageEntity[];
|
|
1227
|
-
show_caption_above_media?: boolean;
|
|
1228
|
-
has_media_spoiler?: boolean;
|
|
1229
|
-
contact?: Contact;
|
|
1230
|
-
dice?: Dice;
|
|
1231
|
-
game?: Game;
|
|
1232
|
-
poll?: Poll;
|
|
1233
|
-
venue?: Venue;
|
|
1234
|
-
location?: Location;
|
|
1235
|
-
new_chat_members?: User[];
|
|
1236
|
-
left_chat_member?: User;
|
|
1237
|
-
new_chat_title?: string;
|
|
1238
|
-
new_chat_photo?: PhotoSize[];
|
|
1239
|
-
delete_chat_photo?: boolean;
|
|
1240
|
-
group_chat_created?: boolean;
|
|
1241
|
-
supergroup_chat_created?: boolean;
|
|
1242
|
-
channel_chat_created?: boolean;
|
|
1243
|
-
message_auto_delete_timer_changed?: MessageAutoDeleteTimerChanged;
|
|
1244
|
-
migrate_to_chat_id?: number;
|
|
1245
|
-
migrate_from_chat_id?: number;
|
|
1246
|
-
pinned_message?: MaybeInaccessibleMessage;
|
|
1247
|
-
invoice?: Invoice;
|
|
1248
|
-
successful_payment?: SuccessfulPayment;
|
|
1249
|
-
refunded_payment?: RefundedPayment;
|
|
1250
|
-
users_shared?: UsersShared;
|
|
1251
|
-
chat_shared?: ChatShared;
|
|
1252
|
-
gift?: GiftInfo;
|
|
1253
|
-
unique_gift?: UniqueGiftInfo;
|
|
1254
|
-
connected_website?: string;
|
|
1255
|
-
write_access_allowed?: WriteAccessAllowed;
|
|
1256
|
-
passport_data?: PassportData;
|
|
1257
|
-
proximity_alert_triggered?: ProximityAlertTriggered;
|
|
1258
|
-
boost_added?: ChatBoostAdded;
|
|
1259
|
-
chat_background_set?: ChatBackground;
|
|
1260
|
-
forum_topic_created?: ForumTopicCreated;
|
|
1261
|
-
forum_topic_edited?: ForumTopicEdited;
|
|
1262
|
-
forum_topic_closed?: ForumTopicClosed;
|
|
1263
|
-
forum_topic_reopened?: ForumTopicReopened;
|
|
1264
|
-
general_forum_topic_hidden?: GeneralForumTopicHidden;
|
|
1265
|
-
general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
|
|
1266
|
-
giveaway_created?: GiveawayCreated;
|
|
1267
|
-
giveaway?: Giveaway;
|
|
1268
|
-
giveaway_winners?: GiveawayWinners;
|
|
1269
|
-
giveaway_completed?: GiveawayCompleted;
|
|
1270
|
-
paid_message_price_changed?: PaidMessagePriceChanged;
|
|
1271
|
-
video_chat_scheduled?: VideoChatScheduled;
|
|
1272
|
-
video_chat_started?: VideoChatStarted;
|
|
1273
|
-
video_chat_ended?: VideoChatEnded;
|
|
1274
|
-
video_chat_participants_invited?: VideoChatParticipantsInvited;
|
|
1275
|
-
web_app_data?: WebAppData;
|
|
1276
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
1277
|
-
}
|
|
1278
|
-
interface MessageAutoDeleteTimerChanged {
|
|
1279
|
-
message_auto_delete_time: number;
|
|
1280
|
-
}
|
|
1281
|
-
interface MessageEntity {
|
|
1282
|
-
type: "mention" | "hashtag" | "cashtag" | "bot_command" | "url" | "email" | "phone_number" | "bold" | "italic" | "underline" | "strikethrough" | "spoiler" | "blockquote" | "expandable_blockquote" | "code" | "pre" | "text_link" | "text_mention" | "custom_emoji";
|
|
1283
|
-
offset: number;
|
|
1284
|
-
length: number;
|
|
1285
|
-
url?: string;
|
|
1286
|
-
user?: User;
|
|
1287
|
-
language?: string;
|
|
1288
|
-
custom_emoji_id?: string;
|
|
1289
|
-
}
|
|
1290
|
-
interface MessageId {
|
|
1291
|
-
message_id: number;
|
|
1292
|
-
}
|
|
1293
|
-
type MessageOrigin = MessageOriginUser | MessageOriginHiddenUser | MessageOriginChat | MessageOriginChannel;
|
|
1294
|
-
interface MessageOriginChannel {
|
|
1295
|
-
type: "channel";
|
|
1296
|
-
date: number;
|
|
1297
|
-
chat: Chat;
|
|
1298
|
-
message_id: number;
|
|
1299
|
-
author_signature?: string;
|
|
1300
|
-
}
|
|
1301
|
-
interface MessageOriginChat {
|
|
1302
|
-
type: "chat";
|
|
1303
|
-
date: number;
|
|
1304
|
-
sender_chat: Chat;
|
|
1305
|
-
author_signature?: string;
|
|
1306
|
-
}
|
|
1307
|
-
interface MessageOriginHiddenUser {
|
|
1308
|
-
type: "hidden_user";
|
|
1309
|
-
date: number;
|
|
1310
|
-
sender_user_name: string;
|
|
1311
|
-
}
|
|
1312
|
-
interface MessageOriginUser {
|
|
1313
|
-
type: "user";
|
|
1314
|
-
date: number;
|
|
1315
|
-
sender_user: User;
|
|
1316
|
-
}
|
|
1317
|
-
interface MessageReactionCountUpdated {
|
|
1318
|
-
chat: Chat;
|
|
1319
|
-
message_id: number;
|
|
1320
|
-
date: number;
|
|
1321
|
-
reactions: ReactionCount[];
|
|
1322
|
-
}
|
|
1323
|
-
interface MessageReactionUpdated {
|
|
1324
|
-
chat: Chat;
|
|
1325
|
-
message_id: number;
|
|
1326
|
-
date: number;
|
|
1327
|
-
old_reaction: ReactionType[];
|
|
1328
|
-
new_reaction: ReactionType[];
|
|
1329
|
-
user?: User;
|
|
1330
|
-
actor_chat?: Chat;
|
|
1331
|
-
}
|
|
1332
|
-
interface OrderInfo {
|
|
1333
|
-
name?: string;
|
|
1334
|
-
phone_number?: string;
|
|
1335
|
-
email?: string;
|
|
1336
|
-
shipping_address?: ShippingAddress;
|
|
1337
|
-
}
|
|
1338
|
-
type OwnedGift = OwnedGiftRegular | OwnedGiftUnique;
|
|
1339
|
-
interface OwnedGiftRegular {
|
|
1340
|
-
type: "regular";
|
|
1341
|
-
gift: Gift;
|
|
1342
|
-
send_date: number;
|
|
1343
|
-
owned_gift_id?: string;
|
|
1344
|
-
sender_user?: User;
|
|
1345
|
-
text?: string;
|
|
1346
|
-
entities?: MessageEntity[];
|
|
1347
|
-
is_private?: boolean;
|
|
1348
|
-
is_saved?: boolean;
|
|
1349
|
-
can_be_upgraded?: boolean;
|
|
1350
|
-
was_refunded?: boolean;
|
|
1351
|
-
convert_star_count?: number;
|
|
1352
|
-
prepaid_upgrade_star_count?: number;
|
|
1353
|
-
}
|
|
1354
|
-
interface OwnedGifts {
|
|
1355
|
-
total_count: number;
|
|
1356
|
-
gifts: OwnedGift[];
|
|
1357
|
-
next_offset?: string;
|
|
1358
|
-
}
|
|
1359
|
-
interface OwnedGiftUnique {
|
|
1360
|
-
type: "unique";
|
|
1361
|
-
gift: UniqueGift;
|
|
1362
|
-
send_date: number;
|
|
1363
|
-
owned_gift_id?: string;
|
|
1364
|
-
sender_user?: User;
|
|
1365
|
-
is_saved?: boolean;
|
|
1366
|
-
can_be_transferred?: boolean;
|
|
1367
|
-
transfer_star_count?: number;
|
|
1368
|
-
}
|
|
1369
|
-
type PaidMedia = PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo;
|
|
1370
|
-
interface PaidMediaInfo {
|
|
1371
|
-
star_count: number;
|
|
1372
|
-
paid_media: PaidMedia[];
|
|
1373
|
-
}
|
|
1374
|
-
interface PaidMediaPhoto {
|
|
1375
|
-
type: "photo";
|
|
1376
|
-
photo: PhotoSize[];
|
|
1377
|
-
}
|
|
1378
|
-
interface PaidMediaPreview {
|
|
1379
|
-
type: "preview";
|
|
1380
|
-
width?: number;
|
|
1381
|
-
height?: number;
|
|
1382
|
-
duration?: number;
|
|
1383
|
-
}
|
|
1384
|
-
interface PaidMediaPurchased {
|
|
1385
|
-
from: User;
|
|
1386
|
-
paid_media_payload: string;
|
|
1387
|
-
}
|
|
1388
|
-
interface PaidMediaVideo {
|
|
1389
|
-
type: "video";
|
|
1390
|
-
video: Video;
|
|
1391
|
-
}
|
|
1392
|
-
interface PaidMessagePriceChanged {
|
|
1393
|
-
paid_message_star_count: number;
|
|
1394
|
-
}
|
|
1395
|
-
interface PassportData {
|
|
1396
|
-
data: EncryptedPassportElement[];
|
|
1397
|
-
credentials: EncryptedCredentials;
|
|
1398
|
-
}
|
|
1399
|
-
type PassportElementError = PassportElementErrorDataField | PassportElementErrorFrontSide | PassportElementErrorReverseSide | PassportElementErrorSelfie | PassportElementErrorFile | PassportElementErrorFiles | PassportElementErrorTranslationFile | PassportElementErrorTranslationFiles | PassportElementErrorUnspecified;
|
|
1400
|
-
interface PassportElementErrorDataField {
|
|
1401
|
-
source: "data";
|
|
1402
|
-
type: "personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address";
|
|
1403
|
-
field_name: string;
|
|
1404
|
-
data_hash: string;
|
|
1405
|
-
message: string;
|
|
1406
|
-
}
|
|
1407
|
-
interface PassportElementErrorFile {
|
|
1408
|
-
source: "file";
|
|
1409
|
-
type: "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1410
|
-
file_hash: string;
|
|
1411
|
-
message: string;
|
|
1412
|
-
}
|
|
1413
|
-
interface PassportElementErrorFiles {
|
|
1414
|
-
source: "files";
|
|
1415
|
-
type: "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1416
|
-
file_hashes: string[];
|
|
1417
|
-
message: string;
|
|
1418
|
-
}
|
|
1419
|
-
interface PassportElementErrorFrontSide {
|
|
1420
|
-
source: "front_side";
|
|
1421
|
-
type: "passport" | "driver_license" | "identity_card" | "internal_passport";
|
|
1422
|
-
file_hash: string;
|
|
1423
|
-
message: string;
|
|
1424
|
-
}
|
|
1425
|
-
interface PassportElementErrorReverseSide {
|
|
1426
|
-
source: "reverse_side";
|
|
1427
|
-
type: "driver_license" | "identity_card";
|
|
1428
|
-
file_hash: string;
|
|
1429
|
-
message: string;
|
|
1430
|
-
}
|
|
1431
|
-
interface PassportElementErrorSelfie {
|
|
1432
|
-
source: "selfie";
|
|
1433
|
-
type: "passport" | "driver_license" | "identity_card" | "internal_passport";
|
|
1434
|
-
file_hash: string;
|
|
1435
|
-
message: string;
|
|
1436
|
-
}
|
|
1437
|
-
interface PassportElementErrorTranslationFile {
|
|
1438
|
-
source: "translation_file";
|
|
1439
|
-
type: "passport" | "driver_license" | "identity_card" | "internal_passport" | "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1440
|
-
file_hash: string;
|
|
1441
|
-
message: string;
|
|
1442
|
-
}
|
|
1443
|
-
interface PassportElementErrorTranslationFiles {
|
|
1444
|
-
source: "translation_files";
|
|
1445
|
-
type: "passport" | "driver_license" | "identity_card" | "internal_passport" | "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration";
|
|
1446
|
-
file_hashes: string[];
|
|
1447
|
-
message: string;
|
|
1448
|
-
}
|
|
1449
|
-
interface PassportElementErrorUnspecified {
|
|
1450
|
-
source: "unspecified";
|
|
1451
|
-
type: string;
|
|
1452
|
-
element_hash: string;
|
|
1453
|
-
message: string;
|
|
1454
|
-
}
|
|
1455
|
-
interface PassportFile {
|
|
1456
|
-
file_id: string;
|
|
1457
|
-
file_unique_id: string;
|
|
1458
|
-
file_size: number;
|
|
1459
|
-
file_date: number;
|
|
1460
|
-
}
|
|
1461
|
-
interface PhotoSize {
|
|
1462
|
-
file_id: string;
|
|
1463
|
-
file_unique_id: string;
|
|
1464
|
-
width: number;
|
|
1465
|
-
height: number;
|
|
1466
|
-
file_size?: number;
|
|
1467
|
-
}
|
|
1468
|
-
interface Poll {
|
|
1469
|
-
id: string;
|
|
1470
|
-
question: string;
|
|
1471
|
-
options: PollOption[];
|
|
1472
|
-
total_voter_count: number;
|
|
1473
|
-
is_closed: boolean;
|
|
1474
|
-
is_anonymous: boolean;
|
|
1475
|
-
type: "regular" | "quiz";
|
|
1476
|
-
allows_multiple_answers: boolean;
|
|
1477
|
-
question_entities?: MessageEntity[];
|
|
1478
|
-
correct_option_id?: number;
|
|
1479
|
-
explanation?: string;
|
|
1480
|
-
explanation_entities?: MessageEntity[];
|
|
1481
|
-
open_period?: number;
|
|
1482
|
-
close_date?: number;
|
|
1483
|
-
}
|
|
1484
|
-
interface PollAnswer {
|
|
1485
|
-
poll_id: string;
|
|
1486
|
-
option_ids: number[];
|
|
1487
|
-
voter_chat?: Chat;
|
|
1488
|
-
user?: User;
|
|
1489
|
-
}
|
|
1490
|
-
interface PollOption {
|
|
1491
|
-
text: string;
|
|
1492
|
-
voter_count: number;
|
|
1493
|
-
text_entities?: MessageEntity[];
|
|
1494
|
-
}
|
|
1495
|
-
interface PreCheckoutQuery {
|
|
1496
|
-
id: string;
|
|
1497
|
-
from: User;
|
|
1498
|
-
currency: string;
|
|
1499
|
-
total_amount: number;
|
|
1500
|
-
invoice_payload: string;
|
|
1501
|
-
shipping_option_id?: string;
|
|
1502
|
-
order_info?: OrderInfo;
|
|
1503
|
-
}
|
|
1504
|
-
interface PreparedInlineMessage {
|
|
1505
|
-
id: string;
|
|
1506
|
-
expiration_date: number;
|
|
1507
|
-
}
|
|
1508
|
-
interface ProximityAlertTriggered {
|
|
1509
|
-
traveler: User;
|
|
1510
|
-
watcher: User;
|
|
1511
|
-
distance: number;
|
|
1512
|
-
}
|
|
1513
|
-
interface ReactionCount {
|
|
1514
|
-
type: ReactionType;
|
|
1515
|
-
total_count: number;
|
|
1516
|
-
}
|
|
1517
|
-
type ReactionType = ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid;
|
|
1518
|
-
interface ReactionTypeCustomEmoji {
|
|
1519
|
-
type: "custom_emoji";
|
|
1520
|
-
custom_emoji_id: string;
|
|
1521
|
-
}
|
|
1522
|
-
interface ReactionTypeEmoji {
|
|
1523
|
-
type: "emoji";
|
|
1524
|
-
emoji: "👍" | "👎" | "❤" | "🔥" | "🥰" | "👏" | "😁" | "🤔" | "🤯" | "😱" | "🤬" | "😢" | "🎉" | "🤩" | "🤮" | "💩" | "🙏" | "👌" | "🕊" | "🤡" | "🥱" | "🥴" | "😍" | "🐳" | "❤🔥" | "🌚" | "🌭" | "💯" | "🤣" | "⚡" | "🍌" | "🏆" | "💔" | "🤨" | "😐" | "🍓" | "🍾" | "💋" | "🖕" | "😈" | "😴" | "😭" | "🤓" | "👻" | "👨💻" | "👀" | "🎃" | "🙈" | "😇" | "😨" | "🤝" | "✍" | "🤗" | "🫡" | "🎅" | "🎄" | "☃" | "💅" | "🤪" | "🗿" | "🆒" | "💘" | "🙉" | "🦄" | "😘" | "💊" | "🙊" | "😎" | "👾" | "🤷♂" | "🤷" | "🤷♀" | "😡";
|
|
1525
|
-
}
|
|
1526
|
-
interface ReactionTypePaid {
|
|
1527
|
-
type: "paid";
|
|
1528
|
-
}
|
|
1529
|
-
interface RefundedPayment {
|
|
1530
|
-
currency: "XTR";
|
|
1531
|
-
total_amount: number;
|
|
1532
|
-
invoice_payload: string;
|
|
1533
|
-
telegram_payment_charge_id: string;
|
|
1534
|
-
provider_payment_charge_id?: string;
|
|
1535
|
-
}
|
|
1536
|
-
interface ReplyKeyboardMarkup {
|
|
1537
|
-
keyboard: KeyboardButton[][];
|
|
1538
|
-
is_persistent?: boolean;
|
|
1539
|
-
resize_keyboard?: boolean;
|
|
1540
|
-
one_time_keyboard?: boolean;
|
|
1541
|
-
input_field_placeholder?: string;
|
|
1542
|
-
selective?: boolean;
|
|
1543
|
-
}
|
|
1544
|
-
interface ReplyKeyboardRemove {
|
|
1545
|
-
remove_keyboard: boolean;
|
|
1546
|
-
selective?: boolean;
|
|
1547
|
-
}
|
|
1548
|
-
interface ReplyParameters {
|
|
1549
|
-
message_id: number;
|
|
1550
|
-
chat_id?: number | string;
|
|
1551
|
-
allow_sending_without_reply?: boolean;
|
|
1552
|
-
quote?: string;
|
|
1553
|
-
quote_parse_mode?: "HTML" | "MarkdownV2";
|
|
1554
|
-
quote_entities?: MessageEntity[];
|
|
1555
|
-
quote_position?: number;
|
|
1556
|
-
}
|
|
1557
|
-
interface ResponseParameters {
|
|
1558
|
-
migrate_to_chat_id?: number;
|
|
1559
|
-
retry_after?: number;
|
|
1560
|
-
}
|
|
1561
|
-
type RevenueWithdrawalState = RevenueWithdrawalStatePending | RevenueWithdrawalStateSucceeded | RevenueWithdrawalStateFailed;
|
|
1562
|
-
interface RevenueWithdrawalStateFailed {
|
|
1563
|
-
type: "failed";
|
|
1564
|
-
}
|
|
1565
|
-
interface RevenueWithdrawalStatePending {
|
|
1566
|
-
type: "pending";
|
|
1567
|
-
}
|
|
1568
|
-
interface RevenueWithdrawalStateSucceeded {
|
|
1569
|
-
type: "succeeded";
|
|
1570
|
-
date: number;
|
|
1571
|
-
url: string;
|
|
1572
|
-
}
|
|
1573
|
-
interface SentWebAppMessage {
|
|
1574
|
-
inline_message_id?: string;
|
|
1575
|
-
}
|
|
1576
|
-
interface SharedUser {
|
|
1577
|
-
user_id: number;
|
|
1578
|
-
first_name?: string;
|
|
1579
|
-
last_name?: string;
|
|
1580
|
-
username?: string;
|
|
1581
|
-
photo?: PhotoSize[];
|
|
1582
|
-
}
|
|
1583
|
-
interface ShippingAddress {
|
|
1584
|
-
country_code: string;
|
|
1585
|
-
state: string;
|
|
1586
|
-
city: string;
|
|
1587
|
-
street_line1: string;
|
|
1588
|
-
street_line2: string;
|
|
1589
|
-
post_code: string;
|
|
1590
|
-
}
|
|
1591
|
-
interface ShippingOption {
|
|
1592
|
-
id: string;
|
|
1593
|
-
title: string;
|
|
1594
|
-
prices: LabeledPrice[];
|
|
1595
|
-
}
|
|
1596
|
-
interface ShippingQuery {
|
|
1597
|
-
id: string;
|
|
1598
|
-
from: User;
|
|
1599
|
-
invoice_payload: string;
|
|
1600
|
-
shipping_address: ShippingAddress;
|
|
1601
|
-
}
|
|
1602
|
-
interface StarAmount {
|
|
1603
|
-
amount: number;
|
|
1604
|
-
nanostar_amount?: number;
|
|
1605
|
-
}
|
|
1606
|
-
interface StarTransaction {
|
|
1607
|
-
id: string;
|
|
1608
|
-
amount: number;
|
|
1609
|
-
date: number;
|
|
1610
|
-
nanostar_amount?: number;
|
|
1611
|
-
source?: TransactionPartner;
|
|
1612
|
-
receiver?: TransactionPartner;
|
|
1613
|
-
}
|
|
1614
|
-
interface StarTransactions {
|
|
1615
|
-
transactions: StarTransaction[];
|
|
1616
|
-
}
|
|
1617
|
-
interface Sticker {
|
|
1618
|
-
file_id: string;
|
|
1619
|
-
file_unique_id: string;
|
|
1620
|
-
type: "regular" | "mask" | "custom_emoji";
|
|
1621
|
-
width: number;
|
|
1622
|
-
height: number;
|
|
1623
|
-
is_animated: boolean;
|
|
1624
|
-
is_video: boolean;
|
|
1625
|
-
thumbnail?: PhotoSize;
|
|
1626
|
-
emoji?: string;
|
|
1627
|
-
set_name?: string;
|
|
1628
|
-
premium_animation?: File$1;
|
|
1629
|
-
mask_position?: MaskPosition;
|
|
1630
|
-
custom_emoji_id?: string;
|
|
1631
|
-
needs_repainting?: boolean;
|
|
1632
|
-
file_size?: number;
|
|
1633
|
-
}
|
|
1634
|
-
interface StickerSet {
|
|
1635
|
-
name: string;
|
|
1636
|
-
title: string;
|
|
1637
|
-
sticker_type: "regular" | "mask" | "custom_emoji";
|
|
1638
|
-
stickers: Sticker[];
|
|
1639
|
-
thumbnail?: PhotoSize;
|
|
1640
|
-
}
|
|
1641
|
-
interface Story {
|
|
1642
|
-
chat: Chat;
|
|
1643
|
-
id: number;
|
|
1644
|
-
}
|
|
1645
|
-
interface StoryArea {
|
|
1646
|
-
position: StoryAreaPosition;
|
|
1647
|
-
type: StoryAreaType;
|
|
1648
|
-
}
|
|
1649
|
-
interface StoryAreaPosition {
|
|
1650
|
-
x_percentage: number;
|
|
1651
|
-
y_percentage: number;
|
|
1652
|
-
width_percentage: number;
|
|
1653
|
-
height_percentage: number;
|
|
1654
|
-
rotation_angle: number;
|
|
1655
|
-
corner_radius_percentage: number;
|
|
1656
|
-
}
|
|
1657
|
-
type StoryAreaType = StoryAreaTypeLocation | StoryAreaTypeSuggestedReaction | StoryAreaTypeLink | StoryAreaTypeWeather | StoryAreaTypeUniqueGift;
|
|
1658
|
-
interface StoryAreaTypeLink {
|
|
1659
|
-
type: "link";
|
|
1660
|
-
url: string;
|
|
1661
|
-
}
|
|
1662
|
-
interface StoryAreaTypeLocation {
|
|
1663
|
-
type: "location";
|
|
1664
|
-
latitude: number;
|
|
1665
|
-
longitude: number;
|
|
1666
|
-
address?: LocationAddress;
|
|
1667
|
-
}
|
|
1668
|
-
interface StoryAreaTypeSuggestedReaction {
|
|
1669
|
-
type: "suggested_reaction";
|
|
1670
|
-
reaction_type: ReactionType;
|
|
1671
|
-
is_dark?: boolean;
|
|
1672
|
-
is_flipped?: boolean;
|
|
1673
|
-
}
|
|
1674
|
-
interface StoryAreaTypeUniqueGift {
|
|
1675
|
-
type: "unique_gift";
|
|
1676
|
-
name: string;
|
|
1677
|
-
}
|
|
1678
|
-
interface StoryAreaTypeWeather {
|
|
1679
|
-
type: "weather";
|
|
1680
|
-
temperature: number;
|
|
1681
|
-
emoji: string;
|
|
1682
|
-
background_color: number;
|
|
1683
|
-
}
|
|
1684
|
-
interface SuccessfulPayment {
|
|
1685
|
-
currency: string;
|
|
1686
|
-
total_amount: number;
|
|
1687
|
-
invoice_payload: string;
|
|
1688
|
-
telegram_payment_charge_id: string;
|
|
1689
|
-
provider_payment_charge_id: string;
|
|
1690
|
-
subscription_expiration_date?: number;
|
|
1691
|
-
is_recurring?: boolean;
|
|
1692
|
-
is_first_recurring?: boolean;
|
|
1693
|
-
shipping_option_id?: string;
|
|
1694
|
-
order_info?: OrderInfo;
|
|
1695
|
-
}
|
|
1696
|
-
interface SwitchInlineQueryChosenChat {
|
|
1697
|
-
query?: string;
|
|
1698
|
-
allow_user_chats?: boolean;
|
|
1699
|
-
allow_bot_chats?: boolean;
|
|
1700
|
-
allow_group_chats?: boolean;
|
|
1701
|
-
allow_channel_chats?: boolean;
|
|
1702
|
-
}
|
|
1703
|
-
interface TextQuote {
|
|
1704
|
-
text: string;
|
|
1705
|
-
position: number;
|
|
1706
|
-
entities?: MessageEntity[];
|
|
1707
|
-
is_manual?: boolean;
|
|
1708
|
-
}
|
|
1709
|
-
type TransactionPartner = TransactionPartnerUser | TransactionPartnerChat | TransactionPartnerAffiliateProgram | TransactionPartnerFragment | TransactionPartnerTelegramAds | TransactionPartnerTelegramApi | TransactionPartnerOther;
|
|
1710
|
-
interface TransactionPartnerAffiliateProgram {
|
|
1711
|
-
type: "affiliate_program";
|
|
1712
|
-
commission_per_mille: number;
|
|
1713
|
-
sponsor_user?: User;
|
|
1714
|
-
}
|
|
1715
|
-
interface TransactionPartnerChat {
|
|
1716
|
-
type: "chat";
|
|
1717
|
-
chat: Chat;
|
|
1718
|
-
gift?: Gift;
|
|
1719
|
-
}
|
|
1720
|
-
interface TransactionPartnerFragment {
|
|
1721
|
-
type: "fragment";
|
|
1722
|
-
withdrawal_state?: RevenueWithdrawalState;
|
|
1723
|
-
}
|
|
1724
|
-
interface TransactionPartnerOther {
|
|
1725
|
-
type: "other";
|
|
1726
|
-
}
|
|
1727
|
-
interface TransactionPartnerTelegramAds {
|
|
1728
|
-
type: "telegram_ads";
|
|
1729
|
-
}
|
|
1730
|
-
interface TransactionPartnerTelegramApi {
|
|
1731
|
-
type: "telegram_api";
|
|
1732
|
-
request_count: number;
|
|
1733
|
-
}
|
|
1734
|
-
interface TransactionPartnerUser {
|
|
1735
|
-
type: "user";
|
|
1736
|
-
transaction_type: "invoice_payment" | "paid_media_payment" | "gift_purchase" | "premium_purchase" | "business_account_transfer";
|
|
1737
|
-
user: User;
|
|
1738
|
-
affiliate?: AffiliateInfo;
|
|
1739
|
-
invoice_payload?: string;
|
|
1740
|
-
subscription_period?: number;
|
|
1741
|
-
paid_media?: PaidMedia[];
|
|
1742
|
-
paid_media_payload?: string;
|
|
1743
|
-
gift?: Gift;
|
|
1744
|
-
premium_subscription_duration?: number;
|
|
1745
|
-
}
|
|
1746
|
-
interface UniqueGift {
|
|
1747
|
-
base_name: string;
|
|
1748
|
-
name: string;
|
|
1749
|
-
number: number;
|
|
1750
|
-
model: UniqueGiftModel;
|
|
1751
|
-
symbol: UniqueGiftSymbol;
|
|
1752
|
-
backdrop: UniqueGiftBackdrop;
|
|
1753
|
-
}
|
|
1754
|
-
interface UniqueGiftBackdrop {
|
|
1755
|
-
name: string;
|
|
1756
|
-
colors: UniqueGiftBackdropColors;
|
|
1757
|
-
rarity_per_mille: number;
|
|
1758
|
-
}
|
|
1759
|
-
interface UniqueGiftBackdropColors {
|
|
1760
|
-
center_color: number;
|
|
1761
|
-
edge_color: number;
|
|
1762
|
-
symbol_color: number;
|
|
1763
|
-
text_color: number;
|
|
1764
|
-
}
|
|
1765
|
-
interface UniqueGiftInfo {
|
|
1766
|
-
gift: UniqueGift;
|
|
1767
|
-
origin: string;
|
|
1768
|
-
owned_gift_id?: string;
|
|
1769
|
-
transfer_star_count?: number;
|
|
1770
|
-
}
|
|
1771
|
-
interface UniqueGiftModel {
|
|
1772
|
-
name: string;
|
|
1773
|
-
sticker: Sticker;
|
|
1774
|
-
rarity_per_mille: number;
|
|
1775
|
-
}
|
|
1776
|
-
interface UniqueGiftSymbol {
|
|
1777
|
-
name: string;
|
|
1778
|
-
sticker: Sticker;
|
|
1779
|
-
rarity_per_mille: number;
|
|
1780
|
-
}
|
|
1781
|
-
interface Update {
|
|
1782
|
-
update_id: number;
|
|
1783
|
-
message?: Message;
|
|
1784
|
-
edited_message?: Message;
|
|
1785
|
-
channel_post?: Message;
|
|
1786
|
-
edited_channel_post?: Message;
|
|
1787
|
-
business_connection?: BusinessConnection;
|
|
1788
|
-
business_message?: Message;
|
|
1789
|
-
edited_business_message?: Message;
|
|
1790
|
-
deleted_business_messages?: BusinessMessagesDeleted;
|
|
1791
|
-
message_reaction?: MessageReactionUpdated;
|
|
1792
|
-
message_reaction_count?: MessageReactionCountUpdated;
|
|
1793
|
-
inline_query?: InlineQuery;
|
|
1794
|
-
chosen_inline_result?: ChosenInlineResult;
|
|
1795
|
-
callback_query?: CallbackQuery;
|
|
1796
|
-
shipping_query?: ShippingQuery;
|
|
1797
|
-
pre_checkout_query?: PreCheckoutQuery;
|
|
1798
|
-
purchased_paid_media?: PaidMediaPurchased;
|
|
1799
|
-
poll?: Poll;
|
|
1800
|
-
poll_answer?: PollAnswer;
|
|
1801
|
-
my_chat_member?: ChatMemberUpdated;
|
|
1802
|
-
chat_member?: ChatMemberUpdated;
|
|
1803
|
-
chat_join_request?: ChatJoinRequest;
|
|
1804
|
-
chat_boost?: ChatBoostUpdated;
|
|
1805
|
-
removed_chat_boost?: ChatBoostRemoved;
|
|
1806
|
-
}
|
|
1807
|
-
interface User {
|
|
1808
|
-
id: number;
|
|
1809
|
-
is_bot: boolean;
|
|
1810
|
-
first_name: string;
|
|
1811
|
-
last_name?: string;
|
|
1812
|
-
username?: string;
|
|
1813
|
-
language_code?: string;
|
|
1814
|
-
is_premium?: boolean;
|
|
1815
|
-
added_to_attachment_menu?: boolean;
|
|
1816
|
-
can_join_groups?: boolean;
|
|
1817
|
-
can_read_all_group_messages?: boolean;
|
|
1818
|
-
supports_inline_queries?: boolean;
|
|
1819
|
-
can_connect_to_business?: boolean;
|
|
1820
|
-
has_main_web_app?: boolean;
|
|
1821
|
-
}
|
|
1822
|
-
interface UserChatBoosts {
|
|
1823
|
-
boosts: ChatBoost[];
|
|
1824
|
-
}
|
|
1825
|
-
interface UserProfilePhotos {
|
|
1826
|
-
total_count: number;
|
|
1827
|
-
photos: PhotoSize[][];
|
|
1828
|
-
}
|
|
1829
|
-
interface UsersShared {
|
|
1830
|
-
request_id: number;
|
|
1831
|
-
users: SharedUser[];
|
|
1832
|
-
}
|
|
1833
|
-
interface Venue {
|
|
1834
|
-
location: Location;
|
|
1835
|
-
title: string;
|
|
1836
|
-
address: string;
|
|
1837
|
-
foursquare_id?: string;
|
|
1838
|
-
foursquare_type?: string;
|
|
1839
|
-
google_place_id?: string;
|
|
1840
|
-
google_place_type?: string;
|
|
1841
|
-
}
|
|
1842
|
-
interface Video {
|
|
1843
|
-
file_id: string;
|
|
1844
|
-
file_unique_id: string;
|
|
1845
|
-
width: number;
|
|
1846
|
-
height: number;
|
|
1847
|
-
duration: number;
|
|
1848
|
-
thumbnail?: PhotoSize;
|
|
1849
|
-
cover?: PhotoSize[];
|
|
1850
|
-
start_timestamp?: number;
|
|
1851
|
-
file_name?: string;
|
|
1852
|
-
mime_type?: string;
|
|
1853
|
-
file_size?: number;
|
|
1854
|
-
}
|
|
1855
|
-
interface VideoChatEnded {
|
|
1856
|
-
duration: number;
|
|
1857
|
-
}
|
|
1858
|
-
interface VideoChatParticipantsInvited {
|
|
1859
|
-
users: User[];
|
|
1860
|
-
}
|
|
1861
|
-
interface VideoChatScheduled {
|
|
1862
|
-
start_date: number;
|
|
1863
|
-
}
|
|
1864
|
-
type VideoChatStarted = never;
|
|
1865
|
-
interface VideoNote {
|
|
1866
|
-
file_id: string;
|
|
1867
|
-
file_unique_id: string;
|
|
1868
|
-
length: number;
|
|
1869
|
-
duration: number;
|
|
1870
|
-
thumbnail?: PhotoSize;
|
|
1871
|
-
file_size?: number;
|
|
1872
|
-
}
|
|
1873
|
-
interface Voice {
|
|
1874
|
-
file_id: string;
|
|
1875
|
-
file_unique_id: string;
|
|
1876
|
-
duration: number;
|
|
1877
|
-
mime_type?: string;
|
|
1878
|
-
file_size?: number;
|
|
1879
|
-
}
|
|
1880
|
-
interface WebAppData {
|
|
1881
|
-
data: string;
|
|
1882
|
-
button_text: string;
|
|
1883
|
-
}
|
|
1884
|
-
interface WebAppInfo {
|
|
1885
|
-
url: string;
|
|
1886
|
-
}
|
|
1887
|
-
interface WebhookInfo {
|
|
1888
|
-
url: string;
|
|
1889
|
-
has_custom_certificate: boolean;
|
|
1890
|
-
pending_update_count: number;
|
|
1891
|
-
ip_address?: string;
|
|
1892
|
-
last_error_date?: number;
|
|
1893
|
-
last_error_message?: string;
|
|
1894
|
-
last_synchronization_error_date?: number;
|
|
1895
|
-
max_connections?: number;
|
|
1896
|
-
allowed_updates?: string[];
|
|
1897
|
-
}
|
|
1898
|
-
interface WriteAccessAllowed {
|
|
1899
|
-
from_request?: boolean;
|
|
1900
|
-
web_app_name?: string;
|
|
1901
|
-
from_attachment_menu?: boolean;
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
interface Api {
|
|
1905
|
-
add_sticker_to_set(_: AddStickerToSetInput): boolean;
|
|
1906
|
-
answer_callback_query(_: AnswerCallbackQueryInput): boolean;
|
|
1907
|
-
answer_inline_query(_: AnswerInlineQueryInput): boolean;
|
|
1908
|
-
answer_pre_checkout_query(_: AnswerPreCheckoutQueryInput): boolean;
|
|
1909
|
-
answer_shipping_query(_: AnswerShippingQueryInput): boolean;
|
|
1910
|
-
answer_web_app_query(_: AnswerWebAppQueryInput): SentWebAppMessage;
|
|
1911
|
-
approve_chat_join_request(_: ApproveChatJoinRequestInput): boolean;
|
|
1912
|
-
ban_chat_member(_: BanChatMemberInput): boolean;
|
|
1913
|
-
ban_chat_sender_chat(_: BanChatSenderChatInput): boolean;
|
|
1914
|
-
close(_: CloseInput): boolean;
|
|
1915
|
-
close_forum_topic(_: CloseForumTopicInput): boolean;
|
|
1916
|
-
close_general_forum_topic(_: CloseGeneralForumTopicInput): boolean;
|
|
1917
|
-
convert_gift_to_stars(_: ConvertGiftToStarsInput): boolean;
|
|
1918
|
-
copy_message(_: CopyMessageInput): MessageId;
|
|
1919
|
-
copy_messages(_: CopyMessagesInput): MessageId[];
|
|
1920
|
-
create_chat_invite_link(_: CreateChatInviteLinkInput): ChatInviteLink;
|
|
1921
|
-
create_chat_subscription_invite_link(_: CreateChatSubscriptionInviteLinkInput): ChatInviteLink;
|
|
1922
|
-
create_forum_topic(_: CreateForumTopicInput): ForumTopic;
|
|
1923
|
-
create_invoice_link(_: CreateInvoiceLinkInput): string;
|
|
1924
|
-
create_new_sticker_set(_: CreateNewStickerSetInput): boolean;
|
|
1925
|
-
decline_chat_join_request(_: DeclineChatJoinRequestInput): boolean;
|
|
1926
|
-
delete_business_messages(_: DeleteBusinessMessagesInput): boolean;
|
|
1927
|
-
delete_chat_photo(_: DeleteChatPhotoInput): boolean;
|
|
1928
|
-
delete_chat_sticker_set(_: DeleteChatStickerSetInput): boolean;
|
|
1929
|
-
delete_forum_topic(_: DeleteForumTopicInput): boolean;
|
|
1930
|
-
delete_message(_: DeleteMessageInput): boolean;
|
|
1931
|
-
delete_messages(_: DeleteMessagesInput): boolean;
|
|
1932
|
-
delete_my_commands(_: DeleteMyCommandsInput): boolean;
|
|
1933
|
-
delete_sticker_from_set(_: DeleteStickerFromSetInput): boolean;
|
|
1934
|
-
delete_sticker_set(_: DeleteStickerSetInput): boolean;
|
|
1935
|
-
delete_story(_: DeleteStoryInput): boolean;
|
|
1936
|
-
delete_webhook(_: DeleteWebhookInput): boolean;
|
|
1937
|
-
edit_chat_invite_link(_: EditChatInviteLinkInput): ChatInviteLink;
|
|
1938
|
-
edit_chat_subscription_invite_link(_: EditChatSubscriptionInviteLinkInput): ChatInviteLink;
|
|
1939
|
-
edit_forum_topic(_: EditForumTopicInput): boolean;
|
|
1940
|
-
edit_general_forum_topic(_: EditGeneralForumTopicInput): boolean;
|
|
1941
|
-
edit_message_caption(_: EditMessageCaptionInput): Message | boolean;
|
|
1942
|
-
edit_message_live_location(_: EditMessageLiveLocationInput): Message | boolean;
|
|
1943
|
-
edit_message_media(_: EditMessageMediaInput): Message | boolean;
|
|
1944
|
-
edit_message_reply_markup(_: EditMessageReplyMarkupInput): Message | boolean;
|
|
1945
|
-
edit_message_text(_: EditMessageTextInput): Message | boolean;
|
|
1946
|
-
edit_story(_: EditStoryInput): Story;
|
|
1947
|
-
edit_user_star_subscription(_: EditUserStarSubscriptionInput): boolean;
|
|
1948
|
-
export_chat_invite_link(_: ExportChatInviteLinkInput): string;
|
|
1949
|
-
forward_message(_: ForwardMessageInput): Message;
|
|
1950
|
-
forward_messages(_: ForwardMessagesInput): MessageId[];
|
|
1951
|
-
get_available_gifts(_: GetAvailableGiftsInput): Gifts;
|
|
1952
|
-
get_business_account_gifts(_: GetBusinessAccountGiftsInput): OwnedGifts;
|
|
1953
|
-
get_business_account_star_balance(_: GetBusinessAccountStarBalanceInput): StarAmount;
|
|
1954
|
-
get_business_connection(_: GetBusinessConnectionInput): BusinessConnection;
|
|
1955
|
-
get_chat(_: GetChatInput): ChatFullInfo;
|
|
1956
|
-
get_chat_administrators(_: GetChatAdministratorsInput): ChatMember[];
|
|
1957
|
-
get_chat_member(_: GetChatMemberInput): ChatMember;
|
|
1958
|
-
get_chat_member_count(_: GetChatMemberCountInput): number;
|
|
1959
|
-
get_chat_menu_button(_: GetChatMenuButtonInput): MenuButton;
|
|
1960
|
-
get_custom_emoji_stickers(_: GetCustomEmojiStickersInput): Sticker[];
|
|
1961
|
-
get_file(_: GetFileInput): File$1;
|
|
1962
|
-
get_forum_topic_icon_stickers(_: GetForumTopicIconStickersInput): Sticker[];
|
|
1963
|
-
get_game_high_scores(_: GetGameHighScoresInput): GameHighScore[];
|
|
1964
|
-
get_me(_: GetMeInput): User;
|
|
1965
|
-
get_my_commands(_: GetMyCommandsInput): BotCommand[];
|
|
1966
|
-
get_my_default_administrator_rights(_: GetMyDefaultAdministratorRightsInput): ChatAdministratorRights;
|
|
1967
|
-
get_my_description(_: GetMyDescriptionInput): BotDescription;
|
|
1968
|
-
get_my_name(_: GetMyNameInput): BotName;
|
|
1969
|
-
get_my_short_description(_: GetMyShortDescriptionInput): BotShortDescription;
|
|
1970
|
-
get_star_transactions(_: GetStarTransactionsInput): StarTransactions;
|
|
1971
|
-
get_sticker_set(_: GetStickerSetInput): StickerSet;
|
|
1972
|
-
get_updates(_: GetUpdatesInput): Update[];
|
|
1973
|
-
get_user_chat_boosts(_: GetUserChatBoostsInput): UserChatBoosts;
|
|
1974
|
-
get_user_profile_photos(_: GetUserProfilePhotosInput): UserProfilePhotos;
|
|
1975
|
-
get_webhook_info(_: GetWebhookInfoInput): WebhookInfo;
|
|
1976
|
-
gift_premium_subscription(_: GiftPremiumSubscriptionInput): boolean;
|
|
1977
|
-
hide_general_forum_topic(_: HideGeneralForumTopicInput): boolean;
|
|
1978
|
-
leave_chat(_: LeaveChatInput): boolean;
|
|
1979
|
-
log_out(_: LogOutInput): boolean;
|
|
1980
|
-
pin_chat_message(_: PinChatMessageInput): boolean;
|
|
1981
|
-
post_story(_: PostStoryInput): Story;
|
|
1982
|
-
promote_chat_member(_: PromoteChatMemberInput): boolean;
|
|
1983
|
-
read_business_message(_: ReadBusinessMessageInput): boolean;
|
|
1984
|
-
refund_star_payment(_: RefundStarPaymentInput): boolean;
|
|
1985
|
-
remove_business_account_profile_photo(_: RemoveBusinessAccountProfilePhotoInput): boolean;
|
|
1986
|
-
remove_chat_verification(_: RemoveChatVerificationInput): boolean;
|
|
1987
|
-
remove_user_verification(_: RemoveUserVerificationInput): boolean;
|
|
1988
|
-
reopen_forum_topic(_: ReopenForumTopicInput): boolean;
|
|
1989
|
-
reopen_general_forum_topic(_: ReopenGeneralForumTopicInput): boolean;
|
|
1990
|
-
replace_sticker_in_set(_: ReplaceStickerInSetInput): boolean;
|
|
1991
|
-
restrict_chat_member(_: RestrictChatMemberInput): boolean;
|
|
1992
|
-
revoke_chat_invite_link(_: RevokeChatInviteLinkInput): ChatInviteLink;
|
|
1993
|
-
save_prepared_inline_message(_: SavePreparedInlineMessageInput): PreparedInlineMessage;
|
|
1994
|
-
send_animation(_: SendAnimationInput): Message;
|
|
1995
|
-
send_audio(_: SendAudioInput): Message;
|
|
1996
|
-
send_chat_action(_: SendChatActionInput): boolean;
|
|
1997
|
-
send_contact(_: SendContactInput): Message;
|
|
1998
|
-
send_dice(_: SendDiceInput): Message;
|
|
1999
|
-
send_document(_: SendDocumentInput): Message;
|
|
2000
|
-
send_game(_: SendGameInput): Message;
|
|
2001
|
-
send_gift(_: SendGiftInput): boolean;
|
|
2002
|
-
send_invoice(_: SendInvoiceInput): Message;
|
|
2003
|
-
send_location(_: SendLocationInput): Message;
|
|
2004
|
-
send_media_group(_: SendMediaGroupInput): Message[];
|
|
2005
|
-
send_message(_: SendMessageInput): Message;
|
|
2006
|
-
send_paid_media(_: SendPaidMediaInput): Message;
|
|
2007
|
-
send_photo(_: SendPhotoInput): Message;
|
|
2008
|
-
send_poll(_: SendPollInput): Message;
|
|
2009
|
-
send_sticker(_: SendStickerInput): Message;
|
|
2010
|
-
send_venue(_: SendVenueInput): Message;
|
|
2011
|
-
send_video(_: SendVideoInput): Message;
|
|
2012
|
-
send_video_note(_: SendVideoNoteInput): Message;
|
|
2013
|
-
send_voice(_: SendVoiceInput): Message;
|
|
2014
|
-
set_business_account_bio(_: SetBusinessAccountBioInput): boolean;
|
|
2015
|
-
set_business_account_gift_settings(_: SetBusinessAccountGiftSettingsInput): boolean;
|
|
2016
|
-
set_business_account_name(_: SetBusinessAccountNameInput): boolean;
|
|
2017
|
-
set_business_account_profile_photo(_: SetBusinessAccountProfilePhotoInput): boolean;
|
|
2018
|
-
set_business_account_username(_: SetBusinessAccountUsernameInput): boolean;
|
|
2019
|
-
set_chat_administrator_custom_title(_: SetChatAdministratorCustomTitleInput): boolean;
|
|
2020
|
-
set_chat_description(_: SetChatDescriptionInput): boolean;
|
|
2021
|
-
set_chat_menu_button(_: SetChatMenuButtonInput): boolean;
|
|
2022
|
-
set_chat_permissions(_: SetChatPermissionsInput): boolean;
|
|
2023
|
-
set_chat_photo(_: SetChatPhotoInput): boolean;
|
|
2024
|
-
set_chat_sticker_set(_: SetChatStickerSetInput): boolean;
|
|
2025
|
-
set_chat_title(_: SetChatTitleInput): boolean;
|
|
2026
|
-
set_custom_emoji_sticker_set_thumbnail(_: SetCustomEmojiStickerSetThumbnailInput): boolean;
|
|
2027
|
-
set_game_score(_: SetGameScoreInput): Message | boolean;
|
|
2028
|
-
set_message_reaction(_: SetMessageReactionInput): boolean;
|
|
2029
|
-
set_my_commands(_: SetMyCommandsInput): boolean;
|
|
2030
|
-
set_my_default_administrator_rights(_: SetMyDefaultAdministratorRightsInput): boolean;
|
|
2031
|
-
set_my_description(_: SetMyDescriptionInput): boolean;
|
|
2032
|
-
set_my_name(_: SetMyNameInput): boolean;
|
|
2033
|
-
set_my_short_description(_: SetMyShortDescriptionInput): boolean;
|
|
2034
|
-
set_passport_data_errors(_: SetPassportDataErrorsInput): boolean;
|
|
2035
|
-
set_sticker_emoji_list(_: SetStickerEmojiListInput): boolean;
|
|
2036
|
-
set_sticker_keywords(_: SetStickerKeywordsInput): boolean;
|
|
2037
|
-
set_sticker_mask_position(_: SetStickerMaskPositionInput): boolean;
|
|
2038
|
-
set_sticker_position_in_set(_: SetStickerPositionInSetInput): boolean;
|
|
2039
|
-
set_sticker_set_thumbnail(_: SetStickerSetThumbnailInput): boolean;
|
|
2040
|
-
set_sticker_set_title(_: SetStickerSetTitleInput): boolean;
|
|
2041
|
-
set_user_emoji_status(_: SetUserEmojiStatusInput): boolean;
|
|
2042
|
-
set_webhook(_: SetWebhookInput): boolean;
|
|
2043
|
-
stop_message_live_location(_: StopMessageLiveLocationInput): Message | boolean;
|
|
2044
|
-
stop_poll(_: StopPollInput): Poll;
|
|
2045
|
-
transfer_business_account_stars(_: TransferBusinessAccountStarsInput): boolean;
|
|
2046
|
-
transfer_gift(_: TransferGiftInput): boolean;
|
|
2047
|
-
unban_chat_member(_: UnbanChatMemberInput): boolean;
|
|
2048
|
-
unban_chat_sender_chat(_: UnbanChatSenderChatInput): boolean;
|
|
2049
|
-
unhide_general_forum_topic(_: UnhideGeneralForumTopicInput): boolean;
|
|
2050
|
-
unpin_all_chat_messages(_: UnpinAllChatMessagesInput): boolean;
|
|
2051
|
-
unpin_all_forum_topic_messages(_: UnpinAllForumTopicMessagesInput): boolean;
|
|
2052
|
-
unpin_all_general_forum_topic_messages(_: UnpinAllGeneralForumTopicMessagesInput): boolean;
|
|
2053
|
-
unpin_chat_message(_: UnpinChatMessageInput): boolean;
|
|
2054
|
-
upgrade_gift(_: UpgradeGiftInput): boolean;
|
|
2055
|
-
upload_sticker_file(_: UploadStickerFileInput): File$1;
|
|
2056
|
-
verify_chat(_: VerifyChatInput): boolean;
|
|
2057
|
-
verify_user(_: VerifyUserInput): boolean;
|
|
2058
|
-
}
|
|
2059
|
-
interface AddStickerToSetInput {
|
|
2060
|
-
user_id: number;
|
|
2061
|
-
name: string;
|
|
2062
|
-
sticker: InputSticker;
|
|
2063
|
-
}
|
|
2064
|
-
interface AnswerCallbackQueryInput {
|
|
2065
|
-
callback_query_id: string;
|
|
2066
|
-
text?: string;
|
|
2067
|
-
show_alert?: boolean;
|
|
2068
|
-
url?: string;
|
|
2069
|
-
cache_time?: number;
|
|
2070
|
-
}
|
|
2071
|
-
interface AnswerInlineQueryInput {
|
|
2072
|
-
inline_query_id: string;
|
|
2073
|
-
results: InlineQueryResult[];
|
|
2074
|
-
cache_time?: number;
|
|
2075
|
-
is_personal?: boolean;
|
|
2076
|
-
next_offset?: string;
|
|
2077
|
-
button?: InlineQueryResultsButton;
|
|
2078
|
-
}
|
|
2079
|
-
interface AnswerPreCheckoutQueryInput {
|
|
2080
|
-
pre_checkout_query_id: string;
|
|
39
|
+
declare const isFileContent: (input: unknown) => input is FileContent;
|
|
40
|
+
type TgBotApiResponseSchema = {
|
|
2081
41
|
ok: boolean;
|
|
2082
|
-
|
|
2083
|
-
}
|
|
2084
|
-
interface AnswerShippingQueryInput {
|
|
2085
|
-
shipping_query_id: string;
|
|
2086
|
-
ok: boolean;
|
|
2087
|
-
shipping_options?: ShippingOption[];
|
|
2088
|
-
error_message?: string;
|
|
2089
|
-
}
|
|
2090
|
-
interface AnswerWebAppQueryInput {
|
|
2091
|
-
web_app_query_id: string;
|
|
2092
|
-
result: InlineQueryResult;
|
|
2093
|
-
}
|
|
2094
|
-
interface ApproveChatJoinRequestInput {
|
|
2095
|
-
chat_id: number | string;
|
|
2096
|
-
user_id: number;
|
|
2097
|
-
}
|
|
2098
|
-
interface BanChatMemberInput {
|
|
2099
|
-
chat_id: number | string;
|
|
2100
|
-
user_id: number;
|
|
2101
|
-
until_date?: number;
|
|
2102
|
-
revoke_messages?: boolean;
|
|
2103
|
-
}
|
|
2104
|
-
interface BanChatSenderChatInput {
|
|
2105
|
-
chat_id: number | string;
|
|
2106
|
-
sender_chat_id: number;
|
|
2107
|
-
}
|
|
2108
|
-
interface CloseInput {
|
|
2109
|
-
}
|
|
2110
|
-
interface CloseForumTopicInput {
|
|
2111
|
-
chat_id: number | string;
|
|
2112
|
-
message_thread_id: number;
|
|
2113
|
-
}
|
|
2114
|
-
interface CloseGeneralForumTopicInput {
|
|
2115
|
-
chat_id: number | string;
|
|
2116
|
-
}
|
|
2117
|
-
interface ConvertGiftToStarsInput {
|
|
2118
|
-
business_connection_id: string;
|
|
2119
|
-
owned_gift_id: string;
|
|
2120
|
-
}
|
|
2121
|
-
interface CopyMessageInput {
|
|
2122
|
-
chat_id: number | string;
|
|
2123
|
-
from_chat_id: number | string;
|
|
2124
|
-
message_id: number;
|
|
2125
|
-
message_thread_id?: number;
|
|
2126
|
-
video_start_timestamp?: number;
|
|
2127
|
-
caption?: string;
|
|
2128
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2129
|
-
caption_entities?: MessageEntity[];
|
|
2130
|
-
show_caption_above_media?: boolean;
|
|
2131
|
-
disable_notification?: boolean;
|
|
2132
|
-
protect_content?: boolean;
|
|
2133
|
-
allow_paid_broadcast?: boolean;
|
|
2134
|
-
reply_parameters?: ReplyParameters;
|
|
2135
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2136
|
-
}
|
|
2137
|
-
interface CopyMessagesInput {
|
|
2138
|
-
chat_id: number | string;
|
|
2139
|
-
from_chat_id: number | string;
|
|
2140
|
-
message_ids: number[];
|
|
2141
|
-
message_thread_id?: number;
|
|
2142
|
-
disable_notification?: boolean;
|
|
2143
|
-
protect_content?: boolean;
|
|
2144
|
-
remove_caption?: boolean;
|
|
2145
|
-
}
|
|
2146
|
-
interface CreateChatInviteLinkInput {
|
|
2147
|
-
chat_id: number | string;
|
|
2148
|
-
name?: string;
|
|
2149
|
-
expire_date?: number;
|
|
2150
|
-
member_limit?: number;
|
|
2151
|
-
creates_join_request?: boolean;
|
|
2152
|
-
}
|
|
2153
|
-
interface CreateChatSubscriptionInviteLinkInput {
|
|
2154
|
-
chat_id: number | string;
|
|
2155
|
-
subscription_period: number;
|
|
2156
|
-
subscription_price: number;
|
|
2157
|
-
name?: string;
|
|
2158
|
-
}
|
|
2159
|
-
interface CreateForumTopicInput {
|
|
2160
|
-
chat_id: number | string;
|
|
2161
|
-
name: string;
|
|
2162
|
-
icon_color?: number;
|
|
2163
|
-
icon_custom_emoji_id?: string;
|
|
2164
|
-
}
|
|
2165
|
-
interface CreateInvoiceLinkInput {
|
|
2166
|
-
title: string;
|
|
2167
|
-
description: string;
|
|
2168
|
-
payload: string;
|
|
2169
|
-
currency: string;
|
|
2170
|
-
prices: LabeledPrice[];
|
|
2171
|
-
business_connection_id?: string;
|
|
2172
|
-
provider_token?: string;
|
|
2173
|
-
subscription_period?: number;
|
|
2174
|
-
max_tip_amount?: number;
|
|
2175
|
-
suggested_tip_amounts?: number[];
|
|
2176
|
-
provider_data?: string;
|
|
2177
|
-
photo_url?: string;
|
|
2178
|
-
photo_size?: number;
|
|
2179
|
-
photo_width?: number;
|
|
2180
|
-
photo_height?: number;
|
|
2181
|
-
need_name?: boolean;
|
|
2182
|
-
need_phone_number?: boolean;
|
|
2183
|
-
need_email?: boolean;
|
|
2184
|
-
need_shipping_address?: boolean;
|
|
2185
|
-
send_phone_number_to_provider?: boolean;
|
|
2186
|
-
send_email_to_provider?: boolean;
|
|
2187
|
-
is_flexible?: boolean;
|
|
2188
|
-
}
|
|
2189
|
-
interface CreateNewStickerSetInput {
|
|
2190
|
-
user_id: number;
|
|
2191
|
-
name: string;
|
|
2192
|
-
title: string;
|
|
2193
|
-
stickers: InputSticker[];
|
|
2194
|
-
sticker_type?: string;
|
|
2195
|
-
needs_repainting?: boolean;
|
|
2196
|
-
}
|
|
2197
|
-
interface DeclineChatJoinRequestInput {
|
|
2198
|
-
chat_id: number | string;
|
|
2199
|
-
user_id: number;
|
|
2200
|
-
}
|
|
2201
|
-
interface DeleteBusinessMessagesInput {
|
|
2202
|
-
business_connection_id: string;
|
|
2203
|
-
message_ids: number[];
|
|
2204
|
-
}
|
|
2205
|
-
interface DeleteChatPhotoInput {
|
|
2206
|
-
chat_id: number | string;
|
|
2207
|
-
}
|
|
2208
|
-
interface DeleteChatStickerSetInput {
|
|
2209
|
-
chat_id: number | string;
|
|
2210
|
-
}
|
|
2211
|
-
interface DeleteForumTopicInput {
|
|
2212
|
-
chat_id: number | string;
|
|
2213
|
-
message_thread_id: number;
|
|
2214
|
-
}
|
|
2215
|
-
interface DeleteMessageInput {
|
|
2216
|
-
chat_id: number | string;
|
|
2217
|
-
message_id: number;
|
|
2218
|
-
}
|
|
2219
|
-
interface DeleteMessagesInput {
|
|
2220
|
-
chat_id: number | string;
|
|
2221
|
-
message_ids: number[];
|
|
2222
|
-
}
|
|
2223
|
-
interface DeleteMyCommandsInput {
|
|
2224
|
-
scope?: BotCommandScope;
|
|
2225
|
-
language_code?: string;
|
|
2226
|
-
}
|
|
2227
|
-
interface DeleteStickerFromSetInput {
|
|
2228
|
-
sticker: string;
|
|
2229
|
-
}
|
|
2230
|
-
interface DeleteStickerSetInput {
|
|
2231
|
-
name: string;
|
|
2232
|
-
}
|
|
2233
|
-
interface DeleteStoryInput {
|
|
2234
|
-
business_connection_id: string;
|
|
2235
|
-
story_id: number;
|
|
2236
|
-
}
|
|
2237
|
-
interface DeleteWebhookInput {
|
|
2238
|
-
drop_pending_updates?: boolean;
|
|
2239
|
-
}
|
|
2240
|
-
interface EditChatInviteLinkInput {
|
|
2241
|
-
chat_id: number | string;
|
|
2242
|
-
invite_link: string;
|
|
2243
|
-
name?: string;
|
|
2244
|
-
expire_date?: number;
|
|
2245
|
-
member_limit?: number;
|
|
2246
|
-
creates_join_request?: boolean;
|
|
2247
|
-
}
|
|
2248
|
-
interface EditChatSubscriptionInviteLinkInput {
|
|
2249
|
-
chat_id: number | string;
|
|
2250
|
-
invite_link: string;
|
|
2251
|
-
name?: string;
|
|
2252
|
-
}
|
|
2253
|
-
interface EditForumTopicInput {
|
|
2254
|
-
chat_id: number | string;
|
|
2255
|
-
message_thread_id: number;
|
|
2256
|
-
name?: string;
|
|
2257
|
-
icon_custom_emoji_id?: string;
|
|
2258
|
-
}
|
|
2259
|
-
interface EditGeneralForumTopicInput {
|
|
2260
|
-
chat_id: number | string;
|
|
2261
|
-
name: string;
|
|
2262
|
-
}
|
|
2263
|
-
interface EditMessageCaptionInput {
|
|
2264
|
-
business_connection_id?: string;
|
|
2265
|
-
chat_id?: number | string;
|
|
2266
|
-
message_id?: number;
|
|
2267
|
-
inline_message_id?: string;
|
|
2268
|
-
caption?: string;
|
|
2269
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2270
|
-
caption_entities?: MessageEntity[];
|
|
2271
|
-
show_caption_above_media?: boolean;
|
|
2272
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
2273
|
-
}
|
|
2274
|
-
interface EditMessageLiveLocationInput {
|
|
2275
|
-
latitude: number;
|
|
2276
|
-
longitude: number;
|
|
2277
|
-
business_connection_id?: string;
|
|
2278
|
-
chat_id?: number | string;
|
|
2279
|
-
message_id?: number;
|
|
2280
|
-
inline_message_id?: string;
|
|
2281
|
-
live_period?: number;
|
|
2282
|
-
horizontal_accuracy?: number;
|
|
2283
|
-
heading?: number;
|
|
2284
|
-
proximity_alert_radius?: number;
|
|
2285
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
2286
|
-
}
|
|
2287
|
-
interface EditMessageMediaInput {
|
|
2288
|
-
media: InputMedia;
|
|
2289
|
-
business_connection_id?: string;
|
|
2290
|
-
chat_id?: number | string;
|
|
2291
|
-
message_id?: number;
|
|
2292
|
-
inline_message_id?: string;
|
|
2293
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
2294
|
-
}
|
|
2295
|
-
interface EditMessageReplyMarkupInput {
|
|
2296
|
-
business_connection_id?: string;
|
|
2297
|
-
chat_id?: number | string;
|
|
2298
|
-
message_id?: number;
|
|
2299
|
-
inline_message_id?: string;
|
|
2300
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
2301
|
-
}
|
|
2302
|
-
interface EditMessageTextInput {
|
|
2303
|
-
text: string;
|
|
2304
|
-
business_connection_id?: string;
|
|
2305
|
-
chat_id?: number | string;
|
|
2306
|
-
message_id?: number;
|
|
2307
|
-
inline_message_id?: string;
|
|
2308
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2309
|
-
entities?: MessageEntity[];
|
|
2310
|
-
link_preview_options?: LinkPreviewOptions;
|
|
2311
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
2312
|
-
}
|
|
2313
|
-
interface EditStoryInput {
|
|
2314
|
-
business_connection_id: string;
|
|
2315
|
-
story_id: number;
|
|
2316
|
-
content: InputStoryContent;
|
|
2317
|
-
caption?: string;
|
|
2318
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2319
|
-
caption_entities?: MessageEntity[];
|
|
2320
|
-
areas?: StoryArea[];
|
|
2321
|
-
}
|
|
2322
|
-
interface EditUserStarSubscriptionInput {
|
|
2323
|
-
user_id: number;
|
|
2324
|
-
telegram_payment_charge_id: string;
|
|
2325
|
-
is_canceled: boolean;
|
|
2326
|
-
}
|
|
2327
|
-
interface ExportChatInviteLinkInput {
|
|
2328
|
-
chat_id: number | string;
|
|
2329
|
-
}
|
|
2330
|
-
interface ForwardMessageInput {
|
|
2331
|
-
chat_id: number | string;
|
|
2332
|
-
from_chat_id: number | string;
|
|
2333
|
-
message_id: number;
|
|
2334
|
-
message_thread_id?: number;
|
|
2335
|
-
video_start_timestamp?: number;
|
|
2336
|
-
disable_notification?: boolean;
|
|
2337
|
-
protect_content?: boolean;
|
|
2338
|
-
}
|
|
2339
|
-
interface ForwardMessagesInput {
|
|
2340
|
-
chat_id: number | string;
|
|
2341
|
-
from_chat_id: number | string;
|
|
2342
|
-
message_ids: number[];
|
|
2343
|
-
message_thread_id?: number;
|
|
2344
|
-
disable_notification?: boolean;
|
|
2345
|
-
protect_content?: boolean;
|
|
2346
|
-
}
|
|
2347
|
-
interface GetAvailableGiftsInput {
|
|
2348
|
-
}
|
|
2349
|
-
interface GetBusinessAccountGiftsInput {
|
|
2350
|
-
business_connection_id: string;
|
|
2351
|
-
exclude_unsaved?: boolean;
|
|
2352
|
-
exclude_saved?: boolean;
|
|
2353
|
-
exclude_unlimited?: boolean;
|
|
2354
|
-
exclude_limited?: boolean;
|
|
2355
|
-
exclude_unique?: boolean;
|
|
2356
|
-
sort_by_price?: boolean;
|
|
2357
|
-
offset?: string;
|
|
2358
|
-
limit?: number;
|
|
2359
|
-
}
|
|
2360
|
-
interface GetBusinessAccountStarBalanceInput {
|
|
2361
|
-
business_connection_id: string;
|
|
2362
|
-
}
|
|
2363
|
-
interface GetBusinessConnectionInput {
|
|
2364
|
-
business_connection_id: string;
|
|
2365
|
-
}
|
|
2366
|
-
interface GetChatInput {
|
|
2367
|
-
chat_id: number | string;
|
|
2368
|
-
}
|
|
2369
|
-
interface GetChatAdministratorsInput {
|
|
2370
|
-
chat_id: number | string;
|
|
2371
|
-
}
|
|
2372
|
-
interface GetChatMemberInput {
|
|
2373
|
-
chat_id: number | string;
|
|
2374
|
-
user_id: number;
|
|
2375
|
-
}
|
|
2376
|
-
interface GetChatMemberCountInput {
|
|
2377
|
-
chat_id: number | string;
|
|
2378
|
-
}
|
|
2379
|
-
interface GetChatMenuButtonInput {
|
|
2380
|
-
chat_id?: number;
|
|
2381
|
-
}
|
|
2382
|
-
interface GetCustomEmojiStickersInput {
|
|
2383
|
-
custom_emoji_ids: string[];
|
|
2384
|
-
}
|
|
2385
|
-
interface GetFileInput {
|
|
2386
|
-
file_id: string;
|
|
2387
|
-
}
|
|
2388
|
-
interface GetForumTopicIconStickersInput {
|
|
2389
|
-
}
|
|
2390
|
-
interface GetGameHighScoresInput {
|
|
2391
|
-
user_id: number;
|
|
2392
|
-
chat_id?: number;
|
|
2393
|
-
message_id?: number;
|
|
2394
|
-
inline_message_id?: string;
|
|
2395
|
-
}
|
|
2396
|
-
interface GetMeInput {
|
|
2397
|
-
}
|
|
2398
|
-
interface GetMyCommandsInput {
|
|
2399
|
-
scope?: BotCommandScope;
|
|
2400
|
-
language_code?: string;
|
|
2401
|
-
}
|
|
2402
|
-
interface GetMyDefaultAdministratorRightsInput {
|
|
2403
|
-
for_channels?: boolean;
|
|
2404
|
-
}
|
|
2405
|
-
interface GetMyDescriptionInput {
|
|
2406
|
-
language_code?: string;
|
|
2407
|
-
}
|
|
2408
|
-
interface GetMyNameInput {
|
|
2409
|
-
language_code?: string;
|
|
2410
|
-
}
|
|
2411
|
-
interface GetMyShortDescriptionInput {
|
|
2412
|
-
language_code?: string;
|
|
2413
|
-
}
|
|
2414
|
-
interface GetStarTransactionsInput {
|
|
2415
|
-
offset?: number;
|
|
2416
|
-
limit?: number;
|
|
2417
|
-
}
|
|
2418
|
-
interface GetStickerSetInput {
|
|
2419
|
-
name: string;
|
|
2420
|
-
}
|
|
2421
|
-
interface GetUpdatesInput {
|
|
2422
|
-
offset?: number;
|
|
2423
|
-
limit?: number;
|
|
2424
|
-
timeout?: number;
|
|
2425
|
-
allowed_updates?: string[];
|
|
2426
|
-
}
|
|
2427
|
-
interface GetUserChatBoostsInput {
|
|
2428
|
-
chat_id: number | string;
|
|
2429
|
-
user_id: number;
|
|
2430
|
-
}
|
|
2431
|
-
interface GetUserProfilePhotosInput {
|
|
2432
|
-
user_id: number;
|
|
2433
|
-
offset?: number;
|
|
2434
|
-
limit?: number;
|
|
2435
|
-
}
|
|
2436
|
-
interface GetWebhookInfoInput {
|
|
2437
|
-
}
|
|
2438
|
-
interface GiftPremiumSubscriptionInput {
|
|
2439
|
-
user_id: number;
|
|
2440
|
-
month_count: number;
|
|
2441
|
-
star_count: number;
|
|
2442
|
-
text?: string;
|
|
2443
|
-
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
2444
|
-
text_entities?: MessageEntity[];
|
|
2445
|
-
}
|
|
2446
|
-
interface HideGeneralForumTopicInput {
|
|
2447
|
-
chat_id: number | string;
|
|
2448
|
-
}
|
|
2449
|
-
interface LeaveChatInput {
|
|
2450
|
-
chat_id: number | string;
|
|
2451
|
-
}
|
|
2452
|
-
interface LogOutInput {
|
|
2453
|
-
}
|
|
2454
|
-
interface PinChatMessageInput {
|
|
2455
|
-
chat_id: number | string;
|
|
2456
|
-
message_id: number;
|
|
2457
|
-
business_connection_id?: string;
|
|
2458
|
-
disable_notification?: boolean;
|
|
2459
|
-
}
|
|
2460
|
-
interface PostStoryInput {
|
|
2461
|
-
business_connection_id: string;
|
|
2462
|
-
content: InputStoryContent;
|
|
2463
|
-
active_period: number;
|
|
2464
|
-
caption?: string;
|
|
2465
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2466
|
-
caption_entities?: MessageEntity[];
|
|
2467
|
-
areas?: StoryArea[];
|
|
2468
|
-
post_to_chat_page?: boolean;
|
|
2469
|
-
protect_content?: boolean;
|
|
2470
|
-
}
|
|
2471
|
-
interface PromoteChatMemberInput {
|
|
2472
|
-
chat_id: number | string;
|
|
2473
|
-
user_id: number;
|
|
2474
|
-
is_anonymous?: boolean;
|
|
2475
|
-
can_manage_chat?: boolean;
|
|
2476
|
-
can_delete_messages?: boolean;
|
|
2477
|
-
can_manage_video_chats?: boolean;
|
|
2478
|
-
can_restrict_members?: boolean;
|
|
2479
|
-
can_promote_members?: boolean;
|
|
2480
|
-
can_change_info?: boolean;
|
|
2481
|
-
can_invite_users?: boolean;
|
|
2482
|
-
can_post_stories?: boolean;
|
|
2483
|
-
can_edit_stories?: boolean;
|
|
2484
|
-
can_delete_stories?: boolean;
|
|
2485
|
-
can_post_messages?: boolean;
|
|
2486
|
-
can_edit_messages?: boolean;
|
|
2487
|
-
can_pin_messages?: boolean;
|
|
2488
|
-
can_manage_topics?: boolean;
|
|
2489
|
-
}
|
|
2490
|
-
interface ReadBusinessMessageInput {
|
|
2491
|
-
business_connection_id: string;
|
|
2492
|
-
chat_id: number;
|
|
2493
|
-
message_id: number;
|
|
2494
|
-
}
|
|
2495
|
-
interface RefundStarPaymentInput {
|
|
2496
|
-
user_id: number;
|
|
2497
|
-
telegram_payment_charge_id: string;
|
|
2498
|
-
}
|
|
2499
|
-
interface RemoveBusinessAccountProfilePhotoInput {
|
|
2500
|
-
business_connection_id: string;
|
|
2501
|
-
is_public?: boolean;
|
|
2502
|
-
}
|
|
2503
|
-
interface RemoveChatVerificationInput {
|
|
2504
|
-
chat_id: number | string;
|
|
2505
|
-
}
|
|
2506
|
-
interface RemoveUserVerificationInput {
|
|
2507
|
-
user_id: number;
|
|
2508
|
-
}
|
|
2509
|
-
interface ReopenForumTopicInput {
|
|
2510
|
-
chat_id: number | string;
|
|
2511
|
-
message_thread_id: number;
|
|
2512
|
-
}
|
|
2513
|
-
interface ReopenGeneralForumTopicInput {
|
|
2514
|
-
chat_id: number | string;
|
|
2515
|
-
}
|
|
2516
|
-
interface ReplaceStickerInSetInput {
|
|
2517
|
-
user_id: number;
|
|
2518
|
-
name: string;
|
|
2519
|
-
old_sticker: string;
|
|
2520
|
-
sticker: InputSticker;
|
|
2521
|
-
}
|
|
2522
|
-
interface RestrictChatMemberInput {
|
|
2523
|
-
chat_id: number | string;
|
|
2524
|
-
user_id: number;
|
|
2525
|
-
permissions: ChatPermissions;
|
|
2526
|
-
use_independent_chat_permissions?: boolean;
|
|
2527
|
-
until_date?: number;
|
|
2528
|
-
}
|
|
2529
|
-
interface RevokeChatInviteLinkInput {
|
|
2530
|
-
chat_id: number | string;
|
|
2531
|
-
invite_link: string;
|
|
2532
|
-
}
|
|
2533
|
-
interface SavePreparedInlineMessageInput {
|
|
2534
|
-
user_id: number;
|
|
2535
|
-
result: InlineQueryResult;
|
|
2536
|
-
allow_user_chats?: boolean;
|
|
2537
|
-
allow_bot_chats?: boolean;
|
|
2538
|
-
allow_group_chats?: boolean;
|
|
2539
|
-
allow_channel_chats?: boolean;
|
|
2540
|
-
}
|
|
2541
|
-
interface SendAnimationInput {
|
|
2542
|
-
chat_id: number | string;
|
|
2543
|
-
animation: InputFile | string;
|
|
2544
|
-
business_connection_id?: string;
|
|
2545
|
-
message_thread_id?: number;
|
|
2546
|
-
duration?: number;
|
|
2547
|
-
width?: number;
|
|
2548
|
-
height?: number;
|
|
2549
|
-
thumbnail?: InputFile | string;
|
|
2550
|
-
caption?: string;
|
|
2551
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2552
|
-
caption_entities?: MessageEntity[];
|
|
2553
|
-
show_caption_above_media?: boolean;
|
|
2554
|
-
has_spoiler?: boolean;
|
|
2555
|
-
disable_notification?: boolean;
|
|
2556
|
-
protect_content?: boolean;
|
|
2557
|
-
allow_paid_broadcast?: boolean;
|
|
2558
|
-
message_effect_id?: string;
|
|
2559
|
-
reply_parameters?: ReplyParameters;
|
|
2560
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2561
|
-
}
|
|
2562
|
-
interface SendAudioInput {
|
|
2563
|
-
chat_id: number | string;
|
|
2564
|
-
audio: InputFile | string;
|
|
2565
|
-
business_connection_id?: string;
|
|
2566
|
-
message_thread_id?: number;
|
|
2567
|
-
caption?: string;
|
|
2568
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2569
|
-
caption_entities?: MessageEntity[];
|
|
2570
|
-
duration?: number;
|
|
2571
|
-
performer?: string;
|
|
2572
|
-
title?: string;
|
|
2573
|
-
thumbnail?: InputFile | string;
|
|
2574
|
-
disable_notification?: boolean;
|
|
2575
|
-
protect_content?: boolean;
|
|
2576
|
-
allow_paid_broadcast?: boolean;
|
|
2577
|
-
message_effect_id?: string;
|
|
2578
|
-
reply_parameters?: ReplyParameters;
|
|
2579
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2580
|
-
}
|
|
2581
|
-
interface SendChatActionInput {
|
|
2582
|
-
chat_id: number | string;
|
|
2583
|
-
action: string;
|
|
2584
|
-
business_connection_id?: string;
|
|
2585
|
-
message_thread_id?: number;
|
|
2586
|
-
}
|
|
2587
|
-
interface SendContactInput {
|
|
2588
|
-
chat_id: number | string;
|
|
2589
|
-
phone_number: string;
|
|
2590
|
-
first_name: string;
|
|
2591
|
-
business_connection_id?: string;
|
|
2592
|
-
message_thread_id?: number;
|
|
2593
|
-
last_name?: string;
|
|
2594
|
-
vcard?: string;
|
|
2595
|
-
disable_notification?: boolean;
|
|
2596
|
-
protect_content?: boolean;
|
|
2597
|
-
allow_paid_broadcast?: boolean;
|
|
2598
|
-
message_effect_id?: string;
|
|
2599
|
-
reply_parameters?: ReplyParameters;
|
|
2600
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2601
|
-
}
|
|
2602
|
-
interface SendDiceInput {
|
|
2603
|
-
chat_id: number | string;
|
|
2604
|
-
business_connection_id?: string;
|
|
2605
|
-
message_thread_id?: number;
|
|
2606
|
-
emoji?: "🎲" | "🎯" | "🏀" | "⚽" | "🎳" | "🎰";
|
|
2607
|
-
disable_notification?: boolean;
|
|
2608
|
-
protect_content?: boolean;
|
|
2609
|
-
allow_paid_broadcast?: boolean;
|
|
2610
|
-
message_effect_id?: string;
|
|
2611
|
-
reply_parameters?: ReplyParameters;
|
|
2612
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2613
|
-
}
|
|
2614
|
-
interface SendDocumentInput {
|
|
2615
|
-
chat_id: number | string;
|
|
2616
|
-
document: InputFile | string;
|
|
2617
|
-
business_connection_id?: string;
|
|
2618
|
-
message_thread_id?: number;
|
|
2619
|
-
thumbnail?: InputFile | string;
|
|
2620
|
-
caption?: string;
|
|
2621
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2622
|
-
caption_entities?: MessageEntity[];
|
|
2623
|
-
disable_content_type_detection?: boolean;
|
|
2624
|
-
disable_notification?: boolean;
|
|
2625
|
-
protect_content?: boolean;
|
|
2626
|
-
allow_paid_broadcast?: boolean;
|
|
2627
|
-
message_effect_id?: string;
|
|
2628
|
-
reply_parameters?: ReplyParameters;
|
|
2629
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2630
|
-
}
|
|
2631
|
-
interface SendGameInput {
|
|
2632
|
-
chat_id: number;
|
|
2633
|
-
game_short_name: string;
|
|
2634
|
-
business_connection_id?: string;
|
|
2635
|
-
message_thread_id?: number;
|
|
2636
|
-
disable_notification?: boolean;
|
|
2637
|
-
protect_content?: boolean;
|
|
2638
|
-
allow_paid_broadcast?: boolean;
|
|
2639
|
-
message_effect_id?: string;
|
|
2640
|
-
reply_parameters?: ReplyParameters;
|
|
2641
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
2642
|
-
}
|
|
2643
|
-
interface SendGiftInput {
|
|
2644
|
-
gift_id: string;
|
|
2645
|
-
user_id?: number;
|
|
2646
|
-
chat_id?: number | string;
|
|
2647
|
-
pay_for_upgrade?: boolean;
|
|
2648
|
-
text?: string;
|
|
2649
|
-
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
2650
|
-
text_entities?: MessageEntity[];
|
|
2651
|
-
}
|
|
2652
|
-
interface SendInvoiceInput {
|
|
2653
|
-
chat_id: number | string;
|
|
2654
|
-
title: string;
|
|
2655
|
-
description: string;
|
|
2656
|
-
payload: string;
|
|
2657
|
-
currency: string;
|
|
2658
|
-
prices: LabeledPrice[];
|
|
2659
|
-
message_thread_id?: number;
|
|
2660
|
-
provider_token?: string;
|
|
2661
|
-
max_tip_amount?: number;
|
|
2662
|
-
suggested_tip_amounts?: number[];
|
|
2663
|
-
start_parameter?: string;
|
|
2664
|
-
provider_data?: string;
|
|
2665
|
-
photo_url?: string;
|
|
2666
|
-
photo_size?: number;
|
|
2667
|
-
photo_width?: number;
|
|
2668
|
-
photo_height?: number;
|
|
2669
|
-
need_name?: boolean;
|
|
2670
|
-
need_phone_number?: boolean;
|
|
2671
|
-
need_email?: boolean;
|
|
2672
|
-
need_shipping_address?: boolean;
|
|
2673
|
-
send_phone_number_to_provider?: boolean;
|
|
2674
|
-
send_email_to_provider?: boolean;
|
|
2675
|
-
is_flexible?: boolean;
|
|
2676
|
-
disable_notification?: boolean;
|
|
2677
|
-
protect_content?: boolean;
|
|
2678
|
-
allow_paid_broadcast?: boolean;
|
|
2679
|
-
message_effect_id?: string;
|
|
2680
|
-
reply_parameters?: ReplyParameters;
|
|
2681
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
2682
|
-
}
|
|
2683
|
-
interface SendLocationInput {
|
|
2684
|
-
chat_id: number | string;
|
|
2685
|
-
latitude: number;
|
|
2686
|
-
longitude: number;
|
|
2687
|
-
business_connection_id?: string;
|
|
2688
|
-
message_thread_id?: number;
|
|
2689
|
-
horizontal_accuracy?: number;
|
|
2690
|
-
live_period?: number;
|
|
2691
|
-
heading?: number;
|
|
2692
|
-
proximity_alert_radius?: number;
|
|
2693
|
-
disable_notification?: boolean;
|
|
2694
|
-
protect_content?: boolean;
|
|
2695
|
-
allow_paid_broadcast?: boolean;
|
|
2696
|
-
message_effect_id?: string;
|
|
2697
|
-
reply_parameters?: ReplyParameters;
|
|
2698
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2699
|
-
}
|
|
2700
|
-
interface SendMediaGroupInput {
|
|
2701
|
-
chat_id: number | string;
|
|
2702
|
-
media: (InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo)[];
|
|
2703
|
-
business_connection_id?: string;
|
|
2704
|
-
message_thread_id?: number;
|
|
2705
|
-
disable_notification?: boolean;
|
|
2706
|
-
protect_content?: boolean;
|
|
2707
|
-
allow_paid_broadcast?: boolean;
|
|
2708
|
-
message_effect_id?: string;
|
|
2709
|
-
reply_parameters?: ReplyParameters;
|
|
2710
|
-
}
|
|
2711
|
-
interface SendMessageInput {
|
|
2712
|
-
chat_id: number | string;
|
|
2713
|
-
text: string;
|
|
2714
|
-
business_connection_id?: string;
|
|
2715
|
-
message_thread_id?: number;
|
|
2716
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2717
|
-
entities?: MessageEntity[];
|
|
2718
|
-
link_preview_options?: LinkPreviewOptions;
|
|
2719
|
-
disable_notification?: boolean;
|
|
2720
|
-
protect_content?: boolean;
|
|
2721
|
-
allow_paid_broadcast?: boolean;
|
|
2722
|
-
message_effect_id?: string;
|
|
2723
|
-
reply_parameters?: ReplyParameters;
|
|
2724
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2725
|
-
}
|
|
2726
|
-
interface SendPaidMediaInput {
|
|
2727
|
-
chat_id: number | string;
|
|
2728
|
-
star_count: number;
|
|
2729
|
-
media: InputPaidMedia[];
|
|
2730
|
-
business_connection_id?: string;
|
|
2731
|
-
payload?: string;
|
|
2732
|
-
caption?: string;
|
|
2733
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2734
|
-
caption_entities?: MessageEntity[];
|
|
2735
|
-
show_caption_above_media?: boolean;
|
|
2736
|
-
disable_notification?: boolean;
|
|
2737
|
-
protect_content?: boolean;
|
|
2738
|
-
allow_paid_broadcast?: boolean;
|
|
2739
|
-
reply_parameters?: ReplyParameters;
|
|
2740
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2741
|
-
}
|
|
2742
|
-
interface SendPhotoInput {
|
|
2743
|
-
chat_id: number | string;
|
|
2744
|
-
photo: InputFile | string;
|
|
2745
|
-
business_connection_id?: string;
|
|
2746
|
-
message_thread_id?: number;
|
|
2747
|
-
caption?: string;
|
|
2748
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2749
|
-
caption_entities?: MessageEntity[];
|
|
2750
|
-
show_caption_above_media?: boolean;
|
|
2751
|
-
has_spoiler?: boolean;
|
|
2752
|
-
disable_notification?: boolean;
|
|
2753
|
-
protect_content?: boolean;
|
|
2754
|
-
allow_paid_broadcast?: boolean;
|
|
2755
|
-
message_effect_id?: string;
|
|
2756
|
-
reply_parameters?: ReplyParameters;
|
|
2757
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2758
|
-
}
|
|
2759
|
-
interface SendPollInput {
|
|
2760
|
-
chat_id: number | string;
|
|
2761
|
-
question: string;
|
|
2762
|
-
options: InputPollOption[];
|
|
2763
|
-
business_connection_id?: string;
|
|
2764
|
-
message_thread_id?: number;
|
|
2765
|
-
question_parse_mode?: "HTML" | "MarkdownV2";
|
|
2766
|
-
question_entities?: MessageEntity[];
|
|
2767
|
-
is_anonymous?: boolean;
|
|
2768
|
-
type?: string;
|
|
2769
|
-
allows_multiple_answers?: boolean;
|
|
2770
|
-
correct_option_id?: number;
|
|
2771
|
-
explanation?: string;
|
|
2772
|
-
explanation_parse_mode?: "HTML" | "MarkdownV2";
|
|
2773
|
-
explanation_entities?: MessageEntity[];
|
|
2774
|
-
open_period?: number;
|
|
2775
|
-
close_date?: number;
|
|
2776
|
-
is_closed?: boolean;
|
|
2777
|
-
disable_notification?: boolean;
|
|
2778
|
-
protect_content?: boolean;
|
|
2779
|
-
allow_paid_broadcast?: boolean;
|
|
2780
|
-
message_effect_id?: string;
|
|
2781
|
-
reply_parameters?: ReplyParameters;
|
|
2782
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2783
|
-
}
|
|
2784
|
-
interface SendStickerInput {
|
|
2785
|
-
chat_id: number | string;
|
|
2786
|
-
sticker: InputFile | string;
|
|
2787
|
-
business_connection_id?: string;
|
|
2788
|
-
message_thread_id?: number;
|
|
2789
|
-
emoji?: string;
|
|
2790
|
-
disable_notification?: boolean;
|
|
2791
|
-
protect_content?: boolean;
|
|
2792
|
-
allow_paid_broadcast?: boolean;
|
|
2793
|
-
message_effect_id?: string;
|
|
2794
|
-
reply_parameters?: ReplyParameters;
|
|
2795
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2796
|
-
}
|
|
2797
|
-
interface SendVenueInput {
|
|
2798
|
-
chat_id: number | string;
|
|
2799
|
-
latitude: number;
|
|
2800
|
-
longitude: number;
|
|
2801
|
-
title: string;
|
|
2802
|
-
address: string;
|
|
2803
|
-
business_connection_id?: string;
|
|
2804
|
-
message_thread_id?: number;
|
|
2805
|
-
foursquare_id?: string;
|
|
2806
|
-
foursquare_type?: string;
|
|
2807
|
-
google_place_id?: string;
|
|
2808
|
-
google_place_type?: string;
|
|
2809
|
-
disable_notification?: boolean;
|
|
2810
|
-
protect_content?: boolean;
|
|
2811
|
-
allow_paid_broadcast?: boolean;
|
|
2812
|
-
message_effect_id?: string;
|
|
2813
|
-
reply_parameters?: ReplyParameters;
|
|
2814
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2815
|
-
}
|
|
2816
|
-
interface SendVideoInput {
|
|
2817
|
-
chat_id: number | string;
|
|
2818
|
-
video: InputFile | string;
|
|
2819
|
-
business_connection_id?: string;
|
|
2820
|
-
message_thread_id?: number;
|
|
2821
|
-
duration?: number;
|
|
2822
|
-
width?: number;
|
|
2823
|
-
height?: number;
|
|
2824
|
-
thumbnail?: InputFile | string;
|
|
2825
|
-
cover?: InputFile | string;
|
|
2826
|
-
start_timestamp?: number;
|
|
2827
|
-
caption?: string;
|
|
2828
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2829
|
-
caption_entities?: MessageEntity[];
|
|
2830
|
-
show_caption_above_media?: boolean;
|
|
2831
|
-
has_spoiler?: boolean;
|
|
2832
|
-
supports_streaming?: boolean;
|
|
2833
|
-
disable_notification?: boolean;
|
|
2834
|
-
protect_content?: boolean;
|
|
2835
|
-
allow_paid_broadcast?: boolean;
|
|
2836
|
-
message_effect_id?: string;
|
|
2837
|
-
reply_parameters?: ReplyParameters;
|
|
2838
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2839
|
-
}
|
|
2840
|
-
interface SendVideoNoteInput {
|
|
2841
|
-
chat_id: number | string;
|
|
2842
|
-
video_note: InputFile | string;
|
|
2843
|
-
business_connection_id?: string;
|
|
2844
|
-
message_thread_id?: number;
|
|
2845
|
-
duration?: number;
|
|
2846
|
-
length?: number;
|
|
2847
|
-
thumbnail?: InputFile | string;
|
|
2848
|
-
disable_notification?: boolean;
|
|
2849
|
-
protect_content?: boolean;
|
|
2850
|
-
allow_paid_broadcast?: boolean;
|
|
2851
|
-
message_effect_id?: string;
|
|
2852
|
-
reply_parameters?: ReplyParameters;
|
|
2853
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2854
|
-
}
|
|
2855
|
-
interface SendVoiceInput {
|
|
2856
|
-
chat_id: number | string;
|
|
2857
|
-
voice: InputFile | string;
|
|
2858
|
-
business_connection_id?: string;
|
|
2859
|
-
message_thread_id?: number;
|
|
2860
|
-
caption?: string;
|
|
2861
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
2862
|
-
caption_entities?: MessageEntity[];
|
|
2863
|
-
duration?: number;
|
|
2864
|
-
disable_notification?: boolean;
|
|
2865
|
-
protect_content?: boolean;
|
|
2866
|
-
allow_paid_broadcast?: boolean;
|
|
2867
|
-
message_effect_id?: string;
|
|
2868
|
-
reply_parameters?: ReplyParameters;
|
|
2869
|
-
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
|
|
2870
|
-
}
|
|
2871
|
-
interface SetBusinessAccountBioInput {
|
|
2872
|
-
business_connection_id: string;
|
|
2873
|
-
bio?: string;
|
|
2874
|
-
}
|
|
2875
|
-
interface SetBusinessAccountGiftSettingsInput {
|
|
2876
|
-
business_connection_id: string;
|
|
2877
|
-
show_gift_button: boolean;
|
|
2878
|
-
accepted_gift_types: AcceptedGiftTypes;
|
|
2879
|
-
}
|
|
2880
|
-
interface SetBusinessAccountNameInput {
|
|
2881
|
-
business_connection_id: string;
|
|
2882
|
-
first_name: string;
|
|
2883
|
-
last_name?: string;
|
|
2884
|
-
}
|
|
2885
|
-
interface SetBusinessAccountProfilePhotoInput {
|
|
2886
|
-
business_connection_id: string;
|
|
2887
|
-
photo: InputProfilePhoto;
|
|
2888
|
-
is_public?: boolean;
|
|
2889
|
-
}
|
|
2890
|
-
interface SetBusinessAccountUsernameInput {
|
|
2891
|
-
business_connection_id: string;
|
|
2892
|
-
username?: string;
|
|
2893
|
-
}
|
|
2894
|
-
interface SetChatAdministratorCustomTitleInput {
|
|
2895
|
-
chat_id: number | string;
|
|
2896
|
-
user_id: number;
|
|
2897
|
-
custom_title: string;
|
|
2898
|
-
}
|
|
2899
|
-
interface SetChatDescriptionInput {
|
|
2900
|
-
chat_id: number | string;
|
|
2901
|
-
description?: string;
|
|
2902
|
-
}
|
|
2903
|
-
interface SetChatMenuButtonInput {
|
|
2904
|
-
chat_id?: number;
|
|
2905
|
-
menu_button?: MenuButton;
|
|
2906
|
-
}
|
|
2907
|
-
interface SetChatPermissionsInput {
|
|
2908
|
-
chat_id: number | string;
|
|
2909
|
-
permissions: ChatPermissions;
|
|
2910
|
-
use_independent_chat_permissions?: boolean;
|
|
2911
|
-
}
|
|
2912
|
-
interface SetChatPhotoInput {
|
|
2913
|
-
chat_id: number | string;
|
|
2914
|
-
photo: InputFile;
|
|
2915
|
-
}
|
|
2916
|
-
interface SetChatStickerSetInput {
|
|
2917
|
-
chat_id: number | string;
|
|
2918
|
-
sticker_set_name: string;
|
|
2919
|
-
}
|
|
2920
|
-
interface SetChatTitleInput {
|
|
2921
|
-
chat_id: number | string;
|
|
2922
|
-
title: string;
|
|
2923
|
-
}
|
|
2924
|
-
interface SetCustomEmojiStickerSetThumbnailInput {
|
|
2925
|
-
name: string;
|
|
2926
|
-
custom_emoji_id?: string;
|
|
2927
|
-
}
|
|
2928
|
-
interface SetGameScoreInput {
|
|
2929
|
-
user_id: number;
|
|
2930
|
-
score: number;
|
|
2931
|
-
force?: boolean;
|
|
2932
|
-
disable_edit_message?: boolean;
|
|
2933
|
-
chat_id?: number;
|
|
2934
|
-
message_id?: number;
|
|
2935
|
-
inline_message_id?: string;
|
|
2936
|
-
}
|
|
2937
|
-
interface SetMessageReactionInput {
|
|
2938
|
-
chat_id: number | string;
|
|
2939
|
-
message_id: number;
|
|
2940
|
-
reaction?: ReactionType[];
|
|
2941
|
-
is_big?: boolean;
|
|
2942
|
-
}
|
|
2943
|
-
interface SetMyCommandsInput {
|
|
2944
|
-
commands: BotCommand[];
|
|
2945
|
-
scope?: BotCommandScope;
|
|
2946
|
-
language_code?: string;
|
|
2947
|
-
}
|
|
2948
|
-
interface SetMyDefaultAdministratorRightsInput {
|
|
2949
|
-
rights?: ChatAdministratorRights;
|
|
2950
|
-
for_channels?: boolean;
|
|
2951
|
-
}
|
|
2952
|
-
interface SetMyDescriptionInput {
|
|
42
|
+
error_code?: number;
|
|
2953
43
|
description?: string;
|
|
2954
|
-
|
|
2955
|
-
}
|
|
2956
|
-
interface SetMyNameInput {
|
|
2957
|
-
name?: string;
|
|
2958
|
-
language_code?: string;
|
|
2959
|
-
}
|
|
2960
|
-
interface SetMyShortDescriptionInput {
|
|
2961
|
-
short_description?: string;
|
|
2962
|
-
language_code?: string;
|
|
2963
|
-
}
|
|
2964
|
-
interface SetPassportDataErrorsInput {
|
|
2965
|
-
user_id: number;
|
|
2966
|
-
errors: PassportElementError[];
|
|
2967
|
-
}
|
|
2968
|
-
interface SetStickerEmojiListInput {
|
|
2969
|
-
sticker: string;
|
|
2970
|
-
emoji_list: string[];
|
|
2971
|
-
}
|
|
2972
|
-
interface SetStickerKeywordsInput {
|
|
2973
|
-
sticker: string;
|
|
2974
|
-
keywords?: string[];
|
|
2975
|
-
}
|
|
2976
|
-
interface SetStickerMaskPositionInput {
|
|
2977
|
-
sticker: string;
|
|
2978
|
-
mask_position?: MaskPosition;
|
|
2979
|
-
}
|
|
2980
|
-
interface SetStickerPositionInSetInput {
|
|
2981
|
-
sticker: string;
|
|
2982
|
-
position: number;
|
|
2983
|
-
}
|
|
2984
|
-
interface SetStickerSetThumbnailInput {
|
|
2985
|
-
name: string;
|
|
2986
|
-
user_id: number;
|
|
2987
|
-
format: "static" | "animated" | "video";
|
|
2988
|
-
thumbnail?: InputFile | string;
|
|
2989
|
-
}
|
|
2990
|
-
interface SetStickerSetTitleInput {
|
|
2991
|
-
name: string;
|
|
2992
|
-
title: string;
|
|
2993
|
-
}
|
|
2994
|
-
interface SetUserEmojiStatusInput {
|
|
2995
|
-
user_id: number;
|
|
2996
|
-
emoji_status_custom_emoji_id?: string;
|
|
2997
|
-
emoji_status_expiration_date?: number;
|
|
2998
|
-
}
|
|
2999
|
-
interface SetWebhookInput {
|
|
3000
|
-
url: string;
|
|
3001
|
-
certificate?: InputFile;
|
|
3002
|
-
ip_address?: string;
|
|
3003
|
-
max_connections?: number;
|
|
3004
|
-
allowed_updates?: string[];
|
|
3005
|
-
drop_pending_updates?: boolean;
|
|
3006
|
-
secret_token?: string;
|
|
3007
|
-
}
|
|
3008
|
-
interface StopMessageLiveLocationInput {
|
|
3009
|
-
business_connection_id?: string;
|
|
3010
|
-
chat_id?: number | string;
|
|
3011
|
-
message_id?: number;
|
|
3012
|
-
inline_message_id?: string;
|
|
3013
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
3014
|
-
}
|
|
3015
|
-
interface StopPollInput {
|
|
3016
|
-
chat_id: number | string;
|
|
3017
|
-
message_id: number;
|
|
3018
|
-
business_connection_id?: string;
|
|
3019
|
-
reply_markup?: InlineKeyboardMarkup;
|
|
3020
|
-
}
|
|
3021
|
-
interface TransferBusinessAccountStarsInput {
|
|
3022
|
-
business_connection_id: string;
|
|
3023
|
-
star_count: number;
|
|
3024
|
-
}
|
|
3025
|
-
interface TransferGiftInput {
|
|
3026
|
-
business_connection_id: string;
|
|
3027
|
-
owned_gift_id: string;
|
|
3028
|
-
new_owner_chat_id: number;
|
|
3029
|
-
star_count?: number;
|
|
3030
|
-
}
|
|
3031
|
-
interface UnbanChatMemberInput {
|
|
3032
|
-
chat_id: number | string;
|
|
3033
|
-
user_id: number;
|
|
3034
|
-
only_if_banned?: boolean;
|
|
3035
|
-
}
|
|
3036
|
-
interface UnbanChatSenderChatInput {
|
|
3037
|
-
chat_id: number | string;
|
|
3038
|
-
sender_chat_id: number;
|
|
3039
|
-
}
|
|
3040
|
-
interface UnhideGeneralForumTopicInput {
|
|
3041
|
-
chat_id: number | string;
|
|
3042
|
-
}
|
|
3043
|
-
interface UnpinAllChatMessagesInput {
|
|
3044
|
-
chat_id: number | string;
|
|
3045
|
-
}
|
|
3046
|
-
interface UnpinAllForumTopicMessagesInput {
|
|
3047
|
-
chat_id: number | string;
|
|
3048
|
-
message_thread_id: number;
|
|
3049
|
-
}
|
|
3050
|
-
interface UnpinAllGeneralForumTopicMessagesInput {
|
|
3051
|
-
chat_id: number | string;
|
|
3052
|
-
}
|
|
3053
|
-
interface UnpinChatMessageInput {
|
|
3054
|
-
chat_id: number | string;
|
|
3055
|
-
business_connection_id?: string;
|
|
3056
|
-
message_id?: number;
|
|
3057
|
-
}
|
|
3058
|
-
interface UpgradeGiftInput {
|
|
3059
|
-
business_connection_id: string;
|
|
3060
|
-
owned_gift_id: string;
|
|
3061
|
-
keep_original_details?: boolean;
|
|
3062
|
-
star_count?: number;
|
|
3063
|
-
}
|
|
3064
|
-
interface UploadStickerFileInput {
|
|
3065
|
-
user_id: number;
|
|
3066
|
-
sticker: InputFile;
|
|
3067
|
-
sticker_format: "static" | "animated" | "video";
|
|
3068
|
-
}
|
|
3069
|
-
interface VerifyChatInput {
|
|
3070
|
-
chat_id: number | string;
|
|
3071
|
-
custom_description?: string;
|
|
3072
|
-
}
|
|
3073
|
-
interface VerifyUserInput {
|
|
3074
|
-
user_id: number;
|
|
3075
|
-
custom_description?: string;
|
|
3076
|
-
}
|
|
3077
|
-
|
|
3078
|
-
type AvailableUpdateTypes = Exclude<keyof Update, 'update_id'>;
|
|
3079
|
-
type BotResult = {
|
|
3080
|
-
[K in keyof Api]: K extends `send_${infer R}` ? {
|
|
3081
|
-
type: R;
|
|
3082
|
-
} & Omit<Parameters<Api[K]>[0], 'chat_id'> : never;
|
|
3083
|
-
}[keyof Api];
|
|
3084
|
-
declare const BotResponse_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => Readonly<A> & {
|
|
3085
|
-
readonly _tag: "BotResponse";
|
|
3086
|
-
};
|
|
3087
|
-
declare class BotResponse extends BotResponse_base<{
|
|
3088
|
-
response?: BotResult;
|
|
3089
|
-
}> {
|
|
3090
|
-
static make(result: BotResult): BotResponse;
|
|
3091
|
-
static readonly ignore: BotResponse;
|
|
3092
|
-
}
|
|
3093
|
-
type HandleUpdateFunction<U> = (update: U) => BotResponse | PromiseLike<BotResponse>;
|
|
3094
|
-
type BotUpdatesHandlers = {
|
|
3095
|
-
readonly [K in AvailableUpdateTypes as `on_${K}`]?: HandleUpdateFunction<NonNullable<Update[K]>>;
|
|
44
|
+
result?: unknown;
|
|
3096
45
|
};
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
};
|
|
3100
|
-
interface BotSingleMode extends BotUpdatesHandlers {
|
|
3101
|
-
type: "single";
|
|
3102
|
-
}
|
|
3103
|
-
interface BotBatchMode extends HandleBatchUpdateFunction {
|
|
3104
|
-
type: "batch";
|
|
3105
|
-
}
|
|
3106
|
-
type BotMode = BotSingleMode | BotBatchMode;
|
|
3107
|
-
declare const BotUpdateHandlersTag_base: Context.TagClass<BotUpdateHandlersTag, "BotUpdateHandlers", BotMode>;
|
|
3108
|
-
declare class BotUpdateHandlersTag extends BotUpdateHandlersTag_base {
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
type PollSettings = {
|
|
3112
|
-
log_level: "info" | "debug";
|
|
3113
|
-
on_error: "stop" | "continue";
|
|
3114
|
-
batch_size: number;
|
|
3115
|
-
poll_timeout: number;
|
|
3116
|
-
max_empty_responses: number | undefined;
|
|
3117
|
-
};
|
|
3118
|
-
|
|
3119
|
-
declare class BatchUpdateResult extends Data.Class<{
|
|
3120
|
-
hasErrors: boolean;
|
|
3121
|
-
updates: Update[];
|
|
3122
|
-
}> {
|
|
3123
|
-
}
|
|
3124
|
-
|
|
3125
|
-
/**
|
|
3126
|
-
* This module provides utility functions for input configuration
|
|
3127
|
-
*/
|
|
3128
|
-
|
|
3129
|
-
interface RunBotInputBase {
|
|
3130
|
-
mode: BotMode;
|
|
3131
|
-
poll?: Partial<PollSettings>;
|
|
3132
|
-
}
|
|
3133
|
-
interface RunBotInputFromJsonFile extends RunBotInputBase {
|
|
3134
|
-
type: "fromJsonFile";
|
|
3135
|
-
}
|
|
3136
|
-
interface RunBotInputConfig extends RunBotInputBase, TgBotClientSettingsInput {
|
|
3137
|
-
type: "config";
|
|
3138
|
-
}
|
|
3139
|
-
type RunBotInput = RunBotInputFromJsonFile | RunBotInputConfig;
|
|
3140
|
-
|
|
3141
|
-
type BotInstance = Micro.Micro.Success<ReturnType<typeof launchBot>>;
|
|
3142
|
-
declare const launchBot: (input: RunBotInput) => Micro.Micro<{
|
|
3143
|
-
readonly reload: (mode: BotMode) => Promise<void>;
|
|
3144
|
-
readonly fiber: () => Micro.MicroFiber<BatchUpdateResult, TgBotClientError | FetchUpdatesError> | undefined;
|
|
3145
|
-
}, string, never>;
|
|
3146
|
-
|
|
3147
|
-
declare const BotRunService_base: Context.ReferenceClass<BotRunService, "BotRunService", {
|
|
3148
|
-
readonly runBotInBackground: Micro.Micro<void, never, TgBotClientConfig | BotUpdateHandlersTag>;
|
|
3149
|
-
readonly getFiber: () => Micro.MicroFiber<BatchUpdateResult, TgBotClientError | FetchUpdatesError> | undefined;
|
|
3150
|
-
}>;
|
|
3151
|
-
declare class BotRunService extends BotRunService_base {
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
declare const runTgChatBot: (input: RunBotInput) => Promise<{
|
|
3155
|
-
readonly reload: (mode: BotMode) => Promise<void>;
|
|
3156
|
-
readonly fiber: () => Micro.MicroFiber<BatchUpdateResult, TgBotClientError | FetchUpdatesError> | undefined;
|
|
3157
|
-
}>;
|
|
3158
|
-
declare const defineBot: (input: BotUpdatesHandlers) => BotUpdatesHandlers;
|
|
3159
|
-
|
|
3160
|
-
declare const getFile: (fileId: string) => Micro.Micro<File, TgBotClientError, TgBotClientConfig>;
|
|
3161
|
-
|
|
3162
|
-
type ClientFileServiceInterface = Context.Tag.Service<typeof ClientFileService>;
|
|
3163
|
-
declare const ClientFileService_base: Context.TagClass<ClientFileService, "ClientFileService", {
|
|
3164
|
-
getFile: (input: {
|
|
3165
|
-
file_id: string;
|
|
3166
|
-
}) => ReturnType<typeof getFile>;
|
|
3167
|
-
}>;
|
|
3168
|
-
declare class ClientFileService extends ClientFileService_base {
|
|
3169
|
-
}
|
|
3170
|
-
|
|
3171
|
-
type TgBotClient = ReturnType<typeof makeTgBotClient>;
|
|
3172
|
-
declare const makeTgBotClient: (input: TgBotClientSettingsInput) => {
|
|
3173
|
-
execute: <M extends keyof Api>(method: M, input: Parameters<Api[M]>[0]) => Promise<ReturnType<Api[M]>>;
|
|
3174
|
-
getFile: (input: Parameters<ClientFileServiceInterface["getFile"]>[0]) => Promise<File>;
|
|
3175
|
-
};
|
|
3176
|
-
|
|
3177
|
-
type BindOrUnbindEventHandler = <K extends keyof EventHandlers>(eventName: K, handler: EventHandlers[K]) => void;
|
|
3178
|
-
type EventHandlers = {
|
|
3179
|
-
activated: () => void;
|
|
3180
|
-
deactivated: () => void;
|
|
3181
|
-
themeChanged: () => void;
|
|
3182
|
-
viewportChanged: (options: {
|
|
3183
|
-
isStateStable: boolean;
|
|
3184
|
-
}) => void;
|
|
3185
|
-
safeAreaChanged: () => void;
|
|
3186
|
-
contentSafeAreaChanged: () => void;
|
|
3187
|
-
mainButtonClicked: () => void;
|
|
3188
|
-
backButtonClicked: () => void;
|
|
3189
|
-
settingsButtonClicked: () => void;
|
|
3190
|
-
invoiceClosed: (options: {
|
|
3191
|
-
url: string;
|
|
3192
|
-
status: "paid" | "cancelled" | "failed" | "pending";
|
|
3193
|
-
}) => void;
|
|
3194
|
-
popupClosed: (options: {
|
|
3195
|
-
button_id: string | null;
|
|
3196
|
-
}) => void;
|
|
3197
|
-
qrTextReceived: (options: {
|
|
3198
|
-
data: string;
|
|
3199
|
-
}) => void;
|
|
3200
|
-
scanQrPopupClosed: () => void;
|
|
3201
|
-
clipboardTextReceived: (options: {
|
|
3202
|
-
data: string;
|
|
3203
|
-
}) => void;
|
|
3204
|
-
writeAccessRequested: (options: {
|
|
3205
|
-
status: "allowed" | "cancelled";
|
|
3206
|
-
}) => void;
|
|
3207
|
-
biometricManagerUpdated: () => void;
|
|
3208
|
-
biometricAuthRequested: (options: {
|
|
3209
|
-
isAuthenticated: boolean;
|
|
3210
|
-
biometricToken: string | null;
|
|
3211
|
-
}) => void;
|
|
3212
|
-
biometricTokenUpdated: (options: {
|
|
3213
|
-
isUpdated: boolean;
|
|
3214
|
-
}) => void;
|
|
3215
|
-
fullscreenChanged: () => void;
|
|
3216
|
-
fullscreenFailed: (options: {
|
|
3217
|
-
error: "UNSUPPORTED" | "ALREADY_FULLSCREEN";
|
|
3218
|
-
}) => void;
|
|
3219
|
-
homeScreenAdded: () => void;
|
|
3220
|
-
homeScreenChecked: (options: {
|
|
3221
|
-
status: "unsupported" | "unknown" | "added" | "missed";
|
|
3222
|
-
}) => void;
|
|
3223
|
-
accelerometerStarted: () => void;
|
|
3224
|
-
accelerometerStopped: () => void;
|
|
3225
|
-
accelerometerChanged: () => void;
|
|
3226
|
-
accelerometerFailed: (options: {
|
|
3227
|
-
error: "UNSUPPORTED";
|
|
3228
|
-
}) => void;
|
|
3229
|
-
deviceOrientationStarted: () => void;
|
|
3230
|
-
deviceOrientationStopped: () => void;
|
|
3231
|
-
deviceOrientationChanged: () => void;
|
|
3232
|
-
deviceOrientationFailed: (options: {
|
|
3233
|
-
error: "UNSUPPORTED";
|
|
3234
|
-
}) => void;
|
|
3235
|
-
gyroscopeStarted: () => void;
|
|
3236
|
-
gyroscopeStopped: () => void;
|
|
3237
|
-
gyroscopeChanged: () => void;
|
|
3238
|
-
gyroscopeFailed: (options: {
|
|
3239
|
-
error: "UNSUPPORTED";
|
|
3240
|
-
}) => void;
|
|
3241
|
-
locationManagerUpdated: () => void;
|
|
3242
|
-
locationRequested: (options: {
|
|
3243
|
-
locationData: LocationData;
|
|
3244
|
-
}) => void;
|
|
3245
|
-
shareMessageSent: () => void;
|
|
3246
|
-
shareMessageFailed: (options: {
|
|
3247
|
-
error: "UNSUPPORTED" | "MESSAGE_EXPIRED" | "MESSAGE_SEND_FAILED" | "USER_DECLINED" | "UNKNOWN_ERROR";
|
|
3248
|
-
}) => void;
|
|
3249
|
-
emojiStatusSet: () => void;
|
|
3250
|
-
emojiStatusFailed: (options: {
|
|
3251
|
-
error: "UNSUPPORTED" | "SUGGESTED_EMOJI_INVALID" | "DURATION_INVALID" | "USER_DECLINED" | "SERVER_ERROR" | "UNKNOWN_ERROR";
|
|
3252
|
-
}) => void;
|
|
3253
|
-
emojiStatusAccessRequested: (options: {
|
|
3254
|
-
status: "allowed" | "cancelled";
|
|
3255
|
-
}) => void;
|
|
3256
|
-
fileDownloadRequested: (options: {
|
|
3257
|
-
status: "downloading" | "cancelled";
|
|
3258
|
-
}) => void;
|
|
3259
|
-
};
|
|
3260
|
-
|
|
3261
|
-
interface TgWebApp {
|
|
3262
|
-
initData: string;
|
|
3263
|
-
initDataUnsafe: WebAppInitData;
|
|
3264
|
-
version: string;
|
|
3265
|
-
platform: string;
|
|
3266
|
-
colorScheme: string;
|
|
3267
|
-
themeParams: ThemeParams;
|
|
3268
|
-
isActive: boolean;
|
|
3269
|
-
isExpanded: boolean;
|
|
3270
|
-
viewportHeight: number;
|
|
3271
|
-
viewportStableHeight: number;
|
|
3272
|
-
headerColor: string;
|
|
3273
|
-
backgroundColor: string;
|
|
3274
|
-
bottomBarColor: string;
|
|
3275
|
-
isClosingConfirmationEnabled: boolean;
|
|
3276
|
-
isVerticalSwipesEnabled: boolean;
|
|
3277
|
-
isFullscreen: boolean;
|
|
3278
|
-
isOrientationLocked: boolean;
|
|
3279
|
-
safeAreaInset: SafeAreaInset;
|
|
3280
|
-
contentSafeAreaInset: ContentSafeAreaInset;
|
|
3281
|
-
BackButton: BackButton;
|
|
3282
|
-
MainButton: BottomButton;
|
|
3283
|
-
SecondaryButton: BottomButton;
|
|
3284
|
-
SettingsButton: SettingsButton;
|
|
3285
|
-
HapticFeedback: HapticFeedback;
|
|
3286
|
-
CloudStorage: CloudStorage;
|
|
3287
|
-
BiometricManager: BiometricManager;
|
|
3288
|
-
Accelerometer: Accelerometer;
|
|
3289
|
-
DeviceOrientation: DeviceOrientation;
|
|
3290
|
-
Gyroscope: Gyroscope;
|
|
3291
|
-
LocationManager: LocationManager;
|
|
3292
|
-
DeviceStorage: DeviceStorage;
|
|
3293
|
-
SecureStorage: SecureStorage;
|
|
3294
|
-
isVersionAtLeast: (version: string) => boolean;
|
|
3295
|
-
setHeaderColor: (color: string) => void;
|
|
3296
|
-
setBackgroundColor: (color: string) => void;
|
|
3297
|
-
setBottomBarColor: (color: string) => void;
|
|
3298
|
-
enableClosingConfirmation: () => void;
|
|
3299
|
-
disableClosingConfirmation: () => void;
|
|
3300
|
-
enableVerticalSwipes: () => void;
|
|
3301
|
-
disableVerticalSwipes: () => void;
|
|
3302
|
-
requestFullscreen: () => void;
|
|
3303
|
-
exitFullscreen: () => void;
|
|
3304
|
-
lockOrientation: () => void;
|
|
3305
|
-
unlockOrientation: () => void;
|
|
3306
|
-
addToHomeScreen: () => void;
|
|
3307
|
-
checkHomeScreenStatus: (callback?: (status: "unsupported" | "unknown" | "added" | "missed") => void) => void;
|
|
3308
|
-
onEvent: BindOrUnbindEventHandler;
|
|
3309
|
-
offEvent: BindOrUnbindEventHandler;
|
|
3310
|
-
sendData: (data: string) => void;
|
|
3311
|
-
switchInlineQuery: (query: string, chat_type?: "users" | "bots" | "groups" | "channels") => void;
|
|
3312
|
-
openLink: (url: string, options?: {
|
|
3313
|
-
try_instant_view: boolean;
|
|
3314
|
-
}) => void;
|
|
3315
|
-
openTelegramLink: (url: string) => void;
|
|
3316
|
-
openInvoice: (url: string, callback?: (invoiceStatus: unknown) => void) => void;
|
|
3317
|
-
shareToStory: (mediaUrl: string, options?: StoryShareParams) => void;
|
|
3318
|
-
shareMessage: (msg_id: number, options?: (isSent: boolean) => void) => void;
|
|
3319
|
-
setEmojiStatus: (custom_emoj_id: string, params?: EmojiStatusParams, callback?: (isStatusSet: boolean) => void) => void;
|
|
3320
|
-
requestEmojiStatusAccess: (url: string, callback?: (invoiceStatus: unknown) => void) => void;
|
|
3321
|
-
downloadFile: (params: DownloadFileParams, callback?: (isAccepted: boolean) => void) => void;
|
|
3322
|
-
showPopup: (params: PopupParams, callback?: (buttonId: string) => void) => void;
|
|
3323
|
-
showAlert: (message: string, callback?: () => void) => void;
|
|
3324
|
-
showConfirm: (message: string, callback?: (isOk: boolean) => void) => void;
|
|
3325
|
-
showScanQrPopup: (params: ScanQrPopupParams, callback?: (data: string) => boolean) => void;
|
|
3326
|
-
closeScanQrPopup: () => void;
|
|
3327
|
-
readTextFromClipboard: (callback?: (text: string) => void) => void;
|
|
3328
|
-
requestWriteAccess: (callback?: (isGranted: boolean) => void) => void;
|
|
3329
|
-
requestContact: (callback?: (isShared: boolean) => void) => void;
|
|
3330
|
-
ready: () => void;
|
|
3331
|
-
expand: () => void;
|
|
3332
|
-
close: () => void;
|
|
3333
|
-
}
|
|
3334
|
-
interface Accelerometer {
|
|
3335
|
-
isStarted: boolean;
|
|
3336
|
-
x: number;
|
|
3337
|
-
y: number;
|
|
3338
|
-
z: number;
|
|
3339
|
-
start: (params: AccelerometerStartParams, callback?: (isStarted: boolean) => void) => Accelerometer;
|
|
3340
|
-
stop: (callback?: (isStopped: boolean) => void) => Accelerometer;
|
|
3341
|
-
}
|
|
3342
|
-
interface AccelerometerStartParams {
|
|
3343
|
-
refresh_rate?: number;
|
|
3344
|
-
}
|
|
3345
|
-
interface BackButton {
|
|
3346
|
-
isVisible: boolean;
|
|
3347
|
-
onClick: EventHandlers["backButtonClicked"];
|
|
3348
|
-
offClick: EventHandlers["backButtonClicked"];
|
|
3349
|
-
show: () => BackButton;
|
|
3350
|
-
hide: () => BackButton;
|
|
3351
|
-
}
|
|
3352
|
-
interface BiometricAuthenticateParams {
|
|
3353
|
-
reason?: string;
|
|
3354
|
-
}
|
|
3355
|
-
interface BiometricManager {
|
|
3356
|
-
isInited: boolean;
|
|
3357
|
-
isBiometricAvailable: boolean;
|
|
3358
|
-
biometricType: "finger" | "face" | "unknown";
|
|
3359
|
-
isAccessRequested: boolean;
|
|
3360
|
-
isAccessGranted: boolean;
|
|
3361
|
-
isBiometricTokenSaved: boolean;
|
|
3362
|
-
deviceId: string;
|
|
3363
|
-
init: (callback?: () => void) => BiometricManager;
|
|
3364
|
-
requestAccess: (params: BiometricRequestAccessParams, callback?: (isGranted: boolean) => void) => BiometricManager;
|
|
3365
|
-
authenticate: (params: BiometricAuthenticateParams, callback?: (isAuthenticated: boolean) => void) => BiometricManager;
|
|
3366
|
-
updateBiometricToken: (token: string, callback?: (isTokenUpdated: boolean) => void) => BiometricManager;
|
|
3367
|
-
openSettings: () => BiometricManager;
|
|
3368
|
-
}
|
|
3369
|
-
interface BiometricRequestAccessParams {
|
|
3370
|
-
reason?: string;
|
|
3371
|
-
}
|
|
3372
|
-
interface BottomButton {
|
|
3373
|
-
type: string;
|
|
3374
|
-
text: string;
|
|
3375
|
-
color: string;
|
|
3376
|
-
textColor: string;
|
|
3377
|
-
isVisible: boolean;
|
|
3378
|
-
isActive: boolean;
|
|
3379
|
-
hasShineEffect: boolean;
|
|
3380
|
-
position: string;
|
|
3381
|
-
isProgressVisible: boolean;
|
|
3382
|
-
setText: (text: string) => BottomButton;
|
|
3383
|
-
onClick: (callback: () => void) => BottomButton;
|
|
3384
|
-
offClick: (callback: () => void) => BottomButton;
|
|
3385
|
-
show: () => BottomButton;
|
|
3386
|
-
hide: () => BottomButton;
|
|
3387
|
-
enable: () => BottomButton;
|
|
3388
|
-
disable: () => BottomButton;
|
|
3389
|
-
showProgress: (callback: (leaveActive: boolean) => void) => BottomButton;
|
|
3390
|
-
hideProgress: () => BottomButton;
|
|
3391
|
-
setParams: (params: {
|
|
3392
|
-
text: string;
|
|
3393
|
-
color: string;
|
|
3394
|
-
has_shine_effect: boolean;
|
|
3395
|
-
position: unknown;
|
|
3396
|
-
is_active: boolean;
|
|
3397
|
-
is_visible: boolean;
|
|
3398
|
-
}) => BottomButton;
|
|
3399
|
-
}
|
|
3400
|
-
interface CloudStorage {
|
|
3401
|
-
setItem: (key: string, value: string, callback?: (error: unknown | null) => void) => CloudStorage;
|
|
3402
|
-
getItem: (key: string, callback: (error: unknown | null, value: string | null) => void) => CloudStorage;
|
|
3403
|
-
getItems: (keys: string[], callback: (error: string | null, values: Record<string, string> | null) => void) => CloudStorage;
|
|
3404
|
-
removeItem: (key: string, callback?: (error: string | null, isDeleted: boolean) => void) => CloudStorage;
|
|
3405
|
-
removeItems: (keys: string[], callback?: (error: string | null, isDeleted: boolean) => void) => CloudStorage;
|
|
3406
|
-
getKeys: (callback: (error: string | null, keys: string[] | null) => void) => CloudStorage;
|
|
3407
|
-
}
|
|
3408
|
-
interface ContentSafeAreaInset {
|
|
3409
|
-
top: number;
|
|
3410
|
-
bottom: number;
|
|
3411
|
-
left: number;
|
|
3412
|
-
right: number;
|
|
3413
|
-
}
|
|
3414
|
-
interface DeviceOrientation {
|
|
3415
|
-
isStarted: boolean;
|
|
3416
|
-
absolute: boolean;
|
|
3417
|
-
alpha: number;
|
|
3418
|
-
beta: number;
|
|
3419
|
-
gamma: number;
|
|
3420
|
-
start: (params: DeviceOrientationStartParams, callback?: (isTracking: boolean) => void) => void;
|
|
3421
|
-
stop: (callback?: (isStopped: boolean) => void) => void;
|
|
3422
|
-
}
|
|
3423
|
-
interface DeviceOrientationStartParams {
|
|
3424
|
-
refresh_rate?: number;
|
|
3425
|
-
need_absolute?: boolean;
|
|
3426
|
-
}
|
|
3427
|
-
interface DeviceStorage {
|
|
3428
|
-
setItem: (key: string, value: string, callback?: (error: unknown | null, isStored: boolean) => void) => DeviceStorage;
|
|
3429
|
-
getItem: (key: string, callback: (error: unknown | null, value: string | null) => void) => DeviceStorage;
|
|
3430
|
-
removeItem: (key: string, callback?: (error: unknown | null, isRemoved: boolean) => void) => DeviceStorage;
|
|
3431
|
-
clear: (callback?: (error: unknown | null, isCleared: boolean) => void) => DeviceStorage;
|
|
3432
|
-
}
|
|
3433
|
-
interface DownloadFileParams {
|
|
3434
|
-
url: string;
|
|
3435
|
-
file_name: string;
|
|
3436
|
-
}
|
|
3437
|
-
interface EmojiStatusParams {
|
|
3438
|
-
duration?: number;
|
|
3439
|
-
}
|
|
3440
|
-
interface Gyroscope {
|
|
3441
|
-
isStarted: boolean;
|
|
3442
|
-
x: number;
|
|
3443
|
-
y: number;
|
|
3444
|
-
z: number;
|
|
3445
|
-
start: (params: GyroscopeStartParams, callback?: (isTracking: boolean) => void) => void;
|
|
3446
|
-
stop: (callback?: (isStopped: boolean) => void) => void;
|
|
3447
|
-
}
|
|
3448
|
-
interface GyroscopeStartParams {
|
|
3449
|
-
refresh_rate?: number;
|
|
3450
|
-
}
|
|
3451
|
-
interface HapticFeedback {
|
|
3452
|
-
impactOccurred: (style: "light" | "medium" | "heavy" | "rigid" | "soft") => void;
|
|
3453
|
-
notificationOccurred: (type: "error" | "success" | "warning") => void;
|
|
3454
|
-
selectionChanged: () => HapticFeedback;
|
|
3455
|
-
}
|
|
3456
|
-
interface LocationData {
|
|
3457
|
-
latitude: number;
|
|
3458
|
-
longitude: number;
|
|
3459
|
-
altitude: number;
|
|
3460
|
-
course: number;
|
|
3461
|
-
speed: number;
|
|
3462
|
-
horizontal_accuracy: number;
|
|
3463
|
-
vertical_accuracy: number;
|
|
3464
|
-
course_accuracy: number;
|
|
3465
|
-
speed_accuracy: number;
|
|
3466
|
-
}
|
|
3467
|
-
interface LocationManager {
|
|
3468
|
-
isInited: boolean;
|
|
3469
|
-
isLocationAvailable: boolean;
|
|
3470
|
-
isAccessRequested: boolean;
|
|
3471
|
-
isAccessGranted: boolean;
|
|
3472
|
-
init: (callback?: () => void) => LocationManager;
|
|
3473
|
-
getLocation: (callback: (location: LocationData | null) => void) => LocationManager;
|
|
3474
|
-
openSettings: () => LocationManager;
|
|
3475
|
-
}
|
|
3476
|
-
interface PopupButton {
|
|
3477
|
-
id?: string;
|
|
3478
|
-
type?: "OK" | "Close" | "Cancel";
|
|
3479
|
-
text?: string;
|
|
3480
|
-
}
|
|
3481
|
-
interface PopupParams {
|
|
3482
|
-
message: string;
|
|
3483
|
-
title?: string;
|
|
3484
|
-
buttons?: PopupButton[];
|
|
3485
|
-
}
|
|
3486
|
-
interface SafeAreaInset {
|
|
3487
|
-
top: number;
|
|
3488
|
-
bottom: number;
|
|
3489
|
-
left: number;
|
|
3490
|
-
right: number;
|
|
3491
|
-
}
|
|
3492
|
-
interface ScanQrPopupParams {
|
|
3493
|
-
text?: string;
|
|
3494
|
-
}
|
|
3495
|
-
interface SecureStorage {
|
|
3496
|
-
setItem: (key: string, value: string, callback?: (error: unknown | null, isStored: boolean) => void) => SecureStorage;
|
|
3497
|
-
getItem: (key: string, callback: (error: unknown | null, value: string | null, canBeRestored: boolean) => void) => SecureStorage;
|
|
3498
|
-
restoreItem: (key: string, callback?: (error: unknown | null, value: string | null) => void) => SecureStorage;
|
|
3499
|
-
removeItem: (key: string, callback?: (error: unknown | null, isRemoved: boolean) => void) => SecureStorage;
|
|
3500
|
-
clear: (callback?: (error: unknown | null, isCleared: boolean) => void) => SecureStorage;
|
|
3501
|
-
}
|
|
3502
|
-
interface SettingsButton {
|
|
3503
|
-
isVisible: boolean;
|
|
3504
|
-
onClick: (callback: () => void) => SettingsButton;
|
|
3505
|
-
offClick: (callback: () => void) => SettingsButton;
|
|
3506
|
-
show: () => SettingsButton;
|
|
3507
|
-
hide: () => SettingsButton;
|
|
3508
|
-
}
|
|
3509
|
-
interface StoryShareParams {
|
|
3510
|
-
text?: string;
|
|
3511
|
-
widget_link?: StoryWidgetLink;
|
|
3512
|
-
}
|
|
3513
|
-
interface StoryWidgetLink {
|
|
3514
|
-
url: string;
|
|
3515
|
-
name?: string;
|
|
3516
|
-
}
|
|
3517
|
-
interface ThemeParams {
|
|
3518
|
-
bg_color?: string;
|
|
3519
|
-
text_color?: string;
|
|
3520
|
-
hint_color?: string;
|
|
3521
|
-
link_color?: string;
|
|
3522
|
-
button_color?: string;
|
|
3523
|
-
button_text_color?: string;
|
|
3524
|
-
secondary_bg_color?: string;
|
|
3525
|
-
header_bg_color?: string;
|
|
3526
|
-
bottom_bar_bg_color?: string;
|
|
3527
|
-
accent_text_color?: string;
|
|
3528
|
-
section_bg_color?: string;
|
|
3529
|
-
section_header_text_color?: string;
|
|
3530
|
-
section_separator_color?: string;
|
|
3531
|
-
subtitle_text_color?: string;
|
|
3532
|
-
destructive_text_color?: string;
|
|
3533
|
-
}
|
|
3534
|
-
interface WebAppChat {
|
|
3535
|
-
id: number;
|
|
3536
|
-
type: "group" | "supergroup" | "channel";
|
|
3537
|
-
title: string;
|
|
3538
|
-
username?: string;
|
|
3539
|
-
photo_url?: "in";
|
|
3540
|
-
}
|
|
3541
|
-
interface WebAppInitData {
|
|
3542
|
-
auth_date: number;
|
|
3543
|
-
hash: string;
|
|
3544
|
-
signature: string;
|
|
3545
|
-
query_id?: string;
|
|
3546
|
-
user?: WebAppUser;
|
|
3547
|
-
receiver?: WebAppUser;
|
|
3548
|
-
chat?: WebAppChat;
|
|
3549
|
-
chat_type?: string;
|
|
3550
|
-
chat_instance?: string;
|
|
3551
|
-
start_param?: string;
|
|
3552
|
-
can_send_after?: number;
|
|
3553
|
-
}
|
|
3554
|
-
interface WebAppUser {
|
|
3555
|
-
id: number;
|
|
3556
|
-
first_name: string;
|
|
3557
|
-
is_bot?: boolean;
|
|
3558
|
-
last_name?: string;
|
|
3559
|
-
username?: string;
|
|
3560
|
-
language_code?: string;
|
|
3561
|
-
is_premium?: boolean;
|
|
3562
|
-
added_to_attachment_menu?: boolean;
|
|
3563
|
-
allows_write_to_pm?: boolean;
|
|
3564
|
-
photo_url?: "in";
|
|
3565
|
-
}
|
|
46
|
+
declare const isTgBotApiResponse: (input: unknown) => input is TgBotApiResponseSchema;
|
|
47
|
+
declare const isTgBotApiUpdate: (input: unknown) => input is Update;
|
|
3566
48
|
|
|
3567
|
-
declare const
|
|
49
|
+
declare const TG_BOT_API_URL = "https://api.telegram.org";
|
|
3568
50
|
declare const MESSAGE_EFFECTS: {
|
|
3569
51
|
readonly "\uD83D\uDD25": "5104841245755180586";
|
|
3570
52
|
readonly "\uD83D\uDC4D": "5107584321108051014";
|
|
@@ -3577,4 +59,4 @@ type MessageEffect = keyof typeof MESSAGE_EFFECTS;
|
|
|
3577
59
|
declare const messageEffectIdCodes: MessageEffect[];
|
|
3578
60
|
declare const isMessageEffect: (input: unknown) => input is MessageEffect;
|
|
3579
61
|
|
|
3580
|
-
export { type Accelerometer, type AccelerometerStartParams, type AcceptedGiftTypes, type AddStickerToSetInput, type AffiliateInfo, type Animation, type AnswerCallbackQueryInput, type AnswerInlineQueryInput, type AnswerPreCheckoutQueryInput, type AnswerShippingQueryInput, type AnswerWebAppQueryInput, type Api, type ApproveChatJoinRequestInput, type Audio, type AvailableUpdateTypes, type BackButton, type BackgroundFill, type BackgroundFillFreeformGradient, type BackgroundFillGradient, type BackgroundFillSolid, type BackgroundType, type BackgroundTypeChatTheme, type BackgroundTypeFill, type BackgroundTypePattern, type BackgroundTypeWallpaper, type BanChatMemberInput, type BanChatSenderChatInput, type BiometricAuthenticateParams, type BiometricManager, type BiometricRequestAccessParams, type Birthdate, type BotBatchMode, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, type BotInstance, type BotMode, type BotName, BotResponse, BotRunService, type BotShortDescription, type BotSingleMode, BotUpdateHandlersTag, type BotUpdatesHandlers, type BottomButton, type BusinessBotRights, type BusinessConnection, type BusinessIntro, type BusinessLocation, type BusinessMessagesDeleted, type BusinessOpeningHours, type BusinessOpeningHoursInterval, type CallbackGame, type CallbackQuery, type Chat, type ChatAdministratorRights, type ChatBackground, type ChatBoost, type ChatBoostAdded, type ChatBoostRemoved, type ChatBoostSource, type ChatBoostSourceGiftCode, type ChatBoostSourceGiveaway, type ChatBoostSourcePremium, type ChatBoostUpdated, type ChatFullInfo, type ChatInviteLink, type ChatJoinRequest, type ChatLocation, type ChatMember, type ChatMemberAdministrator, type ChatMemberBanned, type ChatMemberLeft, type ChatMemberMember, type ChatMemberOwner, type ChatMemberRestricted, type ChatMemberUpdated, type ChatPermissions, type ChatPhoto, type ChatShared, type ChosenInlineResult, type CloseForumTopicInput, type CloseGeneralForumTopicInput, type CloseInput, type CloudStorage, type Contact, type ContentSafeAreaInset, type ConvertGiftToStarsInput, type CopyMessageInput, type CopyMessagesInput, type CopyTextButton, type CreateChatInviteLinkInput, type CreateChatSubscriptionInviteLinkInput, type CreateForumTopicInput, type CreateInvoiceLinkInput, type CreateNewStickerSetInput, type DeclineChatJoinRequestInput, type DeleteBusinessMessagesInput, type DeleteChatPhotoInput, type DeleteChatStickerSetInput, type DeleteForumTopicInput, type DeleteMessageInput, type DeleteMessagesInput, type DeleteMyCommandsInput, type DeleteStickerFromSetInput, type DeleteStickerSetInput, type DeleteStoryInput, type DeleteWebhookInput, type DeviceOrientation, type DeviceOrientationStartParams, type DeviceStorage, type Dice, type Document, type DownloadFileParams, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditStoryInput, type EditUserStarSubscriptionInput, type EmojiStatusParams, type EncryptedCredentials, type EncryptedPassportElement, type ExportChatInviteLinkInput, type ExternalReplyInfo, type File$1 as File, type ForceReply, type ForumTopic, type ForumTopicClosed, type ForumTopicCreated, type ForumTopicEdited, type ForumTopicReopened, type ForwardMessageInput, type ForwardMessagesInput, type Game, type GameHighScore, type GeneralForumTopicHidden, type GeneralForumTopicUnhidden, type GetAvailableGiftsInput, type GetBusinessAccountGiftsInput, type GetBusinessAccountStarBalanceInput, type GetBusinessConnectionInput, type GetChatAdministratorsInput, type GetChatInput, type GetChatMemberCountInput, type GetChatMemberInput, type GetChatMenuButtonInput, type GetCustomEmojiStickersInput, type GetFileInput, type GetForumTopicIconStickersInput, type GetGameHighScoresInput, type GetMeInput, type GetMyCommandsInput, type GetMyDefaultAdministratorRightsInput, type GetMyDescriptionInput, type GetMyNameInput, type GetMyShortDescriptionInput, type GetStarTransactionsInput, type GetStickerSetInput, type GetUpdatesInput, type GetUserChatBoostsInput, type GetUserProfilePhotosInput, type GetWebhookInfoInput, type Gift, type GiftInfo, type GiftPremiumSubscriptionInput, type Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, type Gyroscope, type GyroscopeStartParams, type HandleBatchUpdateFunction, type HandleUpdateFunction, type HapticFeedback, type HideGeneralForumTopicInput, type InaccessibleMessage, type InlineKeyboardButton, type InlineKeyboardMarkup, type InlineQuery, type InlineQueryResult, type InlineQueryResultArticle, type InlineQueryResultAudio, type InlineQueryResultCachedAudio, type InlineQueryResultCachedDocument, type InlineQueryResultCachedGif, type InlineQueryResultCachedMpeg4Gif, type InlineQueryResultCachedPhoto, type InlineQueryResultCachedSticker, type InlineQueryResultCachedVideo, type InlineQueryResultCachedVoice, type InlineQueryResultContact, type InlineQueryResultDocument, type InlineQueryResultGame, type InlineQueryResultGif, type InlineQueryResultLocation, type InlineQueryResultMpeg4Gif, type InlineQueryResultPhoto, type InlineQueryResultVenue, type InlineQueryResultVideo, type InlineQueryResultVoice, type InlineQueryResultsButton, type InputContactMessageContent, type InputFile, type InputInvoiceMessageContent, type InputLocationMessageContent, type InputMedia, type InputMediaAnimation, type InputMediaAudio, type InputMediaDocument, type InputMediaPhoto, type InputMediaVideo, type InputMessageContent, type InputPaidMedia, type InputPaidMediaPhoto, type InputPaidMediaVideo, type InputPollOption, type InputProfilePhoto, type InputProfilePhotoAnimated, type InputProfilePhotoStatic, type InputSticker, type InputStoryContent, type InputStoryContentPhoto, type InputStoryContentVideo, type InputTextMessageContent, type InputVenueMessageContent, type Invoice, type KeyboardButton, type KeyboardButtonPollType, type KeyboardButtonRequestChat, type KeyboardButtonRequestUsers, type LabeledPrice, type LeaveChatInput, type LinkPreviewOptions, type Location, type LocationAddress, type LocationData, type LocationManager, type LogOutInput, type LoginUrl, MESSAGE_EFFECTS, type MaskPosition, type MaybeInaccessibleMessage, type MenuButton, type MenuButtonCommands, type MenuButtonDefault, type MenuButtonWebApp, type Message, type MessageAutoDeleteTimerChanged, type MessageEffect, type MessageEntity, type MessageId, type MessageOrigin, type MessageOriginChannel, type MessageOriginChat, type MessageOriginHiddenUser, type MessageOriginUser, type MessageReactionCountUpdated, type MessageReactionUpdated, type OrderInfo, type OwnedGift, type OwnedGiftRegular, type OwnedGiftUnique, type OwnedGifts, type PaidMedia, type PaidMediaInfo, type PaidMediaPhoto, type PaidMediaPreview, type PaidMediaPurchased, type PaidMediaVideo, type PaidMessagePriceChanged, type PassportData, type PassportElementError, type PassportElementErrorDataField, type PassportElementErrorFile, type PassportElementErrorFiles, type PassportElementErrorFrontSide, type PassportElementErrorReverseSide, type PassportElementErrorSelfie, type PassportElementErrorTranslationFile, type PassportElementErrorTranslationFiles, type PassportElementErrorUnspecified, type PassportFile, type PhotoSize, type PinChatMessageInput, type Poll, type PollAnswer, type PollOption, type PopupButton, type PopupParams, type PostStoryInput, type PreCheckoutQuery, type PreparedInlineMessage, type PromoteChatMemberInput, type ProximityAlertTriggered, type ReactionCount, type ReactionType, type ReactionTypeCustomEmoji, type ReactionTypeEmoji, type ReactionTypePaid, type ReadBusinessMessageInput, type RefundStarPaymentInput, type RefundedPayment, type RemoveBusinessAccountProfilePhotoInput, type RemoveChatVerificationInput, type RemoveUserVerificationInput, type ReopenForumTopicInput, type ReopenGeneralForumTopicInput, type ReplaceStickerInSetInput, type ReplyKeyboardMarkup, type ReplyKeyboardRemove, type ReplyParameters, type ResponseParameters, type RestrictChatMemberInput, type RevenueWithdrawalState, type RevenueWithdrawalStateFailed, type RevenueWithdrawalStatePending, type RevenueWithdrawalStateSucceeded, type RevokeChatInviteLinkInput, type SafeAreaInset, type SavePreparedInlineMessageInput, type ScanQrPopupParams, type SecureStorage, type SendAnimationInput, type SendAudioInput, type SendChatActionInput, type SendContactInput, type SendDiceInput, type SendDocumentInput, type SendGameInput, type SendGiftInput, type SendInvoiceInput, type SendLocationInput, type SendMediaGroupInput, type SendMessageInput, type SendPaidMediaInput, type SendPhotoInput, type SendPollInput, type SendStickerInput, type SendVenueInput, type SendVideoInput, type SendVideoNoteInput, type SendVoiceInput, type SentWebAppMessage, type SetBusinessAccountBioInput, type SetBusinessAccountGiftSettingsInput, type SetBusinessAccountNameInput, type SetBusinessAccountProfilePhotoInput, type SetBusinessAccountUsernameInput, type SetChatAdministratorCustomTitleInput, type SetChatDescriptionInput, type SetChatMenuButtonInput, type SetChatPermissionsInput, type SetChatPhotoInput, type SetChatStickerSetInput, type SetChatTitleInput, type SetCustomEmojiStickerSetThumbnailInput, type SetGameScoreInput, type SetMessageReactionInput, type SetMyCommandsInput, type SetMyDefaultAdministratorRightsInput, type SetMyDescriptionInput, type SetMyNameInput, type SetMyShortDescriptionInput, type SetPassportDataErrorsInput, type SetStickerEmojiListInput, type SetStickerKeywordsInput, type SetStickerMaskPositionInput, type SetStickerPositionInSetInput, type SetStickerSetThumbnailInput, type SetStickerSetTitleInput, type SetUserEmojiStatusInput, type SetWebhookInput, type SettingsButton, type SharedUser, type ShippingAddress, type ShippingOption, type ShippingQuery, type StarAmount, type StarTransaction, type StarTransactions, type Sticker, type StickerSet, type StopMessageLiveLocationInput, type StopPollInput, type Story, type StoryArea, type StoryAreaPosition, type StoryAreaType, type StoryAreaTypeLink, type StoryAreaTypeLocation, type StoryAreaTypeSuggestedReaction, type StoryAreaTypeUniqueGift, type StoryAreaTypeWeather, type StoryShareParams, type StoryWidgetLink, type SuccessfulPayment, type SwitchInlineQueryChosenChat, type TextQuote, type TgBotClient, type TgWebApp, type ThemeParams, type TransactionPartner, type TransactionPartnerAffiliateProgram, type TransactionPartnerChat, type TransactionPartnerFragment, type TransactionPartnerOther, type TransactionPartnerTelegramAds, type TransactionPartnerTelegramApi, type TransactionPartnerUser, type TransferBusinessAccountStarsInput, type TransferGiftInput, type UnbanChatMemberInput, type UnbanChatSenderChatInput, type UnhideGeneralForumTopicInput, type UniqueGift, type UniqueGiftBackdrop, type UniqueGiftBackdropColors, type UniqueGiftInfo, type UniqueGiftModel, type UniqueGiftSymbol, type UnpinAllChatMessagesInput, type UnpinAllForumTopicMessagesInput, type UnpinAllGeneralForumTopicMessagesInput, type UnpinChatMessageInput, type Update, type UpgradeGiftInput, type UploadStickerFileInput, type User, type UserChatBoosts, type UserProfilePhotos, type UsersShared, type Venue, type VerifyChatInput, type VerifyUserInput, type Video, type VideoChatEnded, type VideoChatParticipantsInvited, type VideoChatScheduled, type VideoChatStarted, type VideoNote, type Voice, type WebAppChat, type WebAppData, type WebAppInfo, type WebAppInitData, type WebAppUser, type WebhookInfo, type WriteAccessAllowed, defaultBaseUrl, defineBot, isMessageEffect, launchBot, makeTgBotClient, messageEffectIdCodes, runTgChatBot };
|
|
62
|
+
export { Api, type FileContent, type GetFile, MESSAGE_EFFECTS, type MessageEffect, TG_BOT_API_URL, type TgBotApiResponseSchema, TgBotApiToken, type TgBotClient, TgBotClientError, Update, executeTgBotMethod, getFile, getFileAsBase64String, getFileBytes, isFileContent, isMessageEffect, isTgBotApiResponse, isTgBotApiUpdate, makeTgBotClient, messageEffectIdCodes };
|