@tgsnake/skema 1.7.0 → 1.10.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,19 @@
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.DataHashSizeInvalid = exports.CustomReactionsTooMany = exports.CurrencyTotalAmountInvalid = exports.CredentialInvalid = 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.CollectionIdInvalid = 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.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.ExtendedMediaEmpty = 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.EmailInstallMissing = exports.EmailHashExpired = exports.EffectIdInvalid = exports.EffectChatInvalid = exports.DocumentInvalid = exports.DhGAInvalid = exports.DcIdInvalid = exports.DateEmpty = exports.DataTooLong = exports.DataJsonInvalid = exports.DataInvalid = void 0;
7
+ 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.FileReferenceXEmpty = exports.FileReferenceInvalid = exports.FileReferenceExpired = exports.FileReferenceEmpty = exports.FileReferenceAny = exports.FilePartMissing = exports.FilePartTooSmall = exports.FilePartTooBig = exports.FilePartSizeInvalid = void 0;
8
+ 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.InputStarsNanosInvalid = exports.InputStarsAmountInvalid = 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 = exports.ImageProcessFailed = exports.IdInvalid = exports.IdExpired = exports.HideRequesterMissing = exports.HashSizeInvalid = exports.HashInvalid = void 0;
9
+ 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.NeedActionMissing = exports.MultiMediaTooLong = exports.MsgWaitFailed = exports.MsgVoiceMissing = exports.MsgTooOld = exports.MsgIdInvalid = exports.MonthInvalid = exports.MinDateInvalid = exports.MethodInvalid = exports.MessageTooOld = exports.MessageTooLong = exports.MessageRequired = 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.MediaAlreadyPaid = exports.Md5ChecksumInvalid = exports.MaxQtsInvalid = exports.MaxIdInvalid = exports.MaxDateInvalid = void 0;
10
+ 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 = exports.ParticipantVersionOutdated = exports.ParticipantJoinMissing = exports.ParticipantIdInvalid = exports.ParticipantsTooFew = exports.ParentPeerInvalid = exports.PackTypeInvalid = exports.PackTitleInvalid = exports.PackShortNameOccupied = exports.PackShortNameInvalid = exports.OrderInvalid = void 0;
11
+ 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.PremiumPurposeInvalid = exports.PremiumAccountRequired = exports.PollVoteRequired = exports.PollUnsupported = exports.PollQuestionInvalid = exports.PollOptionInvalid = exports.PollOptionDuplicate = exports.PollAnswerInvalid = exports.PollAnswersInvalid = exports.PinRestricted = exports.PinnedTopicNotModified = exports.PinnedTooMuch = exports.PinnedDialogsTooMuch = exports.PhotoThumbUrlInvalid = exports.PhotoThumbUrlEmpty = exports.PhotoSaveFileInvalid = void 0;
12
+ 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.SavedPeerInvalid = exports.SavedIdEmpty = exports.RsaDecryptFailed = exports.RingtoneMimeInvalid = exports.RingtoneInvalid = exports.RightsNotModified = exports.RevoteNotAllowed = exports.ResultTypeInvalid = exports.ResultIdInvalid = exports.ResultIdEmpty = exports.ResultIdDuplicate = exports.ResultsTooMuch = exports.ResetRequestMissing = exports.ResellStarsTooMuch = exports.ResellStarsTooFew = exports.RequestTokenInvalid = exports.ReplyToUserInvalid = exports.ReplyToMonoforumPeerInvalid = exports.ReplyToInvalid = exports.ReplyMessageIdInvalid = void 0;
13
+ 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 = exports.StarrefExpired = exports.StarrefAwaitingEnd = exports.StargiftUserUsageLimited = exports.StargiftUsageLimited = exports.StargiftUpgradeUnavailable = exports.StargiftTransferTooEarly = exports.StargiftSlugInvalid = exports.StargiftResellTooEarly = exports.StargiftResellCurrencyNotAllowed = exports.StargiftPeerInvalid = exports.StargiftOwnerInvalid = exports.StargiftOfferNotAllowed = exports.StargiftOfferInvalid = exports.StargiftNotUnique = exports.StargiftNotOwner = exports.StargiftNotFound = exports.StargiftMessageInvalid = exports.StargiftInvalid = exports.StargiftAttributeInvalid = exports.StargiftAlreadyUpgraded = exports.StargiftAlreadyRefunded = exports.StargiftAlreadyConverted = void 0;
14
+ 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 = 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 = void 0;
15
+ 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 = 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 = void 0;
16
+ 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 = void 0;
15
17
  const RpcError_js_1 = require("@/errors/RpcError.js");
16
18
  class BadRequest extends RpcError_js_1.RPCError {
17
19
  code = 400;
@@ -228,6 +230,11 @@ class BotDomainInvalid extends BadRequest {
228
230
  message = 'Bot domain invalid.';
229
231
  }
230
232
  exports.BotDomainInvalid = BotDomainInvalid;
233
+ class BotFallbackUnsupported extends BadRequest {
234
+ id = 'BOT_FALLBACK_UNSUPPORTED';
235
+ message = "The fallback flag can't be set for bots.";
236
+ }
237
+ exports.BotFallbackUnsupported = BotFallbackUnsupported;
231
238
  class BotGamesDisabled extends BadRequest {
232
239
  id = 'BOT_GAMES_DISABLED';
233
240
  message = "Games can't be sent to channels.";
@@ -313,6 +320,16 @@ class BroadcastRequired extends BadRequest {
313
320
  message = 'This method can only be called on a channel, please use stats.getMegagroupStats for supergroups.';
314
321
  }
315
322
  exports.BroadcastRequired = BroadcastRequired;
323
+ class BusinessConnectionInvalid extends BadRequest {
324
+ id = 'BUSINESS_CONNECTION_INVALID';
325
+ message = 'The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business) call is invalid.';
326
+ }
327
+ exports.BusinessConnectionInvalid = BusinessConnectionInvalid;
328
+ class BusinessConnectionNotAllowed extends BadRequest {
329
+ id = 'BUSINESS_CONNECTION_NOT_ALLOWED';
330
+ 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.";
331
+ }
332
+ exports.BusinessConnectionNotAllowed = BusinessConnectionNotAllowed;
316
333
  class BusinessPeerInvalid extends BadRequest {
317
334
  id = 'BUSINESS_PEER_INVALID';
318
335
  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 +370,11 @@ class ButtonIdInvalid extends BadRequest {
353
370
  message = 'The specified button ID is invalid.';
354
371
  }
355
372
  exports.ButtonIdInvalid = ButtonIdInvalid;
373
+ class ButtonInvalid extends BadRequest {
374
+ id = 'BUTTON_INVALID';
375
+ message = 'The specified button is invalid.';
376
+ }
377
+ exports.ButtonInvalid = ButtonInvalid;
356
378
  class ButtonPosInvalid extends BadRequest {
357
379
  id = 'BUTTON_POS_INVALID';
358
380
  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 +430,11 @@ class CallProtocolFlagsInvalid extends BadRequest {
408
430
  message = 'Call protocol flags invalid.';
409
431
  }
410
432
  exports.CallProtocolFlagsInvalid = CallProtocolFlagsInvalid;
433
+ class CallProtocolLayerInvalid extends BadRequest {
434
+ id = 'CALL_PROTOCOL_LAYER_INVALID';
435
+ message = 'The specified protocol layer version range is invalid.';
436
+ }
437
+ exports.CallProtocolLayerInvalid = CallProtocolLayerInvalid;
411
438
  class CdnMethodInvalid extends BadRequest {
412
439
  id = 'CDN_METHOD_INVALID';
413
440
  message = "You can't call this method in a CDN DC.";
@@ -453,6 +480,11 @@ class ChannelInvalid extends BadRequest {
453
480
  message = 'The provided channel is invalid.';
454
481
  }
455
482
  exports.ChannelInvalid = ChannelInvalid;
483
+ class ChannelMonoforumUnsupported extends BadRequest {
484
+ id = 'CHANNEL_MONOFORUM_UNSUPPORTED';
485
+ message = '[Monoforums](https://core.telegram.org/api/channel#monoforums) do not support this feature.';
486
+ }
487
+ exports.ChannelMonoforumUnsupported = ChannelMonoforumUnsupported;
456
488
  class ChannelParicipantMissing extends BadRequest {
457
489
  id = 'CHANNEL_PARICIPANT_MISSING';
458
490
  message = 'The current user is not in the channel.';
@@ -478,6 +510,16 @@ class ChargeAlreadyRefunded extends BadRequest {
478
510
  message = 'The transaction was already refunded.';
479
511
  }
480
512
  exports.ChargeAlreadyRefunded = ChargeAlreadyRefunded;
513
+ class ChargeIdEmpty extends BadRequest {
514
+ id = 'CHARGE_ID_EMPTY';
515
+ message = 'The specified charge_id is empty.';
516
+ }
517
+ exports.ChargeIdEmpty = ChargeIdEmpty;
518
+ class ChargeIdInvalid extends BadRequest {
519
+ id = 'CHARGE_ID_INVALID';
520
+ message = 'The specified charge_id is invalid.';
521
+ }
522
+ exports.ChargeIdInvalid = ChargeIdInvalid;
481
523
  class ChatlinksTooMuch extends BadRequest {
482
524
  id = 'CHATLINKS_TOO_MUCH';
483
525
  message = 'Too many [business chat links](https://core.telegram.org/api/business#business-chat-links) were created, please delete some older links.';
@@ -618,6 +660,11 @@ class CollectibleNotFound extends BadRequest {
618
660
  message = 'The specified collectible could not be found.';
619
661
  }
620
662
  exports.CollectibleNotFound = CollectibleNotFound;
663
+ class CollectionIdInvalid extends BadRequest {
664
+ id = 'COLLECTION_ID_INVALID';
665
+ message = '';
666
+ }
667
+ exports.CollectionIdInvalid = CollectionIdInvalid;
621
668
  class ColorInvalid extends BadRequest {
622
669
  id = 'COLOR_INVALID';
623
670
  message = 'The specified color palette ID was invalid.';
@@ -698,6 +745,11 @@ class CreateCallFailed extends BadRequest {
698
745
  message = 'An error occurred while creating the call.';
699
746
  }
700
747
  exports.CreateCallFailed = CreateCallFailed;
748
+ class CredentialInvalid extends BadRequest {
749
+ id = 'CREDENTIAL_INVALID';
750
+ message = '';
751
+ }
752
+ exports.CredentialInvalid = CredentialInvalid;
701
753
  class CurrencyTotalAmountInvalid extends BadRequest {
702
754
  id = 'CURRENCY_TOTAL_AMOUNT_INVALID';
703
755
  message = 'The total amount of all prices is invalid.';
@@ -708,6 +760,11 @@ class CustomReactionsTooMany extends BadRequest {
708
760
  message = 'Too many custom reactions were specified.';
709
761
  }
710
762
  exports.CustomReactionsTooMany = CustomReactionsTooMany;
763
+ class DataHashSizeInvalid extends BadRequest {
764
+ id = 'DATA_HASH_SIZE_INVALID';
765
+ message = 'The size of the specified secureValueErrorData.data_hash is invalid.';
766
+ }
767
+ exports.DataHashSizeInvalid = DataHashSizeInvalid;
711
768
  class DataInvalid extends BadRequest {
712
769
  id = 'DATA_INVALID';
713
770
  message = 'Encrypted data invalid.';
@@ -743,11 +800,26 @@ class DocumentInvalid extends BadRequest {
743
800
  message = 'The specified document is invalid.';
744
801
  }
745
802
  exports.DocumentInvalid = DocumentInvalid;
803
+ class EffectChatInvalid extends BadRequest {
804
+ id = 'EFFECT_CHAT_INVALID';
805
+ message = '';
806
+ }
807
+ exports.EffectChatInvalid = EffectChatInvalid;
808
+ class EffectIdInvalid extends BadRequest {
809
+ id = 'EFFECT_ID_INVALID';
810
+ message = 'The specified effect ID is invalid.';
811
+ }
812
+ exports.EffectIdInvalid = EffectIdInvalid;
746
813
  class EmailHashExpired extends BadRequest {
747
814
  id = 'EMAIL_HASH_EXPIRED';
748
815
  message = 'Email hash expired.';
749
816
  }
750
817
  exports.EmailHashExpired = EmailHashExpired;
818
+ class EmailInstallMissing extends BadRequest {
819
+ id = 'EMAIL_INSTALL_MISSING';
820
+ message = '';
821
+ }
822
+ exports.EmailInstallMissing = EmailInstallMissing;
751
823
  class EmailInvalid extends BadRequest {
752
824
  id = 'EMAIL_INVALID';
753
825
  message = 'The specified email is invalid.';
@@ -853,6 +925,11 @@ class ErrorTextEmpty extends BadRequest {
853
925
  message = 'The provided error message is empty.';
854
926
  }
855
927
  exports.ErrorTextEmpty = ErrorTextEmpty;
928
+ class ExpiresAtInvalid extends BadRequest {
929
+ id = 'EXPIRES_AT_INVALID';
930
+ message = 'The specified `expires_at` timestamp is invalid.';
931
+ }
932
+ exports.ExpiresAtInvalid = ExpiresAtInvalid;
856
933
  class ExpireDateInvalid extends BadRequest {
857
934
  id = 'EXPIRE_DATE_INVALID';
858
935
  message = 'The specified expiration date is invalid.';
@@ -868,6 +945,16 @@ class ExtendedMediaAmountInvalid extends BadRequest {
868
945
  message = 'The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.';
869
946
  }
870
947
  exports.ExtendedMediaAmountInvalid = ExtendedMediaAmountInvalid;
948
+ class ExtendedMediaEmpty extends BadRequest {
949
+ id = 'EXTENDED_MEDIA_EMPTY';
950
+ message = '';
951
+ }
952
+ exports.ExtendedMediaEmpty = ExtendedMediaEmpty;
953
+ class ExtendedMediaInvalid extends BadRequest {
954
+ id = 'EXTENDED_MEDIA_INVALID';
955
+ message = 'The specified paid media is invalid.';
956
+ }
957
+ exports.ExtendedMediaInvalid = ExtendedMediaInvalid;
871
958
  class ExternalUrlInvalid extends BadRequest {
872
959
  id = 'EXTERNAL_URL_INVALID';
873
960
  message = 'External URL invalid.';
@@ -955,27 +1042,32 @@ class FileReferenceAny extends BadRequest {
955
1042
  exports.FileReferenceAny = FileReferenceAny;
956
1043
  class FileReferenceEmpty extends BadRequest {
957
1044
  id = 'FILE_REFERENCE_EMPTY';
958
- message = 'An empty [file reference](https://core.telegram.org/api/file_reference) was specified.';
1045
+ message = 'An empty [file reference](https://core.telegram.org/api/file-references) was specified.';
959
1046
  }
960
1047
  exports.FileReferenceEmpty = FileReferenceEmpty;
961
1048
  class FileReferenceExpired extends BadRequest {
962
1049
  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).';
1050
+ message = 'File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file-references).';
964
1051
  }
965
1052
  exports.FileReferenceExpired = FileReferenceExpired;
966
1053
  class FileReferenceInvalid extends BadRequest {
967
1054
  id = 'FILE_REFERENCE_INVALID';
968
- message = 'The specified [file reference](https://core.telegram.org/api/file_reference) is invalid.';
1055
+ message = 'The specified [file reference](https://core.telegram.org/api/file-references) is invalid.';
969
1056
  }
970
1057
  exports.FileReferenceInvalid = FileReferenceInvalid;
1058
+ class FileReferenceXEmpty extends BadRequest {
1059
+ id = 'FILE_REFERENCE_X_EMPTY';
1060
+ message = '';
1061
+ }
1062
+ exports.FileReferenceXEmpty = FileReferenceXEmpty;
971
1063
  class FileReferenceXExpired extends BadRequest {
972
1064
  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).';
1065
+ 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
1066
  }
975
1067
  exports.FileReferenceXExpired = FileReferenceXExpired;
976
1068
  class FileReferenceXInvalid extends BadRequest {
977
1069
  id = 'FILE_REFERENCE_X_INVALID';
978
- message = 'The file reference of the media file at index {value} in the passed media array is invalid.';
1070
+ 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
1071
  }
980
1072
  exports.FileReferenceXInvalid = FileReferenceXInvalid;
981
1073
  class FileTitleEmpty extends BadRequest {
@@ -1033,6 +1125,11 @@ class FormIdEmpty extends BadRequest {
1033
1125
  message = 'The specified form ID is empty.';
1034
1126
  }
1035
1127
  exports.FormIdEmpty = FormIdEmpty;
1128
+ class FormSubmitDuplicate extends BadRequest {
1129
+ id = 'FORM_SUBMIT_DUPLICATE';
1130
+ message = 'The same payment form was already submitted. .';
1131
+ }
1132
+ exports.FormSubmitDuplicate = FormSubmitDuplicate;
1036
1133
  class FormUnsupported extends BadRequest {
1037
1134
  id = 'FORM_UNSUPPORTED';
1038
1135
  message = 'Please update your client.';
@@ -1058,6 +1155,11 @@ class FromPeerInvalid extends BadRequest {
1058
1155
  message = 'The specified from_id is invalid.';
1059
1156
  }
1060
1157
  exports.FromPeerInvalid = FromPeerInvalid;
1158
+ class FrozenParticipantMissing extends BadRequest {
1159
+ id = 'FROZEN_PARTICIPANT_MISSING';
1160
+ message = 'The current account is [frozen](https://core.telegram.org/api/auth#frozen-accounts), and cannot access the specified peer.';
1161
+ }
1162
+ exports.FrozenParticipantMissing = FrozenParticipantMissing;
1061
1163
  class GameBotInvalid extends BadRequest {
1062
1164
  id = 'GAME_BOT_INVALID';
1063
1165
  message = "Bots can't send another bot's game.";
@@ -1073,6 +1175,11 @@ class GeoPointInvalid extends BadRequest {
1073
1175
  message = 'Invalid geoposition provided.';
1074
1176
  }
1075
1177
  exports.GeoPointInvalid = GeoPointInvalid;
1178
+ class GiftMonthsInvalid extends BadRequest {
1179
+ id = 'GIFT_MONTHS_INVALID';
1180
+ message = 'The value passed in invoice.inputInvoicePremiumGiftStars.months is invalid.';
1181
+ }
1182
+ exports.GiftMonthsInvalid = GiftMonthsInvalid;
1076
1183
  class GiftSlugExpired extends BadRequest {
1077
1184
  id = 'GIFT_SLUG_EXPIRED';
1078
1185
  message = 'The specified gift slug has expired.';
@@ -1083,6 +1190,11 @@ class GiftSlugInvalid extends BadRequest {
1083
1190
  message = 'The specified slug is invalid.';
1084
1191
  }
1085
1192
  exports.GiftSlugInvalid = GiftSlugInvalid;
1193
+ class GiftStarsInvalid extends BadRequest {
1194
+ id = 'GIFT_STARS_INVALID';
1195
+ message = 'The specified amount of stars is invalid.';
1196
+ }
1197
+ exports.GiftStarsInvalid = GiftStarsInvalid;
1086
1198
  class GifContentTypeInvalid extends BadRequest {
1087
1199
  id = 'GIF_CONTENT_TYPE_INVALID';
1088
1200
  message = 'GIF content-type invalid.';
@@ -1158,6 +1270,11 @@ class HashInvalid extends BadRequest {
1158
1270
  message = 'The provided hash is invalid.';
1159
1271
  }
1160
1272
  exports.HashInvalid = HashInvalid;
1273
+ class HashSizeInvalid extends BadRequest {
1274
+ id = 'HASH_SIZE_INVALID';
1275
+ message = 'The size of the specified secureValueError.hash is invalid.';
1276
+ }
1277
+ exports.HashSizeInvalid = HashSizeInvalid;
1161
1278
  class HideRequesterMissing extends BadRequest {
1162
1279
  id = 'HIDE_REQUESTER_MISSING';
1163
1280
  message = 'The join request was missing or was already handled.';
@@ -1258,11 +1375,26 @@ class InputPeersEmpty extends BadRequest {
1258
1375
  message = 'The specified peer array is empty.';
1259
1376
  }
1260
1377
  exports.InputPeersEmpty = InputPeersEmpty;
1378
+ class InputPurposeInvalid extends BadRequest {
1379
+ id = 'INPUT_PURPOSE_INVALID';
1380
+ message = 'The specified payment purpose is invalid.';
1381
+ }
1382
+ exports.InputPurposeInvalid = InputPurposeInvalid;
1261
1383
  class InputRequestTooLong extends BadRequest {
1262
1384
  id = 'INPUT_REQUEST_TOO_LONG';
1263
1385
  message = 'The request payload is too long.';
1264
1386
  }
1265
1387
  exports.InputRequestTooLong = InputRequestTooLong;
1388
+ class InputStarsAmountInvalid extends BadRequest {
1389
+ id = 'INPUT_STARS_AMOUNT_INVALID';
1390
+ message = '';
1391
+ }
1392
+ exports.InputStarsAmountInvalid = InputStarsAmountInvalid;
1393
+ class InputStarsNanosInvalid extends BadRequest {
1394
+ id = 'INPUT_STARS_NANOS_INVALID';
1395
+ message = '';
1396
+ }
1397
+ exports.InputStarsNanosInvalid = InputStarsNanosInvalid;
1266
1398
  class InputTextEmpty extends BadRequest {
1267
1399
  id = 'INPUT_TEXT_EMPTY';
1268
1400
  message = 'The specified text is empty.';
@@ -1328,6 +1460,11 @@ class InviteSlugInvalid extends BadRequest {
1328
1460
  message = 'The specified invitation slug is invalid.';
1329
1461
  }
1330
1462
  exports.InviteSlugInvalid = InviteSlugInvalid;
1463
+ class InvoiceInvalid extends BadRequest {
1464
+ id = 'INVOICE_INVALID';
1465
+ message = 'The specified invoice is invalid.';
1466
+ }
1467
+ exports.InvoiceInvalid = InvoiceInvalid;
1331
1468
  class InvoicePayloadInvalid extends BadRequest {
1332
1469
  id = 'INVOICE_PAYLOAD_INVALID';
1333
1470
  message = 'The specified invoice payload is invalid.';
@@ -1398,6 +1535,11 @@ class Md5ChecksumInvalid extends BadRequest {
1398
1535
  message = 'The MD5 checksums do not match.';
1399
1536
  }
1400
1537
  exports.Md5ChecksumInvalid = Md5ChecksumInvalid;
1538
+ class MediaAlreadyPaid extends BadRequest {
1539
+ id = 'MEDIA_ALREADY_PAID';
1540
+ message = 'You already paid for the specified media.';
1541
+ }
1542
+ exports.MediaAlreadyPaid = MediaAlreadyPaid;
1401
1543
  class MediaCaptionTooLong extends BadRequest {
1402
1544
  id = 'MEDIA_CAPTION_TOO_LONG';
1403
1545
  message = 'The caption is too long.';
@@ -1503,6 +1645,11 @@ class MessagePollClosed extends BadRequest {
1503
1645
  message = 'Poll closed.';
1504
1646
  }
1505
1647
  exports.MessagePollClosed = MessagePollClosed;
1648
+ class MessageRequired extends BadRequest {
1649
+ id = 'MESSAGE_REQUIRED';
1650
+ message = '';
1651
+ }
1652
+ exports.MessageRequired = MessageRequired;
1506
1653
  class MessageTooLong extends BadRequest {
1507
1654
  id = 'MESSAGE_TOO_LONG';
1508
1655
  message = 'The provided message is too long.';
@@ -1523,6 +1670,11 @@ class MinDateInvalid extends BadRequest {
1523
1670
  message = 'The specified minimum date is invalid.';
1524
1671
  }
1525
1672
  exports.MinDateInvalid = MinDateInvalid;
1673
+ class MonthInvalid extends BadRequest {
1674
+ id = 'MONTH_INVALID';
1675
+ message = 'The number of months specified in inputInvoicePremiumGiftStars.months is invalid.';
1676
+ }
1677
+ exports.MonthInvalid = MonthInvalid;
1526
1678
  class MsgIdInvalid extends BadRequest {
1527
1679
  id = 'MSG_ID_INVALID';
1528
1680
  message = 'Invalid message ID provided.';
@@ -1533,6 +1685,11 @@ class MsgTooOld extends BadRequest {
1533
1685
  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
1686
  }
1535
1687
  exports.MsgTooOld = MsgTooOld;
1688
+ class MsgVoiceMissing extends BadRequest {
1689
+ id = 'MSG_VOICE_MISSING';
1690
+ message = 'The specified message is not a voice message.';
1691
+ }
1692
+ exports.MsgVoiceMissing = MsgVoiceMissing;
1536
1693
  class MsgWaitFailed extends BadRequest {
1537
1694
  id = 'MSG_WAIT_FAILED';
1538
1695
  message = 'A waiting call returned an error.';
@@ -1543,6 +1700,11 @@ class MultiMediaTooLong extends BadRequest {
1543
1700
  message = 'Too many media files for album.';
1544
1701
  }
1545
1702
  exports.MultiMediaTooLong = MultiMediaTooLong;
1703
+ class NeedActionMissing extends BadRequest {
1704
+ id = 'NEED_ACTION_MISSING';
1705
+ message = '';
1706
+ }
1707
+ exports.NeedActionMissing = NeedActionMissing;
1546
1708
  class NewSaltInvalid extends BadRequest {
1547
1709
  id = 'NEW_SALT_INVALID';
1548
1710
  message = 'The new salt is invalid.';
@@ -1563,6 +1725,11 @@ class NextOffsetInvalid extends BadRequest {
1563
1725
  message = 'The specified offset is longer than 64 bytes.';
1564
1726
  }
1565
1727
  exports.NextOffsetInvalid = NextOffsetInvalid;
1728
+ class NogeneralHideForbidden extends BadRequest {
1729
+ id = 'NOGENERAL_HIDE_FORBIDDEN';
1730
+ message = 'Only the "General" topic with `id=1` can be hidden.';
1731
+ }
1732
+ exports.NogeneralHideForbidden = NogeneralHideForbidden;
1566
1733
  class NotEligible extends BadRequest {
1567
1734
  id = 'NOT_ELIGIBLE';
1568
1735
  message = 'The current user is not eligible to join the Peer-to-Peer Login Program.';
@@ -1573,6 +1740,11 @@ class NotJoined extends BadRequest {
1573
1740
  message = "The current user hasn't joined the Peer-to-Peer Login Program.";
1574
1741
  }
1575
1742
  exports.NotJoined = NotJoined;
1743
+ class NoPaymentNeeded extends BadRequest {
1744
+ id = 'NO_PAYMENT_NEEDED';
1745
+ message = 'The upgrade/transfer of the specified gift was already paid for or is free.';
1746
+ }
1747
+ exports.NoPaymentNeeded = NoPaymentNeeded;
1576
1748
  class OffsetInvalid extends BadRequest {
1577
1749
  id = 'OFFSET_INVALID';
1578
1750
  message = 'The provided offset is invalid.';
@@ -1613,6 +1785,16 @@ class PackTitleInvalid extends BadRequest {
1613
1785
  message = 'The stickerpack title is invalid.';
1614
1786
  }
1615
1787
  exports.PackTitleInvalid = PackTitleInvalid;
1788
+ class PackTypeInvalid extends BadRequest {
1789
+ id = 'PACK_TYPE_INVALID';
1790
+ message = 'The masks and emojis flags are mutually exclusive.';
1791
+ }
1792
+ exports.PackTypeInvalid = PackTypeInvalid;
1793
+ class ParentPeerInvalid extends BadRequest {
1794
+ id = 'PARENT_PEER_INVALID';
1795
+ message = 'The specified `parent_peer` is invalid.';
1796
+ }
1797
+ exports.ParentPeerInvalid = ParentPeerInvalid;
1616
1798
  class ParticipantsTooFew extends BadRequest {
1617
1799
  id = 'PARTICIPANTS_TOO_FEW';
1618
1800
  message = 'Not enough participants.';
@@ -1668,11 +1850,21 @@ class PasswordTooFresh extends BadRequest {
1668
1850
  message = 'The password was modified less than 24 hours ago, try again in {value} seconds.';
1669
1851
  }
1670
1852
  exports.PasswordTooFresh = PasswordTooFresh;
1853
+ class PaymentCredentialsInvalid extends BadRequest {
1854
+ id = 'PAYMENT_CREDENTIALS_INVALID';
1855
+ message = 'The specified payment credentials are invalid.';
1856
+ }
1857
+ exports.PaymentCredentialsInvalid = PaymentCredentialsInvalid;
1671
1858
  class PaymentProviderInvalid extends BadRequest {
1672
1859
  id = 'PAYMENT_PROVIDER_INVALID';
1673
1860
  message = 'The specified payment provider is invalid.';
1674
1861
  }
1675
1862
  exports.PaymentProviderInvalid = PaymentProviderInvalid;
1863
+ class PaymentRequired extends BadRequest {
1864
+ id = 'PAYMENT_REQUIRED';
1865
+ message = 'Payment is required for this action, see [here »](https://core.telegram.org/api/gifts) for more info.';
1866
+ }
1867
+ exports.PaymentRequired = PaymentRequired;
1676
1868
  class PeersListEmpty extends BadRequest {
1677
1869
  id = 'PEERS_LIST_EMPTY';
1678
1870
  message = 'The specified list of peers is empty.';
@@ -1843,6 +2035,16 @@ class PinnedDialogsTooMuch extends BadRequest {
1843
2035
  message = 'Too many pinned dialogs.';
1844
2036
  }
1845
2037
  exports.PinnedDialogsTooMuch = PinnedDialogsTooMuch;
2038
+ class PinnedTooMuch extends BadRequest {
2039
+ id = 'PINNED_TOO_MUCH';
2040
+ message = 'There are too many pinned topics, unpin some first.';
2041
+ }
2042
+ exports.PinnedTooMuch = PinnedTooMuch;
2043
+ class PinnedTopicNotModified extends BadRequest {
2044
+ id = 'PINNED_TOPIC_NOT_MODIFIED';
2045
+ message = '';
2046
+ }
2047
+ exports.PinnedTopicNotModified = PinnedTopicNotModified;
1846
2048
  class PinRestricted extends BadRequest {
1847
2049
  id = 'PIN_RESTRICTED';
1848
2050
  message = "You can't pin messages.";
@@ -1888,6 +2090,11 @@ class PremiumAccountRequired extends BadRequest {
1888
2090
  message = 'A premium account is required to execute this action.';
1889
2091
  }
1890
2092
  exports.PremiumAccountRequired = PremiumAccountRequired;
2093
+ class PremiumPurposeInvalid extends BadRequest {
2094
+ id = 'PREMIUM_PURPOSE_INVALID';
2095
+ message = '';
2096
+ }
2097
+ exports.PremiumPurposeInvalid = PremiumPurposeInvalid;
1891
2098
  class PricingChatInvalid extends BadRequest {
1892
2099
  id = 'PRICING_CHAT_INVALID';
1893
2100
  message = 'The pricing for the [subscription](https://core.telegram.org/api/subscriptions) is invalid, the maximum price is specified in the [`stars_subscription_amount_max` config key »](https://core.telegram.org/api/config#stars-subscription-amount-max).';
@@ -1913,6 +2120,11 @@ class PublicKeyRequired extends BadRequest {
1913
2120
  message = 'A public key is required.';
1914
2121
  }
1915
2122
  exports.PublicKeyRequired = PublicKeyRequired;
2123
+ class PurposeInvalid extends BadRequest {
2124
+ id = 'PURPOSE_INVALID';
2125
+ message = 'The specified payment purpose is invalid.';
2126
+ }
2127
+ exports.PurposeInvalid = PurposeInvalid;
1916
2128
  class QueryIdEmpty extends BadRequest {
1917
2129
  id = 'QUERY_ID_EMPTY';
1918
2130
  message = 'The query ID is empty.';
@@ -1928,6 +2140,11 @@ class QueryTooShort extends BadRequest {
1928
2140
  message = 'The query string is too short.';
1929
2141
  }
1930
2142
  exports.QueryTooShort = QueryTooShort;
2143
+ class QuickRepliesBotNotAllowed extends BadRequest {
2144
+ id = 'QUICK_REPLIES_BOT_NOT_ALLOWED';
2145
+ message = '[Quick replies](https://core.telegram.org/api/business#quick-reply-shortcuts) cannot be used by bots.';
2146
+ }
2147
+ exports.QuickRepliesBotNotAllowed = QuickRepliesBotNotAllowed;
1931
2148
  class QuickRepliesTooMuch extends BadRequest {
1932
2149
  id = 'QUICK_REPLIES_TOO_MUCH';
1933
2150
  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 +2190,11 @@ class RandomIdEmpty extends BadRequest {
1973
2190
  message = 'Random ID empty.';
1974
2191
  }
1975
2192
  exports.RandomIdEmpty = RandomIdEmpty;
2193
+ class RandomIdExpired extends BadRequest {
2194
+ id = 'RANDOM_ID_EXPIRED';
2195
+ 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).";
2196
+ }
2197
+ exports.RandomIdExpired = RandomIdExpired;
1976
2198
  class RandomIdInvalid extends BadRequest {
1977
2199
  id = 'RANDOM_ID_INVALID';
1978
2200
  message = 'A provided random ID is invalid.';
@@ -1988,6 +2210,11 @@ class RangesInvalid extends BadRequest {
1988
2210
  message = 'Invalid range provided.';
1989
2211
  }
1990
2212
  exports.RangesInvalid = RangesInvalid;
2213
+ class ReactionsCountInvalid extends BadRequest {
2214
+ id = 'REACTIONS_COUNT_INVALID';
2215
+ message = 'The specified number of reactions is invalid.';
2216
+ }
2217
+ exports.ReactionsCountInvalid = ReactionsCountInvalid;
1991
2218
  class ReactionsTooMany extends BadRequest {
1992
2219
  id = 'REACTIONS_TOO_MANY';
1993
2220
  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 +2275,11 @@ class ReplyToInvalid extends BadRequest {
2048
2275
  message = 'The specified `reply_to` field is invalid.';
2049
2276
  }
2050
2277
  exports.ReplyToInvalid = ReplyToInvalid;
2278
+ class ReplyToMonoforumPeerInvalid extends BadRequest {
2279
+ id = 'REPLY_TO_MONOFORUM_PEER_INVALID';
2280
+ message = 'The specified inputReplyToMonoForum.monoforum_peer_id is invalid.';
2281
+ }
2282
+ exports.ReplyToMonoforumPeerInvalid = ReplyToMonoforumPeerInvalid;
2051
2283
  class ReplyToUserInvalid extends BadRequest {
2052
2284
  id = 'REPLY_TO_USER_INVALID';
2053
2285
  message = 'The replied-to user is invalid.';
@@ -2058,6 +2290,16 @@ class RequestTokenInvalid extends BadRequest {
2058
2290
  message = 'The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile.';
2059
2291
  }
2060
2292
  exports.RequestTokenInvalid = RequestTokenInvalid;
2293
+ class ResellStarsTooFew extends BadRequest {
2294
+ id = 'RESELL_STARS_TOO_FEW';
2295
+ message = '';
2296
+ }
2297
+ exports.ResellStarsTooFew = ResellStarsTooFew;
2298
+ class ResellStarsTooMuch extends BadRequest {
2299
+ id = 'RESELL_STARS_TOO_MUCH';
2300
+ message = '';
2301
+ }
2302
+ exports.ResellStarsTooMuch = ResellStarsTooMuch;
2061
2303
  class ResetRequestMissing extends BadRequest {
2062
2304
  id = 'RESET_REQUEST_MISSING';
2063
2305
  message = 'No password reset is in progress.';
@@ -2113,6 +2355,16 @@ class RsaDecryptFailed extends BadRequest {
2113
2355
  message = 'Internal RSA decryption failed.';
2114
2356
  }
2115
2357
  exports.RsaDecryptFailed = RsaDecryptFailed;
2358
+ class SavedIdEmpty extends BadRequest {
2359
+ id = 'SAVED_ID_EMPTY';
2360
+ message = 'The passed inputSavedStarGiftChat.saved_id is empty.';
2361
+ }
2362
+ exports.SavedIdEmpty = SavedIdEmpty;
2363
+ class SavedPeerInvalid extends BadRequest {
2364
+ id = 'SAVED_PEER_INVALID';
2365
+ message = '';
2366
+ }
2367
+ exports.SavedPeerInvalid = SavedPeerInvalid;
2116
2368
  class ScheduleBotNotAllowed extends BadRequest {
2117
2369
  id = 'SCHEDULE_BOT_NOT_ALLOWED';
2118
2370
  message = 'Bots cannot schedule messages.';
@@ -2163,11 +2415,21 @@ class SecureSecretRequired extends BadRequest {
2163
2415
  message = 'A secure secret is required.';
2164
2416
  }
2165
2417
  exports.SecureSecretRequired = SecureSecretRequired;
2418
+ class SelfDeleteRestricted extends BadRequest {
2419
+ id = 'SELF_DELETE_RESTRICTED';
2420
+ message = "Business bots can't delete messages just for the user, `revoke` **must** be set.";
2421
+ }
2422
+ exports.SelfDeleteRestricted = SelfDeleteRestricted;
2166
2423
  class SendAsPeerInvalid extends BadRequest {
2167
2424
  id = 'SEND_AS_PEER_INVALID';
2168
2425
  message = "You can't send messages as the specified peer.";
2169
2426
  }
2170
2427
  exports.SendAsPeerInvalid = SendAsPeerInvalid;
2428
+ class SendMessageGameInvalid extends BadRequest {
2429
+ id = 'SEND_MESSAGE_GAME_INVALID';
2430
+ message = 'An inputBotInlineMessageGame can only be contained in an inputBotInlineResultGame, not in an inputBotInlineResult/inputBotInlineResultPhoto/etc.';
2431
+ }
2432
+ exports.SendMessageGameInvalid = SendMessageGameInvalid;
2171
2433
  class SendMessageMediaInvalid extends BadRequest {
2172
2434
  id = 'SEND_MESSAGE_MEDIA_INVALID';
2173
2435
  message = 'Invalid media provided.';
@@ -2253,16 +2515,106 @@ class SrpPasswordChanged extends BadRequest {
2253
2515
  message = 'Password has changed.';
2254
2516
  }
2255
2517
  exports.SrpPasswordChanged = SrpPasswordChanged;
2518
+ class StargiftAlreadyConverted extends BadRequest {
2519
+ id = 'STARGIFT_ALREADY_CONVERTED';
2520
+ message = 'The specified star gift was already converted to Stars.';
2521
+ }
2522
+ exports.StargiftAlreadyConverted = StargiftAlreadyConverted;
2523
+ class StargiftAlreadyRefunded extends BadRequest {
2524
+ id = 'STARGIFT_ALREADY_REFUNDED';
2525
+ message = 'The specified star gift was already refunded.';
2526
+ }
2527
+ exports.StargiftAlreadyRefunded = StargiftAlreadyRefunded;
2528
+ class StargiftAlreadyUpgraded extends BadRequest {
2529
+ id = 'STARGIFT_ALREADY_UPGRADED';
2530
+ message = 'The specified gift was already upgraded to a collectible gift.';
2531
+ }
2532
+ exports.StargiftAlreadyUpgraded = StargiftAlreadyUpgraded;
2533
+ class StargiftAttributeInvalid extends BadRequest {
2534
+ id = 'STARGIFT_ATTRIBUTE_INVALID';
2535
+ message = '';
2536
+ }
2537
+ exports.StargiftAttributeInvalid = StargiftAttributeInvalid;
2256
2538
  class StargiftInvalid extends BadRequest {
2257
2539
  id = 'STARGIFT_INVALID';
2258
- message = 'The passed [inputInvoiceStarGift](https://core.telegram.org/constructor/inputInvoiceStarGift) is invalid.';
2540
+ message = 'The passed gift is invalid.';
2259
2541
  }
2260
2542
  exports.StargiftInvalid = StargiftInvalid;
2543
+ class StargiftMessageInvalid extends BadRequest {
2544
+ id = 'STARGIFT_MESSAGE_INVALID';
2545
+ message = '';
2546
+ }
2547
+ exports.StargiftMessageInvalid = StargiftMessageInvalid;
2548
+ class StargiftNotFound extends BadRequest {
2549
+ id = 'STARGIFT_NOT_FOUND';
2550
+ message = 'The specified gift was not found.';
2551
+ }
2552
+ exports.StargiftNotFound = StargiftNotFound;
2553
+ class StargiftNotOwner extends BadRequest {
2554
+ id = 'STARGIFT_NOT_OWNER';
2555
+ message = '';
2556
+ }
2557
+ exports.StargiftNotOwner = StargiftNotOwner;
2558
+ class StargiftNotUnique extends BadRequest {
2559
+ id = 'STARGIFT_NOT_UNIQUE';
2560
+ message = '';
2561
+ }
2562
+ exports.StargiftNotUnique = StargiftNotUnique;
2563
+ class StargiftOfferInvalid extends BadRequest {
2564
+ id = 'STARGIFT_OFFER_INVALID';
2565
+ message = '';
2566
+ }
2567
+ exports.StargiftOfferInvalid = StargiftOfferInvalid;
2568
+ class StargiftOfferNotAllowed extends BadRequest {
2569
+ id = 'STARGIFT_OFFER_NOT_ALLOWED';
2570
+ message = '';
2571
+ }
2572
+ exports.StargiftOfferNotAllowed = StargiftOfferNotAllowed;
2573
+ class StargiftOwnerInvalid extends BadRequest {
2574
+ id = 'STARGIFT_OWNER_INVALID';
2575
+ message = 'You cannot transfer or sell a gift owned by another user.';
2576
+ }
2577
+ exports.StargiftOwnerInvalid = StargiftOwnerInvalid;
2578
+ class StargiftPeerInvalid extends BadRequest {
2579
+ id = 'STARGIFT_PEER_INVALID';
2580
+ message = 'The specified inputSavedStarGiftChat.peer is invalid.';
2581
+ }
2582
+ exports.StargiftPeerInvalid = StargiftPeerInvalid;
2583
+ class StargiftResellCurrencyNotAllowed extends BadRequest {
2584
+ id = 'STARGIFT_RESELL_CURRENCY_NOT_ALLOWED';
2585
+ message = "You can't buy the gift using the specified currency (i.e. trying to pay in Stars for TON gifts).";
2586
+ }
2587
+ exports.StargiftResellCurrencyNotAllowed = StargiftResellCurrencyNotAllowed;
2588
+ class StargiftResellTooEarly extends BadRequest {
2589
+ id = 'STARGIFT_RESELL_TOO_EARLY_X';
2590
+ message = '';
2591
+ }
2592
+ exports.StargiftResellTooEarly = StargiftResellTooEarly;
2593
+ class StargiftSlugInvalid extends BadRequest {
2594
+ id = 'STARGIFT_SLUG_INVALID';
2595
+ message = 'The specified gift slug is invalid.';
2596
+ }
2597
+ exports.StargiftSlugInvalid = StargiftSlugInvalid;
2598
+ class StargiftTransferTooEarly extends BadRequest {
2599
+ id = 'STARGIFT_TRANSFER_TOO_EARLY_X';
2600
+ message = 'You cannot transfer this gift yet, wait {value} seconds.';
2601
+ }
2602
+ exports.StargiftTransferTooEarly = StargiftTransferTooEarly;
2603
+ class StargiftUpgradeUnavailable extends BadRequest {
2604
+ id = 'STARGIFT_UPGRADE_UNAVAILABLE';
2605
+ 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.';
2606
+ }
2607
+ exports.StargiftUpgradeUnavailable = StargiftUpgradeUnavailable;
2261
2608
  class StargiftUsageLimited extends BadRequest {
2262
2609
  id = 'STARGIFT_USAGE_LIMITED';
2263
2610
  message = 'The gift is sold out.';
2264
2611
  }
2265
2612
  exports.StargiftUsageLimited = StargiftUsageLimited;
2613
+ class StargiftUserUsageLimited extends BadRequest {
2614
+ id = 'STARGIFT_USER_USAGE_LIMITED';
2615
+ message = "You've reached the starGift.limited_per_user limit, you can't buy any more gifts of this type.";
2616
+ }
2617
+ exports.StargiftUserUsageLimited = StargiftUserUsageLimited;
2266
2618
  class StarrefAwaitingEnd extends BadRequest {
2267
2619
  id = 'STARREF_AWAITING_END';
2268
2620
  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 +2640,11 @@ class StarrefPermilleTooLow extends BadRequest {
2288
2640
  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
2641
  }
2290
2642
  exports.StarrefPermilleTooLow = StarrefPermilleTooLow;
2643
+ class StarsAmountInvalid extends BadRequest {
2644
+ id = 'STARS_AMOUNT_INVALID';
2645
+ message = 'The specified amount in stars is invalid.';
2646
+ }
2647
+ exports.StarsAmountInvalid = StarsAmountInvalid;
2291
2648
  class StarsInvoiceInvalid extends BadRequest {
2292
2649
  id = 'STARS_INVOICE_INVALID';
2293
2650
  message = 'The specified Telegram Star invoice is invalid.';
@@ -2450,12 +2807,12 @@ class StoryPeriodInvalid extends BadRequest {
2450
2807
  exports.StoryPeriodInvalid = StoryPeriodInvalid;
2451
2808
  class StorySendFloodMonthly extends BadRequest {
2452
2809
  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.";
2810
+ 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
2811
  }
2455
2812
  exports.StorySendFloodMonthly = StorySendFloodMonthly;
2456
2813
  class StorySendFloodWeekly extends BadRequest {
2457
2814
  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.";
2815
+ 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
2816
  }
2460
2817
  exports.StorySendFloodWeekly = StorySendFloodWeekly;
2461
2818
  class SubscriptionExportMissing extends BadRequest {
@@ -2463,11 +2820,26 @@ class SubscriptionExportMissing extends BadRequest {
2463
2820
  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
2821
  }
2465
2822
  exports.SubscriptionExportMissing = SubscriptionExportMissing;
2823
+ class SubscriptionIdInvalid extends BadRequest {
2824
+ id = 'SUBSCRIPTION_ID_INVALID';
2825
+ message = 'The specified subscription_id is invalid.';
2826
+ }
2827
+ exports.SubscriptionIdInvalid = SubscriptionIdInvalid;
2466
2828
  class SubscriptionPeriodInvalid extends BadRequest {
2467
2829
  id = 'SUBSCRIPTION_PERIOD_INVALID';
2468
2830
  message = 'The specified subscription_pricing.period is invalid.';
2469
2831
  }
2470
2832
  exports.SubscriptionPeriodInvalid = SubscriptionPeriodInvalid;
2833
+ class SuggestedPostAmountInvalid extends BadRequest {
2834
+ id = 'SUGGESTED_POST_AMOUNT_INVALID';
2835
+ message = 'The specified price for the suggested post is invalid.';
2836
+ }
2837
+ exports.SuggestedPostAmountInvalid = SuggestedPostAmountInvalid;
2838
+ class SuggestedPostPeerInvalid extends BadRequest {
2839
+ id = 'SUGGESTED_POST_PEER_INVALID';
2840
+ message = 'You cannot send suggested posts to non-[monoforum](https://core.telegram.org/api/monoforum) peers.';
2841
+ }
2842
+ exports.SuggestedPostPeerInvalid = SuggestedPostPeerInvalid;
2471
2843
  class SwitchPmTextEmpty extends BadRequest {
2472
2844
  id = 'SWITCH_PM_TEXT_EMPTY';
2473
2845
  message = 'The switch_pm.text field was empty.';
@@ -2533,6 +2905,11 @@ class ThemeParamsInvalid extends BadRequest {
2533
2905
  message = 'The specified `theme_params` field is invalid.';
2534
2906
  }
2535
2907
  exports.ThemeParamsInvalid = ThemeParamsInvalid;
2908
+ class ThemeSlugInvalid extends BadRequest {
2909
+ id = 'THEME_SLUG_INVALID';
2910
+ message = 'The specified theme slug is invalid.';
2911
+ }
2912
+ exports.ThemeSlugInvalid = ThemeSlugInvalid;
2536
2913
  class ThemeTitleInvalid extends BadRequest {
2537
2914
  id = 'THEME_TITLE_INVALID';
2538
2915
  message = 'The specified theme title is invalid.';
@@ -2558,6 +2935,21 @@ class TmpPasswordInvalid extends BadRequest {
2558
2935
  message = 'The passed tmp_password is invalid.';
2559
2936
  }
2560
2937
  exports.TmpPasswordInvalid = TmpPasswordInvalid;
2938
+ class TodoItemsEmpty extends BadRequest {
2939
+ id = 'TODO_ITEMS_EMPTY';
2940
+ message = 'A checklist was specified, but no [checklist items](https://core.telegram.org/api/todo) were passed.';
2941
+ }
2942
+ exports.TodoItemsEmpty = TodoItemsEmpty;
2943
+ class TodoItemDuplicate extends BadRequest {
2944
+ id = 'TODO_ITEM_DUPLICATE';
2945
+ message = 'Duplicate [checklist items](https://core.telegram.org/api/todo) detected.';
2946
+ }
2947
+ exports.TodoItemDuplicate = TodoItemDuplicate;
2948
+ class TodoNotModified extends BadRequest {
2949
+ id = 'TODO_NOT_MODIFIED';
2950
+ message = 'No todo items were specified, so no changes were made to the todo list.';
2951
+ }
2952
+ exports.TodoNotModified = TodoNotModified;
2561
2953
  class TokenEmpty extends BadRequest {
2562
2954
  id = 'TOKEN_EMPTY';
2563
2955
  message = 'The specified token is empty.';
@@ -2613,6 +3005,11 @@ class TopicTitleEmpty extends BadRequest {
2613
3005
  message = 'The specified topic title is empty.';
2614
3006
  }
2615
3007
  exports.TopicTitleEmpty = TopicTitleEmpty;
3008
+ class ToIdInvalid extends BadRequest {
3009
+ id = 'TO_ID_INVALID';
3010
+ message = 'The specified `to_id` of the passed inputInvoiceStarGiftResale or inputInvoiceStarGiftTransfer is invalid.';
3011
+ }
3012
+ exports.ToIdInvalid = ToIdInvalid;
2616
3013
  class ToLangInvalid extends BadRequest {
2617
3014
  id = 'TO_LANG_INVALID';
2618
3015
  message = 'The specified destination language is invalid.';
@@ -2658,6 +3055,11 @@ class TypeConstructorInvalid extends BadRequest {
2658
3055
  message = 'The type constructor is invalid';
2659
3056
  }
2660
3057
  exports.TypeConstructorInvalid = TypeConstructorInvalid;
3058
+ class UNSUPPORTED extends BadRequest {
3059
+ id = 'UNSUPPORTED';
3060
+ 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.';
3061
+ }
3062
+ exports.UNSUPPORTED = UNSUPPORTED;
2661
3063
  class UntilDateInvalid extends BadRequest {
2662
3064
  id = 'UNTIL_DATE_INVALID';
2663
3065
  message = 'Invalid until date provided.';