@effect-ak/tg-bot-api 1.3.2 → 1.5.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
@@ -68,6 +68,7 @@ interface WebApp {
68
68
  readTextFromClipboard: (callback?: (text: string) => void) => void;
69
69
  requestWriteAccess: (callback?: (isGranted: boolean) => void) => void;
70
70
  requestContact: (callback?: (isShared: boolean) => void) => void;
71
+ requestChat: unknown;
71
72
  ready: () => void;
72
73
  expand: () => void;
73
74
  close: () => void;
@@ -112,6 +113,7 @@ interface BiometricRequestAccessParams {
112
113
  }
113
114
  interface BottomButton {
114
115
  type: string;
116
+ iconCustomEmojiId: string;
115
117
  text: string;
116
118
  color: string;
117
119
  textColor: string;
@@ -696,6 +698,7 @@ interface ChatAdministratorRights {
696
698
  can_pin_messages?: boolean;
697
699
  can_manage_topics?: boolean;
698
700
  can_manage_direct_messages?: boolean;
701
+ can_manage_tags?: boolean;
699
702
  }
700
703
  interface ChatBackground {
701
704
  type: BackgroundType;
@@ -834,6 +837,7 @@ interface ChatMemberAdministrator {
834
837
  can_pin_messages?: boolean;
835
838
  can_manage_topics?: boolean;
836
839
  can_manage_direct_messages?: boolean;
840
+ can_manage_tags?: boolean;
837
841
  custom_title?: string;
838
842
  }
839
843
  interface ChatMemberBanned {
@@ -848,6 +852,7 @@ interface ChatMemberLeft {
848
852
  interface ChatMemberMember {
849
853
  status: "member";
850
854
  user: User;
855
+ tag?: string;
851
856
  until_date?: number;
852
857
  }
853
858
  interface ChatMemberOwner {
@@ -870,11 +875,13 @@ interface ChatMemberRestricted {
870
875
  can_send_polls: boolean;
871
876
  can_send_other_messages: boolean;
872
877
  can_add_web_page_previews: boolean;
878
+ can_edit_tag: boolean;
873
879
  can_change_info: boolean;
874
880
  can_invite_users: boolean;
875
881
  can_pin_messages: boolean;
876
882
  can_manage_topics: boolean;
877
883
  until_date: number;
884
+ tag?: string;
878
885
  }
879
886
  interface ChatMemberUpdated {
880
887
  chat: Chat;
@@ -903,6 +910,7 @@ interface ChatPermissions {
903
910
  can_send_polls?: boolean;
904
911
  can_send_other_messages?: boolean;
905
912
  can_add_web_page_previews?: boolean;
913
+ can_edit_tag?: boolean;
906
914
  can_change_info?: boolean;
907
915
  can_invite_users?: boolean;
908
916
  can_pin_messages?: boolean;
@@ -1633,6 +1641,7 @@ interface KeyboardButton {
1633
1641
  style?: "danger" | "success" | "primary";
1634
1642
  request_users?: KeyboardButtonRequestUsers;
1635
1643
  request_chat?: KeyboardButtonRequestChat;
1644
+ request_managed_bot?: KeyboardButtonRequestManagedBot;
1636
1645
  request_contact?: boolean;
1637
1646
  request_location?: boolean;
1638
1647
  request_poll?: KeyboardButtonPollType;
@@ -1654,6 +1663,11 @@ interface KeyboardButtonRequestChat {
1654
1663
  request_username?: boolean;
1655
1664
  request_photo?: boolean;
1656
1665
  }
1666
+ interface KeyboardButtonRequestManagedBot {
1667
+ request_id: number;
1668
+ suggested_name?: string;
1669
+ suggested_username?: string;
1670
+ }
1657
1671
  interface KeyboardButtonRequestUsers {
1658
1672
  request_id: number;
1659
1673
  user_is_bot?: boolean;
@@ -1694,6 +1708,13 @@ interface LoginUrl {
1694
1708
  bot_username?: string;
1695
1709
  request_write_access?: boolean;
1696
1710
  }
1711
+ interface ManagedBotCreated {
1712
+ bot: User;
1713
+ }
1714
+ interface ManagedBotUpdated {
1715
+ user: User;
1716
+ bot: User;
1717
+ }
1697
1718
  interface MaskPosition {
1698
1719
  point: string;
1699
1720
  x_shift: number;
@@ -1723,6 +1744,7 @@ interface Message {
1723
1744
  sender_chat?: Chat;
1724
1745
  sender_boost_count?: number;
1725
1746
  sender_business_bot?: User;
1747
+ sender_tag?: string;
1726
1748
  business_connection_id?: string;
1727
1749
  forward_origin?: MessageOrigin;
1728
1750
  is_topic_message?: boolean;
@@ -1732,6 +1754,7 @@ interface Message {
1732
1754
  quote?: TextQuote;
1733
1755
  reply_to_story?: Story;
1734
1756
  reply_to_checklist_task_id?: number;
1757
+ reply_to_poll_option_id?: string;
1735
1758
  via_bot?: User;
1736
1759
  edit_date?: number;
1737
1760
  has_protected_content?: boolean;
@@ -1807,7 +1830,10 @@ interface Message {
1807
1830
  giveaway?: Giveaway;
1808
1831
  giveaway_winners?: GiveawayWinners;
1809
1832
  giveaway_completed?: GiveawayCompleted;
1833
+ managed_bot_created?: ManagedBotCreated;
1810
1834
  paid_message_price_changed?: PaidMessagePriceChanged;
1835
+ poll_option_added?: PollOptionAdded;
1836
+ poll_option_deleted?: PollOptionDeleted;
1811
1837
  suggested_post_approved?: SuggestedPostApproved;
1812
1838
  suggested_post_approval_failed?: SuggestedPostApprovalFailed;
1813
1839
  suggested_post_declined?: SuggestedPostDeclined;
@@ -1824,13 +1850,15 @@ interface MessageAutoDeleteTimerChanged {
1824
1850
  message_auto_delete_time: number;
1825
1851
  }
1826
1852
  interface MessageEntity {
1827
- 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";
1853
+ 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" | "date_time";
1828
1854
  offset: number;
1829
1855
  length: number;
1830
1856
  url?: string;
1831
1857
  user?: User;
1832
1858
  language?: string;
1833
1859
  custom_emoji_id?: string;
1860
+ unix_time?: number;
1861
+ date_time_format?: string;
1834
1862
  }
1835
1863
  interface MessageId {
1836
1864
  message_id: number;
@@ -2022,23 +2050,43 @@ interface Poll {
2022
2050
  is_anonymous: boolean;
2023
2051
  type: "regular" | "quiz";
2024
2052
  allows_multiple_answers: boolean;
2053
+ allows_revoting: boolean;
2025
2054
  question_entities?: MessageEntity[];
2026
- correct_option_id?: number;
2055
+ correct_option_ids?: number[];
2027
2056
  explanation?: string;
2028
2057
  explanation_entities?: MessageEntity[];
2029
2058
  open_period?: number;
2030
2059
  close_date?: number;
2060
+ description?: string;
2061
+ description_entities?: MessageEntity[];
2031
2062
  }
2032
2063
  interface PollAnswer {
2033
2064
  poll_id: string;
2034
2065
  option_ids: number[];
2066
+ option_persistent_ids: string[];
2035
2067
  voter_chat?: Chat;
2036
2068
  user?: User;
2037
2069
  }
2038
2070
  interface PollOption {
2071
+ persistent_id: string;
2039
2072
  text: string;
2040
2073
  voter_count: number;
2041
2074
  text_entities?: MessageEntity[];
2075
+ added_by_user?: User;
2076
+ added_by_chat?: Chat;
2077
+ addition_date?: number;
2078
+ }
2079
+ interface PollOptionAdded {
2080
+ option_persistent_id: string;
2081
+ option_text: string;
2082
+ poll_message?: MaybeInaccessibleMessage;
2083
+ option_text_entities?: MessageEntity[];
2084
+ }
2085
+ interface PollOptionDeleted {
2086
+ option_persistent_id: string;
2087
+ option_text: string;
2088
+ poll_message?: MaybeInaccessibleMessage;
2089
+ option_text_entities?: MessageEntity[];
2042
2090
  }
2043
2091
  interface PreCheckoutQuery {
2044
2092
  id: string;
@@ -2053,6 +2101,9 @@ interface PreparedInlineMessage {
2053
2101
  id: string;
2054
2102
  expiration_date: number;
2055
2103
  }
2104
+ interface PreparedKeyboardButton {
2105
+ id: string;
2106
+ }
2056
2107
  interface ProximityAlertTriggered {
2057
2108
  traveler: User;
2058
2109
  watcher: User;
@@ -2102,6 +2153,7 @@ interface ReplyParameters {
2102
2153
  quote_entities?: MessageEntity[];
2103
2154
  quote_position?: number;
2104
2155
  checklist_task_id?: number;
2156
+ poll_option_id?: string;
2105
2157
  }
2106
2158
  interface ResponseParameters {
2107
2159
  migrate_to_chat_id?: number;
@@ -2406,6 +2458,7 @@ interface Update {
2406
2458
  chat_join_request?: ChatJoinRequest;
2407
2459
  chat_boost?: ChatBoostUpdated;
2408
2460
  removed_chat_boost?: ChatBoostRemoved;
2461
+ managed_bot?: ManagedBotUpdated;
2409
2462
  }
2410
2463
  interface User {
2411
2464
  id: number;
@@ -2423,6 +2476,7 @@ interface User {
2423
2476
  has_main_web_app?: boolean;
2424
2477
  has_topics_enabled?: boolean;
2425
2478
  allows_users_to_create_topics?: boolean;
2479
+ can_manage_bots?: boolean;
2426
2480
  }
2427
2481
  interface UserChatBoosts {
2428
2482
  boosts: ChatBoost[];
@@ -2589,6 +2643,7 @@ interface Api {
2589
2643
  get_file(_: GetFileInput): File;
2590
2644
  get_forum_topic_icon_stickers(_: GetForumTopicIconStickersInput): Sticker[];
2591
2645
  get_game_high_scores(_: GetGameHighScoresInput): GameHighScore[];
2646
+ get_managed_bot_token(_: GetManagedBotTokenInput): string;
2592
2647
  get_me(_: GetMeInput): User;
2593
2648
  get_my_commands(_: GetMyCommandsInput): BotCommand[];
2594
2649
  get_my_default_administrator_rights(_: GetMyDefaultAdministratorRightsInput): ChatAdministratorRights;
@@ -2619,11 +2674,13 @@ interface Api {
2619
2674
  remove_user_verification(_: RemoveUserVerificationInput): boolean;
2620
2675
  reopen_forum_topic(_: ReopenForumTopicInput): boolean;
2621
2676
  reopen_general_forum_topic(_: ReopenGeneralForumTopicInput): boolean;
2677
+ replace_managed_bot_token(_: ReplaceManagedBotTokenInput): string;
2622
2678
  replace_sticker_in_set(_: ReplaceStickerInSetInput): boolean;
2623
2679
  repost_story(_: RepostStoryInput): Story;
2624
2680
  restrict_chat_member(_: RestrictChatMemberInput): boolean;
2625
2681
  revoke_chat_invite_link(_: RevokeChatInviteLinkInput): ChatInviteLink;
2626
2682
  save_prepared_inline_message(_: SavePreparedInlineMessageInput): PreparedInlineMessage;
2683
+ save_prepared_keyboard_button(_: SavePreparedKeyboardButtonInput): PreparedKeyboardButton;
2627
2684
  send_animation(_: SendAnimationInput): Message;
2628
2685
  send_audio(_: SendAudioInput): Message;
2629
2686
  send_chat_action(_: SendChatActionInput): boolean;
@@ -2653,6 +2710,7 @@ interface Api {
2653
2710
  set_business_account_username(_: SetBusinessAccountUsernameInput): boolean;
2654
2711
  set_chat_administrator_custom_title(_: SetChatAdministratorCustomTitleInput): boolean;
2655
2712
  set_chat_description(_: SetChatDescriptionInput): boolean;
2713
+ set_chat_member_tag(_: SetChatMemberTagInput): boolean;
2656
2714
  set_chat_menu_button(_: SetChatMenuButtonInput): boolean;
2657
2715
  set_chat_permissions(_: SetChatPermissionsInput): boolean;
2658
2716
  set_chat_photo(_: SetChatPhotoInput): boolean;
@@ -3069,6 +3127,9 @@ interface GetGameHighScoresInput {
3069
3127
  message_id?: number;
3070
3128
  inline_message_id?: string;
3071
3129
  }
3130
+ interface GetManagedBotTokenInput {
3131
+ user_id: number;
3132
+ }
3072
3133
  interface GetMeInput {
3073
3134
  }
3074
3135
  interface GetMyCommandsInput {
@@ -3181,6 +3242,7 @@ interface PromoteChatMemberInput {
3181
3242
  can_pin_messages?: boolean;
3182
3243
  can_manage_topics?: boolean;
3183
3244
  can_manage_direct_messages?: boolean;
3245
+ can_manage_tags?: boolean;
3184
3246
  }
3185
3247
  interface ReadBusinessMessageInput {
3186
3248
  business_connection_id: string;
@@ -3210,6 +3272,9 @@ interface ReopenForumTopicInput {
3210
3272
  interface ReopenGeneralForumTopicInput {
3211
3273
  chat_id: number | string;
3212
3274
  }
3275
+ interface ReplaceManagedBotTokenInput {
3276
+ user_id: number;
3277
+ }
3213
3278
  interface ReplaceStickerInSetInput {
3214
3279
  user_id: number;
3215
3280
  name: string;
@@ -3243,6 +3308,10 @@ interface SavePreparedInlineMessageInput {
3243
3308
  allow_group_chats?: boolean;
3244
3309
  allow_channel_chats?: boolean;
3245
3310
  }
3311
+ interface SavePreparedKeyboardButtonInput {
3312
+ user_id: number;
3313
+ button: KeyboardButton;
3314
+ }
3246
3315
  interface SendAnimationInput {
3247
3316
  chat_id: number | string;
3248
3317
  animation: InputFile | string;
@@ -3512,13 +3581,20 @@ interface SendPollInput {
3512
3581
  is_anonymous?: boolean;
3513
3582
  type?: string;
3514
3583
  allows_multiple_answers?: boolean;
3515
- correct_option_id?: number;
3584
+ allows_revoting?: boolean;
3585
+ shuffle_options?: boolean;
3586
+ allow_adding_options?: boolean;
3587
+ hide_results_until_closes?: boolean;
3588
+ correct_option_ids?: number[];
3516
3589
  explanation?: string;
3517
3590
  explanation_parse_mode?: "HTML" | "MarkdownV2";
3518
3591
  explanation_entities?: MessageEntity[];
3519
3592
  open_period?: number;
3520
3593
  close_date?: number;
3521
3594
  is_closed?: boolean;
3595
+ description?: string;
3596
+ description_parse_mode?: "HTML" | "MarkdownV2";
3597
+ description_entities?: MessageEntity[];
3522
3598
  disable_notification?: boolean;
3523
3599
  protect_content?: boolean;
3524
3600
  allow_paid_broadcast?: boolean;
@@ -3655,6 +3731,11 @@ interface SetChatDescriptionInput {
3655
3731
  chat_id: number | string;
3656
3732
  description?: string;
3657
3733
  }
3734
+ interface SetChatMemberTagInput {
3735
+ chat_id: number | string;
3736
+ user_id: number;
3737
+ tag?: string;
3738
+ }
3658
3739
  interface SetChatMenuButtonInput {
3659
3740
  chat_id?: number;
3660
3741
  menu_button?: MenuButton;
@@ -3833,4 +3914,4 @@ interface VerifyUserInput {
3833
3914
  custom_description?: string;
3834
3915
  }
3835
3916
 
3836
- export { type Accelerometer, type AccelerometerStartParams, type AcceptedGiftTypes, type AddStickerToSetInput, type AffiliateInfo, type AllowedUpdateName, type Animation, type AnswerCallbackQueryInput, type AnswerInlineQueryInput, type AnswerPreCheckoutQueryInput, type AnswerShippingQueryInput, type AnswerWebAppQueryInput, type Api, type ApproveChatJoinRequestInput, type ApproveSuggestedPostInput, type Audio, 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 BindOrUnbindEventHandler, type BiometricAuthenticateParams, type BiometricManager, type BiometricRequestAccessParams, type Birthdate, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, type BotName, type BotShortDescription, 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 ChatOwnerChanged, type ChatOwnerLeft, type ChatPermissions, type ChatPhoto, type ChatShared, type Checklist, type ChecklistTask, type ChecklistTasksAdded, type ChecklistTasksDone, 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 DeclineSuggestedPostInput, 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 DirectMessagePriceChanged, type DirectMessagesTopic, type Document, type DownloadFileParams, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageChecklistInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditStoryInput, type EditUserStarSubscriptionInput, type EmojiStatusParams, type EncryptedCredentials, type EncryptedPassportElement, type EventHandlers, type ExportChatInviteLinkInput, type ExternalReplyInfo, type 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 GetChatGiftsInput, 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 GetMyStarBalanceInput, type GetStarTransactionsInput, type GetStickerSetInput, type GetUpdatesInput, type GetUserChatBoostsInput, type GetUserGiftsInput, type GetUserProfileAudiosInput, type GetUserProfilePhotosInput, type GetWebhookInfoInput, type Gift, type GiftBackground, type GiftInfo, type GiftPremiumSubscriptionInput, type Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, type Gyroscope, type GyroscopeStartParams, 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 InputChecklist, type InputChecklistTask, 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, type MaskPosition, type MaybeInaccessibleMessage, type MenuButton, type MenuButtonCommands, type MenuButtonDefault, type MenuButtonWebApp, type Message, type MessageAutoDeleteTimerChanged, 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 RemoveMyProfilePhotoInput, type RemoveUserVerificationInput, type ReopenForumTopicInput, type ReopenGeneralForumTopicInput, type ReplaceStickerInSetInput, type ReplyKeyboardMarkup, type ReplyKeyboardRemove, type ReplyParameters, type RepostStoryInput, 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 SendChecklistInput, type SendContactInput, type SendDiceInput, type SendDocumentInput, type SendGameInput, type SendGiftInput, type SendInvoiceInput, type SendLocationInput, type SendMediaGroupInput, type SendMessageDraftInput, 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 SetMyProfilePhotoInput, 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 SuggestedPostApprovalFailed, type SuggestedPostApproved, type SuggestedPostDeclined, type SuggestedPostInfo, type SuggestedPostPaid, type SuggestedPostParameters, type SuggestedPostPrice, type SuggestedPostRefunded, type SwitchInlineQueryChosenChat, type TelegramLoginData, type TelegramLoginOptions, type TelegramLoginService, type TextQuote, 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 UniqueGiftColors, 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 UserProfileAudios, type UserProfilePhotos, type UserRating, type UsersShared, type Venue, type VerifyChatInput, type VerifyUserInput, type Video, type VideoChatEnded, type VideoChatParticipantsInvited, type VideoChatScheduled, type VideoChatStarted, type VideoNote, type VideoQuality, type Voice, type WebApp, type WebAppChat, type WebAppData, type WebAppInfo, type WebAppInitData, type WebAppUser, type WebhookInfo, type WriteAccessAllowed, verifyLoginData };
3917
+ export { type Accelerometer, type AccelerometerStartParams, type AcceptedGiftTypes, type AddStickerToSetInput, type AffiliateInfo, type AllowedUpdateName, type Animation, type AnswerCallbackQueryInput, type AnswerInlineQueryInput, type AnswerPreCheckoutQueryInput, type AnswerShippingQueryInput, type AnswerWebAppQueryInput, type Api, type ApproveChatJoinRequestInput, type ApproveSuggestedPostInput, type Audio, 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 BindOrUnbindEventHandler, type BiometricAuthenticateParams, type BiometricManager, type BiometricRequestAccessParams, type Birthdate, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, type BotName, type BotShortDescription, 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 ChatOwnerChanged, type ChatOwnerLeft, type ChatPermissions, type ChatPhoto, type ChatShared, type Checklist, type ChecklistTask, type ChecklistTasksAdded, type ChecklistTasksDone, 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 DeclineSuggestedPostInput, 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 DirectMessagePriceChanged, type DirectMessagesTopic, type Document, type DownloadFileParams, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageChecklistInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditStoryInput, type EditUserStarSubscriptionInput, type EmojiStatusParams, type EncryptedCredentials, type EncryptedPassportElement, type EventHandlers, type ExportChatInviteLinkInput, type ExternalReplyInfo, type 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 GetChatGiftsInput, type GetChatInput, type GetChatMemberCountInput, type GetChatMemberInput, type GetChatMenuButtonInput, type GetCustomEmojiStickersInput, type GetFileInput, type GetForumTopicIconStickersInput, type GetGameHighScoresInput, type GetManagedBotTokenInput, type GetMeInput, type GetMyCommandsInput, type GetMyDefaultAdministratorRightsInput, type GetMyDescriptionInput, type GetMyNameInput, type GetMyShortDescriptionInput, type GetMyStarBalanceInput, type GetStarTransactionsInput, type GetStickerSetInput, type GetUpdatesInput, type GetUserChatBoostsInput, type GetUserGiftsInput, type GetUserProfileAudiosInput, type GetUserProfilePhotosInput, type GetWebhookInfoInput, type Gift, type GiftBackground, type GiftInfo, type GiftPremiumSubscriptionInput, type Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, type Gyroscope, type GyroscopeStartParams, 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 InputChecklist, type InputChecklistTask, 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 KeyboardButtonRequestManagedBot, type KeyboardButtonRequestUsers, type LabeledPrice, type LeaveChatInput, type LinkPreviewOptions, type Location, type LocationAddress, type LocationData, type LocationManager, type LogOutInput, type LoginUrl, type ManagedBotCreated, type ManagedBotUpdated, type MaskPosition, type MaybeInaccessibleMessage, type MenuButton, type MenuButtonCommands, type MenuButtonDefault, type MenuButtonWebApp, type Message, type MessageAutoDeleteTimerChanged, 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 PollOptionAdded, type PollOptionDeleted, type PopupButton, type PopupParams, type PostStoryInput, type PreCheckoutQuery, type PreparedInlineMessage, type PreparedKeyboardButton, 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 RemoveMyProfilePhotoInput, type RemoveUserVerificationInput, type ReopenForumTopicInput, type ReopenGeneralForumTopicInput, type ReplaceManagedBotTokenInput, type ReplaceStickerInSetInput, type ReplyKeyboardMarkup, type ReplyKeyboardRemove, type ReplyParameters, type RepostStoryInput, type ResponseParameters, type RestrictChatMemberInput, type RevenueWithdrawalState, type RevenueWithdrawalStateFailed, type RevenueWithdrawalStatePending, type RevenueWithdrawalStateSucceeded, type RevokeChatInviteLinkInput, type SafeAreaInset, type SavePreparedInlineMessageInput, type SavePreparedKeyboardButtonInput, type ScanQrPopupParams, type SecureStorage, type SendAnimationInput, type SendAudioInput, type SendChatActionInput, type SendChecklistInput, type SendContactInput, type SendDiceInput, type SendDocumentInput, type SendGameInput, type SendGiftInput, type SendInvoiceInput, type SendLocationInput, type SendMediaGroupInput, type SendMessageDraftInput, 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 SetChatMemberTagInput, 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 SetMyProfilePhotoInput, 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 SuggestedPostApprovalFailed, type SuggestedPostApproved, type SuggestedPostDeclined, type SuggestedPostInfo, type SuggestedPostPaid, type SuggestedPostParameters, type SuggestedPostPrice, type SuggestedPostRefunded, type SwitchInlineQueryChosenChat, type TelegramLoginData, type TelegramLoginOptions, type TelegramLoginService, type TextQuote, 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 UniqueGiftColors, 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 UserProfileAudios, type UserProfilePhotos, type UserRating, type UsersShared, type Venue, type VerifyChatInput, type VerifyUserInput, type Video, type VideoChatEnded, type VideoChatParticipantsInvited, type VideoChatScheduled, type VideoChatStarted, type VideoNote, type VideoQuality, type Voice, type WebApp, type WebAppChat, type WebAppData, type WebAppInfo, type WebAppInitData, type WebAppUser, type WebhookInfo, type WriteAccessAllowed, verifyLoginData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-ak/tg-bot-api",
3
- "version": "1.3.2",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript types for Telegram Bot Api and Telegram Mini Apps",
6
6
  "license": "MIT",
package/readme.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @effect-ak/tg-bot-api
2
2
 
3
3
  [![NPM Version](https://img.shields.io/npm/v/%40effect-ak%2Ftg-bot-api)](https://www.npmjs.com/package/@effect-ak/tg-bot-api)
4
- ![Telegram Bot API](https://img.shields.io/badge/BotApi-9.4-blue)
5
- ![Telegram WebApp](https://img.shields.io/badge/Telegram.WebApp-9.1-blue)
4
+ ![Telegram Bot API](https://img.shields.io/badge/BotApi-9.6-blue)
5
+ ![Telegram WebApp](https://img.shields.io/badge/Telegram.WebApp-9.5-orange)
6
6
 
7
7
  Complete TypeScript types for Telegram Bot API and Mini Apps, auto-generated from official documentation.
8
8