@effect-ak/tg-bot-client 0.3.2 → 0.4.0

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/index.d.ts CHANGED
@@ -3,20 +3,32 @@ import * as effect_Types from 'effect/Types';
3
3
  import * as Micro from 'effect/Micro';
4
4
  import * as Context from 'effect/Context';
5
5
 
6
- type ErrorReason = {
7
- readonly type: "NotOkResponse";
8
- readonly errorCode?: number;
9
- readonly details?: string;
6
+ type TgBotClientSettingsInput = {
7
+ bot_token: string;
8
+ base_url?: string;
9
+ };
10
+
11
+ declare const TgBotClientConfig_base: Context.TagClass<TgBotClientConfig, "TgBotClientConfig", Required<TgBotClientSettingsInput>>;
12
+ declare class TgBotClientConfig extends TgBotClientConfig_base {
13
+ }
14
+
15
+ type ErrorReason = Readonly<{
16
+ type: "NotOkResponse";
17
+ errorCode?: number;
18
+ details?: string;
10
19
  } | {
11
- readonly type: "UnexpectedResponse";
12
- readonly response: unknown;
20
+ type: "UnexpectedResponse";
21
+ response: unknown;
13
22
  } | {
14
- readonly type: "ClientInternalError";
15
- readonly cause: unknown;
23
+ type: "ClientInternalError";
24
+ cause: unknown;
16
25
  } | {
17
- readonly type: "UnableToGetFile";
18
- readonly cause: unknown;
19
- };
26
+ type: "UnableToGetFile";
27
+ cause: unknown;
28
+ } | {
29
+ type: "BotHandlerError";
30
+ cause: unknown;
31
+ }>;
20
32
  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 & {
21
33
  readonly _tag: "TgBotClientError";
22
34
  } & Readonly<A>;
@@ -26,11 +38,6 @@ declare class TgBotClientError extends TgBotClientError_base<{
26
38
  static readonly missingSuccess: TgBotClientError;
27
39
  }
28
40
 
29
- type TgBotClientSettingsInput = {
30
- bot_token: string;
31
- base_url?: string;
32
- };
33
-
34
41
  interface AffiliateInfo {
35
42
  commission_per_mille: number;
36
43
  amount: number;
@@ -539,6 +546,7 @@ interface Gift {
539
546
  id: string;
540
547
  sticker: Sticker;
541
548
  star_count: number;
549
+ upgrade_star_count?: number;
542
550
  total_count?: number;
543
551
  remaining_count?: number;
544
552
  }
@@ -616,7 +624,6 @@ interface InlineQueryResultArticle {
616
624
  input_message_content: InputMessageContent;
617
625
  reply_markup?: InlineKeyboardMarkup;
618
626
  url?: string;
619
- hide_url?: boolean;
620
627
  description?: string;
621
628
  thumbnail_url?: string;
622
629
  thumbnail_width?: number;
@@ -1767,6 +1774,8 @@ interface Api {
1767
1774
  pin_chat_message(_: PinChatMessageInput): boolean;
1768
1775
  promote_chat_member(_: PromoteChatMemberInput): boolean;
1769
1776
  refund_star_payment(_: RefundStarPaymentInput): boolean;
1777
+ remove_chat_verification(_: RemoveChatVerificationInput): boolean;
1778
+ remove_user_verification(_: RemoveUserVerificationInput): boolean;
1770
1779
  reopen_forum_topic(_: ReopenForumTopicInput): boolean;
1771
1780
  reopen_general_forum_topic(_: ReopenGeneralForumTopicInput): boolean;
1772
1781
  replace_sticker_in_set(_: ReplaceStickerInSetInput): boolean;
@@ -1827,6 +1836,8 @@ interface Api {
1827
1836
  unpin_all_general_forum_topic_messages(_: UnpinAllGeneralForumTopicMessagesInput): boolean;
1828
1837
  unpin_chat_message(_: UnpinChatMessageInput): boolean;
1829
1838
  upload_sticker_file(_: UploadStickerFileInput): File$1;
1839
+ verify_chat(_: VerifyChatInput): boolean;
1840
+ verify_user(_: VerifyUserInput): boolean;
1830
1841
  }
1831
1842
  interface AddStickerToSetInput {
1832
1843
  user_id: number;
@@ -2207,6 +2218,12 @@ interface RefundStarPaymentInput {
2207
2218
  user_id: number;
2208
2219
  telegram_payment_charge_id: string;
2209
2220
  }
2221
+ interface RemoveChatVerificationInput {
2222
+ chat_id: number | string;
2223
+ }
2224
+ interface RemoveUserVerificationInput {
2225
+ user_id: number;
2226
+ }
2210
2227
  interface ReopenForumTopicInput {
2211
2228
  chat_id: number | string;
2212
2229
  message_thread_id: number;
@@ -2344,6 +2361,7 @@ interface SendGameInput {
2344
2361
  interface SendGiftInput {
2345
2362
  user_id: number;
2346
2363
  gift_id: string;
2364
+ pay_for_upgrade?: boolean;
2347
2365
  text?: string;
2348
2366
  text_parse_mode?: "HTML" | "MarkdownV2";
2349
2367
  text_entities?: MessageEntity[];
@@ -2724,63 +2742,64 @@ interface UploadStickerFileInput {
2724
2742
  sticker: InputFile;
2725
2743
  sticker_format: "static" | "animated" | "video";
2726
2744
  }
2727
-
2728
- declare const TgBotClientConfig_base: Context.TagClass<TgBotClientConfig, "TgBotClientConfig", Required<TgBotClientSettingsInput>>;
2729
- declare class TgBotClientConfig extends TgBotClientConfig_base {
2745
+ interface VerifyChatInput {
2746
+ chat_id: number | string;
2747
+ custom_description?: string;
2748
+ }
2749
+ interface VerifyUserInput {
2750
+ user_id: number;
2751
+ custom_description?: string;
2730
2752
  }
2731
-
2732
- type PollAndHandleInput = {
2733
- settings: BotMessageHandlerSettings;
2734
- };
2735
- type PollAndHandleResult = Micro.Micro.Success<ReturnType<typeof pollAndHandle>>;
2736
- declare const pollAndHandle: (input: PollAndHandleInput) => Micro.Micro<{
2737
- updates: Update[];
2738
- lastSuccessId: number | undefined;
2739
- hasError: boolean;
2740
- }, TgBotClientError, TgBotClientConfig>;
2741
2753
 
2742
2754
  type AvailableUpdateTypes = Exclude<keyof Update, 'update_id'>;
2743
2755
  type LogLevel = "info" | "debug";
2744
- type BotResponse = {
2756
+ type BotResult = {
2745
2757
  [K in keyof Api]: K extends `send_${infer R}` ? {
2746
- type: Lowercase<R>;
2758
+ type: R;
2747
2759
  } & Omit<Parameters<Api[K]>[0], 'chat_id'> : never;
2748
2760
  }[keyof Api];
2749
- type BotMessageHandlers = {
2750
- [K in AvailableUpdateTypes as `on_${K}`]?: (update: NonNullable<Update[K]>) => BotResponse | undefined;
2761
+ 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> & {
2762
+ readonly _tag: "BotResponse";
2751
2763
  };
2752
- type BotMessageHandlerSettings = {
2753
- readonly log_level?: LogLevel;
2754
- readonly update_types?: AvailableUpdateTypes[];
2755
- readonly batch_size?: number;
2756
- readonly timeout?: number;
2757
- readonly max_empty_responses?: number;
2758
- } & BotMessageHandlers & {
2759
- onExit?: (_: Micro.MicroExit<PollAndHandleResult, TgBotClientError>) => void;
2764
+ declare class BotResponse extends BotResponse_base<{
2765
+ readonly response?: BotResult;
2766
+ }> {
2767
+ static make(result: BotResult): BotResponse;
2768
+ static readonly ignore: BotResponse;
2769
+ }
2770
+ type HandleUpdateFunction<U> = (update: U) => BotResponse | PromiseLike<BotResponse>;
2771
+ type MessageHandlers = {
2772
+ readonly [K in AvailableUpdateTypes as `on_${K}`]?: HandleUpdateFunction<NonNullable<Update[K]>>;
2760
2773
  };
2774
+ interface BotMessageHandlers extends MessageHandlers {
2775
+ }
2761
2776
 
2762
- type BotUpdatePollerServiceInterface = Micro.Micro.Success<typeof BotUpdatesPollerServiceDefault>;
2763
- declare const BotUpdatePollerService_base: Context.TagClass<BotUpdatePollerService, "BotUpdatePollerService", {
2764
- readonly runBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, TgBotClientConfig>;
2765
- }>;
2766
- declare class BotUpdatePollerService extends BotUpdatePollerService_base {
2777
+ type BotMessageHandlerShape = Context.Tag.Service<BotMessageHandler>;
2778
+ declare const BotMessageHandler_base: Context.TagClass<BotMessageHandler, "BotMessageHandler", Readonly<{
2779
+ log_level?: LogLevel;
2780
+ batch_size?: number;
2781
+ timeout?: number;
2782
+ max_empty_responses?: number;
2783
+ on_error?: "stop" | "continue";
2784
+ }> & BotMessageHandlers>;
2785
+ declare class BotMessageHandler extends BotMessageHandler_base {
2786
+ }
2787
+
2788
+ declare const HandleUpdateError_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 & {
2789
+ readonly _tag: "HandleUpdateError";
2790
+ } & Readonly<A>;
2791
+ declare class HandleUpdateError extends HandleUpdateError_base<{
2792
+ name: "UnknownUpdate" | "HandlerNotDefined" | "BotHandlerError";
2793
+ update: Update;
2794
+ cause?: unknown;
2795
+ }> {
2767
2796
  }
2768
- declare const BotUpdatesPollerServiceDefault: Micro.Micro<{
2769
- readonly runBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, TgBotClientConfig>;
2770
- }, never, never>;
2771
2797
 
2772
2798
  type BotInstance = Micro.Micro.Success<ReturnType<typeof BotFactoryServiceDefault["runBot"]>>;
2773
2799
  declare const BotFactoryService_base: Context.TagClass<BotFactoryService, "BotFactoryService", {
2774
- makeBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<{
2775
- runBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, TgBotClientConfig>;
2776
- interrupt: Micro.Micro<void, never, never>;
2777
- }, never, TgBotClientConfig | BotUpdatePollerService>;
2778
2800
  runBot: (input: RunBotInput) => Micro.Micro<{
2779
- readonly reload: (input: Partial<RunBotInput>) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, never>;
2780
- readonly bot: {
2781
- runBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, TgBotClientConfig>;
2782
- interrupt: Micro.Micro<void, never, never>;
2783
- };
2801
+ readonly reload: (input: Partial<RunBotInput>) => Promise<void>;
2802
+ readonly fiber: () => Micro.MicroFiber<unknown, TgBotClientError | HandleUpdateError> | undefined;
2784
2803
  }, string, never>;
2785
2804
  }>;
2786
2805
  declare class BotFactoryService extends BotFactoryService_base {
@@ -2789,27 +2808,29 @@ type RunBotInput = ({
2789
2808
  type: "fromJsonFile";
2790
2809
  } | {
2791
2810
  type: "config";
2792
- } & TgBotClientSettingsInput) & BotMessageHandlerSettings;
2811
+ } & TgBotClientSettingsInput) & BotMessageHandlerShape;
2793
2812
  declare const BotFactoryServiceDefault: {
2794
- makeBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<{
2795
- runBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, TgBotClientConfig>;
2796
- interrupt: Micro.Micro<void, never, never>;
2797
- }, never, TgBotClientConfig | BotUpdatePollerService>;
2798
2813
  runBot: (input: RunBotInput) => Micro.Micro<{
2799
- readonly reload: (input: Partial<RunBotInput>) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, never>;
2800
- readonly bot: {
2801
- runBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, TgBotClientConfig>;
2802
- interrupt: Micro.Micro<void, never, never>;
2803
- };
2814
+ readonly reload: (input: Partial<RunBotInput>) => Promise<void>;
2815
+ readonly fiber: () => Micro.MicroFiber<unknown, TgBotClientError | HandleUpdateError> | undefined;
2804
2816
  }, string, never>;
2805
2817
  };
2806
2818
 
2819
+ type BotUpdatePollerServiceInterface = Micro.Micro.Success<typeof BotUpdatesPollerServiceDefault>;
2820
+ declare const BotUpdatePollerService_base: Context.TagClass<BotUpdatePollerService, "BotUpdatePollerService", {
2821
+ readonly runBot: Micro.Micro<void, never, BotMessageHandler | TgBotClientConfig>;
2822
+ readonly getFiber: () => Micro.MicroFiber<unknown, TgBotClientError | HandleUpdateError> | undefined;
2823
+ }>;
2824
+ declare class BotUpdatePollerService extends BotUpdatePollerService_base {
2825
+ }
2826
+ declare const BotUpdatesPollerServiceDefault: Micro.Micro<{
2827
+ readonly runBot: Micro.Micro<void, never, BotMessageHandler | TgBotClientConfig>;
2828
+ readonly getFiber: () => Micro.MicroFiber<unknown, TgBotClientError | HandleUpdateError> | undefined;
2829
+ }, never, never>;
2830
+
2807
2831
  declare const runTgChatBot: (input: RunBotInput) => Promise<{
2808
- readonly reload: (input: Partial<RunBotInput>) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, never>;
2809
- readonly bot: {
2810
- runBot: (messageHandler: BotMessageHandlerSettings) => Micro.Micro<Micro.MicroFiber<unknown, TgBotClientError>, never, TgBotClientConfig>;
2811
- interrupt: Micro.Micro<void, never, never>;
2812
- };
2832
+ readonly reload: (input: Partial<RunBotInput>) => Promise<void>;
2833
+ readonly fiber: () => Micro.MicroFiber<unknown, TgBotClientError | HandleUpdateError> | undefined;
2813
2834
  }>;
2814
2835
 
2815
2836
  declare const getFile: (fileId: string) => Micro.Micro<File, TgBotClientError, TgBotClientConfig>;
@@ -2842,4 +2863,4 @@ type MessageEffect = keyof typeof MESSAGE_EFFECTS;
2842
2863
  declare const messageEffectIdCodes: MessageEffect[];
2843
2864
  declare const isMessageEffect: (input: unknown) => input is MessageEffect;
2844
2865
 
2845
- export { 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 BackgroundFill, type BackgroundFillFreeformGradient, type BackgroundFillGradient, type BackgroundFillSolid, type BackgroundType, type BackgroundTypeChatTheme, type BackgroundTypeFill, type BackgroundTypePattern, type BackgroundTypeWallpaper, type BanChatMemberInput, type BanChatSenderChatInput, type Birthdate, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, BotFactoryService, BotFactoryServiceDefault, type BotInstance, type BotMessageHandlerSettings, type BotMessageHandlers, type BotName, type BotResponse, type BotShortDescription, BotUpdatePollerService, type BotUpdatePollerServiceInterface, BotUpdatesPollerServiceDefault, 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 Contact, type CopyMessageInput, type CopyMessagesInput, type CopyTextButton, type CreateChatInviteLinkInput, type CreateChatSubscriptionInviteLinkInput, type CreateForumTopicInput, type CreateInvoiceLinkInput, type CreateNewStickerSetInput, type DeclineChatJoinRequestInput, type DeleteChatPhotoInput, type DeleteChatStickerSetInput, type DeleteForumTopicInput, type DeleteMessageInput, type DeleteMessagesInput, type DeleteMyCommandsInput, type DeleteStickerFromSetInput, type DeleteStickerSetInput, type DeleteWebhookInput, type Dice, type Document, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditUserStarSubscriptionInput, 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 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 Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, 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 InputSticker, type InputTextMessageContent, type InputVenueMessageContent, type Invoice, type KeyboardButton, type KeyboardButtonPollType, type KeyboardButtonRequestChat, type KeyboardButtonRequestUsers, type LabeledPrice, type LeaveChatInput, type LinkPreviewOptions, type Location, type LogLevel, 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 PaidMedia, type PaidMediaInfo, type PaidMediaPhoto, type PaidMediaPreview, type PaidMediaPurchased, type PaidMediaVideo, 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 PreCheckoutQuery, type PreparedInlineMessage, type PromoteChatMemberInput, type ProximityAlertTriggered, type ReactionCount, type ReactionType, type ReactionTypeCustomEmoji, type ReactionTypeEmoji, type ReactionTypePaid, type RefundStarPaymentInput, type RefundedPayment, 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 RunBotInput, type SavePreparedInlineMessageInput, 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 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 SharedUser, type ShippingAddress, type ShippingOption, type ShippingQuery, type StarTransaction, type StarTransactions, type Sticker, type StickerSet, type StopMessageLiveLocationInput, type StopPollInput, type Story, type SuccessfulPayment, type SwitchInlineQueryChosenChat, type TextQuote, type TgBotClient, type TransactionPartner, type TransactionPartnerAffiliateProgram, type TransactionPartnerFragment, type TransactionPartnerOther, type TransactionPartnerTelegramAds, type TransactionPartnerTelegramApi, type TransactionPartnerUser, type UnbanChatMemberInput, type UnbanChatSenderChatInput, type UnhideGeneralForumTopicInput, type UnpinAllChatMessagesInput, type UnpinAllForumTopicMessagesInput, type UnpinAllGeneralForumTopicMessagesInput, type UnpinChatMessageInput, type Update, type UploadStickerFileInput, type User, type UserChatBoosts, type UserProfilePhotos, type UsersShared, type Venue, type Video, type VideoChatEnded, type VideoChatParticipantsInvited, type VideoChatScheduled, type VideoChatStarted, type VideoNote, type Voice, type WebAppData, type WebAppInfo, type WebhookInfo, type WriteAccessAllowed, defaultBaseUrl, isMessageEffect, makeTgBotClient, messageEffectIdCodes, runTgChatBot };
2866
+ export { 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 BackgroundFill, type BackgroundFillFreeformGradient, type BackgroundFillGradient, type BackgroundFillSolid, type BackgroundType, type BackgroundTypeChatTheme, type BackgroundTypeFill, type BackgroundTypePattern, type BackgroundTypeWallpaper, type BanChatMemberInput, type BanChatSenderChatInput, type Birthdate, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, BotFactoryService, BotFactoryServiceDefault, type BotInstance, type BotMessageHandlers, type BotName, BotResponse, type BotShortDescription, BotUpdatePollerService, type BotUpdatePollerServiceInterface, BotUpdatesPollerServiceDefault, 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 Contact, type CopyMessageInput, type CopyMessagesInput, type CopyTextButton, type CreateChatInviteLinkInput, type CreateChatSubscriptionInviteLinkInput, type CreateForumTopicInput, type CreateInvoiceLinkInput, type CreateNewStickerSetInput, type DeclineChatJoinRequestInput, type DeleteChatPhotoInput, type DeleteChatStickerSetInput, type DeleteForumTopicInput, type DeleteMessageInput, type DeleteMessagesInput, type DeleteMyCommandsInput, type DeleteStickerFromSetInput, type DeleteStickerSetInput, type DeleteWebhookInput, type Dice, type Document, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditUserStarSubscriptionInput, 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 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 Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, type HandleUpdateFunction, 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 InputSticker, type InputTextMessageContent, type InputVenueMessageContent, type Invoice, type KeyboardButton, type KeyboardButtonPollType, type KeyboardButtonRequestChat, type KeyboardButtonRequestUsers, type LabeledPrice, type LeaveChatInput, type LinkPreviewOptions, type Location, type LogLevel, 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 PaidMedia, type PaidMediaInfo, type PaidMediaPhoto, type PaidMediaPreview, type PaidMediaPurchased, type PaidMediaVideo, 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 PreCheckoutQuery, type PreparedInlineMessage, type PromoteChatMemberInput, type ProximityAlertTriggered, type ReactionCount, type ReactionType, type ReactionTypeCustomEmoji, type ReactionTypeEmoji, type ReactionTypePaid, type RefundStarPaymentInput, type RefundedPayment, 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 RunBotInput, type SavePreparedInlineMessageInput, 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 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 SharedUser, type ShippingAddress, type ShippingOption, type ShippingQuery, type StarTransaction, type StarTransactions, type Sticker, type StickerSet, type StopMessageLiveLocationInput, type StopPollInput, type Story, type SuccessfulPayment, type SwitchInlineQueryChosenChat, type TextQuote, type TgBotClient, type TransactionPartner, type TransactionPartnerAffiliateProgram, type TransactionPartnerFragment, type TransactionPartnerOther, type TransactionPartnerTelegramAds, type TransactionPartnerTelegramApi, type TransactionPartnerUser, type UnbanChatMemberInput, type UnbanChatSenderChatInput, type UnhideGeneralForumTopicInput, type UnpinAllChatMessagesInput, type UnpinAllForumTopicMessagesInput, type UnpinAllGeneralForumTopicMessagesInput, type UnpinChatMessageInput, type Update, 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 WebAppData, type WebAppInfo, type WebhookInfo, type WriteAccessAllowed, defaultBaseUrl, isMessageEffect, makeTgBotClient, messageEffectIdCodes, runTgChatBot };