@tgsnake/skema 1.7.0 → 1.9.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.
@@ -1,17 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BotMissing = exports.BotMethodInvalid = exports.BotInvoiceInvalid = exports.BotInvalid = exports.BotInlineDisabled = exports.BotGroupsBlocked = exports.BotGamesDisabled = exports.BotDomainInvalid = exports.BotCommandInvalid = exports.BotCommandDescriptionInvalid = exports.BotChannelsNa = exports.BotBusinessMissing = exports.BotAppShortnameInvalid = exports.BotAppInvalid = exports.BotAppBotInvalid = exports.BotAlreadyDisabled = exports.BotsTooMuch = exports.BoostPeerInvalid = exports.BoostNotModified = exports.BoostsRequired = exports.BoostsEmpty = exports.BirthdayInvalid = exports.BasePortLocInvalid = exports.BannedRightsInvalid = exports.BankCardNumberInvalid = exports.BalanceTooLow = exports.AutoarchiveNotAvailable = exports.AuthTokenInvalidx = exports.AuthTokenInvalid = exports.AuthTokenExpired = exports.AuthTokenException = exports.AuthTokenAlreadyAccepted = exports.AuthBytesInvalid = exports.AudioTitleEmpty = exports.AudioContentUrlEmpty = exports.ArticleTitleEmpty = exports.ApiIdPublishedFlood = exports.ApiIdInvalid = exports.AlbumPhotosTooMany = exports.AdExpired = exports.AdminRightsEmpty = exports.AdminRankInvalid = exports.AdminRankEmojiNotAllowed = exports.AdminIdInvalid = exports.AdminsTooMuch = exports.AddressInvalid = exports.AccessTokenInvalid = exports.AccessTokenExpired = exports.AboutTooLong = exports.BadRequest = void 0;
4
- exports.ChatAboutTooLong = exports.ChatAboutNotModified = exports.ChatlistExcludeInvalid = exports.ChatlistsTooMuch = exports.ChatlinkSlugExpired = exports.ChatlinkSlugEmpty = exports.ChatlinksTooMuch = exports.ChargeAlreadyRefunded = exports.ChannelTooLarge = exports.ChannelTooBig = exports.ChannelPrivate = exports.ChannelParicipantMissing = exports.ChannelInvalid = exports.ChannelIdInvalid = exports.ChannelForumMissing = exports.ChannelBanned = exports.ChannelAddInvalid = exports.ChannelsTooMuch = exports.ChannelsAdminPublicTooMuch = exports.ChannelsAdminLocatedTooMuch = exports.CdnMethodInvalid = exports.CallProtocolFlagsInvalid = exports.CallPeerInvalid = exports.CallOccupyFailed = exports.CallAlreadyDeclined = exports.CallAlreadyAccepted = exports.ButtonUserPrivacyRestricted = exports.ButtonUserInvalid = exports.ButtonUrlInvalid = exports.ButtonTypeInvalid = exports.ButtonTextInvalid = exports.ButtonPosInvalid = exports.ButtonIdInvalid = exports.ButtonDataInvalid = exports.ButtonCopyTextInvalid = exports.BusinessWorkHoursPeriodInvalid = exports.BusinessWorkHoursEmpty = exports.BusinessRecipientsEmpty = exports.BusinessPeerUsageMissing = exports.BusinessPeerInvalid = exports.BroadcastRequired = exports.BroadcastPublicVotersForbidden = exports.BroadcastIdInvalid = exports.BotWebviewDisabled = exports.BotScoreNotModified = exports.BotResponseTimeout = exports.BotPollsDisabled = exports.BotPaymentsDisabled = exports.BotOnesideNotAvail = exports.BotNotConnectedYet = void 0;
5
- exports.EmailNotSetup = exports.EmailNotAllowed = exports.EmailInvalid = exports.EmailHashExpired = exports.DocumentInvalid = exports.DhGAInvalid = exports.DcIdInvalid = exports.DateEmpty = exports.DataTooLong = exports.DataJsonInvalid = exports.DataInvalid = exports.CustomReactionsTooMany = exports.CurrencyTotalAmountInvalid = exports.CreateCallFailed = exports.ContactReqMissing = exports.ContactNameEmpty = exports.ContactMissing = exports.ContactIdInvalid = exports.ContactAddMissing = exports.ConnectionSystemLangCodeEmpty = exports.ConnectionSystemEmpty = exports.ConnectionNotInited = exports.ConnectionLayerInvalid = exports.ConnectionLangPackInvalid = exports.ConnectionIdInvalid = exports.ConnectionDeviceModelEmpty = exports.ConnectionAppVersionEmpty = exports.ConnectionApiIdInvalid = exports.ColorInvalid = exports.CollectibleNotFound = exports.CollectibleInvalid = exports.CodeInvalid = exports.CodeHashInvalid = exports.CodeEmpty = exports.ChatTooBig = exports.ChatTitleEmpty = exports.ChatSendInlineForbidden = exports.ChatRevokeDateUnsupported = exports.ChatRestricted = exports.ChatPublicRequired = exports.ChatNotModified = exports.ChatMemberAddFailed = exports.ChatLinkExists = exports.ChatInvitePermanent = exports.ChatInvalid = exports.ChatIdInvalid = exports.ChatIdEmpty = exports.ChatForwardsRestricted = exports.ChatDiscussionUnallowed = exports.ChatAdminRequired = void 0;
6
- exports.FirstnameInvalid = exports.FilterTitleEmpty = exports.FilterNotSupported = exports.FilterIncludeEmpty = exports.FilterIdInvalid = exports.FileTokenInvalid = exports.FileTitleEmpty = exports.FileReferenceXInvalid = exports.FileReferenceXExpired = exports.FileReferenceInvalid = exports.FileReferenceExpired = exports.FileReferenceEmpty = exports.FileReferenceAny = exports.FilePartMissing = exports.FilePartTooSmall = exports.FilePartTooBig = exports.FilePartSizeInvalid = exports.FilePartSizeChanged = exports.FilePartLengthInvalid = exports.FilePartInvalid = exports.FilePartEmpty = exports.FilePartsInvalid = exports.FileMigrate = exports.FileIdInvalid = exports.FileEmtpy = exports.FileContentTypeInvalid = exports.FieldNameInvalid = exports.FieldNameEmpty = exports.ExternalUrlInvalid = exports.ExtendedMediaAmountInvalid = exports.ExportCardInvalid = exports.ExpireDateInvalid = exports.ErrorTextEmpty = exports.EntityMentionUserInvalid = exports.EntityBoundsInvalid = exports.EntitiesTooLong = exports.EncryptionIdInvalid = exports.EncryptionDeclined = exports.EncryptionAlreadyDeclined = exports.EncryptionAlreadyAccepted = exports.EncryptedMessageInvalid = exports.EmoticonStickerpackMissing = exports.EmoticonInvalid = exports.EmoticonEmpty = exports.EmojiNotModified = exports.EmojiMarkupInvalid = exports.EmojiInvalid = exports.EmailVerifyExpired = exports.EmailUnconfirmedX = exports.EmailUnconfirmed = void 0;
7
- exports.InputRequestTooLong = exports.InputPeersEmpty = exports.InputMethodInvalid = exports.InputLayerInvalid = exports.InputFilterInvalid = exports.InputFileInvalid = exports.InputFetchFail = exports.InputFetchError = exports.InputConstructorInvalid = exports.InputChatlistInvalid = exports.InlineResultExpired = exports.ImportTokenInvalid = exports.ImportIdInvalid = exports.ImportHistoryLogEmpty = exports.ImportFormatUnrecognized = exports.ImportFormatDateInvalid = exports.ImportFileInvalid = exports.ImageProcessFailed = exports.IdInvalid = exports.IdExpired = exports.HideRequesterMissing = exports.HashInvalid = exports.HashtagInvalid = exports.GroupCallInvalid = exports.GroupedMediaInvalid = exports.GroupcallSsrcDuplicateMuch = exports.GroupcallNotModified = exports.GroupcallJoinMissing = exports.GroupcallInvalid = exports.GroupcallForbidden = exports.GroupcallAlreadyDiscarded = exports.GraphOutdatedReload = exports.GraphInvalidReload = exports.GraphExpiredReload = exports.GifIdInvalid = exports.GifContentTypeInvalid = exports.GiftSlugInvalid = exports.GiftSlugExpired = exports.GeoPointInvalid = exports.GeneralModifyIconForbidden = exports.GameBotInvalid = exports.FromPeerInvalid = exports.FromMessageBotDisabled = exports.FreshChangeAdminsForbidden = exports.ForumEnabled = exports.FormUnsupported = exports.FormIdEmpty = exports.FormExpired = exports.FolderIdInvalid = exports.FolderIdEmpty = void 0;
8
- exports.MessageTooOld = exports.MessageTooLong = exports.MessagePollClosed = exports.MessageNotReadYet = exports.MessageNotModified = exports.MessageIdInvalid = exports.MessageIdsEmpty = exports.MessageEmpty = exports.MessageEditTimeExpired = exports.MegagroupRequired = exports.MegagroupPrehistoryHidden = exports.MegagroupIdInvalid = exports.MegagroupGeoRequired = exports.MediaVideoStoryMissing = exports.MediaTypeInvalid = exports.MediaTtlInvalid = exports.MediaPrevInvalid = exports.MediaNewInvalid = exports.MediaInvalid = exports.MediaGroupedInvalid = exports.MediaFileInvalid = exports.MediaEmpty = exports.MediaCaptionTooLong = exports.Md5ChecksumInvalid = exports.MaxQtsInvalid = exports.MaxIdInvalid = exports.MaxDateInvalid = exports.LocationInvalid = exports.LinkNotModified = exports.LimitInvalid = exports.LastnameInvalid = exports.LangPackInvalid = exports.LangCodeNotSupported = exports.LangCodeInvalid = exports.LanguageInvalid = exports.JoinAsPeerInvalid = exports.InvoicePayloadInvalid = exports.InviteSlugInvalid = exports.InviteSlugExpired = exports.InviteSlugEmpty = exports.InviteRevokedMissing = exports.InviteRequestSent = exports.InviteHashInvalid = exports.InviteHashExpired = exports.InviteHashEmpty = exports.InviteForbiddenWithJoinas = exports.InvitesTooMuch = exports.InputUserDeactivated = exports.InputTextTooLong = exports.InputTextEmpty = void 0;
9
- exports.PhoneNumberInvalid = exports.PhoneNumberFlood = exports.PhoneNumberBanned = exports.PhoneNumberAppSignupForbidden = exports.PhoneNotOccupied = exports.PhoneHashExpired = exports.PhoneCodeInvalid = exports.PhoneCodeHashEmpty = exports.PhoneCodeExpired = exports.PhoneCodeEmpty = exports.PersistentTimestampInvalid = exports.PersistentTimestampEmpty = exports.PeerTypesInvalid = exports.PeerIdNotSupported = exports.PeerIdInvalid = exports.PeerHistoryEmpty = exports.PeerFlood = exports.PeersListEmpty = exports.PaymentProviderInvalid = exports.PasswordTooFresh = exports.PasswordRequired = exports.PasswordRecoveryNa = exports.PasswordRecoveryExpired = exports.PasswordMissing = exports.PasswordHashInvalid = exports.PasswordEmpty = exports.ParticipantVersionOutdated = exports.ParticipantJoinMissing = exports.ParticipantIdInvalid = exports.ParticipantsTooFew = exports.PackTitleInvalid = exports.PackShortNameOccupied = exports.PackShortNameInvalid = exports.OrderInvalid = exports.OptionInvalid = exports.OptionsTooMuch = exports.OffsetPeerIdInvalid = exports.OffsetInvalid = exports.NotJoined = exports.NotEligible = exports.NextOffsetInvalid = exports.NewSettingsInvalid = exports.NewSettingsEmpty = exports.NewSaltInvalid = exports.MultiMediaTooLong = exports.MsgWaitFailed = exports.MsgTooOld = exports.MsgIdInvalid = exports.MinDateInvalid = exports.MethodInvalid = void 0;
10
- exports.ReflectorNotAvailable = exports.ReceiptEmpty = exports.ReactionInvalid = exports.ReactionEmpty = exports.ReactionsTooMany = exports.RangesInvalid = exports.RandomLengthInvalid = exports.RandomIdInvalid = exports.RandomIdEmpty = exports.RaiseHandForbidden = exports.QuoteTextInvalid = exports.QuizMultipleInvalid = exports.QuizCorrectAnswerInvalid = exports.QuizCorrectAnswersTooMuch = exports.QuizCorrectAnswersEmpty = exports.QuizAnswerMissing = exports.QuickRepliesTooMuch = exports.QueryTooShort = exports.QueryIdInvalid = exports.QueryIdEmpty = exports.PublicKeyRequired = exports.PrivacyValueInvalid = exports.PrivacyTooLong = exports.PrivacyKeyInvalid = exports.PricingChatInvalid = exports.PremiumAccountRequired = exports.PollVoteRequired = exports.PollUnsupported = exports.PollQuestionInvalid = exports.PollOptionInvalid = exports.PollOptionDuplicate = exports.PollAnswerInvalid = exports.PollAnswersInvalid = exports.PinRestricted = exports.PinnedDialogsTooMuch = exports.PhotoThumbUrlInvalid = exports.PhotoThumbUrlEmpty = exports.PhotoSaveFileInvalid = exports.PhotoInvalidDimensions = exports.PhotoInvalid = exports.PhotoIdInvalid = exports.PhotoFileMissing = exports.PhotoExtInvalid = exports.PhotoCropSizeSmall = exports.PhotoCropFileMissing = exports.PhotoContentUrlEmpty = exports.PhotoContentTypeInvalid = exports.PhonePasswordProtected = exports.PhoneNumberUnoccupied = exports.PhoneNumberOccupied = void 0;
11
- exports.StargiftUsageLimited = exports.StargiftInvalid = exports.SrpPasswordChanged = exports.SrpIdInvalid = exports.SrpAInvalid = exports.SmsCodeCreateFailed = exports.SmsjobIdInvalid = exports.SlugInvalid = exports.SlowmodeMultiMsgsDisabled = exports.SlotsEmpty = exports.ShortNameOccupied = exports.ShortNameInvalid = exports.ShortnameOccupyFailed = exports.ShortcutInvalid = exports.Sha256HashInvalid = exports.SettingsInvalid = exports.SessionTooFresh = exports.SendMessageTypeInvalid = exports.SendMessageMediaInvalid = exports.SendAsPeerInvalid = exports.SecureSecretRequired = exports.SecondsInvalid = exports.SearchWithLinkNotSupported = exports.SearchQueryEmpty = exports.ScoreInvalid = exports.ScheduleTooMuch = exports.ScheduleStatusPrivate = exports.ScheduleDateTooLate = exports.ScheduleDateInvalid = exports.ScheduleBotNotAllowed = exports.RsaDecryptFailed = exports.RingtoneMimeInvalid = exports.RingtoneInvalid = exports.RightsNotModified = exports.RevoteNotAllowed = exports.ResultTypeInvalid = exports.ResultIdInvalid = exports.ResultIdEmpty = exports.ResultIdDuplicate = exports.ResultsTooMuch = exports.ResetRequestMissing = exports.RequestTokenInvalid = exports.ReplyToUserInvalid = exports.ReplyToInvalid = exports.ReplyMessageIdInvalid = exports.ReplyMessagesTooMuch = exports.ReplyMarkupTooLong = exports.ReplyMarkupInvalid = exports.ReplyMarkupGameEmpty = exports.ReplyMarkupBuyEmpty = void 0;
12
- exports.ThemeFileInvalid = exports.TermsUrlInvalid = exports.TempAuthKeyEmpty = exports.TempAuthKeyAlreadyBound = exports.TaskAlreadyExists = exports.TakeoutRequired = exports.TakeoutInvalid = exports.SwitchWebviewUrlInvalid = exports.SwitchPmTextEmpty = exports.SubscriptionPeriodInvalid = exports.SubscriptionExportMissing = exports.StorySendFloodWeekly = exports.StorySendFloodMonthly = exports.StoryPeriodInvalid = exports.StoryNotModified = exports.StoryIdInvalid = exports.StoryIdEmpty = exports.StoriesTooMuch = exports.StoriesNeverCreated = exports.StickerVideoNowebm = exports.StickerVideoNodoc = exports.StickerVideoBig = exports.StickerThumbTgsNotgs = exports.StickerThumbPngNopng = exports.StickerTgsNotgs = exports.StickerTgsNodoc = exports.StickerPngNopng = exports.StickerPngDimensions = exports.StickerMimeInvalid = exports.StickerInvalid = exports.StickerIdInvalid = exports.StickerGifDimensions = exports.StickerFileInvalid = exports.StickerEmojiInvalid = exports.StickerDocumentInvalid = exports.StickersTooMuch = exports.StickersEmpty = exports.StickersetNotModified = exports.StickersetInvalid = exports.StickerpackStickersTooMuch = exports.StartParamTooLong = exports.StartParamInvalid = exports.StartParamEmpty = exports.StarsPaymentRequired = exports.StarsInvoiceInvalid = exports.StarrefPermilleTooLow = exports.StarrefPermilleInvalid = exports.StarrefHashRevoked = exports.StarrefExpired = exports.StarrefAwaitingEnd = void 0;
13
- exports.UserChannelsTooMuch = exports.UserBotRequired = exports.UserBotInvalid = exports.UserBot = exports.UserBlocked = exports.UserBannedInChannel = exports.UserAlreadyParticipant = exports.UserAlreadyInvited = exports.UserAdminInvalid = exports.UsersTooMuch = exports.UsersTooFew = exports.UserpicUploadRequired = exports.UsernamePurchaseAvailable = exports.UsernameOccupied = exports.UsernameNotOccupied = exports.UsernameNotModified = exports.UsernameInvalid = exports.UsernamesActiveTooMuch = exports.UsageLimitInvalid = exports.UrlInvalid = exports.UntilDateInvalid = exports.TypeConstructorInvalid = exports.TypesEmpty = exports.TtlPeriodInvalid = exports.TtlMediaInvalid = exports.TtlDaysInvalid = exports.TranslateReqQuotaExceeded = exports.TranscriptionFailed = exports.TransactionIdInvalid = exports.ToLangInvalid = exports.TopicTitleEmpty = exports.TopicNotModified = exports.TopicIdInvalid = exports.TopicHideSeparately = exports.TopicDeleted = exports.TopicCloseSeparately = exports.TopicClosed = exports.TopicsEmpty = exports.TokenTypeInvalid = exports.TokenInvalid = exports.TokenEmpty = exports.TmpPasswordInvalid = exports.TmpPasswordDisabled = exports.TitleInvalid = exports.TimezoneInvalid = exports.ThemeTitleInvalid = exports.ThemeParamsInvalid = exports.ThemeMimeInvalid = exports.ThemeInvalid = exports.ThemeFormatInvalid = void 0;
14
- exports.YouBlockedUser = exports.WebpushTokenInvalid = exports.WebpushKeyInvalid = exports.WebpushAuthInvalid = exports.WebpageUrlInvalid = exports.WebpageNotFound = exports.WebpageMediaEmpty = exports.WebpageCurlFailed = exports.WebdocumentUrlInvalid = exports.WebdocumentUrlEmpty = exports.WebdocumentSizeTooBig = exports.WebdocumentMimeInvalid = exports.WebdocumentInvalid = exports.WcConvertUrlInvalid = exports.WallpaperNotFound = exports.WallpaperMimeInvalid = exports.WallpaperInvalid = exports.WallpaperFileInvalid = exports.VolumeLocNotFound = exports.VoiceMessagesForbidden = exports.VideoTitleEmpty = exports.VideoStopForbidden = exports.VideoPauseForbidden = exports.VideoFileInvalid = exports.VideoContentTypeInvalid = exports.VenueIdInvalid = exports.UserVolumeInvalid = exports.UserPublicMissing = exports.UserNotParticipant = exports.UserNotMutualContact = exports.UserKicked = exports.UserIsBot = exports.UserIsBlocked = exports.UserInvalid = exports.UserIdInvalid = exports.UserGiftUnavailable = exports.UserCreator = void 0;
3
+ exports.BotMethodInvalid = exports.BotInvoiceInvalid = exports.BotInvalid = exports.BotInlineDisabled = exports.BotGroupsBlocked = exports.BotGamesDisabled = exports.BotFallbackUnsupported = exports.BotDomainInvalid = exports.BotCommandInvalid = exports.BotCommandDescriptionInvalid = exports.BotChannelsNa = exports.BotBusinessMissing = exports.BotAppShortnameInvalid = exports.BotAppInvalid = exports.BotAppBotInvalid = exports.BotAlreadyDisabled = exports.BotsTooMuch = exports.BoostPeerInvalid = exports.BoostNotModified = exports.BoostsRequired = exports.BoostsEmpty = exports.BirthdayInvalid = exports.BasePortLocInvalid = exports.BannedRightsInvalid = exports.BankCardNumberInvalid = exports.BalanceTooLow = exports.AutoarchiveNotAvailable = exports.AuthTokenInvalidx = exports.AuthTokenInvalid = exports.AuthTokenExpired = exports.AuthTokenException = exports.AuthTokenAlreadyAccepted = exports.AuthBytesInvalid = exports.AudioTitleEmpty = exports.AudioContentUrlEmpty = exports.ArticleTitleEmpty = exports.ApiIdPublishedFlood = exports.ApiIdInvalid = exports.AlbumPhotosTooMany = exports.AdExpired = exports.AdminRightsEmpty = exports.AdminRankInvalid = exports.AdminRankEmojiNotAllowed = exports.AdminIdInvalid = exports.AdminsTooMuch = exports.AddressInvalid = exports.AccessTokenInvalid = exports.AccessTokenExpired = exports.AboutTooLong = exports.BadRequest = void 0;
4
+ exports.ChargeIdEmpty = exports.ChargeAlreadyRefunded = exports.ChannelTooLarge = exports.ChannelTooBig = exports.ChannelPrivate = exports.ChannelParicipantMissing = exports.ChannelMonoforumUnsupported = exports.ChannelInvalid = exports.ChannelIdInvalid = exports.ChannelForumMissing = exports.ChannelBanned = exports.ChannelAddInvalid = exports.ChannelsTooMuch = exports.ChannelsAdminPublicTooMuch = exports.ChannelsAdminLocatedTooMuch = exports.CdnMethodInvalid = exports.CallProtocolLayerInvalid = exports.CallProtocolFlagsInvalid = exports.CallPeerInvalid = exports.CallOccupyFailed = exports.CallAlreadyDeclined = exports.CallAlreadyAccepted = exports.ButtonUserPrivacyRestricted = exports.ButtonUserInvalid = exports.ButtonUrlInvalid = exports.ButtonTypeInvalid = exports.ButtonTextInvalid = exports.ButtonPosInvalid = exports.ButtonInvalid = exports.ButtonIdInvalid = exports.ButtonDataInvalid = exports.ButtonCopyTextInvalid = exports.BusinessWorkHoursPeriodInvalid = exports.BusinessWorkHoursEmpty = exports.BusinessRecipientsEmpty = exports.BusinessPeerUsageMissing = exports.BusinessPeerInvalid = exports.BusinessConnectionNotAllowed = exports.BusinessConnectionInvalid = exports.BroadcastRequired = exports.BroadcastPublicVotersForbidden = exports.BroadcastIdInvalid = exports.BotWebviewDisabled = exports.BotScoreNotModified = exports.BotResponseTimeout = exports.BotPollsDisabled = exports.BotPaymentsDisabled = exports.BotOnesideNotAvail = exports.BotNotConnectedYet = exports.BotMissing = void 0;
5
+ exports.DataJsonInvalid = exports.DataInvalid = exports.DataHashSizeInvalid = exports.CustomReactionsTooMany = exports.CurrencyTotalAmountInvalid = exports.CreateCallFailed = exports.ContactReqMissing = exports.ContactNameEmpty = exports.ContactMissing = exports.ContactIdInvalid = exports.ContactAddMissing = exports.ConnectionSystemLangCodeEmpty = exports.ConnectionSystemEmpty = exports.ConnectionNotInited = exports.ConnectionLayerInvalid = exports.ConnectionLangPackInvalid = exports.ConnectionIdInvalid = exports.ConnectionDeviceModelEmpty = exports.ConnectionAppVersionEmpty = exports.ConnectionApiIdInvalid = exports.ColorInvalid = exports.CollectibleNotFound = exports.CollectibleInvalid = exports.CodeInvalid = exports.CodeHashInvalid = exports.CodeEmpty = exports.ChatTooBig = exports.ChatTitleEmpty = exports.ChatSendInlineForbidden = exports.ChatRevokeDateUnsupported = exports.ChatRestricted = exports.ChatPublicRequired = exports.ChatNotModified = exports.ChatMemberAddFailed = exports.ChatLinkExists = exports.ChatInvitePermanent = exports.ChatInvalid = exports.ChatIdInvalid = exports.ChatIdEmpty = exports.ChatForwardsRestricted = exports.ChatDiscussionUnallowed = exports.ChatAdminRequired = exports.ChatAboutTooLong = exports.ChatAboutNotModified = exports.ChatlistExcludeInvalid = exports.ChatlistsTooMuch = exports.ChatlinkSlugExpired = exports.ChatlinkSlugEmpty = exports.ChatlinksTooMuch = exports.ChargeIdInvalid = void 0;
6
+ exports.FileReferenceAny = exports.FilePartMissing = exports.FilePartTooSmall = exports.FilePartTooBig = exports.FilePartSizeInvalid = exports.FilePartSizeChanged = exports.FilePartLengthInvalid = exports.FilePartInvalid = exports.FilePartEmpty = exports.FilePartsInvalid = exports.FileMigrate = exports.FileIdInvalid = exports.FileEmtpy = exports.FileContentTypeInvalid = exports.FieldNameInvalid = exports.FieldNameEmpty = exports.ExternalUrlInvalid = exports.ExtendedMediaInvalid = exports.ExtendedMediaAmountInvalid = exports.ExportCardInvalid = exports.ExpireDateInvalid = exports.ExpiresAtInvalid = exports.ErrorTextEmpty = exports.EntityMentionUserInvalid = exports.EntityBoundsInvalid = exports.EntitiesTooLong = exports.EncryptionIdInvalid = exports.EncryptionDeclined = exports.EncryptionAlreadyDeclined = exports.EncryptionAlreadyAccepted = exports.EncryptedMessageInvalid = exports.EmoticonStickerpackMissing = exports.EmoticonInvalid = exports.EmoticonEmpty = exports.EmojiNotModified = exports.EmojiMarkupInvalid = exports.EmojiInvalid = exports.EmailVerifyExpired = exports.EmailUnconfirmedX = exports.EmailUnconfirmed = exports.EmailNotSetup = exports.EmailNotAllowed = exports.EmailInvalid = exports.EmailHashExpired = exports.EffectIdInvalid = exports.DocumentInvalid = exports.DhGAInvalid = exports.DcIdInvalid = exports.DateEmpty = exports.DataTooLong = void 0;
7
+ exports.ImageProcessFailed = exports.IdInvalid = exports.IdExpired = exports.HideRequesterMissing = exports.HashSizeInvalid = exports.HashInvalid = exports.HashtagInvalid = exports.GroupCallInvalid = exports.GroupedMediaInvalid = exports.GroupcallSsrcDuplicateMuch = exports.GroupcallNotModified = exports.GroupcallJoinMissing = exports.GroupcallInvalid = exports.GroupcallForbidden = exports.GroupcallAlreadyDiscarded = exports.GraphOutdatedReload = exports.GraphInvalidReload = exports.GraphExpiredReload = exports.GifIdInvalid = exports.GifContentTypeInvalid = exports.GiftStarsInvalid = exports.GiftSlugInvalid = exports.GiftSlugExpired = exports.GiftMonthsInvalid = exports.GeoPointInvalid = exports.GeneralModifyIconForbidden = exports.GameBotInvalid = exports.FrozenParticipantMissing = exports.FromPeerInvalid = exports.FromMessageBotDisabled = exports.FreshChangeAdminsForbidden = exports.ForumEnabled = exports.FormUnsupported = exports.FormSubmitDuplicate = exports.FormIdEmpty = exports.FormExpired = exports.FolderIdInvalid = exports.FolderIdEmpty = exports.FirstnameInvalid = exports.FilterTitleEmpty = exports.FilterNotSupported = exports.FilterIncludeEmpty = exports.FilterIdInvalid = exports.FileTokenInvalid = exports.FileTitleEmpty = exports.FileReferenceXInvalid = exports.FileReferenceXExpired = exports.FileReferenceInvalid = exports.FileReferenceExpired = exports.FileReferenceEmpty = void 0;
8
+ exports.MediaFileInvalid = exports.MediaEmpty = exports.MediaCaptionTooLong = exports.MediaAlreadyPaid = exports.Md5ChecksumInvalid = exports.MaxQtsInvalid = exports.MaxIdInvalid = exports.MaxDateInvalid = exports.LocationInvalid = exports.LinkNotModified = exports.LimitInvalid = exports.LastnameInvalid = exports.LangPackInvalid = exports.LangCodeNotSupported = exports.LangCodeInvalid = exports.LanguageInvalid = exports.JoinAsPeerInvalid = exports.InvoicePayloadInvalid = exports.InvoiceInvalid = exports.InviteSlugInvalid = exports.InviteSlugExpired = exports.InviteSlugEmpty = exports.InviteRevokedMissing = exports.InviteRequestSent = exports.InviteHashInvalid = exports.InviteHashExpired = exports.InviteHashEmpty = exports.InviteForbiddenWithJoinas = exports.InvitesTooMuch = exports.InputUserDeactivated = exports.InputTextTooLong = exports.InputTextEmpty = exports.InputRequestTooLong = exports.InputPurposeInvalid = exports.InputPeersEmpty = exports.InputMethodInvalid = exports.InputLayerInvalid = exports.InputFilterInvalid = exports.InputFileInvalid = exports.InputFetchFail = exports.InputFetchError = exports.InputConstructorInvalid = exports.InputChatlistInvalid = exports.InlineResultExpired = exports.ImportTokenInvalid = exports.ImportIdInvalid = exports.ImportHistoryLogEmpty = exports.ImportFormatUnrecognized = exports.ImportFormatDateInvalid = exports.ImportFileInvalid = void 0;
9
+ exports.ParticipantVersionOutdated = exports.ParticipantJoinMissing = exports.ParticipantIdInvalid = exports.ParticipantsTooFew = exports.ParentPeerInvalid = exports.PackTypeInvalid = exports.PackTitleInvalid = exports.PackShortNameOccupied = exports.PackShortNameInvalid = exports.OrderInvalid = exports.OptionInvalid = exports.OptionsTooMuch = exports.OffsetPeerIdInvalid = exports.OffsetInvalid = exports.NoPaymentNeeded = exports.NotJoined = exports.NotEligible = exports.NogeneralHideForbidden = exports.NextOffsetInvalid = exports.NewSettingsInvalid = exports.NewSettingsEmpty = exports.NewSaltInvalid = exports.MultiMediaTooLong = exports.MsgWaitFailed = exports.MsgVoiceMissing = exports.MsgTooOld = exports.MsgIdInvalid = exports.MonthInvalid = exports.MinDateInvalid = exports.MethodInvalid = exports.MessageTooOld = exports.MessageTooLong = exports.MessagePollClosed = exports.MessageNotReadYet = exports.MessageNotModified = exports.MessageIdInvalid = exports.MessageIdsEmpty = exports.MessageEmpty = exports.MessageEditTimeExpired = exports.MegagroupRequired = exports.MegagroupPrehistoryHidden = exports.MegagroupIdInvalid = exports.MegagroupGeoRequired = exports.MediaVideoStoryMissing = exports.MediaTypeInvalid = exports.MediaTtlInvalid = exports.MediaPrevInvalid = exports.MediaNewInvalid = exports.MediaInvalid = exports.MediaGroupedInvalid = void 0;
10
+ exports.PollOptionInvalid = exports.PollOptionDuplicate = exports.PollAnswerInvalid = exports.PollAnswersInvalid = exports.PinRestricted = exports.PinnedTooMuch = exports.PinnedDialogsTooMuch = exports.PhotoThumbUrlInvalid = exports.PhotoThumbUrlEmpty = exports.PhotoSaveFileInvalid = exports.PhotoInvalidDimensions = exports.PhotoInvalid = exports.PhotoIdInvalid = exports.PhotoFileMissing = exports.PhotoExtInvalid = exports.PhotoCropSizeSmall = exports.PhotoCropFileMissing = exports.PhotoContentUrlEmpty = exports.PhotoContentTypeInvalid = exports.PhonePasswordProtected = exports.PhoneNumberUnoccupied = exports.PhoneNumberOccupied = exports.PhoneNumberInvalid = exports.PhoneNumberFlood = exports.PhoneNumberBanned = exports.PhoneNumberAppSignupForbidden = exports.PhoneNotOccupied = exports.PhoneHashExpired = exports.PhoneCodeInvalid = exports.PhoneCodeHashEmpty = exports.PhoneCodeExpired = exports.PhoneCodeEmpty = exports.PersistentTimestampInvalid = exports.PersistentTimestampEmpty = exports.PeerTypesInvalid = exports.PeerIdNotSupported = exports.PeerIdInvalid = exports.PeerHistoryEmpty = exports.PeerFlood = exports.PeersListEmpty = exports.PaymentRequired = exports.PaymentProviderInvalid = exports.PaymentCredentialsInvalid = exports.PasswordTooFresh = exports.PasswordRequired = exports.PasswordRecoveryNa = exports.PasswordRecoveryExpired = exports.PasswordMissing = exports.PasswordHashInvalid = exports.PasswordEmpty = void 0;
11
+ exports.RevoteNotAllowed = exports.ResultTypeInvalid = exports.ResultIdInvalid = exports.ResultIdEmpty = exports.ResultIdDuplicate = exports.ResultsTooMuch = exports.ResetRequestMissing = exports.RequestTokenInvalid = exports.ReplyToUserInvalid = exports.ReplyToMonoforumPeerInvalid = exports.ReplyToInvalid = exports.ReplyMessageIdInvalid = exports.ReplyMessagesTooMuch = exports.ReplyMarkupTooLong = exports.ReplyMarkupInvalid = exports.ReplyMarkupGameEmpty = exports.ReplyMarkupBuyEmpty = exports.ReflectorNotAvailable = exports.ReceiptEmpty = exports.ReactionInvalid = exports.ReactionEmpty = exports.ReactionsTooMany = exports.ReactionsCountInvalid = exports.RangesInvalid = exports.RandomLengthInvalid = exports.RandomIdInvalid = exports.RandomIdExpired = exports.RandomIdEmpty = exports.RaiseHandForbidden = exports.QuoteTextInvalid = exports.QuizMultipleInvalid = exports.QuizCorrectAnswerInvalid = exports.QuizCorrectAnswersTooMuch = exports.QuizCorrectAnswersEmpty = exports.QuizAnswerMissing = exports.QuickRepliesTooMuch = exports.QuickRepliesBotNotAllowed = exports.QueryTooShort = exports.QueryIdInvalid = exports.QueryIdEmpty = exports.PurposeInvalid = exports.PublicKeyRequired = exports.PrivacyValueInvalid = exports.PrivacyTooLong = exports.PrivacyKeyInvalid = exports.PricingChatInvalid = exports.PremiumAccountRequired = exports.PollVoteRequired = exports.PollUnsupported = exports.PollQuestionInvalid = void 0;
12
+ exports.StarrefExpired = exports.StarrefAwaitingEnd = exports.StargiftUserUsageLimited = exports.StargiftUsageLimited = exports.StargiftUpgradeUnavailable = exports.StargiftTransferTooEarly = exports.StargiftSlugInvalid = exports.StargiftResellCurrencyNotAllowed = exports.StargiftPeerInvalid = exports.StargiftOwnerInvalid = exports.StargiftNotFound = exports.StargiftInvalid = exports.StargiftAlreadyUpgraded = exports.StargiftAlreadyRefunded = exports.StargiftAlreadyConverted = exports.SrpPasswordChanged = exports.SrpIdInvalid = exports.SrpAInvalid = exports.SmsCodeCreateFailed = exports.SmsjobIdInvalid = exports.SlugInvalid = exports.SlowmodeMultiMsgsDisabled = exports.SlotsEmpty = exports.ShortNameOccupied = exports.ShortNameInvalid = exports.ShortnameOccupyFailed = exports.ShortcutInvalid = exports.Sha256HashInvalid = exports.SettingsInvalid = exports.SessionTooFresh = exports.SendMessageTypeInvalid = exports.SendMessageMediaInvalid = exports.SendMessageGameInvalid = exports.SendAsPeerInvalid = exports.SelfDeleteRestricted = exports.SecureSecretRequired = exports.SecondsInvalid = exports.SearchWithLinkNotSupported = exports.SearchQueryEmpty = exports.ScoreInvalid = exports.ScheduleTooMuch = exports.ScheduleStatusPrivate = exports.ScheduleDateTooLate = exports.ScheduleDateInvalid = exports.ScheduleBotNotAllowed = exports.SavedIdEmpty = exports.RsaDecryptFailed = exports.RingtoneMimeInvalid = exports.RingtoneInvalid = exports.RightsNotModified = void 0;
13
+ exports.TempAuthKeyEmpty = exports.TempAuthKeyAlreadyBound = exports.TaskAlreadyExists = exports.TakeoutRequired = exports.TakeoutInvalid = exports.SwitchWebviewUrlInvalid = exports.SwitchPmTextEmpty = exports.SuggestedPostPeerInvalid = exports.SuggestedPostAmountInvalid = exports.SubscriptionPeriodInvalid = exports.SubscriptionIdInvalid = exports.SubscriptionExportMissing = exports.StorySendFloodWeekly = exports.StorySendFloodMonthly = exports.StoryPeriodInvalid = exports.StoryNotModified = exports.StoryIdInvalid = exports.StoryIdEmpty = exports.StoriesTooMuch = exports.StoriesNeverCreated = exports.StickerVideoNowebm = exports.StickerVideoNodoc = exports.StickerVideoBig = exports.StickerThumbTgsNotgs = exports.StickerThumbPngNopng = exports.StickerTgsNotgs = exports.StickerTgsNodoc = exports.StickerPngNopng = exports.StickerPngDimensions = exports.StickerMimeInvalid = exports.StickerInvalid = exports.StickerIdInvalid = exports.StickerGifDimensions = exports.StickerFileInvalid = exports.StickerEmojiInvalid = exports.StickerDocumentInvalid = exports.StickersTooMuch = exports.StickersEmpty = exports.StickersetNotModified = exports.StickersetInvalid = exports.StickerpackStickersTooMuch = exports.StartParamTooLong = exports.StartParamInvalid = exports.StartParamEmpty = exports.StarsPaymentRequired = exports.StarsInvoiceInvalid = exports.StarsAmountInvalid = exports.StarrefPermilleTooLow = exports.StarrefPermilleInvalid = exports.StarrefHashRevoked = void 0;
14
+ exports.UserAdminInvalid = exports.UsersTooMuch = exports.UsersTooFew = exports.UserpicUploadRequired = exports.UsernamePurchaseAvailable = exports.UsernameOccupied = exports.UsernameNotOccupied = exports.UsernameNotModified = exports.UsernameInvalid = exports.UsernamesActiveTooMuch = exports.UsageLimitInvalid = exports.UrlInvalid = exports.UntilDateInvalid = exports.UNSUPPORTED = exports.TypeConstructorInvalid = exports.TypesEmpty = exports.TtlPeriodInvalid = exports.TtlMediaInvalid = exports.TtlDaysInvalid = exports.TranslateReqQuotaExceeded = exports.TranscriptionFailed = exports.TransactionIdInvalid = exports.ToLangInvalid = exports.ToIdInvalid = exports.TopicTitleEmpty = exports.TopicNotModified = exports.TopicIdInvalid = exports.TopicHideSeparately = exports.TopicDeleted = exports.TopicCloseSeparately = exports.TopicClosed = exports.TopicsEmpty = exports.TokenTypeInvalid = exports.TokenInvalid = exports.TokenEmpty = exports.TodoNotModified = exports.TodoItemDuplicate = exports.TodoItemsEmpty = exports.TmpPasswordInvalid = exports.TmpPasswordDisabled = exports.TitleInvalid = exports.TimezoneInvalid = exports.ThemeTitleInvalid = exports.ThemeSlugInvalid = exports.ThemeParamsInvalid = exports.ThemeMimeInvalid = exports.ThemeInvalid = exports.ThemeFormatInvalid = exports.ThemeFileInvalid = exports.TermsUrlInvalid = void 0;
15
+ exports.YouBlockedUser = exports.WebpushTokenInvalid = exports.WebpushKeyInvalid = exports.WebpushAuthInvalid = exports.WebpageUrlInvalid = exports.WebpageNotFound = exports.WebpageMediaEmpty = exports.WebpageCurlFailed = exports.WebdocumentUrlInvalid = exports.WebdocumentUrlEmpty = exports.WebdocumentSizeTooBig = exports.WebdocumentMimeInvalid = exports.WebdocumentInvalid = exports.WcConvertUrlInvalid = exports.WallpaperNotFound = exports.WallpaperMimeInvalid = exports.WallpaperInvalid = exports.WallpaperFileInvalid = exports.VolumeLocNotFound = exports.VoiceMessagesForbidden = exports.VideoTitleEmpty = exports.VideoStopForbidden = exports.VideoPauseForbidden = exports.VideoFileInvalid = exports.VideoContentTypeInvalid = exports.VenueIdInvalid = exports.UserVolumeInvalid = exports.UserPublicMissing = exports.UserNotParticipant = exports.UserNotMutualContact = exports.UserKicked = exports.UserIsBot = exports.UserIsBlocked = exports.UserInvalid = exports.UserIdInvalid = exports.UserGiftUnavailable = exports.UserCreator = exports.UserChannelsTooMuch = exports.UserBotRequired = exports.UserBotInvalid = exports.UserBot = exports.UserBlocked = exports.UserBannedInChannel = exports.UserAlreadyParticipant = exports.UserAlreadyInvited = void 0;
15
16
  const RpcError_js_1 = require("@/errors/RpcError.js");
16
17
  class BadRequest extends RpcError_js_1.RPCError {
17
18
  code = 400;
@@ -228,6 +229,11 @@ class BotDomainInvalid extends BadRequest {
228
229
  message = 'Bot domain invalid.';
229
230
  }
230
231
  exports.BotDomainInvalid = BotDomainInvalid;
232
+ class BotFallbackUnsupported extends BadRequest {
233
+ id = 'BOT_FALLBACK_UNSUPPORTED';
234
+ message = "The fallback flag can't be set for bots.";
235
+ }
236
+ exports.BotFallbackUnsupported = BotFallbackUnsupported;
231
237
  class BotGamesDisabled extends BadRequest {
232
238
  id = 'BOT_GAMES_DISABLED';
233
239
  message = "Games can't be sent to channels.";
@@ -313,6 +319,16 @@ class BroadcastRequired extends BadRequest {
313
319
  message = 'This method can only be called on a channel, please use stats.getMegagroupStats for supergroups.';
314
320
  }
315
321
  exports.BroadcastRequired = BroadcastRequired;
322
+ class BusinessConnectionInvalid extends BadRequest {
323
+ id = 'BUSINESS_CONNECTION_INVALID';
324
+ message = 'The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business) call is invalid.';
325
+ }
326
+ exports.BusinessConnectionInvalid = BusinessConnectionInvalid;
327
+ class BusinessConnectionNotAllowed extends BadRequest {
328
+ id = 'BUSINESS_CONNECTION_NOT_ALLOWED';
329
+ message = "This method was invoked over a business connection using [invokeWithBusinessConnection](https://core.telegram.org/api/business#connected-bots), but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.";
330
+ }
331
+ exports.BusinessConnectionNotAllowed = BusinessConnectionNotAllowed;
316
332
  class BusinessPeerInvalid extends BadRequest {
317
333
  id = 'BUSINESS_PEER_INVALID';
318
334
  message = "Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business#connected-bots).";
@@ -353,6 +369,11 @@ class ButtonIdInvalid extends BadRequest {
353
369
  message = 'The specified button ID is invalid.';
354
370
  }
355
371
  exports.ButtonIdInvalid = ButtonIdInvalid;
372
+ class ButtonInvalid extends BadRequest {
373
+ id = 'BUTTON_INVALID';
374
+ message = 'The specified button is invalid.';
375
+ }
376
+ exports.ButtonInvalid = ButtonInvalid;
356
377
  class ButtonPosInvalid extends BadRequest {
357
378
  id = 'BUTTON_POS_INVALID';
358
379
  message = 'The position of one of the keyboard buttons is invalid (i.e. a Game or Pay button not in the first position, and so on...).';
@@ -408,6 +429,11 @@ class CallProtocolFlagsInvalid extends BadRequest {
408
429
  message = 'Call protocol flags invalid.';
409
430
  }
410
431
  exports.CallProtocolFlagsInvalid = CallProtocolFlagsInvalid;
432
+ class CallProtocolLayerInvalid extends BadRequest {
433
+ id = 'CALL_PROTOCOL_LAYER_INVALID';
434
+ message = 'The specified protocol layer version range is invalid.';
435
+ }
436
+ exports.CallProtocolLayerInvalid = CallProtocolLayerInvalid;
411
437
  class CdnMethodInvalid extends BadRequest {
412
438
  id = 'CDN_METHOD_INVALID';
413
439
  message = "You can't call this method in a CDN DC.";
@@ -453,6 +479,11 @@ class ChannelInvalid extends BadRequest {
453
479
  message = 'The provided channel is invalid.';
454
480
  }
455
481
  exports.ChannelInvalid = ChannelInvalid;
482
+ class ChannelMonoforumUnsupported extends BadRequest {
483
+ id = 'CHANNEL_MONOFORUM_UNSUPPORTED';
484
+ message = '[Monoforums](https://core.telegram.org/api/channel#monoforums) do not support this feature.';
485
+ }
486
+ exports.ChannelMonoforumUnsupported = ChannelMonoforumUnsupported;
456
487
  class ChannelParicipantMissing extends BadRequest {
457
488
  id = 'CHANNEL_PARICIPANT_MISSING';
458
489
  message = 'The current user is not in the channel.';
@@ -478,6 +509,16 @@ class ChargeAlreadyRefunded extends BadRequest {
478
509
  message = 'The transaction was already refunded.';
479
510
  }
480
511
  exports.ChargeAlreadyRefunded = ChargeAlreadyRefunded;
512
+ class ChargeIdEmpty extends BadRequest {
513
+ id = 'CHARGE_ID_EMPTY';
514
+ message = 'The specified charge_id is empty.';
515
+ }
516
+ exports.ChargeIdEmpty = ChargeIdEmpty;
517
+ class ChargeIdInvalid extends BadRequest {
518
+ id = 'CHARGE_ID_INVALID';
519
+ message = 'The specified charge_id is invalid.';
520
+ }
521
+ exports.ChargeIdInvalid = ChargeIdInvalid;
481
522
  class ChatlinksTooMuch extends BadRequest {
482
523
  id = 'CHATLINKS_TOO_MUCH';
483
524
  message = 'Too many [business chat links](https://core.telegram.org/api/business#business-chat-links) were created, please delete some older links.';
@@ -708,6 +749,11 @@ class CustomReactionsTooMany extends BadRequest {
708
749
  message = 'Too many custom reactions were specified.';
709
750
  }
710
751
  exports.CustomReactionsTooMany = CustomReactionsTooMany;
752
+ class DataHashSizeInvalid extends BadRequest {
753
+ id = 'DATA_HASH_SIZE_INVALID';
754
+ message = 'The size of the specified secureValueErrorData.data_hash is invalid.';
755
+ }
756
+ exports.DataHashSizeInvalid = DataHashSizeInvalid;
711
757
  class DataInvalid extends BadRequest {
712
758
  id = 'DATA_INVALID';
713
759
  message = 'Encrypted data invalid.';
@@ -743,6 +789,11 @@ class DocumentInvalid extends BadRequest {
743
789
  message = 'The specified document is invalid.';
744
790
  }
745
791
  exports.DocumentInvalid = DocumentInvalid;
792
+ class EffectIdInvalid extends BadRequest {
793
+ id = 'EFFECT_ID_INVALID';
794
+ message = 'The specified effect ID is invalid.';
795
+ }
796
+ exports.EffectIdInvalid = EffectIdInvalid;
746
797
  class EmailHashExpired extends BadRequest {
747
798
  id = 'EMAIL_HASH_EXPIRED';
748
799
  message = 'Email hash expired.';
@@ -853,6 +904,11 @@ class ErrorTextEmpty extends BadRequest {
853
904
  message = 'The provided error message is empty.';
854
905
  }
855
906
  exports.ErrorTextEmpty = ErrorTextEmpty;
907
+ class ExpiresAtInvalid extends BadRequest {
908
+ id = 'EXPIRES_AT_INVALID';
909
+ message = 'The specified `expires_at` timestamp is invalid.';
910
+ }
911
+ exports.ExpiresAtInvalid = ExpiresAtInvalid;
856
912
  class ExpireDateInvalid extends BadRequest {
857
913
  id = 'EXPIRE_DATE_INVALID';
858
914
  message = 'The specified expiration date is invalid.';
@@ -868,6 +924,11 @@ class ExtendedMediaAmountInvalid extends BadRequest {
868
924
  message = 'The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.';
869
925
  }
870
926
  exports.ExtendedMediaAmountInvalid = ExtendedMediaAmountInvalid;
927
+ class ExtendedMediaInvalid extends BadRequest {
928
+ id = 'EXTENDED_MEDIA_INVALID';
929
+ message = 'The specified paid media is invalid.';
930
+ }
931
+ exports.ExtendedMediaInvalid = ExtendedMediaInvalid;
871
932
  class ExternalUrlInvalid extends BadRequest {
872
933
  id = 'EXTERNAL_URL_INVALID';
873
934
  message = 'External URL invalid.';
@@ -955,27 +1016,27 @@ class FileReferenceAny extends BadRequest {
955
1016
  exports.FileReferenceAny = FileReferenceAny;
956
1017
  class FileReferenceEmpty extends BadRequest {
957
1018
  id = 'FILE_REFERENCE_EMPTY';
958
- message = 'An empty [file reference](https://core.telegram.org/api/file_reference) was specified.';
1019
+ message = 'An empty [file reference](https://core.telegram.org/api/file-references) was specified.';
959
1020
  }
960
1021
  exports.FileReferenceEmpty = FileReferenceEmpty;
961
1022
  class FileReferenceExpired extends BadRequest {
962
1023
  id = 'FILE_REFERENCE_EXPIRED';
963
- message = 'File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file_reference).';
1024
+ message = 'File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file-references).';
964
1025
  }
965
1026
  exports.FileReferenceExpired = FileReferenceExpired;
966
1027
  class FileReferenceInvalid extends BadRequest {
967
1028
  id = 'FILE_REFERENCE_INVALID';
968
- message = 'The specified [file reference](https://core.telegram.org/api/file_reference) is invalid.';
1029
+ message = 'The specified [file reference](https://core.telegram.org/api/file-references) is invalid.';
969
1030
  }
970
1031
  exports.FileReferenceInvalid = FileReferenceInvalid;
971
1032
  class FileReferenceXExpired extends BadRequest {
972
1033
  id = 'FILE_REFERENCE_X_EXPIRED';
973
- message = 'The file reference of the media file at index {value} in the passed media array expired, it [must be refreshed](https://core.telegram.org/api/file_reference).';
1034
+ message = 'The file reference of the media file at index {value} in the passed media array expired, it [must be refreshed as specified in the documentation](https://core.telegram.org/api/file-references). .';
974
1035
  }
975
1036
  exports.FileReferenceXExpired = FileReferenceXExpired;
976
1037
  class FileReferenceXInvalid extends BadRequest {
977
1038
  id = 'FILE_REFERENCE_X_INVALID';
978
- message = 'The file reference of the media file at index {value} in the passed media array is invalid.';
1039
+ message = 'The [file reference](https://core.telegram.org/api/file-references) of the media file at index {value} in the passed media array is invalid.';
979
1040
  }
980
1041
  exports.FileReferenceXInvalid = FileReferenceXInvalid;
981
1042
  class FileTitleEmpty extends BadRequest {
@@ -1033,6 +1094,11 @@ class FormIdEmpty extends BadRequest {
1033
1094
  message = 'The specified form ID is empty.';
1034
1095
  }
1035
1096
  exports.FormIdEmpty = FormIdEmpty;
1097
+ class FormSubmitDuplicate extends BadRequest {
1098
+ id = 'FORM_SUBMIT_DUPLICATE';
1099
+ message = 'The same payment form was already submitted. .';
1100
+ }
1101
+ exports.FormSubmitDuplicate = FormSubmitDuplicate;
1036
1102
  class FormUnsupported extends BadRequest {
1037
1103
  id = 'FORM_UNSUPPORTED';
1038
1104
  message = 'Please update your client.';
@@ -1058,6 +1124,11 @@ class FromPeerInvalid extends BadRequest {
1058
1124
  message = 'The specified from_id is invalid.';
1059
1125
  }
1060
1126
  exports.FromPeerInvalid = FromPeerInvalid;
1127
+ class FrozenParticipantMissing extends BadRequest {
1128
+ id = 'FROZEN_PARTICIPANT_MISSING';
1129
+ message = 'The current account is [frozen](https://core.telegram.org/api/auth#frozen-accounts), and cannot access the specified peer.';
1130
+ }
1131
+ exports.FrozenParticipantMissing = FrozenParticipantMissing;
1061
1132
  class GameBotInvalid extends BadRequest {
1062
1133
  id = 'GAME_BOT_INVALID';
1063
1134
  message = "Bots can't send another bot's game.";
@@ -1073,6 +1144,11 @@ class GeoPointInvalid extends BadRequest {
1073
1144
  message = 'Invalid geoposition provided.';
1074
1145
  }
1075
1146
  exports.GeoPointInvalid = GeoPointInvalid;
1147
+ class GiftMonthsInvalid extends BadRequest {
1148
+ id = 'GIFT_MONTHS_INVALID';
1149
+ message = 'The value passed in invoice.inputInvoicePremiumGiftStars.months is invalid.';
1150
+ }
1151
+ exports.GiftMonthsInvalid = GiftMonthsInvalid;
1076
1152
  class GiftSlugExpired extends BadRequest {
1077
1153
  id = 'GIFT_SLUG_EXPIRED';
1078
1154
  message = 'The specified gift slug has expired.';
@@ -1083,6 +1159,11 @@ class GiftSlugInvalid extends BadRequest {
1083
1159
  message = 'The specified slug is invalid.';
1084
1160
  }
1085
1161
  exports.GiftSlugInvalid = GiftSlugInvalid;
1162
+ class GiftStarsInvalid extends BadRequest {
1163
+ id = 'GIFT_STARS_INVALID';
1164
+ message = 'The specified amount of stars is invalid.';
1165
+ }
1166
+ exports.GiftStarsInvalid = GiftStarsInvalid;
1086
1167
  class GifContentTypeInvalid extends BadRequest {
1087
1168
  id = 'GIF_CONTENT_TYPE_INVALID';
1088
1169
  message = 'GIF content-type invalid.';
@@ -1158,6 +1239,11 @@ class HashInvalid extends BadRequest {
1158
1239
  message = 'The provided hash is invalid.';
1159
1240
  }
1160
1241
  exports.HashInvalid = HashInvalid;
1242
+ class HashSizeInvalid extends BadRequest {
1243
+ id = 'HASH_SIZE_INVALID';
1244
+ message = 'The size of the specified secureValueError.hash is invalid.';
1245
+ }
1246
+ exports.HashSizeInvalid = HashSizeInvalid;
1161
1247
  class HideRequesterMissing extends BadRequest {
1162
1248
  id = 'HIDE_REQUESTER_MISSING';
1163
1249
  message = 'The join request was missing or was already handled.';
@@ -1258,6 +1344,11 @@ class InputPeersEmpty extends BadRequest {
1258
1344
  message = 'The specified peer array is empty.';
1259
1345
  }
1260
1346
  exports.InputPeersEmpty = InputPeersEmpty;
1347
+ class InputPurposeInvalid extends BadRequest {
1348
+ id = 'INPUT_PURPOSE_INVALID';
1349
+ message = 'The specified payment purpose is invalid.';
1350
+ }
1351
+ exports.InputPurposeInvalid = InputPurposeInvalid;
1261
1352
  class InputRequestTooLong extends BadRequest {
1262
1353
  id = 'INPUT_REQUEST_TOO_LONG';
1263
1354
  message = 'The request payload is too long.';
@@ -1328,6 +1419,11 @@ class InviteSlugInvalid extends BadRequest {
1328
1419
  message = 'The specified invitation slug is invalid.';
1329
1420
  }
1330
1421
  exports.InviteSlugInvalid = InviteSlugInvalid;
1422
+ class InvoiceInvalid extends BadRequest {
1423
+ id = 'INVOICE_INVALID';
1424
+ message = 'The specified invoice is invalid.';
1425
+ }
1426
+ exports.InvoiceInvalid = InvoiceInvalid;
1331
1427
  class InvoicePayloadInvalid extends BadRequest {
1332
1428
  id = 'INVOICE_PAYLOAD_INVALID';
1333
1429
  message = 'The specified invoice payload is invalid.';
@@ -1398,6 +1494,11 @@ class Md5ChecksumInvalid extends BadRequest {
1398
1494
  message = 'The MD5 checksums do not match.';
1399
1495
  }
1400
1496
  exports.Md5ChecksumInvalid = Md5ChecksumInvalid;
1497
+ class MediaAlreadyPaid extends BadRequest {
1498
+ id = 'MEDIA_ALREADY_PAID';
1499
+ message = 'You already paid for the specified media.';
1500
+ }
1501
+ exports.MediaAlreadyPaid = MediaAlreadyPaid;
1401
1502
  class MediaCaptionTooLong extends BadRequest {
1402
1503
  id = 'MEDIA_CAPTION_TOO_LONG';
1403
1504
  message = 'The caption is too long.';
@@ -1523,6 +1624,11 @@ class MinDateInvalid extends BadRequest {
1523
1624
  message = 'The specified minimum date is invalid.';
1524
1625
  }
1525
1626
  exports.MinDateInvalid = MinDateInvalid;
1627
+ class MonthInvalid extends BadRequest {
1628
+ id = 'MONTH_INVALID';
1629
+ message = 'The number of months specified in inputInvoicePremiumGiftStars.months is invalid.';
1630
+ }
1631
+ exports.MonthInvalid = MonthInvalid;
1526
1632
  class MsgIdInvalid extends BadRequest {
1527
1633
  id = 'MSG_ID_INVALID';
1528
1634
  message = 'Invalid message ID provided.';
@@ -1533,6 +1639,11 @@ class MsgTooOld extends BadRequest {
1533
1639
  message = '[`chat_read_mark_expire_period` seconds](https://core.telegram.org/api/config#chat-read-mark-expire-period) have passed since the message was sent, read receipts were deleted.';
1534
1640
  }
1535
1641
  exports.MsgTooOld = MsgTooOld;
1642
+ class MsgVoiceMissing extends BadRequest {
1643
+ id = 'MSG_VOICE_MISSING';
1644
+ message = 'The specified message is not a voice message.';
1645
+ }
1646
+ exports.MsgVoiceMissing = MsgVoiceMissing;
1536
1647
  class MsgWaitFailed extends BadRequest {
1537
1648
  id = 'MSG_WAIT_FAILED';
1538
1649
  message = 'A waiting call returned an error.';
@@ -1563,6 +1674,11 @@ class NextOffsetInvalid extends BadRequest {
1563
1674
  message = 'The specified offset is longer than 64 bytes.';
1564
1675
  }
1565
1676
  exports.NextOffsetInvalid = NextOffsetInvalid;
1677
+ class NogeneralHideForbidden extends BadRequest {
1678
+ id = 'NOGENERAL_HIDE_FORBIDDEN';
1679
+ message = 'Only the "General" topic with `id=1` can be hidden.';
1680
+ }
1681
+ exports.NogeneralHideForbidden = NogeneralHideForbidden;
1566
1682
  class NotEligible extends BadRequest {
1567
1683
  id = 'NOT_ELIGIBLE';
1568
1684
  message = 'The current user is not eligible to join the Peer-to-Peer Login Program.';
@@ -1573,6 +1689,11 @@ class NotJoined extends BadRequest {
1573
1689
  message = "The current user hasn't joined the Peer-to-Peer Login Program.";
1574
1690
  }
1575
1691
  exports.NotJoined = NotJoined;
1692
+ class NoPaymentNeeded extends BadRequest {
1693
+ id = 'NO_PAYMENT_NEEDED';
1694
+ message = 'The upgrade/transfer of the specified gift was already paid for or is free.';
1695
+ }
1696
+ exports.NoPaymentNeeded = NoPaymentNeeded;
1576
1697
  class OffsetInvalid extends BadRequest {
1577
1698
  id = 'OFFSET_INVALID';
1578
1699
  message = 'The provided offset is invalid.';
@@ -1613,6 +1734,16 @@ class PackTitleInvalid extends BadRequest {
1613
1734
  message = 'The stickerpack title is invalid.';
1614
1735
  }
1615
1736
  exports.PackTitleInvalid = PackTitleInvalid;
1737
+ class PackTypeInvalid extends BadRequest {
1738
+ id = 'PACK_TYPE_INVALID';
1739
+ message = 'The masks and emojis flags are mutually exclusive.';
1740
+ }
1741
+ exports.PackTypeInvalid = PackTypeInvalid;
1742
+ class ParentPeerInvalid extends BadRequest {
1743
+ id = 'PARENT_PEER_INVALID';
1744
+ message = 'The specified `parent_peer` is invalid.';
1745
+ }
1746
+ exports.ParentPeerInvalid = ParentPeerInvalid;
1616
1747
  class ParticipantsTooFew extends BadRequest {
1617
1748
  id = 'PARTICIPANTS_TOO_FEW';
1618
1749
  message = 'Not enough participants.';
@@ -1668,11 +1799,21 @@ class PasswordTooFresh extends BadRequest {
1668
1799
  message = 'The password was modified less than 24 hours ago, try again in {value} seconds.';
1669
1800
  }
1670
1801
  exports.PasswordTooFresh = PasswordTooFresh;
1802
+ class PaymentCredentialsInvalid extends BadRequest {
1803
+ id = 'PAYMENT_CREDENTIALS_INVALID';
1804
+ message = 'The specified payment credentials are invalid.';
1805
+ }
1806
+ exports.PaymentCredentialsInvalid = PaymentCredentialsInvalid;
1671
1807
  class PaymentProviderInvalid extends BadRequest {
1672
1808
  id = 'PAYMENT_PROVIDER_INVALID';
1673
1809
  message = 'The specified payment provider is invalid.';
1674
1810
  }
1675
1811
  exports.PaymentProviderInvalid = PaymentProviderInvalid;
1812
+ class PaymentRequired extends BadRequest {
1813
+ id = 'PAYMENT_REQUIRED';
1814
+ message = 'Payment is required for this action, see [here »](https://core.telegram.org/api/gifts) for more info.';
1815
+ }
1816
+ exports.PaymentRequired = PaymentRequired;
1676
1817
  class PeersListEmpty extends BadRequest {
1677
1818
  id = 'PEERS_LIST_EMPTY';
1678
1819
  message = 'The specified list of peers is empty.';
@@ -1843,6 +1984,11 @@ class PinnedDialogsTooMuch extends BadRequest {
1843
1984
  message = 'Too many pinned dialogs.';
1844
1985
  }
1845
1986
  exports.PinnedDialogsTooMuch = PinnedDialogsTooMuch;
1987
+ class PinnedTooMuch extends BadRequest {
1988
+ id = 'PINNED_TOO_MUCH';
1989
+ message = 'There are too many pinned topics, unpin some first.';
1990
+ }
1991
+ exports.PinnedTooMuch = PinnedTooMuch;
1846
1992
  class PinRestricted extends BadRequest {
1847
1993
  id = 'PIN_RESTRICTED';
1848
1994
  message = "You can't pin messages.";
@@ -1913,6 +2059,11 @@ class PublicKeyRequired extends BadRequest {
1913
2059
  message = 'A public key is required.';
1914
2060
  }
1915
2061
  exports.PublicKeyRequired = PublicKeyRequired;
2062
+ class PurposeInvalid extends BadRequest {
2063
+ id = 'PURPOSE_INVALID';
2064
+ message = 'The specified payment purpose is invalid.';
2065
+ }
2066
+ exports.PurposeInvalid = PurposeInvalid;
1916
2067
  class QueryIdEmpty extends BadRequest {
1917
2068
  id = 'QUERY_ID_EMPTY';
1918
2069
  message = 'The query ID is empty.';
@@ -1928,6 +2079,11 @@ class QueryTooShort extends BadRequest {
1928
2079
  message = 'The query string is too short.';
1929
2080
  }
1930
2081
  exports.QueryTooShort = QueryTooShort;
2082
+ class QuickRepliesBotNotAllowed extends BadRequest {
2083
+ id = 'QUICK_REPLIES_BOT_NOT_ALLOWED';
2084
+ message = '[Quick replies](https://core.telegram.org/api/business#quick-reply-shortcuts) cannot be used by bots.';
2085
+ }
2086
+ exports.QuickRepliesBotNotAllowed = QuickRepliesBotNotAllowed;
1931
2087
  class QuickRepliesTooMuch extends BadRequest {
1932
2088
  id = 'QUICK_REPLIES_TOO_MUCH';
1933
2089
  message = 'A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config#quick-replies-limit) shortcuts may be created, the limit was reached.';
@@ -1973,6 +2129,11 @@ class RandomIdEmpty extends BadRequest {
1973
2129
  message = 'Random ID empty.';
1974
2130
  }
1975
2131
  exports.RandomIdEmpty = RandomIdEmpty;
2132
+ class RandomIdExpired extends BadRequest {
2133
+ id = 'RANDOM_ID_EXPIRED';
2134
+ message = "The specified `random_id` was expired (most likely it didn't follow the required `uint64_t random_id = (time() << 32) | ((uint64_t)random_uint32_t())` format, or the specified time is too far in the past).";
2135
+ }
2136
+ exports.RandomIdExpired = RandomIdExpired;
1976
2137
  class RandomIdInvalid extends BadRequest {
1977
2138
  id = 'RANDOM_ID_INVALID';
1978
2139
  message = 'A provided random ID is invalid.';
@@ -1988,6 +2149,11 @@ class RangesInvalid extends BadRequest {
1988
2149
  message = 'Invalid range provided.';
1989
2150
  }
1990
2151
  exports.RangesInvalid = RangesInvalid;
2152
+ class ReactionsCountInvalid extends BadRequest {
2153
+ id = 'REACTIONS_COUNT_INVALID';
2154
+ message = 'The specified number of reactions is invalid.';
2155
+ }
2156
+ exports.ReactionsCountInvalid = ReactionsCountInvalid;
1991
2157
  class ReactionsTooMany extends BadRequest {
1992
2158
  id = 'REACTIONS_TOO_MANY';
1993
2159
  message = "The message already has exactly `reactions_uniq_max` reaction emojis, you can't react with a new emoji, see [the docs for more info &raquo;](https://core.telegram.org/api/config#client-configuration).";
@@ -2048,6 +2214,11 @@ class ReplyToInvalid extends BadRequest {
2048
2214
  message = 'The specified `reply_to` field is invalid.';
2049
2215
  }
2050
2216
  exports.ReplyToInvalid = ReplyToInvalid;
2217
+ class ReplyToMonoforumPeerInvalid extends BadRequest {
2218
+ id = 'REPLY_TO_MONOFORUM_PEER_INVALID';
2219
+ message = 'The specified inputReplyToMonoForum.monoforum_peer_id is invalid.';
2220
+ }
2221
+ exports.ReplyToMonoforumPeerInvalid = ReplyToMonoforumPeerInvalid;
2051
2222
  class ReplyToUserInvalid extends BadRequest {
2052
2223
  id = 'REPLY_TO_USER_INVALID';
2053
2224
  message = 'The replied-to user is invalid.';
@@ -2113,6 +2284,11 @@ class RsaDecryptFailed extends BadRequest {
2113
2284
  message = 'Internal RSA decryption failed.';
2114
2285
  }
2115
2286
  exports.RsaDecryptFailed = RsaDecryptFailed;
2287
+ class SavedIdEmpty extends BadRequest {
2288
+ id = 'SAVED_ID_EMPTY';
2289
+ message = 'The passed inputSavedStarGiftChat.saved_id is empty.';
2290
+ }
2291
+ exports.SavedIdEmpty = SavedIdEmpty;
2116
2292
  class ScheduleBotNotAllowed extends BadRequest {
2117
2293
  id = 'SCHEDULE_BOT_NOT_ALLOWED';
2118
2294
  message = 'Bots cannot schedule messages.';
@@ -2163,11 +2339,21 @@ class SecureSecretRequired extends BadRequest {
2163
2339
  message = 'A secure secret is required.';
2164
2340
  }
2165
2341
  exports.SecureSecretRequired = SecureSecretRequired;
2342
+ class SelfDeleteRestricted extends BadRequest {
2343
+ id = 'SELF_DELETE_RESTRICTED';
2344
+ message = "Business bots can't delete messages just for the user, `revoke` **must** be set.";
2345
+ }
2346
+ exports.SelfDeleteRestricted = SelfDeleteRestricted;
2166
2347
  class SendAsPeerInvalid extends BadRequest {
2167
2348
  id = 'SEND_AS_PEER_INVALID';
2168
2349
  message = "You can't send messages as the specified peer.";
2169
2350
  }
2170
2351
  exports.SendAsPeerInvalid = SendAsPeerInvalid;
2352
+ class SendMessageGameInvalid extends BadRequest {
2353
+ id = 'SEND_MESSAGE_GAME_INVALID';
2354
+ message = 'An inputBotInlineMessageGame can only be contained in an inputBotInlineResultGame, not in an inputBotInlineResult/inputBotInlineResultPhoto/etc.';
2355
+ }
2356
+ exports.SendMessageGameInvalid = SendMessageGameInvalid;
2171
2357
  class SendMessageMediaInvalid extends BadRequest {
2172
2358
  id = 'SEND_MESSAGE_MEDIA_INVALID';
2173
2359
  message = 'Invalid media provided.';
@@ -2253,16 +2439,71 @@ class SrpPasswordChanged extends BadRequest {
2253
2439
  message = 'Password has changed.';
2254
2440
  }
2255
2441
  exports.SrpPasswordChanged = SrpPasswordChanged;
2442
+ class StargiftAlreadyConverted extends BadRequest {
2443
+ id = 'STARGIFT_ALREADY_CONVERTED';
2444
+ message = 'The specified star gift was already converted to Stars.';
2445
+ }
2446
+ exports.StargiftAlreadyConverted = StargiftAlreadyConverted;
2447
+ class StargiftAlreadyRefunded extends BadRequest {
2448
+ id = 'STARGIFT_ALREADY_REFUNDED';
2449
+ message = 'The specified star gift was already refunded.';
2450
+ }
2451
+ exports.StargiftAlreadyRefunded = StargiftAlreadyRefunded;
2452
+ class StargiftAlreadyUpgraded extends BadRequest {
2453
+ id = 'STARGIFT_ALREADY_UPGRADED';
2454
+ message = 'The specified gift was already upgraded to a collectible gift.';
2455
+ }
2456
+ exports.StargiftAlreadyUpgraded = StargiftAlreadyUpgraded;
2256
2457
  class StargiftInvalid extends BadRequest {
2257
2458
  id = 'STARGIFT_INVALID';
2258
- message = 'The passed [inputInvoiceStarGift](https://core.telegram.org/constructor/inputInvoiceStarGift) is invalid.';
2459
+ message = 'The passed gift is invalid.';
2259
2460
  }
2260
2461
  exports.StargiftInvalid = StargiftInvalid;
2462
+ class StargiftNotFound extends BadRequest {
2463
+ id = 'STARGIFT_NOT_FOUND';
2464
+ message = 'The specified gift was not found.';
2465
+ }
2466
+ exports.StargiftNotFound = StargiftNotFound;
2467
+ class StargiftOwnerInvalid extends BadRequest {
2468
+ id = 'STARGIFT_OWNER_INVALID';
2469
+ message = 'You cannot transfer or sell a gift owned by another user.';
2470
+ }
2471
+ exports.StargiftOwnerInvalid = StargiftOwnerInvalid;
2472
+ class StargiftPeerInvalid extends BadRequest {
2473
+ id = 'STARGIFT_PEER_INVALID';
2474
+ message = 'The specified inputSavedStarGiftChat.peer is invalid.';
2475
+ }
2476
+ exports.StargiftPeerInvalid = StargiftPeerInvalid;
2477
+ class StargiftResellCurrencyNotAllowed extends BadRequest {
2478
+ id = 'STARGIFT_RESELL_CURRENCY_NOT_ALLOWED';
2479
+ message = "You can't buy the gift using the specified currency (i.e. trying to pay in Stars for TON gifts).";
2480
+ }
2481
+ exports.StargiftResellCurrencyNotAllowed = StargiftResellCurrencyNotAllowed;
2482
+ class StargiftSlugInvalid extends BadRequest {
2483
+ id = 'STARGIFT_SLUG_INVALID';
2484
+ message = 'The specified gift slug is invalid.';
2485
+ }
2486
+ exports.StargiftSlugInvalid = StargiftSlugInvalid;
2487
+ class StargiftTransferTooEarly extends BadRequest {
2488
+ id = 'STARGIFT_TRANSFER_TOO_EARLY_X';
2489
+ message = 'You cannot transfer this gift yet, wait {value} seconds.';
2490
+ }
2491
+ exports.StargiftTransferTooEarly = StargiftTransferTooEarly;
2492
+ class StargiftUpgradeUnavailable extends BadRequest {
2493
+ id = 'STARGIFT_UPGRADE_UNAVAILABLE';
2494
+ message = 'A received gift can only be upgraded to a collectible gift if the [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift).`can_upgrade` flag is set.';
2495
+ }
2496
+ exports.StargiftUpgradeUnavailable = StargiftUpgradeUnavailable;
2261
2497
  class StargiftUsageLimited extends BadRequest {
2262
2498
  id = 'STARGIFT_USAGE_LIMITED';
2263
2499
  message = 'The gift is sold out.';
2264
2500
  }
2265
2501
  exports.StargiftUsageLimited = StargiftUsageLimited;
2502
+ class StargiftUserUsageLimited extends BadRequest {
2503
+ id = 'STARGIFT_USER_USAGE_LIMITED';
2504
+ message = "You've reached the starGift.limited_per_user limit, you can't buy any more gifts of this type.";
2505
+ }
2506
+ exports.StargiftUserUsageLimited = StargiftUserUsageLimited;
2266
2507
  class StarrefAwaitingEnd extends BadRequest {
2267
2508
  id = 'STARREF_AWAITING_END';
2268
2509
  message = 'The previous referral program was terminated less than 24 hours ago: further changes can be made after the date specified in userFull.starref_program.end_date.';
@@ -2288,6 +2529,11 @@ class StarrefPermilleTooLow extends BadRequest {
2288
2529
  message = 'The specified commission_permille is too low: the minimum and maximum values for this parameter are contained in the [starref_min_commission_permille](https://core.telegram.org/api/config#starref-min-commission-permille) and [starref_max_commission_permille](https://core.telegram.org/api/config#starref-max-commission-permille) client configuration parameters.';
2289
2530
  }
2290
2531
  exports.StarrefPermilleTooLow = StarrefPermilleTooLow;
2532
+ class StarsAmountInvalid extends BadRequest {
2533
+ id = 'STARS_AMOUNT_INVALID';
2534
+ message = 'The specified amount in stars is invalid.';
2535
+ }
2536
+ exports.StarsAmountInvalid = StarsAmountInvalid;
2291
2537
  class StarsInvoiceInvalid extends BadRequest {
2292
2538
  id = 'STARS_INVOICE_INVALID';
2293
2539
  message = 'The specified Telegram Star invoice is invalid.';
@@ -2450,12 +2696,12 @@ class StoryPeriodInvalid extends BadRequest {
2450
2696
  exports.StoryPeriodInvalid = StoryPeriodInvalid;
2451
2697
  class StorySendFloodMonthly extends BadRequest {
2452
2698
  id = 'STORY_SEND_FLOOD_MONTHLY_X';
2453
- message = "You've hit the monthly story limit as specified by the [`stories_sent_monthly_limit_*` client configuration parameters](https://core.telegram.org/api/config#stories-sent-monthly-limit-default): wait for the specified number of seconds before posting a new story.";
2699
+ message = "You've hit the monthly story limit as specified by the [`stories_sent_monthly_limit_*` client configuration parameters](https://core.telegram.org/api/config#stories-sent-monthly-limit-default): wait {value} seconds before posting a new story.";
2454
2700
  }
2455
2701
  exports.StorySendFloodMonthly = StorySendFloodMonthly;
2456
2702
  class StorySendFloodWeekly extends BadRequest {
2457
2703
  id = 'STORY_SEND_FLOOD_WEEKLY_X';
2458
- message = "You've hit the weekly story limit as specified by the [`stories_sent_weekly_limit_*` client configuration parameters](https://core.telegram.org/api/config#stories-sent-weekly-limit-default): wait for the specified number of seconds before posting a new story.";
2704
+ message = "You've hit the weekly story limit as specified by the [`stories_sent_weekly_limit_*` client configuration parameters](https://core.telegram.org/api/config#stories-sent-weekly-limit-default): wait for {value} seconds before posting a new story.";
2459
2705
  }
2460
2706
  exports.StorySendFloodWeekly = StorySendFloodWeekly;
2461
2707
  class SubscriptionExportMissing extends BadRequest {
@@ -2463,11 +2709,26 @@ class SubscriptionExportMissing extends BadRequest {
2463
2709
  message = 'You cannot send a [bot subscription invoice](https://core.telegram.org/api/subscriptions#bot-subscriptions) directly, you may only create invoice links using [payments.exportInvoice](https://core.telegram.org/method/payments.exportInvoice).';
2464
2710
  }
2465
2711
  exports.SubscriptionExportMissing = SubscriptionExportMissing;
2712
+ class SubscriptionIdInvalid extends BadRequest {
2713
+ id = 'SUBSCRIPTION_ID_INVALID';
2714
+ message = 'The specified subscription_id is invalid.';
2715
+ }
2716
+ exports.SubscriptionIdInvalid = SubscriptionIdInvalid;
2466
2717
  class SubscriptionPeriodInvalid extends BadRequest {
2467
2718
  id = 'SUBSCRIPTION_PERIOD_INVALID';
2468
2719
  message = 'The specified subscription_pricing.period is invalid.';
2469
2720
  }
2470
2721
  exports.SubscriptionPeriodInvalid = SubscriptionPeriodInvalid;
2722
+ class SuggestedPostAmountInvalid extends BadRequest {
2723
+ id = 'SUGGESTED_POST_AMOUNT_INVALID';
2724
+ message = 'The specified price for the suggested post is invalid.';
2725
+ }
2726
+ exports.SuggestedPostAmountInvalid = SuggestedPostAmountInvalid;
2727
+ class SuggestedPostPeerInvalid extends BadRequest {
2728
+ id = 'SUGGESTED_POST_PEER_INVALID';
2729
+ message = 'You cannot send suggested posts to non-[monoforum](https://core.telegram.org/api/monoforum) peers.';
2730
+ }
2731
+ exports.SuggestedPostPeerInvalid = SuggestedPostPeerInvalid;
2471
2732
  class SwitchPmTextEmpty extends BadRequest {
2472
2733
  id = 'SWITCH_PM_TEXT_EMPTY';
2473
2734
  message = 'The switch_pm.text field was empty.';
@@ -2533,6 +2794,11 @@ class ThemeParamsInvalid extends BadRequest {
2533
2794
  message = 'The specified `theme_params` field is invalid.';
2534
2795
  }
2535
2796
  exports.ThemeParamsInvalid = ThemeParamsInvalid;
2797
+ class ThemeSlugInvalid extends BadRequest {
2798
+ id = 'THEME_SLUG_INVALID';
2799
+ message = 'The specified theme slug is invalid.';
2800
+ }
2801
+ exports.ThemeSlugInvalid = ThemeSlugInvalid;
2536
2802
  class ThemeTitleInvalid extends BadRequest {
2537
2803
  id = 'THEME_TITLE_INVALID';
2538
2804
  message = 'The specified theme title is invalid.';
@@ -2558,6 +2824,21 @@ class TmpPasswordInvalid extends BadRequest {
2558
2824
  message = 'The passed tmp_password is invalid.';
2559
2825
  }
2560
2826
  exports.TmpPasswordInvalid = TmpPasswordInvalid;
2827
+ class TodoItemsEmpty extends BadRequest {
2828
+ id = 'TODO_ITEMS_EMPTY';
2829
+ message = 'A checklist was specified, but no [checklist items](https://core.telegram.org/api/todo) were passed.';
2830
+ }
2831
+ exports.TodoItemsEmpty = TodoItemsEmpty;
2832
+ class TodoItemDuplicate extends BadRequest {
2833
+ id = 'TODO_ITEM_DUPLICATE';
2834
+ message = 'Duplicate [checklist items](https://core.telegram.org/api/todo) detected.';
2835
+ }
2836
+ exports.TodoItemDuplicate = TodoItemDuplicate;
2837
+ class TodoNotModified extends BadRequest {
2838
+ id = 'TODO_NOT_MODIFIED';
2839
+ message = 'No todo items were specified, so no changes were made to the todo list.';
2840
+ }
2841
+ exports.TodoNotModified = TodoNotModified;
2561
2842
  class TokenEmpty extends BadRequest {
2562
2843
  id = 'TOKEN_EMPTY';
2563
2844
  message = 'The specified token is empty.';
@@ -2613,6 +2894,11 @@ class TopicTitleEmpty extends BadRequest {
2613
2894
  message = 'The specified topic title is empty.';
2614
2895
  }
2615
2896
  exports.TopicTitleEmpty = TopicTitleEmpty;
2897
+ class ToIdInvalid extends BadRequest {
2898
+ id = 'TO_ID_INVALID';
2899
+ message = 'The specified `to_id` of the passed inputInvoiceStarGiftResale or inputInvoiceStarGiftTransfer is invalid.';
2900
+ }
2901
+ exports.ToIdInvalid = ToIdInvalid;
2616
2902
  class ToLangInvalid extends BadRequest {
2617
2903
  id = 'TO_LANG_INVALID';
2618
2904
  message = 'The specified destination language is invalid.';
@@ -2658,6 +2944,11 @@ class TypeConstructorInvalid extends BadRequest {
2658
2944
  message = 'The type constructor is invalid';
2659
2945
  }
2660
2946
  exports.TypeConstructorInvalid = TypeConstructorInvalid;
2947
+ class UNSUPPORTED extends BadRequest {
2948
+ id = 'UNSUPPORTED';
2949
+ message = '`require_payment` cannot be *set* by users, only by monoforums: users must instead use the [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages) privacy setting to remove a previously added exemption.';
2950
+ }
2951
+ exports.UNSUPPORTED = UNSUPPORTED;
2661
2952
  class UntilDateInvalid extends BadRequest {
2662
2953
  id = 'UNTIL_DATE_INVALID';
2663
2954
  message = 'Invalid until date provided.';