@tgsnake/skema 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/errors/exceptions/All.d.ts +28 -1
- package/dist/errors/exceptions/All.js +28 -1
- package/dist/errors/exceptions/BadRequest400.d.ts +88 -0
- package/dist/errors/exceptions/BadRequest400.js +122 -11
- package/dist/errors/exceptions/Forbidden403.d.ts +4 -0
- package/dist/errors/exceptions/Forbidden403.js +7 -2
- package/dist/errors/exceptions/InternalServerError500.d.ts +16 -0
- package/dist/errors/exceptions/InternalServerError500.js +22 -2
- package/dist/raw/All.d.ts +22 -14
- package/dist/raw/All.js +22 -14
- package/dist/raw/Raw.d.ts +170 -29
- package/dist/raw/Raw.js +606 -95
- package/package.json +1 -1
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
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.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
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;
|
|
16
17
|
const RpcError_js_1 = require("@/errors/RpcError.js");
|
|
17
18
|
class BadRequest extends RpcError_js_1.RPCError {
|
|
18
19
|
code = 400;
|
|
@@ -659,6 +660,11 @@ class CollectibleNotFound extends BadRequest {
|
|
|
659
660
|
message = 'The specified collectible could not be found.';
|
|
660
661
|
}
|
|
661
662
|
exports.CollectibleNotFound = CollectibleNotFound;
|
|
663
|
+
class CollectionIdInvalid extends BadRequest {
|
|
664
|
+
id = 'COLLECTION_ID_INVALID';
|
|
665
|
+
message = '';
|
|
666
|
+
}
|
|
667
|
+
exports.CollectionIdInvalid = CollectionIdInvalid;
|
|
662
668
|
class ColorInvalid extends BadRequest {
|
|
663
669
|
id = 'COLOR_INVALID';
|
|
664
670
|
message = 'The specified color palette ID was invalid.';
|
|
@@ -739,6 +745,11 @@ class CreateCallFailed extends BadRequest {
|
|
|
739
745
|
message = 'An error occurred while creating the call.';
|
|
740
746
|
}
|
|
741
747
|
exports.CreateCallFailed = CreateCallFailed;
|
|
748
|
+
class CredentialInvalid extends BadRequest {
|
|
749
|
+
id = 'CREDENTIAL_INVALID';
|
|
750
|
+
message = '';
|
|
751
|
+
}
|
|
752
|
+
exports.CredentialInvalid = CredentialInvalid;
|
|
742
753
|
class CurrencyTotalAmountInvalid extends BadRequest {
|
|
743
754
|
id = 'CURRENCY_TOTAL_AMOUNT_INVALID';
|
|
744
755
|
message = 'The total amount of all prices is invalid.';
|
|
@@ -789,6 +800,11 @@ class DocumentInvalid extends BadRequest {
|
|
|
789
800
|
message = 'The specified document is invalid.';
|
|
790
801
|
}
|
|
791
802
|
exports.DocumentInvalid = DocumentInvalid;
|
|
803
|
+
class EffectChatInvalid extends BadRequest {
|
|
804
|
+
id = 'EFFECT_CHAT_INVALID';
|
|
805
|
+
message = '';
|
|
806
|
+
}
|
|
807
|
+
exports.EffectChatInvalid = EffectChatInvalid;
|
|
792
808
|
class EffectIdInvalid extends BadRequest {
|
|
793
809
|
id = 'EFFECT_ID_INVALID';
|
|
794
810
|
message = 'The specified effect ID is invalid.';
|
|
@@ -799,6 +815,11 @@ class EmailHashExpired extends BadRequest {
|
|
|
799
815
|
message = 'Email hash expired.';
|
|
800
816
|
}
|
|
801
817
|
exports.EmailHashExpired = EmailHashExpired;
|
|
818
|
+
class EmailInstallMissing extends BadRequest {
|
|
819
|
+
id = 'EMAIL_INSTALL_MISSING';
|
|
820
|
+
message = '';
|
|
821
|
+
}
|
|
822
|
+
exports.EmailInstallMissing = EmailInstallMissing;
|
|
802
823
|
class EmailInvalid extends BadRequest {
|
|
803
824
|
id = 'EMAIL_INVALID';
|
|
804
825
|
message = 'The specified email is invalid.';
|
|
@@ -924,6 +945,11 @@ class ExtendedMediaAmountInvalid extends BadRequest {
|
|
|
924
945
|
message = 'The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.';
|
|
925
946
|
}
|
|
926
947
|
exports.ExtendedMediaAmountInvalid = ExtendedMediaAmountInvalid;
|
|
948
|
+
class ExtendedMediaEmpty extends BadRequest {
|
|
949
|
+
id = 'EXTENDED_MEDIA_EMPTY';
|
|
950
|
+
message = '';
|
|
951
|
+
}
|
|
952
|
+
exports.ExtendedMediaEmpty = ExtendedMediaEmpty;
|
|
927
953
|
class ExtendedMediaInvalid extends BadRequest {
|
|
928
954
|
id = 'EXTENDED_MEDIA_INVALID';
|
|
929
955
|
message = 'The specified paid media is invalid.';
|
|
@@ -1029,6 +1055,11 @@ class FileReferenceInvalid extends BadRequest {
|
|
|
1029
1055
|
message = 'The specified [file reference](https://core.telegram.org/api/file-references) is invalid.';
|
|
1030
1056
|
}
|
|
1031
1057
|
exports.FileReferenceInvalid = FileReferenceInvalid;
|
|
1058
|
+
class FileReferenceXEmpty extends BadRequest {
|
|
1059
|
+
id = 'FILE_REFERENCE_X_EMPTY';
|
|
1060
|
+
message = '';
|
|
1061
|
+
}
|
|
1062
|
+
exports.FileReferenceXEmpty = FileReferenceXEmpty;
|
|
1032
1063
|
class FileReferenceXExpired extends BadRequest {
|
|
1033
1064
|
id = 'FILE_REFERENCE_X_EXPIRED';
|
|
1034
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). .';
|
|
@@ -1354,6 +1385,16 @@ class InputRequestTooLong extends BadRequest {
|
|
|
1354
1385
|
message = 'The request payload is too long.';
|
|
1355
1386
|
}
|
|
1356
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;
|
|
1357
1398
|
class InputTextEmpty extends BadRequest {
|
|
1358
1399
|
id = 'INPUT_TEXT_EMPTY';
|
|
1359
1400
|
message = 'The specified text is empty.';
|
|
@@ -1604,6 +1645,11 @@ class MessagePollClosed extends BadRequest {
|
|
|
1604
1645
|
message = 'Poll closed.';
|
|
1605
1646
|
}
|
|
1606
1647
|
exports.MessagePollClosed = MessagePollClosed;
|
|
1648
|
+
class MessageRequired extends BadRequest {
|
|
1649
|
+
id = 'MESSAGE_REQUIRED';
|
|
1650
|
+
message = '';
|
|
1651
|
+
}
|
|
1652
|
+
exports.MessageRequired = MessageRequired;
|
|
1607
1653
|
class MessageTooLong extends BadRequest {
|
|
1608
1654
|
id = 'MESSAGE_TOO_LONG';
|
|
1609
1655
|
message = 'The provided message is too long.';
|
|
@@ -1654,6 +1700,11 @@ class MultiMediaTooLong extends BadRequest {
|
|
|
1654
1700
|
message = 'Too many media files for album.';
|
|
1655
1701
|
}
|
|
1656
1702
|
exports.MultiMediaTooLong = MultiMediaTooLong;
|
|
1703
|
+
class NeedActionMissing extends BadRequest {
|
|
1704
|
+
id = 'NEED_ACTION_MISSING';
|
|
1705
|
+
message = '';
|
|
1706
|
+
}
|
|
1707
|
+
exports.NeedActionMissing = NeedActionMissing;
|
|
1657
1708
|
class NewSaltInvalid extends BadRequest {
|
|
1658
1709
|
id = 'NEW_SALT_INVALID';
|
|
1659
1710
|
message = 'The new salt is invalid.';
|
|
@@ -1989,6 +2040,11 @@ class PinnedTooMuch extends BadRequest {
|
|
|
1989
2040
|
message = 'There are too many pinned topics, unpin some first.';
|
|
1990
2041
|
}
|
|
1991
2042
|
exports.PinnedTooMuch = PinnedTooMuch;
|
|
2043
|
+
class PinnedTopicNotModified extends BadRequest {
|
|
2044
|
+
id = 'PINNED_TOPIC_NOT_MODIFIED';
|
|
2045
|
+
message = '';
|
|
2046
|
+
}
|
|
2047
|
+
exports.PinnedTopicNotModified = PinnedTopicNotModified;
|
|
1992
2048
|
class PinRestricted extends BadRequest {
|
|
1993
2049
|
id = 'PIN_RESTRICTED';
|
|
1994
2050
|
message = "You can't pin messages.";
|
|
@@ -2034,6 +2090,11 @@ class PremiumAccountRequired extends BadRequest {
|
|
|
2034
2090
|
message = 'A premium account is required to execute this action.';
|
|
2035
2091
|
}
|
|
2036
2092
|
exports.PremiumAccountRequired = PremiumAccountRequired;
|
|
2093
|
+
class PremiumPurposeInvalid extends BadRequest {
|
|
2094
|
+
id = 'PREMIUM_PURPOSE_INVALID';
|
|
2095
|
+
message = '';
|
|
2096
|
+
}
|
|
2097
|
+
exports.PremiumPurposeInvalid = PremiumPurposeInvalid;
|
|
2037
2098
|
class PricingChatInvalid extends BadRequest {
|
|
2038
2099
|
id = 'PRICING_CHAT_INVALID';
|
|
2039
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).';
|
|
@@ -2229,6 +2290,16 @@ class RequestTokenInvalid extends BadRequest {
|
|
|
2229
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.';
|
|
2230
2291
|
}
|
|
2231
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;
|
|
2232
2303
|
class ResetRequestMissing extends BadRequest {
|
|
2233
2304
|
id = 'RESET_REQUEST_MISSING';
|
|
2234
2305
|
message = 'No password reset is in progress.';
|
|
@@ -2289,6 +2360,11 @@ class SavedIdEmpty extends BadRequest {
|
|
|
2289
2360
|
message = 'The passed inputSavedStarGiftChat.saved_id is empty.';
|
|
2290
2361
|
}
|
|
2291
2362
|
exports.SavedIdEmpty = SavedIdEmpty;
|
|
2363
|
+
class SavedPeerInvalid extends BadRequest {
|
|
2364
|
+
id = 'SAVED_PEER_INVALID';
|
|
2365
|
+
message = '';
|
|
2366
|
+
}
|
|
2367
|
+
exports.SavedPeerInvalid = SavedPeerInvalid;
|
|
2292
2368
|
class ScheduleBotNotAllowed extends BadRequest {
|
|
2293
2369
|
id = 'SCHEDULE_BOT_NOT_ALLOWED';
|
|
2294
2370
|
message = 'Bots cannot schedule messages.';
|
|
@@ -2454,16 +2530,46 @@ class StargiftAlreadyUpgraded extends BadRequest {
|
|
|
2454
2530
|
message = 'The specified gift was already upgraded to a collectible gift.';
|
|
2455
2531
|
}
|
|
2456
2532
|
exports.StargiftAlreadyUpgraded = StargiftAlreadyUpgraded;
|
|
2533
|
+
class StargiftAttributeInvalid extends BadRequest {
|
|
2534
|
+
id = 'STARGIFT_ATTRIBUTE_INVALID';
|
|
2535
|
+
message = '';
|
|
2536
|
+
}
|
|
2537
|
+
exports.StargiftAttributeInvalid = StargiftAttributeInvalid;
|
|
2457
2538
|
class StargiftInvalid extends BadRequest {
|
|
2458
2539
|
id = 'STARGIFT_INVALID';
|
|
2459
2540
|
message = 'The passed gift is invalid.';
|
|
2460
2541
|
}
|
|
2461
2542
|
exports.StargiftInvalid = StargiftInvalid;
|
|
2543
|
+
class StargiftMessageInvalid extends BadRequest {
|
|
2544
|
+
id = 'STARGIFT_MESSAGE_INVALID';
|
|
2545
|
+
message = '';
|
|
2546
|
+
}
|
|
2547
|
+
exports.StargiftMessageInvalid = StargiftMessageInvalid;
|
|
2462
2548
|
class StargiftNotFound extends BadRequest {
|
|
2463
2549
|
id = 'STARGIFT_NOT_FOUND';
|
|
2464
2550
|
message = 'The specified gift was not found.';
|
|
2465
2551
|
}
|
|
2466
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;
|
|
2467
2573
|
class StargiftOwnerInvalid extends BadRequest {
|
|
2468
2574
|
id = 'STARGIFT_OWNER_INVALID';
|
|
2469
2575
|
message = 'You cannot transfer or sell a gift owned by another user.';
|
|
@@ -2479,6 +2585,11 @@ class StargiftResellCurrencyNotAllowed extends BadRequest {
|
|
|
2479
2585
|
message = "You can't buy the gift using the specified currency (i.e. trying to pay in Stars for TON gifts).";
|
|
2480
2586
|
}
|
|
2481
2587
|
exports.StargiftResellCurrencyNotAllowed = StargiftResellCurrencyNotAllowed;
|
|
2588
|
+
class StargiftResellTooEarly extends BadRequest {
|
|
2589
|
+
id = 'STARGIFT_RESELL_TOO_EARLY_X';
|
|
2590
|
+
message = '';
|
|
2591
|
+
}
|
|
2592
|
+
exports.StargiftResellTooEarly = StargiftResellTooEarly;
|
|
2482
2593
|
class StargiftSlugInvalid extends BadRequest {
|
|
2483
2594
|
id = 'STARGIFT_SLUG_INVALID';
|
|
2484
2595
|
message = 'The specified gift slug is invalid.';
|
|
@@ -3,6 +3,10 @@ export declare class Forbidden extends RPCError {
|
|
|
3
3
|
code: number;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
+
export declare class AccessDenied extends Forbidden {
|
|
7
|
+
id: string;
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
6
10
|
export declare class AllowPaymentRequired extends Forbidden {
|
|
7
11
|
id: string;
|
|
8
12
|
message: string;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.YourPrivacyRestricted = exports.VoiceMessagesForbidden = exports.UserRestricted = exports.UserPrivacyRestricted = exports.UserPermissionDenied = exports.UserNotParticipant = void 0;
|
|
3
|
+
exports.UserIsBlocked = exports.UserInvalid = exports.UserDeleted = exports.UserChannelsTooMuch = exports.UserBotInvalid = exports.TakeoutRequired = exports.SensitiveChangeForbidden = exports.RightForbidden = exports.PublicChannelMissing = exports.PrivacyPremiumRequired = exports.PremiumAccountRequired = exports.PollVoteRequired = exports.PeerIdInvalid = exports.ParticipantJoinMissing = exports.NotEligible = exports.MessageDeleteForbidden = exports.MessageAuthorRequired = exports.InlineBotRequired = exports.GroupcallForbidden = exports.GroupcallAlreadyStarted = exports.EditBotInviteForbidden = exports.ChatWriteForbidden = exports.ChatTypeInvalid = exports.ChatSendWebpageForbidden = exports.ChatSendVoicesForbidden = exports.ChatSendVideosForbidden = exports.ChatSendStickersForbidden = exports.ChatSendRoundvideosForbidden = exports.ChatSendPollForbidden = exports.ChatSendPlainForbidden = exports.ChatSendPhotosForbidden = exports.ChatSendMediaForbidden = exports.ChatSendInlineForbidden = exports.ChatSendGifsForbidden = exports.ChatSendGameForbidden = exports.ChatSendDocsForbidden = exports.ChatSendAudiosForbidden = exports.ChatGuestSendForbidden = exports.ChatForbidden = exports.ChatAdminRequired = exports.ChatAdminInviteRequired = exports.ChatActionForbidden = exports.ChannelPublicGroupNa = exports.BroadcastForbidden = exports.BotVerifierForbidden = exports.BotAccessForbidden = exports.AnonymousReactionsDisabled = exports.AllowPaymentRequired = exports.AccessDenied = exports.Forbidden = void 0;
|
|
4
|
+
exports.YourPrivacyRestricted = exports.VoiceMessagesForbidden = exports.UserRestricted = exports.UserPrivacyRestricted = exports.UserPermissionDenied = exports.UserNotParticipant = exports.UserNotMutualContact = void 0;
|
|
5
5
|
const RpcError_js_1 = require("@/errors/RpcError.js");
|
|
6
6
|
class Forbidden extends RpcError_js_1.RPCError {
|
|
7
7
|
code = 403;
|
|
8
8
|
name = 'FORBIDDEN';
|
|
9
9
|
}
|
|
10
10
|
exports.Forbidden = Forbidden;
|
|
11
|
+
class AccessDenied extends Forbidden {
|
|
12
|
+
id = 'ACCESS_DENIED';
|
|
13
|
+
message = '';
|
|
14
|
+
}
|
|
15
|
+
exports.AccessDenied = AccessDenied;
|
|
11
16
|
class AllowPaymentRequired extends Forbidden {
|
|
12
17
|
id = 'ALLOW_PAYMENT_REQUIRED_X';
|
|
13
18
|
message = 'This peer charges {value} [Telegram Stars](https://core.telegram.org/api/stars) per message, but the `allow_paid_stars` was not set or its value is smaller than {value}.';
|
|
@@ -51,6 +51,10 @@ export declare class ChpCallFail extends InternalServerError {
|
|
|
51
51
|
id: string;
|
|
52
52
|
message: string;
|
|
53
53
|
}
|
|
54
|
+
export declare class EncryptionDeclineAdminFailed extends InternalServerError {
|
|
55
|
+
id: string;
|
|
56
|
+
message: string;
|
|
57
|
+
}
|
|
54
58
|
export declare class EncryptionOccupyAdminFailed extends InternalServerError {
|
|
55
59
|
id: string;
|
|
56
60
|
message: string;
|
|
@@ -131,6 +135,10 @@ export declare class NeedChatInvalid extends InternalServerError {
|
|
|
131
135
|
id: string;
|
|
132
136
|
message: string;
|
|
133
137
|
}
|
|
138
|
+
export declare class NeedDocInvalid extends InternalServerError {
|
|
139
|
+
id: string;
|
|
140
|
+
message: string;
|
|
141
|
+
}
|
|
134
142
|
export declare class NeedMemberInvalid extends InternalServerError {
|
|
135
143
|
id: string;
|
|
136
144
|
message: string;
|
|
@@ -143,6 +151,10 @@ export declare class ParticipantCallFailed extends InternalServerError {
|
|
|
143
151
|
id: string;
|
|
144
152
|
message: string;
|
|
145
153
|
}
|
|
154
|
+
export declare class PasskeyAuthRestart extends InternalServerError {
|
|
155
|
+
id: string;
|
|
156
|
+
message: string;
|
|
157
|
+
}
|
|
146
158
|
export declare class PersistentTimestampOutdated extends InternalServerError {
|
|
147
159
|
id: string;
|
|
148
160
|
message: string;
|
|
@@ -215,6 +227,10 @@ export declare class VolumeLocNotFound extends InternalServerError {
|
|
|
215
227
|
id: string;
|
|
216
228
|
message: string;
|
|
217
229
|
}
|
|
230
|
+
export declare class VolumeMoveInvalid extends InternalServerError {
|
|
231
|
+
id: string;
|
|
232
|
+
message: string;
|
|
233
|
+
}
|
|
218
234
|
export declare class WorkerBusyTooLongRetry extends InternalServerError {
|
|
219
235
|
id: string;
|
|
220
236
|
message: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.WpIdGenerateFailed = exports.WorkerBusyTooLongRetry = exports.VolumeLocNotFound = exports.UploadNoVolume = exports.UnknownMethod = exports.TranslationTimeout = void 0;
|
|
3
|
+
exports.SignInFailed = exports.SendMediaInvalid = exports.RpcMcgetFail = exports.RpcConnectFailed = exports.RpcCallFail = exports.RegIdGenerateFailed = exports.RandomIdDuplicate = exports.PtsChangeEmpty = exports.PostponedTimeout = exports.PhotoCreateFailed = exports.PersistentTimestampOutdated = exports.PasskeyAuthRestart = exports.ParticipantCallFailed = exports.NoWorkersRunning = exports.NeedMemberInvalid = exports.NeedDocInvalid = exports.NeedChatInvalid = exports.MtSendQueueTooLong = exports.MsgWaitFailed = exports.MsgRangeUnsync = exports.MsgidDecreaseRetry = exports.MemberOccupyUsernameFailed = exports.MemberOccupyPrimaryLocFailed = exports.MemberNoLocation = exports.MemberNotFound = exports.MemberFetchFailed = exports.MemberChatAddFailed = exports.InterdcCallRichError = exports.InterdcCallError = exports.ImageEngineDown = exports.HistoryGetFailed = exports.GroupedIdOccupyFailed = exports.GroupcallAddParticipantsFailed = exports.FolderDeacAutofixAll = exports.EncryptionOccupyFailed = exports.EncryptionOccupyAdminFailed = exports.EncryptionDeclineAdminFailed = exports.ChpCallFail = exports.ChatOccupyUsernameFailed = exports.ChatOccupyLocFailed = exports.ChatInvalid = exports.ChatIdGenerateFailed = exports.CdnUploadTimeout = exports.CdnSaltsEmpty = exports.CallOccupyFailed = exports.AuthRestartX = exports.AuthRestart = exports.AuthKeyUnsynchronized = exports.ApiCallError = exports.InternalServerError = void 0;
|
|
4
|
+
exports.WpIdGenerateFailed = exports.WorkerBusyTooLongRetry = exports.VolumeMoveInvalid = exports.VolumeLocNotFound = exports.UploadNoVolume = exports.UnknownMethod = exports.TranslationTimeout = exports.TranslateReqFailed = exports.StoreInvalidScalarType = exports.StorageCheckFailed = void 0;
|
|
5
5
|
const RpcError_js_1 = require("@/errors/RpcError.js");
|
|
6
6
|
class InternalServerError extends RpcError_js_1.RPCError {
|
|
7
7
|
code = 500;
|
|
@@ -68,6 +68,11 @@ class ChpCallFail extends InternalServerError {
|
|
|
68
68
|
message = 'Telegram is having internal problems. Please try again later';
|
|
69
69
|
}
|
|
70
70
|
exports.ChpCallFail = ChpCallFail;
|
|
71
|
+
class EncryptionDeclineAdminFailed extends InternalServerError {
|
|
72
|
+
id = 'ENCRYPTION_DECLINE_ADMIN_FAILED';
|
|
73
|
+
message = '';
|
|
74
|
+
}
|
|
75
|
+
exports.EncryptionDeclineAdminFailed = EncryptionDeclineAdminFailed;
|
|
71
76
|
class EncryptionOccupyAdminFailed extends InternalServerError {
|
|
72
77
|
id = 'ENCRYPTION_OCCUPY_ADMIN_FAILED';
|
|
73
78
|
message = 'Failed occupying memory for admin info due to Telegram having internal problems. Please try again later';
|
|
@@ -168,6 +173,11 @@ class NeedChatInvalid extends InternalServerError {
|
|
|
168
173
|
message = 'The provided chat is invalid';
|
|
169
174
|
}
|
|
170
175
|
exports.NeedChatInvalid = NeedChatInvalid;
|
|
176
|
+
class NeedDocInvalid extends InternalServerError {
|
|
177
|
+
id = 'NEED_DOC_INVALID';
|
|
178
|
+
message = '';
|
|
179
|
+
}
|
|
180
|
+
exports.NeedDocInvalid = NeedDocInvalid;
|
|
171
181
|
class NeedMemberInvalid extends InternalServerError {
|
|
172
182
|
id = 'NEED_MEMBER_INVALID';
|
|
173
183
|
message = 'The provided member is invalid or does not exist';
|
|
@@ -183,6 +193,11 @@ class ParticipantCallFailed extends InternalServerError {
|
|
|
183
193
|
message = 'Failure while making call due to Telegram having internal problems. Please try again later';
|
|
184
194
|
}
|
|
185
195
|
exports.ParticipantCallFailed = ParticipantCallFailed;
|
|
196
|
+
class PasskeyAuthRestart extends InternalServerError {
|
|
197
|
+
id = 'PASSKEY_AUTH_RESTART';
|
|
198
|
+
message = '';
|
|
199
|
+
}
|
|
200
|
+
exports.PasskeyAuthRestart = PasskeyAuthRestart;
|
|
186
201
|
class PersistentTimestampOutdated extends InternalServerError {
|
|
187
202
|
id = 'PERSISTENT_TIMESTAMP_OUTDATED';
|
|
188
203
|
message = 'Channel internal replication issues, try again later (treat this like an RPC_CALL_FAIL).';
|
|
@@ -273,6 +288,11 @@ class VolumeLocNotFound extends InternalServerError {
|
|
|
273
288
|
message = 'Telegram is having internal problems. Please try again later';
|
|
274
289
|
}
|
|
275
290
|
exports.VolumeLocNotFound = VolumeLocNotFound;
|
|
291
|
+
class VolumeMoveInvalid extends InternalServerError {
|
|
292
|
+
id = 'VOLUME_MOVE_INVALID';
|
|
293
|
+
message = '';
|
|
294
|
+
}
|
|
295
|
+
exports.VolumeMoveInvalid = VolumeMoveInvalid;
|
|
276
296
|
class WorkerBusyTooLongRetry extends InternalServerError {
|
|
277
297
|
id = 'WORKER_BUSY_TOO_LONG_RETRY';
|
|
278
298
|
message = 'Server workers are too busy right now due to Telegram having internal problems. Please try again later';
|
package/dist/raw/All.d.ts
CHANGED
|
@@ -138,15 +138,15 @@ export declare const AllTLObject: {
|
|
|
138
138
|
399807445: string;
|
|
139
139
|
640893467: string;
|
|
140
140
|
3839931037: string;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
954703838: string;
|
|
142
|
+
3791153080: string;
|
|
143
|
+
56677842: string;
|
|
144
144
|
2271466465: string;
|
|
145
145
|
1018991608: string;
|
|
146
146
|
935395612: string;
|
|
147
147
|
476978193: string;
|
|
148
148
|
2426849924: string;
|
|
149
|
-
|
|
149
|
+
988112002: string;
|
|
150
150
|
2055212554: string;
|
|
151
151
|
1038967584: string;
|
|
152
152
|
1766936791: string;
|
|
@@ -229,6 +229,8 @@ export declare const AllTLObject: {
|
|
|
229
229
|
1940760427: string;
|
|
230
230
|
2961100933: string;
|
|
231
231
|
3783807035: string;
|
|
232
|
+
3212666226: string;
|
|
233
|
+
1042781114: string;
|
|
232
234
|
3582593222: string;
|
|
233
235
|
1908216652: string;
|
|
234
236
|
590459437: string;
|
|
@@ -456,6 +458,7 @@ export declare const AllTLObject: {
|
|
|
456
458
|
3696816926: string;
|
|
457
459
|
4221326458: string;
|
|
458
460
|
2886149188: string;
|
|
461
|
+
3179505593: string;
|
|
459
462
|
2775329342: string;
|
|
460
463
|
1567990072: string;
|
|
461
464
|
16030880: string;
|
|
@@ -672,6 +675,7 @@ export declare const AllTLObject: {
|
|
|
672
675
|
852137487: string;
|
|
673
676
|
3369010680: string;
|
|
674
677
|
4056722092: string;
|
|
678
|
+
2420819911: string;
|
|
675
679
|
4002160262: string;
|
|
676
680
|
4082822184: string;
|
|
677
681
|
1536380829: string;
|
|
@@ -682,11 +686,11 @@ export declare const AllTLObject: {
|
|
|
682
686
|
543450958: string;
|
|
683
687
|
2496933607: string;
|
|
684
688
|
3447183703: string;
|
|
685
|
-
|
|
686
|
-
|
|
689
|
+
466961494: string;
|
|
690
|
+
2840037914: string;
|
|
687
691
|
803602899: string;
|
|
688
692
|
885242707: string;
|
|
689
|
-
|
|
693
|
+
3589320081: string;
|
|
690
694
|
453242886: string;
|
|
691
695
|
3728686201: string;
|
|
692
696
|
3026225513: string;
|
|
@@ -934,6 +938,7 @@ export declare const AllTLObject: {
|
|
|
934
938
|
1621597305: string;
|
|
935
939
|
1684286899: string;
|
|
936
940
|
3306682238: string;
|
|
941
|
+
1476834540: string;
|
|
937
942
|
531458253: string;
|
|
938
943
|
3985307469: string;
|
|
939
944
|
3926948580: string;
|
|
@@ -1060,7 +1065,7 @@ export declare const AllTLObject: {
|
|
|
1060
1065
|
4224893590: string;
|
|
1061
1066
|
3921323624: string;
|
|
1062
1067
|
3896830975: string;
|
|
1063
|
-
|
|
1068
|
+
4177062686: string;
|
|
1064
1069
|
1648005024: string;
|
|
1065
1070
|
2849430303: string;
|
|
1066
1071
|
3216354699: string;
|
|
@@ -1893,8 +1898,8 @@ export declare const AllTLObject: {
|
|
|
1893
1898
|
1318675378: string;
|
|
1894
1899
|
3585149990: string;
|
|
1895
1900
|
465367808: string;
|
|
1896
|
-
|
|
1897
|
-
|
|
1901
|
+
2303510940: string;
|
|
1902
|
+
1738797278: string;
|
|
1898
1903
|
1336717624: string;
|
|
1899
1904
|
4111889931: string;
|
|
1900
1905
|
3183150180: string;
|
|
@@ -1932,7 +1937,7 @@ export declare const AllTLObject: {
|
|
|
1932
1937
|
2625580816: string;
|
|
1933
1938
|
2145904661: string;
|
|
1934
1939
|
3766875370: string;
|
|
1935
|
-
|
|
1940
|
+
2986875445: string;
|
|
1936
1941
|
3439189910: string;
|
|
1937
1942
|
3540875476: string;
|
|
1938
1943
|
2344259814: string;
|
|
@@ -2025,6 +2030,11 @@ export declare const AllTLObject: {
|
|
|
2025
2030
|
3531697936: string;
|
|
2026
2031
|
4219374759: string;
|
|
2027
2032
|
2638284002: string;
|
|
2033
|
+
4148410455: string;
|
|
2034
|
+
998051494: string;
|
|
2035
|
+
2685350576: string;
|
|
2036
|
+
893610940: string;
|
|
2037
|
+
3382999819: string;
|
|
2028
2038
|
3990128682: string;
|
|
2029
2039
|
432207715: string;
|
|
2030
2040
|
51854712: string;
|
|
@@ -2075,7 +2085,7 @@ export declare const AllTLObject: {
|
|
|
2075
2085
|
176122811: string;
|
|
2076
2086
|
141781513: string;
|
|
2077
2087
|
2432722695: string;
|
|
2078
|
-
|
|
2088
|
+
2593697128: string;
|
|
2079
2089
|
1450044624: string;
|
|
2080
2090
|
4046346185: string;
|
|
2081
2091
|
283557164: string;
|
|
@@ -2096,7 +2106,6 @@ export declare const AllTLObject: {
|
|
|
2096
2106
|
2202135744: string;
|
|
2097
2107
|
4124758904: string;
|
|
2098
2108
|
1079520178: string;
|
|
2099
|
-
2402864415: string;
|
|
2100
2109
|
1491484525: string;
|
|
2101
2110
|
3990134512: string;
|
|
2102
2111
|
300429806: string;
|
|
@@ -2125,7 +2134,6 @@ export declare const AllTLObject: {
|
|
|
2125
2134
|
3974275302: string;
|
|
2126
2135
|
576090389: string;
|
|
2127
2136
|
897842353: string;
|
|
2128
|
-
2684950703: string;
|
|
2129
2137
|
2854709741: string;
|
|
2130
2138
|
3860938573: string;
|
|
2131
2139
|
85399130: string;
|