@armatofik/tgsnake-core 1.0.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.
Files changed (171) hide show
  1. package/COPYING +674 -0
  2. package/COPYING.lesser +165 -0
  3. package/README.md +88 -0
  4. package/lib/package.json +46 -0
  5. package/lib/src/Logger.d.ts +3 -0
  6. package/lib/src/Logger.js +9 -0
  7. package/lib/src/Queue.d.ts +19 -0
  8. package/lib/src/Queue.js +52 -0
  9. package/lib/src/Timeout.d.ts +9 -0
  10. package/lib/src/Timeout.js +44 -0
  11. package/lib/src/Version.node.d.ts +4 -0
  12. package/lib/src/Version.node.js +26 -0
  13. package/lib/src/client/Auth.d.ts +40 -0
  14. package/lib/src/client/Auth.js +317 -0
  15. package/lib/src/client/Client.d.ts +83 -0
  16. package/lib/src/client/Client.js +461 -0
  17. package/lib/src/client/Session.d.ts +9 -0
  18. package/lib/src/client/Session.js +132 -0
  19. package/lib/src/client/index.d.ts +3 -0
  20. package/lib/src/client/index.js +39 -0
  21. package/lib/src/connection/TCP/TCPAbridged.d.ts +9 -0
  22. package/lib/src/connection/TCP/TCPAbridged.js +47 -0
  23. package/lib/src/connection/TCP/TCPAbridgedO.d.ts +12 -0
  24. package/lib/src/connection/TCP/TCPAbridgedO.js +140 -0
  25. package/lib/src/connection/TCP/TCPFull.d.ts +10 -0
  26. package/lib/src/connection/TCP/TCPFull.js +43 -0
  27. package/lib/src/connection/TCP/TCPIntermediate.d.ts +9 -0
  28. package/lib/src/connection/TCP/TCPIntermediate.js +31 -0
  29. package/lib/src/connection/TCP/TCPIntermediateO.d.ts +12 -0
  30. package/lib/src/connection/TCP/TCPIntermediateO.js +123 -0
  31. package/lib/src/connection/TCP/TCPPaddedIntermediate.d.ts +9 -0
  32. package/lib/src/connection/TCP/TCPPaddedIntermediate.js +38 -0
  33. package/lib/src/connection/TCP/index.d.ts +7 -0
  34. package/lib/src/connection/TCP/index.js +17 -0
  35. package/lib/src/connection/TCP/tcp.d.ts +17 -0
  36. package/lib/src/connection/TCP/tcp.js +98 -0
  37. package/lib/src/connection/WebSocket.d.ts +21 -0
  38. package/lib/src/connection/WebSocket.js +279 -0
  39. package/lib/src/connection/connection.d.ts +53 -0
  40. package/lib/src/connection/connection.js +189 -0
  41. package/lib/src/connection/index.d.ts +4 -0
  42. package/lib/src/connection/index.js +41 -0
  43. package/lib/src/crypto/Aes.d.ts +10 -0
  44. package/lib/src/crypto/Aes.js +135 -0
  45. package/lib/src/crypto/Mtproto.d.ts +5 -0
  46. package/lib/src/crypto/Mtproto.js +123 -0
  47. package/lib/src/crypto/Password.d.ts +5 -0
  48. package/lib/src/crypto/Password.js +92 -0
  49. package/lib/src/crypto/Prime.d.ts +4 -0
  50. package/lib/src/crypto/Prime.js +64 -0
  51. package/lib/src/crypto/RSA.d.ts +7 -0
  52. package/lib/src/crypto/RSA.js +99 -0
  53. package/lib/src/crypto/SecretChat.d.ts +5 -0
  54. package/lib/src/crypto/SecretChat.js +136 -0
  55. package/lib/src/crypto/index.d.ts +6 -0
  56. package/lib/src/crypto/index.js +42 -0
  57. package/lib/src/errors/Base.d.ts +9 -0
  58. package/lib/src/errors/Base.js +50 -0
  59. package/lib/src/errors/Client.d.ts +21 -0
  60. package/lib/src/errors/Client.js +29 -0
  61. package/lib/src/errors/File.d.ts +13 -0
  62. package/lib/src/errors/File.js +30 -0
  63. package/lib/src/errors/RpcError.d.ts +22 -0
  64. package/lib/src/errors/RpcError.js +120 -0
  65. package/lib/src/errors/SecretChat.d.ts +13 -0
  66. package/lib/src/errors/SecretChat.js +30 -0
  67. package/lib/src/errors/WebSocket.d.ts +13 -0
  68. package/lib/src/errors/WebSocket.js +30 -0
  69. package/lib/src/errors/exceptions/All.d.ts +774 -0
  70. package/lib/src/errors/exceptions/All.js +778 -0
  71. package/lib/src/errors/exceptions/BadRequest400.d.ts +2345 -0
  72. package/lib/src/errors/exceptions/BadRequest400.js +2945 -0
  73. package/lib/src/errors/exceptions/Flood420.d.ts +37 -0
  74. package/lib/src/errors/exceptions/Flood420.js +49 -0
  75. package/lib/src/errors/exceptions/Forbidden403.d.ts +205 -0
  76. package/lib/src/errors/exceptions/Forbidden403.js +260 -0
  77. package/lib/src/errors/exceptions/InternalServerError500.d.ts +221 -0
  78. package/lib/src/errors/exceptions/InternalServerError500.js +280 -0
  79. package/lib/src/errors/exceptions/NotAcceptable406.d.ts +117 -0
  80. package/lib/src/errors/exceptions/NotAcceptable406.js +149 -0
  81. package/lib/src/errors/exceptions/NotFound404.d.ts +9 -0
  82. package/lib/src/errors/exceptions/NotFound404.js +14 -0
  83. package/lib/src/errors/exceptions/SeeOther303.d.ts +25 -0
  84. package/lib/src/errors/exceptions/SeeOther303.js +34 -0
  85. package/lib/src/errors/exceptions/ServiceUnavailable503.d.ts +17 -0
  86. package/lib/src/errors/exceptions/ServiceUnavailable503.js +24 -0
  87. package/lib/src/errors/exceptions/Unauthorized401.d.ts +41 -0
  88. package/lib/src/errors/exceptions/Unauthorized401.js +54 -0
  89. package/lib/src/errors/exceptions/index.d.ts +10 -0
  90. package/lib/src/errors/exceptions/index.js +48 -0
  91. package/lib/src/errors/index.d.ts +31 -0
  92. package/lib/src/errors/index.js +111 -0
  93. package/lib/src/file/Download.d.ts +11 -0
  94. package/lib/src/file/Download.js +118 -0
  95. package/lib/src/file/File.d.ts +20 -0
  96. package/lib/src/file/File.js +82 -0
  97. package/lib/src/file/Upload.d.ts +19 -0
  98. package/lib/src/file/Upload.js +250 -0
  99. package/lib/src/file/index.d.ts +3 -0
  100. package/lib/src/file/index.js +11 -0
  101. package/lib/src/helpers.d.ts +34 -0
  102. package/lib/src/helpers.js +358 -0
  103. package/lib/src/index.d.ts +16 -0
  104. package/lib/src/index.js +56 -0
  105. package/lib/src/platform.node.d.ts +36 -0
  106. package/lib/src/platform.node.js +109 -0
  107. package/lib/src/raw/All.d.ts +2400 -0
  108. package/lib/src/raw/All.js +2403 -0
  109. package/lib/src/raw/Raw.d.ts +29195 -0
  110. package/lib/src/raw/Raw.js +97277 -0
  111. package/lib/src/raw/core/BytesIO.d.ts +33 -0
  112. package/lib/src/raw/core/BytesIO.js +145 -0
  113. package/lib/src/raw/core/GzipPacked.d.ts +10 -0
  114. package/lib/src/raw/core/GzipPacked.js +60 -0
  115. package/lib/src/raw/core/Message.d.ts +13 -0
  116. package/lib/src/raw/core/Message.js +81 -0
  117. package/lib/src/raw/core/MsgContainer.d.ts +11 -0
  118. package/lib/src/raw/core/MsgContainer.js +69 -0
  119. package/lib/src/raw/core/TLObject.d.ts +19 -0
  120. package/lib/src/raw/core/TLObject.js +108 -0
  121. package/lib/src/raw/core/UpdateSecretChat.d.ts +40 -0
  122. package/lib/src/raw/core/UpdateSecretChat.js +88 -0
  123. package/lib/src/raw/core/index.d.ts +8 -0
  124. package/lib/src/raw/core/index.js +52 -0
  125. package/lib/src/raw/core/primitive/Bool.d.ts +20 -0
  126. package/lib/src/raw/core/primitive/Bool.js +41 -0
  127. package/lib/src/raw/core/primitive/Bytes.d.ts +7 -0
  128. package/lib/src/raw/core/primitive/Bytes.js +41 -0
  129. package/lib/src/raw/core/primitive/Double.d.ts +7 -0
  130. package/lib/src/raw/core/primitive/Double.js +24 -0
  131. package/lib/src/raw/core/primitive/Float.d.ts +7 -0
  132. package/lib/src/raw/core/primitive/Float.js +24 -0
  133. package/lib/src/raw/core/primitive/Int.d.ts +23 -0
  134. package/lib/src/raw/core/primitive/Int.js +122 -0
  135. package/lib/src/raw/core/primitive/String.d.ts +7 -0
  136. package/lib/src/raw/core/primitive/String.js +15 -0
  137. package/lib/src/raw/core/primitive/Vector.d.ts +9 -0
  138. package/lib/src/raw/core/primitive/Vector.js +50 -0
  139. package/lib/src/raw/core/primitive/index.d.ts +7 -0
  140. package/lib/src/raw/core/primitive/index.js +22 -0
  141. package/lib/src/raw/index.d.ts +3 -0
  142. package/lib/src/raw/index.js +17 -0
  143. package/lib/src/session/Auth.d.ts +15 -0
  144. package/lib/src/session/Auth.js +254 -0
  145. package/lib/src/session/Session.d.ts +58 -0
  146. package/lib/src/session/Session.js +571 -0
  147. package/lib/src/session/index.d.ts +7 -0
  148. package/lib/src/session/index.js +49 -0
  149. package/lib/src/session/internals/DataCenter.d.ts +42 -0
  150. package/lib/src/session/internals/DataCenter.js +80 -0
  151. package/lib/src/session/internals/MsgFactory.d.ts +3 -0
  152. package/lib/src/session/internals/MsgFactory.js +23 -0
  153. package/lib/src/session/internals/MsgId.d.ts +9 -0
  154. package/lib/src/session/internals/MsgId.js +24 -0
  155. package/lib/src/session/internals/SeqNo.d.ts +6 -0
  156. package/lib/src/session/internals/SeqNo.js +18 -0
  157. package/lib/src/session/secretChats/SecretChat.d.ts +29 -0
  158. package/lib/src/session/secretChats/SecretChat.js +527 -0
  159. package/lib/src/session/secretChats/index.d.ts +1 -0
  160. package/lib/src/session/secretChats/index.js +5 -0
  161. package/lib/src/storage/Abstract.d.ts +68 -0
  162. package/lib/src/storage/Abstract.js +6 -0
  163. package/lib/src/storage/SecretChat.d.ts +42 -0
  164. package/lib/src/storage/SecretChat.js +99 -0
  165. package/lib/src/storage/Session.d.ts +63 -0
  166. package/lib/src/storage/Session.js +245 -0
  167. package/lib/src/storage/StringSession.d.ts +4 -0
  168. package/lib/src/storage/StringSession.js +77 -0
  169. package/lib/src/storage/index.d.ts +4 -0
  170. package/lib/src/storage/index.js +12 -0
  171. package/package.json +46 -0
@@ -0,0 +1,2945 @@
1
+ "use strict";
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.ThemeFormatInvalid = 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.StarrefAwaitingEnd = void 0;
13
+ 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.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 = 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 = void 0;
15
+ const RpcError_js_1 = require("../RpcError.js");
16
+ class BadRequest extends RpcError_js_1.RPCError {
17
+ code = 400;
18
+ name = 'BAD_REQUEST';
19
+ }
20
+ exports.BadRequest = BadRequest;
21
+ class AboutTooLong extends BadRequest {
22
+ id = 'ABOUT_TOO_LONG';
23
+ message = 'About string too long.';
24
+ }
25
+ exports.AboutTooLong = AboutTooLong;
26
+ class AccessTokenExpired extends BadRequest {
27
+ id = 'ACCESS_TOKEN_EXPIRED';
28
+ message = 'Access token expired.';
29
+ }
30
+ exports.AccessTokenExpired = AccessTokenExpired;
31
+ class AccessTokenInvalid extends BadRequest {
32
+ id = 'ACCESS_TOKEN_INVALID';
33
+ message = 'Access token invalid.';
34
+ }
35
+ exports.AccessTokenInvalid = AccessTokenInvalid;
36
+ class AddressInvalid extends BadRequest {
37
+ id = 'ADDRESS_INVALID';
38
+ message = 'The specified geopoint address is invalid.';
39
+ }
40
+ exports.AddressInvalid = AddressInvalid;
41
+ class AdminsTooMuch extends BadRequest {
42
+ id = 'ADMINS_TOO_MUCH';
43
+ message = 'There are too many admins.';
44
+ }
45
+ exports.AdminsTooMuch = AdminsTooMuch;
46
+ class AdminIdInvalid extends BadRequest {
47
+ id = 'ADMIN_ID_INVALID';
48
+ message = 'The specified admin ID is invalid.';
49
+ }
50
+ exports.AdminIdInvalid = AdminIdInvalid;
51
+ class AdminRankEmojiNotAllowed extends BadRequest {
52
+ id = 'ADMIN_RANK_EMOJI_NOT_ALLOWED';
53
+ message = 'An admin rank cannot contain emojis.';
54
+ }
55
+ exports.AdminRankEmojiNotAllowed = AdminRankEmojiNotAllowed;
56
+ class AdminRankInvalid extends BadRequest {
57
+ id = 'ADMIN_RANK_INVALID';
58
+ message = 'The specified admin rank is invalid.';
59
+ }
60
+ exports.AdminRankInvalid = AdminRankInvalid;
61
+ class AdminRightsEmpty extends BadRequest {
62
+ id = 'ADMIN_RIGHTS_EMPTY';
63
+ message = 'The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).';
64
+ }
65
+ exports.AdminRightsEmpty = AdminRightsEmpty;
66
+ class AdExpired extends BadRequest {
67
+ id = 'AD_EXPIRED';
68
+ message = 'The ad has expired (too old or not found).';
69
+ }
70
+ exports.AdExpired = AdExpired;
71
+ class AlbumPhotosTooMany extends BadRequest {
72
+ id = 'ALBUM_PHOTOS_TOO_MANY';
73
+ message = 'You have uploaded too many profile photos, delete some before retrying.';
74
+ }
75
+ exports.AlbumPhotosTooMany = AlbumPhotosTooMany;
76
+ class ApiIdInvalid extends BadRequest {
77
+ id = 'API_ID_INVALID';
78
+ message = 'API ID invalid.';
79
+ }
80
+ exports.ApiIdInvalid = ApiIdInvalid;
81
+ class ApiIdPublishedFlood extends BadRequest {
82
+ id = 'API_ID_PUBLISHED_FLOOD';
83
+ message = "This API id was published somewhere, you can't use it now.";
84
+ }
85
+ exports.ApiIdPublishedFlood = ApiIdPublishedFlood;
86
+ class ArticleTitleEmpty extends BadRequest {
87
+ id = 'ARTICLE_TITLE_EMPTY';
88
+ message = 'The title of the article is empty.';
89
+ }
90
+ exports.ArticleTitleEmpty = ArticleTitleEmpty;
91
+ class AudioContentUrlEmpty extends BadRequest {
92
+ id = 'AUDIO_CONTENT_URL_EMPTY';
93
+ message = 'The remote URL specified in the content field is empty.';
94
+ }
95
+ exports.AudioContentUrlEmpty = AudioContentUrlEmpty;
96
+ class AudioTitleEmpty extends BadRequest {
97
+ id = 'AUDIO_TITLE_EMPTY';
98
+ message = 'An empty audio title was provided.';
99
+ }
100
+ exports.AudioTitleEmpty = AudioTitleEmpty;
101
+ class AuthBytesInvalid extends BadRequest {
102
+ id = 'AUTH_BYTES_INVALID';
103
+ message = 'The provided authorization is invalid.';
104
+ }
105
+ exports.AuthBytesInvalid = AuthBytesInvalid;
106
+ class AuthTokenAlreadyAccepted extends BadRequest {
107
+ id = 'AUTH_TOKEN_ALREADY_ACCEPTED';
108
+ message = 'The specified auth token was already accepted.';
109
+ }
110
+ exports.AuthTokenAlreadyAccepted = AuthTokenAlreadyAccepted;
111
+ class AuthTokenException extends BadRequest {
112
+ id = 'AUTH_TOKEN_EXCEPTION';
113
+ message = 'An error occurred while importing the auth token.';
114
+ }
115
+ exports.AuthTokenException = AuthTokenException;
116
+ class AuthTokenExpired extends BadRequest {
117
+ id = 'AUTH_TOKEN_EXPIRED';
118
+ message = 'The authorization token has expired.';
119
+ }
120
+ exports.AuthTokenExpired = AuthTokenExpired;
121
+ class AuthTokenInvalid extends BadRequest {
122
+ id = 'AUTH_TOKEN_INVALID';
123
+ message = 'The specified auth token is invalid.';
124
+ }
125
+ exports.AuthTokenInvalid = AuthTokenInvalid;
126
+ class AuthTokenInvalidx extends BadRequest {
127
+ id = 'AUTH_TOKEN_INVALIDX';
128
+ message = 'The specified auth token is invalid.';
129
+ }
130
+ exports.AuthTokenInvalidx = AuthTokenInvalidx;
131
+ class AutoarchiveNotAvailable extends BadRequest {
132
+ id = 'AUTOARCHIVE_NOT_AVAILABLE';
133
+ message = 'The autoarchive setting is not available at this time: please check the value of the [autoarchive_setting_available field in client config »](https://core.telegram.org/api/config#client-configuration) before calling this method.';
134
+ }
135
+ exports.AutoarchiveNotAvailable = AutoarchiveNotAvailable;
136
+ class BalanceTooLow extends BadRequest {
137
+ id = 'BALANCE_TOO_LOW';
138
+ message = 'The transaction cannot be completed because the current [Telegram Stars balance](https://core.telegram.org/api/stars) is too low.';
139
+ }
140
+ exports.BalanceTooLow = BalanceTooLow;
141
+ class BankCardNumberInvalid extends BadRequest {
142
+ id = 'BANK_CARD_NUMBER_INVALID';
143
+ message = 'The specified card number is invalid.';
144
+ }
145
+ exports.BankCardNumberInvalid = BankCardNumberInvalid;
146
+ class BannedRightsInvalid extends BadRequest {
147
+ id = 'BANNED_RIGHTS_INVALID';
148
+ message = 'You provided some invalid flags in the banned rights.';
149
+ }
150
+ exports.BannedRightsInvalid = BannedRightsInvalid;
151
+ class BasePortLocInvalid extends BadRequest {
152
+ id = 'BASE_PORT_LOC_INVALID';
153
+ message = 'The base port location is invalid';
154
+ }
155
+ exports.BasePortLocInvalid = BasePortLocInvalid;
156
+ class BirthdayInvalid extends BadRequest {
157
+ id = 'BIRTHDAY_INVALID';
158
+ message = 'An invalid age was specified, must be between 0 and 150 years.';
159
+ }
160
+ exports.BirthdayInvalid = BirthdayInvalid;
161
+ class BoostsEmpty extends BadRequest {
162
+ id = 'BOOSTS_EMPTY';
163
+ message = 'No boost slots were specified.';
164
+ }
165
+ exports.BoostsEmpty = BoostsEmpty;
166
+ class BoostsRequired extends BadRequest {
167
+ id = 'BOOSTS_REQUIRED';
168
+ message = 'The specified channel must first be [boosted by its users](https://core.telegram.org/api/boost) in order to perform this action.';
169
+ }
170
+ exports.BoostsRequired = BoostsRequired;
171
+ class BoostNotModified extends BadRequest {
172
+ id = 'BOOST_NOT_MODIFIED';
173
+ message = "You're already [boosting](https://core.telegram.org/api/boost) the specified channel.";
174
+ }
175
+ exports.BoostNotModified = BoostNotModified;
176
+ class BoostPeerInvalid extends BadRequest {
177
+ id = 'BOOST_PEER_INVALID';
178
+ message = 'The specified `boost_peer` is invalid.';
179
+ }
180
+ exports.BoostPeerInvalid = BoostPeerInvalid;
181
+ class BotsTooMuch extends BadRequest {
182
+ id = 'BOTS_TOO_MUCH';
183
+ message = 'There are too many bots in this chat/channel.';
184
+ }
185
+ exports.BotsTooMuch = BotsTooMuch;
186
+ class BotAlreadyDisabled extends BadRequest {
187
+ id = 'BOT_ALREADY_DISABLED';
188
+ message = 'The connected business bot was already disabled for the specified peer.';
189
+ }
190
+ exports.BotAlreadyDisabled = BotAlreadyDisabled;
191
+ class BotAppBotInvalid extends BadRequest {
192
+ id = 'BOT_APP_BOT_INVALID';
193
+ message = 'The bot_id passed in the inputBotAppShortName constructor is invalid.';
194
+ }
195
+ exports.BotAppBotInvalid = BotAppBotInvalid;
196
+ class BotAppInvalid extends BadRequest {
197
+ id = 'BOT_APP_INVALID';
198
+ message = 'The specified bot app is invalid.';
199
+ }
200
+ exports.BotAppInvalid = BotAppInvalid;
201
+ class BotAppShortnameInvalid extends BadRequest {
202
+ id = 'BOT_APP_SHORTNAME_INVALID';
203
+ message = 'The specified bot app short name is invalid.';
204
+ }
205
+ exports.BotAppShortnameInvalid = BotAppShortnameInvalid;
206
+ class BotBusinessMissing extends BadRequest {
207
+ id = 'BOT_BUSINESS_MISSING';
208
+ message = 'The specified bot is not a business bot (the [user](https://core.telegram.org/constructor/user).`bot_business` flag is not set).';
209
+ }
210
+ exports.BotBusinessMissing = BotBusinessMissing;
211
+ class BotChannelsNa extends BadRequest {
212
+ id = 'BOT_CHANNELS_NA';
213
+ message = "Bots can't edit admin privileges.";
214
+ }
215
+ exports.BotChannelsNa = BotChannelsNa;
216
+ class BotCommandDescriptionInvalid extends BadRequest {
217
+ id = 'BOT_COMMAND_DESCRIPTION_INVALID';
218
+ message = 'The specified command description is invalid.';
219
+ }
220
+ exports.BotCommandDescriptionInvalid = BotCommandDescriptionInvalid;
221
+ class BotCommandInvalid extends BadRequest {
222
+ id = 'BOT_COMMAND_INVALID';
223
+ message = 'The specified command is invalid.';
224
+ }
225
+ exports.BotCommandInvalid = BotCommandInvalid;
226
+ class BotDomainInvalid extends BadRequest {
227
+ id = 'BOT_DOMAIN_INVALID';
228
+ message = 'Bot domain invalid.';
229
+ }
230
+ exports.BotDomainInvalid = BotDomainInvalid;
231
+ class BotGamesDisabled extends BadRequest {
232
+ id = 'BOT_GAMES_DISABLED';
233
+ message = "Games can't be sent to channels.";
234
+ }
235
+ exports.BotGamesDisabled = BotGamesDisabled;
236
+ class BotGroupsBlocked extends BadRequest {
237
+ id = 'BOT_GROUPS_BLOCKED';
238
+ message = "This bot can't be added to groups.";
239
+ }
240
+ exports.BotGroupsBlocked = BotGroupsBlocked;
241
+ class BotInlineDisabled extends BadRequest {
242
+ id = 'BOT_INLINE_DISABLED';
243
+ message = "This bot can't be used in inline mode.";
244
+ }
245
+ exports.BotInlineDisabled = BotInlineDisabled;
246
+ class BotInvalid extends BadRequest {
247
+ id = 'BOT_INVALID';
248
+ message = 'This is not a valid bot.';
249
+ }
250
+ exports.BotInvalid = BotInvalid;
251
+ class BotInvoiceInvalid extends BadRequest {
252
+ id = 'BOT_INVOICE_INVALID';
253
+ message = 'The specified invoice is invalid.';
254
+ }
255
+ exports.BotInvoiceInvalid = BotInvoiceInvalid;
256
+ class BotMethodInvalid extends BadRequest {
257
+ id = 'BOT_METHOD_INVALID';
258
+ message = 'The specified method cannot be used by bots.';
259
+ }
260
+ exports.BotMethodInvalid = BotMethodInvalid;
261
+ class BotMissing extends BadRequest {
262
+ id = 'BOT_MISSING';
263
+ message = "Only bots can call this method, please use [@stickers](https://t.me/stickers) if you're a user.";
264
+ }
265
+ exports.BotMissing = BotMissing;
266
+ class BotNotConnectedYet extends BadRequest {
267
+ id = 'BOT_NOT_CONNECTED_YET';
268
+ message = 'No [business bot](https://core.telegram.org/api/business#connected-bots) is connected to the currently logged in user.';
269
+ }
270
+ exports.BotNotConnectedYet = BotNotConnectedYet;
271
+ class BotOnesideNotAvail extends BadRequest {
272
+ id = 'BOT_ONESIDE_NOT_AVAIL';
273
+ message = "Bots can't pin messages in PM just for themselves.";
274
+ }
275
+ exports.BotOnesideNotAvail = BotOnesideNotAvail;
276
+ class BotPaymentsDisabled extends BadRequest {
277
+ id = 'BOT_PAYMENTS_DISABLED';
278
+ message = 'Please enable bot payments in botfather before calling this method.';
279
+ }
280
+ exports.BotPaymentsDisabled = BotPaymentsDisabled;
281
+ class BotPollsDisabled extends BadRequest {
282
+ id = 'BOT_POLLS_DISABLED';
283
+ message = 'Sending polls by bots has been disabled';
284
+ }
285
+ exports.BotPollsDisabled = BotPollsDisabled;
286
+ class BotResponseTimeout extends BadRequest {
287
+ id = 'BOT_RESPONSE_TIMEOUT';
288
+ message = 'A timeout occurred while fetching data from the bot.';
289
+ }
290
+ exports.BotResponseTimeout = BotResponseTimeout;
291
+ class BotScoreNotModified extends BadRequest {
292
+ id = 'BOT_SCORE_NOT_MODIFIED';
293
+ message = "The score wasn't modified.";
294
+ }
295
+ exports.BotScoreNotModified = BotScoreNotModified;
296
+ class BotWebviewDisabled extends BadRequest {
297
+ id = 'BOT_WEBVIEW_DISABLED';
298
+ message = 'A webview cannot be opened in the specified conditions: emitted for example if `from_bot_menu` or `url` are set and `peer` is not the chat with the bot.';
299
+ }
300
+ exports.BotWebviewDisabled = BotWebviewDisabled;
301
+ class BroadcastIdInvalid extends BadRequest {
302
+ id = 'BROADCAST_ID_INVALID';
303
+ message = 'Broadcast ID invalid.';
304
+ }
305
+ exports.BroadcastIdInvalid = BroadcastIdInvalid;
306
+ class BroadcastPublicVotersForbidden extends BadRequest {
307
+ id = 'BROADCAST_PUBLIC_VOTERS_FORBIDDEN';
308
+ message = "You can't forward polls with public voters.";
309
+ }
310
+ exports.BroadcastPublicVotersForbidden = BroadcastPublicVotersForbidden;
311
+ class BroadcastRequired extends BadRequest {
312
+ id = 'BROADCAST_REQUIRED';
313
+ message = 'This method can only be called on a channel, please use stats.getMegagroupStats for supergroups.';
314
+ }
315
+ exports.BroadcastRequired = BroadcastRequired;
316
+ class BusinessPeerInvalid extends BadRequest {
317
+ id = 'BUSINESS_PEER_INVALID';
318
+ message = "Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business#connected-bots).";
319
+ }
320
+ exports.BusinessPeerInvalid = BusinessPeerInvalid;
321
+ class BusinessPeerUsageMissing extends BadRequest {
322
+ id = 'BUSINESS_PEER_USAGE_MISSING';
323
+ message = "You cannot send a message to a user through a [business connection](https://core.telegram.org/api/business#connected-bots) if the user hasn't recently contacted us.";
324
+ }
325
+ exports.BusinessPeerUsageMissing = BusinessPeerUsageMissing;
326
+ class BusinessRecipientsEmpty extends BadRequest {
327
+ id = 'BUSINESS_RECIPIENTS_EMPTY';
328
+ message = "You didn't set any flag in inputBusinessBotRecipients, thus the bot cannot work with *any* peer.";
329
+ }
330
+ exports.BusinessRecipientsEmpty = BusinessRecipientsEmpty;
331
+ class BusinessWorkHoursEmpty extends BadRequest {
332
+ id = 'BUSINESS_WORK_HOURS_EMPTY';
333
+ message = 'No work hours were specified.';
334
+ }
335
+ exports.BusinessWorkHoursEmpty = BusinessWorkHoursEmpty;
336
+ class BusinessWorkHoursPeriodInvalid extends BadRequest {
337
+ id = 'BUSINESS_WORK_HOURS_PERIOD_INVALID';
338
+ message = 'The specified work hours are invalid, see [here »](https://core.telegram.org/api/business#opening-hours) for the exact requirements.';
339
+ }
340
+ exports.BusinessWorkHoursPeriodInvalid = BusinessWorkHoursPeriodInvalid;
341
+ class ButtonCopyTextInvalid extends BadRequest {
342
+ id = 'BUTTON_COPY_TEXT_INVALID';
343
+ message = 'The specified [keyboardButtonCopy](https://core.telegram.org/constructor/keyboardButtonCopy).`copy_text` is invalid.';
344
+ }
345
+ exports.ButtonCopyTextInvalid = ButtonCopyTextInvalid;
346
+ class ButtonDataInvalid extends BadRequest {
347
+ id = 'BUTTON_DATA_INVALID';
348
+ message = 'The data of one or more of the buttons you provided is invalid.';
349
+ }
350
+ exports.ButtonDataInvalid = ButtonDataInvalid;
351
+ class ButtonIdInvalid extends BadRequest {
352
+ id = 'BUTTON_ID_INVALID';
353
+ message = 'The specified button ID is invalid.';
354
+ }
355
+ exports.ButtonIdInvalid = ButtonIdInvalid;
356
+ class ButtonPosInvalid extends BadRequest {
357
+ id = 'BUTTON_POS_INVALID';
358
+ 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...).';
359
+ }
360
+ exports.ButtonPosInvalid = ButtonPosInvalid;
361
+ class ButtonTextInvalid extends BadRequest {
362
+ id = 'BUTTON_TEXT_INVALID';
363
+ message = 'The specified button text is invalid.';
364
+ }
365
+ exports.ButtonTextInvalid = ButtonTextInvalid;
366
+ class ButtonTypeInvalid extends BadRequest {
367
+ id = 'BUTTON_TYPE_INVALID';
368
+ message = 'The type of one or more of the buttons you provided is invalid.';
369
+ }
370
+ exports.ButtonTypeInvalid = ButtonTypeInvalid;
371
+ class ButtonUrlInvalid extends BadRequest {
372
+ id = 'BUTTON_URL_INVALID';
373
+ message = 'Button URL invalid.';
374
+ }
375
+ exports.ButtonUrlInvalid = ButtonUrlInvalid;
376
+ class ButtonUserInvalid extends BadRequest {
377
+ id = 'BUTTON_USER_INVALID';
378
+ message = 'The `user_id` passed to inputKeyboardButtonUserProfile is invalid!';
379
+ }
380
+ exports.ButtonUserInvalid = ButtonUserInvalid;
381
+ class ButtonUserPrivacyRestricted extends BadRequest {
382
+ id = 'BUTTON_USER_PRIVACY_RESTRICTED';
383
+ message = 'The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile) button do not allow creating such a button.';
384
+ }
385
+ exports.ButtonUserPrivacyRestricted = ButtonUserPrivacyRestricted;
386
+ class CallAlreadyAccepted extends BadRequest {
387
+ id = 'CALL_ALREADY_ACCEPTED';
388
+ message = 'The call was already accepted.';
389
+ }
390
+ exports.CallAlreadyAccepted = CallAlreadyAccepted;
391
+ class CallAlreadyDeclined extends BadRequest {
392
+ id = 'CALL_ALREADY_DECLINED';
393
+ message = 'The call was already declined.';
394
+ }
395
+ exports.CallAlreadyDeclined = CallAlreadyDeclined;
396
+ class CallOccupyFailed extends BadRequest {
397
+ id = 'CALL_OCCUPY_FAILED';
398
+ message = 'The call failed because the user is already making another call.';
399
+ }
400
+ exports.CallOccupyFailed = CallOccupyFailed;
401
+ class CallPeerInvalid extends BadRequest {
402
+ id = 'CALL_PEER_INVALID';
403
+ message = 'The provided call peer object is invalid.';
404
+ }
405
+ exports.CallPeerInvalid = CallPeerInvalid;
406
+ class CallProtocolFlagsInvalid extends BadRequest {
407
+ id = 'CALL_PROTOCOL_FLAGS_INVALID';
408
+ message = 'Call protocol flags invalid.';
409
+ }
410
+ exports.CallProtocolFlagsInvalid = CallProtocolFlagsInvalid;
411
+ class CdnMethodInvalid extends BadRequest {
412
+ id = 'CDN_METHOD_INVALID';
413
+ message = "You can't call this method in a CDN DC.";
414
+ }
415
+ exports.CdnMethodInvalid = CdnMethodInvalid;
416
+ class ChannelsAdminLocatedTooMuch extends BadRequest {
417
+ id = 'CHANNELS_ADMIN_LOCATED_TOO_MUCH';
418
+ message = 'The user has reached the limit of public geogroups.';
419
+ }
420
+ exports.ChannelsAdminLocatedTooMuch = ChannelsAdminLocatedTooMuch;
421
+ class ChannelsAdminPublicTooMuch extends BadRequest {
422
+ id = 'CHANNELS_ADMIN_PUBLIC_TOO_MUCH';
423
+ message = "You're admin of too many public channels, make some channels private to change the username of this channel.";
424
+ }
425
+ exports.ChannelsAdminPublicTooMuch = ChannelsAdminPublicTooMuch;
426
+ class ChannelsTooMuch extends BadRequest {
427
+ id = 'CHANNELS_TOO_MUCH';
428
+ message = 'You have joined too many channels/supergroups.';
429
+ }
430
+ exports.ChannelsTooMuch = ChannelsTooMuch;
431
+ class ChannelAddInvalid extends BadRequest {
432
+ id = 'CHANNEL_ADD_INVALID';
433
+ message = 'Internal error.';
434
+ }
435
+ exports.ChannelAddInvalid = ChannelAddInvalid;
436
+ class ChannelBanned extends BadRequest {
437
+ id = 'CHANNEL_BANNED';
438
+ message = 'The channel is banned';
439
+ }
440
+ exports.ChannelBanned = ChannelBanned;
441
+ class ChannelForumMissing extends BadRequest {
442
+ id = 'CHANNEL_FORUM_MISSING';
443
+ message = 'This supergroup is not a forum.';
444
+ }
445
+ exports.ChannelForumMissing = ChannelForumMissing;
446
+ class ChannelIdInvalid extends BadRequest {
447
+ id = 'CHANNEL_ID_INVALID';
448
+ message = 'The specified supergroup ID is invalid.';
449
+ }
450
+ exports.ChannelIdInvalid = ChannelIdInvalid;
451
+ class ChannelInvalid extends BadRequest {
452
+ id = 'CHANNEL_INVALID';
453
+ message = 'The provided channel is invalid.';
454
+ }
455
+ exports.ChannelInvalid = ChannelInvalid;
456
+ class ChannelParicipantMissing extends BadRequest {
457
+ id = 'CHANNEL_PARICIPANT_MISSING';
458
+ message = 'The current user is not in the channel.';
459
+ }
460
+ exports.ChannelParicipantMissing = ChannelParicipantMissing;
461
+ class ChannelPrivate extends BadRequest {
462
+ id = 'CHANNEL_PRIVATE';
463
+ message = "You haven't joined this channel/supergroup.";
464
+ }
465
+ exports.ChannelPrivate = ChannelPrivate;
466
+ class ChannelTooBig extends BadRequest {
467
+ id = 'CHANNEL_TOO_BIG';
468
+ message = 'This channel has too many participants (>1000) to be deleted.';
469
+ }
470
+ exports.ChannelTooBig = ChannelTooBig;
471
+ class ChannelTooLarge extends BadRequest {
472
+ id = 'CHANNEL_TOO_LARGE';
473
+ message = 'Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change).';
474
+ }
475
+ exports.ChannelTooLarge = ChannelTooLarge;
476
+ class ChargeAlreadyRefunded extends BadRequest {
477
+ id = 'CHARGE_ALREADY_REFUNDED';
478
+ message = 'The transaction was already refunded.';
479
+ }
480
+ exports.ChargeAlreadyRefunded = ChargeAlreadyRefunded;
481
+ class ChatlinksTooMuch extends BadRequest {
482
+ id = 'CHATLINKS_TOO_MUCH';
483
+ message = 'Too many [business chat links](https://core.telegram.org/api/business#business-chat-links) were created, please delete some older links.';
484
+ }
485
+ exports.ChatlinksTooMuch = ChatlinksTooMuch;
486
+ class ChatlinkSlugEmpty extends BadRequest {
487
+ id = 'CHATLINK_SLUG_EMPTY';
488
+ message = 'The specified slug is empty.';
489
+ }
490
+ exports.ChatlinkSlugEmpty = ChatlinkSlugEmpty;
491
+ class ChatlinkSlugExpired extends BadRequest {
492
+ id = 'CHATLINK_SLUG_EXPIRED';
493
+ message = 'The specified [business chat link](https://core.telegram.org/api/business#business-chat-links) has expired.';
494
+ }
495
+ exports.ChatlinkSlugExpired = ChatlinkSlugExpired;
496
+ class ChatlistsTooMuch extends BadRequest {
497
+ id = 'CHATLISTS_TOO_MUCH';
498
+ message = 'You have created too many folder links, hitting the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [limits »](https://core.telegram.org/api/config#chatlist-invites-limit-default).';
499
+ }
500
+ exports.ChatlistsTooMuch = ChatlistsTooMuch;
501
+ class ChatlistExcludeInvalid extends BadRequest {
502
+ id = 'CHATLIST_EXCLUDE_INVALID';
503
+ message = 'The specified `exclude_peers` are invalid.';
504
+ }
505
+ exports.ChatlistExcludeInvalid = ChatlistExcludeInvalid;
506
+ class ChatAboutNotModified extends BadRequest {
507
+ id = 'CHAT_ABOUT_NOT_MODIFIED';
508
+ message = 'About text has not changed.';
509
+ }
510
+ exports.ChatAboutNotModified = ChatAboutNotModified;
511
+ class ChatAboutTooLong extends BadRequest {
512
+ id = 'CHAT_ABOUT_TOO_LONG';
513
+ message = 'Chat about too long.';
514
+ }
515
+ exports.ChatAboutTooLong = ChatAboutTooLong;
516
+ class ChatAdminRequired extends BadRequest {
517
+ id = 'CHAT_ADMIN_REQUIRED';
518
+ message = 'You must be an admin in this chat to do this.';
519
+ }
520
+ exports.ChatAdminRequired = ChatAdminRequired;
521
+ class ChatDiscussionUnallowed extends BadRequest {
522
+ id = 'CHAT_DISCUSSION_UNALLOWED';
523
+ message = "You can't enable forum topics in a discussion group linked to a channel.";
524
+ }
525
+ exports.ChatDiscussionUnallowed = ChatDiscussionUnallowed;
526
+ class ChatForwardsRestricted extends BadRequest {
527
+ id = 'CHAT_FORWARDS_RESTRICTED';
528
+ message = "You can't forward messages from a protected chat.";
529
+ }
530
+ exports.ChatForwardsRestricted = ChatForwardsRestricted;
531
+ class ChatIdEmpty extends BadRequest {
532
+ id = 'CHAT_ID_EMPTY';
533
+ message = 'The provided chat ID is empty.';
534
+ }
535
+ exports.ChatIdEmpty = ChatIdEmpty;
536
+ class ChatIdInvalid extends BadRequest {
537
+ id = 'CHAT_ID_INVALID';
538
+ message = 'The provided chat id is invalid.';
539
+ }
540
+ exports.ChatIdInvalid = ChatIdInvalid;
541
+ class ChatInvalid extends BadRequest {
542
+ id = 'CHAT_INVALID';
543
+ message = 'Invalid chat.';
544
+ }
545
+ exports.ChatInvalid = ChatInvalid;
546
+ class ChatInvitePermanent extends BadRequest {
547
+ id = 'CHAT_INVITE_PERMANENT';
548
+ message = "You can't set an expiration date on permanent invite links.";
549
+ }
550
+ exports.ChatInvitePermanent = ChatInvitePermanent;
551
+ class ChatLinkExists extends BadRequest {
552
+ id = 'CHAT_LINK_EXISTS';
553
+ message = "The chat is public, you can't hide the history to new users.";
554
+ }
555
+ exports.ChatLinkExists = ChatLinkExists;
556
+ class ChatMemberAddFailed extends BadRequest {
557
+ id = 'CHAT_MEMBER_ADD_FAILED';
558
+ message = 'Could not add participants.';
559
+ }
560
+ exports.ChatMemberAddFailed = ChatMemberAddFailed;
561
+ class ChatNotModified extends BadRequest {
562
+ id = 'CHAT_NOT_MODIFIED';
563
+ message = 'No changes were made to chat information because the new information you passed is identical to the current information.';
564
+ }
565
+ exports.ChatNotModified = ChatNotModified;
566
+ class ChatPublicRequired extends BadRequest {
567
+ id = 'CHAT_PUBLIC_REQUIRED';
568
+ message = 'You can only enable join requests in public groups.';
569
+ }
570
+ exports.ChatPublicRequired = ChatPublicRequired;
571
+ class ChatRestricted extends BadRequest {
572
+ id = 'CHAT_RESTRICTED';
573
+ message = "You can't send messages in this chat, you were restricted.";
574
+ }
575
+ exports.ChatRestricted = ChatRestricted;
576
+ class ChatRevokeDateUnsupported extends BadRequest {
577
+ id = 'CHAT_REVOKE_DATE_UNSUPPORTED';
578
+ message = '`min_date` and `max_date` are not available for using with non-user peers.';
579
+ }
580
+ exports.ChatRevokeDateUnsupported = ChatRevokeDateUnsupported;
581
+ class ChatSendInlineForbidden extends BadRequest {
582
+ id = 'CHAT_SEND_INLINE_FORBIDDEN';
583
+ message = "You can't send inline messages in this group.";
584
+ }
585
+ exports.ChatSendInlineForbidden = ChatSendInlineForbidden;
586
+ class ChatTitleEmpty extends BadRequest {
587
+ id = 'CHAT_TITLE_EMPTY';
588
+ message = 'No chat title provided.';
589
+ }
590
+ exports.ChatTitleEmpty = ChatTitleEmpty;
591
+ class ChatTooBig extends BadRequest {
592
+ id = 'CHAT_TOO_BIG';
593
+ message = 'This method is not available for groups with more than `chat_read_mark_size_threshold` members, [see client configuration »](https://core.telegram.org/api/config#client-configuration).';
594
+ }
595
+ exports.ChatTooBig = ChatTooBig;
596
+ class CodeEmpty extends BadRequest {
597
+ id = 'CODE_EMPTY';
598
+ message = 'The provided code is empty.';
599
+ }
600
+ exports.CodeEmpty = CodeEmpty;
601
+ class CodeHashInvalid extends BadRequest {
602
+ id = 'CODE_HASH_INVALID';
603
+ message = 'Code hash invalid.';
604
+ }
605
+ exports.CodeHashInvalid = CodeHashInvalid;
606
+ class CodeInvalid extends BadRequest {
607
+ id = 'CODE_INVALID';
608
+ message = 'Code invalid.';
609
+ }
610
+ exports.CodeInvalid = CodeInvalid;
611
+ class CollectibleInvalid extends BadRequest {
612
+ id = 'COLLECTIBLE_INVALID';
613
+ message = 'The specified collectible is invalid.';
614
+ }
615
+ exports.CollectibleInvalid = CollectibleInvalid;
616
+ class CollectibleNotFound extends BadRequest {
617
+ id = 'COLLECTIBLE_NOT_FOUND';
618
+ message = 'The specified collectible could not be found.';
619
+ }
620
+ exports.CollectibleNotFound = CollectibleNotFound;
621
+ class ColorInvalid extends BadRequest {
622
+ id = 'COLOR_INVALID';
623
+ message = 'The specified color palette ID was invalid.';
624
+ }
625
+ exports.ColorInvalid = ColorInvalid;
626
+ class ConnectionApiIdInvalid extends BadRequest {
627
+ id = 'CONNECTION_API_ID_INVALID';
628
+ message = 'The provided API id is invalid.';
629
+ }
630
+ exports.ConnectionApiIdInvalid = ConnectionApiIdInvalid;
631
+ class ConnectionAppVersionEmpty extends BadRequest {
632
+ id = 'CONNECTION_APP_VERSION_EMPTY';
633
+ message = 'App version is empty.';
634
+ }
635
+ exports.ConnectionAppVersionEmpty = ConnectionAppVersionEmpty;
636
+ class ConnectionDeviceModelEmpty extends BadRequest {
637
+ id = 'CONNECTION_DEVICE_MODEL_EMPTY';
638
+ message = 'The specified device model is empty.';
639
+ }
640
+ exports.ConnectionDeviceModelEmpty = ConnectionDeviceModelEmpty;
641
+ class ConnectionIdInvalid extends BadRequest {
642
+ id = 'CONNECTION_ID_INVALID';
643
+ message = 'The specified connection ID is invalid.';
644
+ }
645
+ exports.ConnectionIdInvalid = ConnectionIdInvalid;
646
+ class ConnectionLangPackInvalid extends BadRequest {
647
+ id = 'CONNECTION_LANG_PACK_INVALID';
648
+ message = 'The specified language pack is empty.';
649
+ }
650
+ exports.ConnectionLangPackInvalid = ConnectionLangPackInvalid;
651
+ class ConnectionLayerInvalid extends BadRequest {
652
+ id = 'CONNECTION_LAYER_INVALID';
653
+ message = 'Layer invalid.';
654
+ }
655
+ exports.ConnectionLayerInvalid = ConnectionLayerInvalid;
656
+ class ConnectionNotInited extends BadRequest {
657
+ id = 'CONNECTION_NOT_INITED';
658
+ message = 'Please initialize the connection using initConnection before making queries.';
659
+ }
660
+ exports.ConnectionNotInited = ConnectionNotInited;
661
+ class ConnectionSystemEmpty extends BadRequest {
662
+ id = 'CONNECTION_SYSTEM_EMPTY';
663
+ message = 'The specified system version is empty.';
664
+ }
665
+ exports.ConnectionSystemEmpty = ConnectionSystemEmpty;
666
+ class ConnectionSystemLangCodeEmpty extends BadRequest {
667
+ id = 'CONNECTION_SYSTEM_LANG_CODE_EMPTY';
668
+ message = 'The specified system language code is empty.';
669
+ }
670
+ exports.ConnectionSystemLangCodeEmpty = ConnectionSystemLangCodeEmpty;
671
+ class ContactAddMissing extends BadRequest {
672
+ id = 'CONTACT_ADD_MISSING';
673
+ message = 'Contact to add is missing.';
674
+ }
675
+ exports.ContactAddMissing = ContactAddMissing;
676
+ class ContactIdInvalid extends BadRequest {
677
+ id = 'CONTACT_ID_INVALID';
678
+ message = 'The provided contact ID is invalid.';
679
+ }
680
+ exports.ContactIdInvalid = ContactIdInvalid;
681
+ class ContactMissing extends BadRequest {
682
+ id = 'CONTACT_MISSING';
683
+ message = 'The specified user is not a contact.';
684
+ }
685
+ exports.ContactMissing = ContactMissing;
686
+ class ContactNameEmpty extends BadRequest {
687
+ id = 'CONTACT_NAME_EMPTY';
688
+ message = 'Contact name empty.';
689
+ }
690
+ exports.ContactNameEmpty = ContactNameEmpty;
691
+ class ContactReqMissing extends BadRequest {
692
+ id = 'CONTACT_REQ_MISSING';
693
+ message = 'Missing contact request.';
694
+ }
695
+ exports.ContactReqMissing = ContactReqMissing;
696
+ class CreateCallFailed extends BadRequest {
697
+ id = 'CREATE_CALL_FAILED';
698
+ message = 'An error occurred while creating the call.';
699
+ }
700
+ exports.CreateCallFailed = CreateCallFailed;
701
+ class CurrencyTotalAmountInvalid extends BadRequest {
702
+ id = 'CURRENCY_TOTAL_AMOUNT_INVALID';
703
+ message = 'The total amount of all prices is invalid.';
704
+ }
705
+ exports.CurrencyTotalAmountInvalid = CurrencyTotalAmountInvalid;
706
+ class CustomReactionsTooMany extends BadRequest {
707
+ id = 'CUSTOM_REACTIONS_TOO_MANY';
708
+ message = 'Too many custom reactions were specified.';
709
+ }
710
+ exports.CustomReactionsTooMany = CustomReactionsTooMany;
711
+ class DataInvalid extends BadRequest {
712
+ id = 'DATA_INVALID';
713
+ message = 'Encrypted data invalid.';
714
+ }
715
+ exports.DataInvalid = DataInvalid;
716
+ class DataJsonInvalid extends BadRequest {
717
+ id = 'DATA_JSON_INVALID';
718
+ message = 'The provided JSON data is invalid.';
719
+ }
720
+ exports.DataJsonInvalid = DataJsonInvalid;
721
+ class DataTooLong extends BadRequest {
722
+ id = 'DATA_TOO_LONG';
723
+ message = 'Data too long.';
724
+ }
725
+ exports.DataTooLong = DataTooLong;
726
+ class DateEmpty extends BadRequest {
727
+ id = 'DATE_EMPTY';
728
+ message = 'Date empty.';
729
+ }
730
+ exports.DateEmpty = DateEmpty;
731
+ class DcIdInvalid extends BadRequest {
732
+ id = 'DC_ID_INVALID';
733
+ message = 'The provided DC ID is invalid.';
734
+ }
735
+ exports.DcIdInvalid = DcIdInvalid;
736
+ class DhGAInvalid extends BadRequest {
737
+ id = 'DH_G_A_INVALID';
738
+ message = 'g_a invalid.';
739
+ }
740
+ exports.DhGAInvalid = DhGAInvalid;
741
+ class DocumentInvalid extends BadRequest {
742
+ id = 'DOCUMENT_INVALID';
743
+ message = 'The specified document is invalid.';
744
+ }
745
+ exports.DocumentInvalid = DocumentInvalid;
746
+ class EmailHashExpired extends BadRequest {
747
+ id = 'EMAIL_HASH_EXPIRED';
748
+ message = 'Email hash expired.';
749
+ }
750
+ exports.EmailHashExpired = EmailHashExpired;
751
+ class EmailInvalid extends BadRequest {
752
+ id = 'EMAIL_INVALID';
753
+ message = 'The specified email is invalid.';
754
+ }
755
+ exports.EmailInvalid = EmailInvalid;
756
+ class EmailNotAllowed extends BadRequest {
757
+ id = 'EMAIL_NOT_ALLOWED';
758
+ message = 'The specified email cannot be used to complete the operation.';
759
+ }
760
+ exports.EmailNotAllowed = EmailNotAllowed;
761
+ class EmailNotSetup extends BadRequest {
762
+ id = 'EMAIL_NOT_SETUP';
763
+ message = 'In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup.';
764
+ }
765
+ exports.EmailNotSetup = EmailNotSetup;
766
+ class EmailUnconfirmed extends BadRequest {
767
+ id = 'EMAIL_UNCONFIRMED';
768
+ message = 'Email unconfirmed.';
769
+ }
770
+ exports.EmailUnconfirmed = EmailUnconfirmed;
771
+ class EmailUnconfirmedX extends BadRequest {
772
+ id = 'EMAIL_UNCONFIRMED_X';
773
+ message = "The provided email isn't confirmed, {value} is the length of the verification code that was just sent to the email: use [account.verifyEmail](https://core.telegram.org/method/account.verifyEmail) to enter the received verification code and enable the recovery email.";
774
+ }
775
+ exports.EmailUnconfirmedX = EmailUnconfirmedX;
776
+ class EmailVerifyExpired extends BadRequest {
777
+ id = 'EMAIL_VERIFY_EXPIRED';
778
+ message = 'The verification email has expired.';
779
+ }
780
+ exports.EmailVerifyExpired = EmailVerifyExpired;
781
+ class EmojiInvalid extends BadRequest {
782
+ id = 'EMOJI_INVALID';
783
+ message = 'The specified theme emoji is valid.';
784
+ }
785
+ exports.EmojiInvalid = EmojiInvalid;
786
+ class EmojiMarkupInvalid extends BadRequest {
787
+ id = 'EMOJI_MARKUP_INVALID';
788
+ message = 'The specified `video_emoji_markup` was invalid.';
789
+ }
790
+ exports.EmojiMarkupInvalid = EmojiMarkupInvalid;
791
+ class EmojiNotModified extends BadRequest {
792
+ id = 'EMOJI_NOT_MODIFIED';
793
+ message = "The theme wasn't changed.";
794
+ }
795
+ exports.EmojiNotModified = EmojiNotModified;
796
+ class EmoticonEmpty extends BadRequest {
797
+ id = 'EMOTICON_EMPTY';
798
+ message = 'The emoji is empty.';
799
+ }
800
+ exports.EmoticonEmpty = EmoticonEmpty;
801
+ class EmoticonInvalid extends BadRequest {
802
+ id = 'EMOTICON_INVALID';
803
+ message = 'The specified emoji is invalid.';
804
+ }
805
+ exports.EmoticonInvalid = EmoticonInvalid;
806
+ class EmoticonStickerpackMissing extends BadRequest {
807
+ id = 'EMOTICON_STICKERPACK_MISSING';
808
+ message = 'inputStickerSetDice.emoji cannot be empty.';
809
+ }
810
+ exports.EmoticonStickerpackMissing = EmoticonStickerpackMissing;
811
+ class EncryptedMessageInvalid extends BadRequest {
812
+ id = 'ENCRYPTED_MESSAGE_INVALID';
813
+ message = 'Encrypted message invalid.';
814
+ }
815
+ exports.EncryptedMessageInvalid = EncryptedMessageInvalid;
816
+ class EncryptionAlreadyAccepted extends BadRequest {
817
+ id = 'ENCRYPTION_ALREADY_ACCEPTED';
818
+ message = 'Secret chat already accepted.';
819
+ }
820
+ exports.EncryptionAlreadyAccepted = EncryptionAlreadyAccepted;
821
+ class EncryptionAlreadyDeclined extends BadRequest {
822
+ id = 'ENCRYPTION_ALREADY_DECLINED';
823
+ message = 'The secret chat was already declined.';
824
+ }
825
+ exports.EncryptionAlreadyDeclined = EncryptionAlreadyDeclined;
826
+ class EncryptionDeclined extends BadRequest {
827
+ id = 'ENCRYPTION_DECLINED';
828
+ message = 'The secret chat was declined.';
829
+ }
830
+ exports.EncryptionDeclined = EncryptionDeclined;
831
+ class EncryptionIdInvalid extends BadRequest {
832
+ id = 'ENCRYPTION_ID_INVALID';
833
+ message = 'The provided secret chat ID is invalid.';
834
+ }
835
+ exports.EncryptionIdInvalid = EncryptionIdInvalid;
836
+ class EntitiesTooLong extends BadRequest {
837
+ id = 'ENTITIES_TOO_LONG';
838
+ message = 'You provided too many styled message entities.';
839
+ }
840
+ exports.EntitiesTooLong = EntitiesTooLong;
841
+ class EntityBoundsInvalid extends BadRequest {
842
+ id = 'ENTITY_BOUNDS_INVALID';
843
+ message = 'A specified [entity offset or length](https://core.telegram.org/api/entities#entity-length) is invalid, see [here »](https://core.telegram.org/api/entities#entity-length) for info on how to properly compute the entity offset/length.';
844
+ }
845
+ exports.EntityBoundsInvalid = EntityBoundsInvalid;
846
+ class EntityMentionUserInvalid extends BadRequest {
847
+ id = 'ENTITY_MENTION_USER_INVALID';
848
+ message = 'You mentioned an invalid user.';
849
+ }
850
+ exports.EntityMentionUserInvalid = EntityMentionUserInvalid;
851
+ class ErrorTextEmpty extends BadRequest {
852
+ id = 'ERROR_TEXT_EMPTY';
853
+ message = 'The provided error message is empty.';
854
+ }
855
+ exports.ErrorTextEmpty = ErrorTextEmpty;
856
+ class ExpireDateInvalid extends BadRequest {
857
+ id = 'EXPIRE_DATE_INVALID';
858
+ message = 'The specified expiration date is invalid.';
859
+ }
860
+ exports.ExpireDateInvalid = ExpireDateInvalid;
861
+ class ExportCardInvalid extends BadRequest {
862
+ id = 'EXPORT_CARD_INVALID';
863
+ message = 'Provided card is invalid.';
864
+ }
865
+ exports.ExportCardInvalid = ExportCardInvalid;
866
+ class ExtendedMediaAmountInvalid extends BadRequest {
867
+ id = 'EXTENDED_MEDIA_AMOUNT_INVALID';
868
+ message = 'The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.';
869
+ }
870
+ exports.ExtendedMediaAmountInvalid = ExtendedMediaAmountInvalid;
871
+ class ExternalUrlInvalid extends BadRequest {
872
+ id = 'EXTERNAL_URL_INVALID';
873
+ message = 'External URL invalid.';
874
+ }
875
+ exports.ExternalUrlInvalid = ExternalUrlInvalid;
876
+ class FieldNameEmpty extends BadRequest {
877
+ id = 'FIELD_NAME_EMPTY';
878
+ message = 'The field with the name FIELD_NAME is missing';
879
+ }
880
+ exports.FieldNameEmpty = FieldNameEmpty;
881
+ class FieldNameInvalid extends BadRequest {
882
+ id = 'FIELD_NAME_INVALID';
883
+ message = 'The field with the name FIELD_NAME is invalid';
884
+ }
885
+ exports.FieldNameInvalid = FieldNameInvalid;
886
+ class FileContentTypeInvalid extends BadRequest {
887
+ id = 'FILE_CONTENT_TYPE_INVALID';
888
+ message = 'File content-type is invalid.';
889
+ }
890
+ exports.FileContentTypeInvalid = FileContentTypeInvalid;
891
+ class FileEmtpy extends BadRequest {
892
+ id = 'FILE_EMTPY';
893
+ message = 'An empty file was provided.';
894
+ }
895
+ exports.FileEmtpy = FileEmtpy;
896
+ class FileIdInvalid extends BadRequest {
897
+ id = 'FILE_ID_INVALID';
898
+ message = 'The provided file id is invalid.';
899
+ }
900
+ exports.FileIdInvalid = FileIdInvalid;
901
+ class FileMigrate extends BadRequest {
902
+ id = 'FILE_MIGRATE_X';
903
+ message = 'The file currently being accessed is stored in DC {value}, please re-send the query to that DC.';
904
+ }
905
+ exports.FileMigrate = FileMigrate;
906
+ class FilePartsInvalid extends BadRequest {
907
+ id = 'FILE_PARTS_INVALID';
908
+ message = 'The number of file parts is invalid.';
909
+ }
910
+ exports.FilePartsInvalid = FilePartsInvalid;
911
+ class FilePartEmpty extends BadRequest {
912
+ id = 'FILE_PART_EMPTY';
913
+ message = 'The provided file part is empty.';
914
+ }
915
+ exports.FilePartEmpty = FilePartEmpty;
916
+ class FilePartInvalid extends BadRequest {
917
+ id = 'FILE_PART_INVALID';
918
+ message = 'The file part number is invalid.';
919
+ }
920
+ exports.FilePartInvalid = FilePartInvalid;
921
+ class FilePartLengthInvalid extends BadRequest {
922
+ id = 'FILE_PART_LENGTH_INVALID';
923
+ message = 'The length of a file part is invalid.';
924
+ }
925
+ exports.FilePartLengthInvalid = FilePartLengthInvalid;
926
+ class FilePartSizeChanged extends BadRequest {
927
+ id = 'FILE_PART_SIZE_CHANGED';
928
+ message = 'Provided file part size has changed.';
929
+ }
930
+ exports.FilePartSizeChanged = FilePartSizeChanged;
931
+ class FilePartSizeInvalid extends BadRequest {
932
+ id = 'FILE_PART_SIZE_INVALID';
933
+ message = 'The provided file part size is invalid.';
934
+ }
935
+ exports.FilePartSizeInvalid = FilePartSizeInvalid;
936
+ class FilePartTooBig extends BadRequest {
937
+ id = 'FILE_PART_TOO_BIG';
938
+ message = 'The uploaded file part is too big.';
939
+ }
940
+ exports.FilePartTooBig = FilePartTooBig;
941
+ class FilePartTooSmall extends BadRequest {
942
+ id = 'FILE_PART_TOO_SMALL';
943
+ message = 'The size of the uploaded file part is too small, please see the documentation for the allowed sizes.';
944
+ }
945
+ exports.FilePartTooSmall = FilePartTooSmall;
946
+ class FilePartMissing extends BadRequest {
947
+ id = 'FILE_PART_X_MISSING';
948
+ message = 'Part {value} of the file is missing from storage. Try repeating the method call to resave the part.';
949
+ }
950
+ exports.FilePartMissing = FilePartMissing;
951
+ class FileReferenceAny extends BadRequest {
952
+ id = 'FILE_REFERENCE_*';
953
+ message = 'The file reference expired, it [must be refreshed](https://core.telegram.org/api/file_reference).';
954
+ }
955
+ exports.FileReferenceAny = FileReferenceAny;
956
+ class FileReferenceEmpty extends BadRequest {
957
+ id = 'FILE_REFERENCE_EMPTY';
958
+ message = 'An empty [file reference](https://core.telegram.org/api/file_reference) was specified.';
959
+ }
960
+ exports.FileReferenceEmpty = FileReferenceEmpty;
961
+ class FileReferenceExpired extends BadRequest {
962
+ 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).';
964
+ }
965
+ exports.FileReferenceExpired = FileReferenceExpired;
966
+ class FileReferenceInvalid extends BadRequest {
967
+ id = 'FILE_REFERENCE_INVALID';
968
+ message = 'The specified [file reference](https://core.telegram.org/api/file_reference) is invalid.';
969
+ }
970
+ exports.FileReferenceInvalid = FileReferenceInvalid;
971
+ class FileReferenceXExpired extends BadRequest {
972
+ 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).';
974
+ }
975
+ exports.FileReferenceXExpired = FileReferenceXExpired;
976
+ class FileReferenceXInvalid extends BadRequest {
977
+ id = 'FILE_REFERENCE_X_INVALID';
978
+ message = 'The file reference of the media file at index {value} in the passed media array is invalid.';
979
+ }
980
+ exports.FileReferenceXInvalid = FileReferenceXInvalid;
981
+ class FileTitleEmpty extends BadRequest {
982
+ id = 'FILE_TITLE_EMPTY';
983
+ message = 'An empty file title was specified.';
984
+ }
985
+ exports.FileTitleEmpty = FileTitleEmpty;
986
+ class FileTokenInvalid extends BadRequest {
987
+ id = 'FILE_TOKEN_INVALID';
988
+ message = 'The master DC did not accept the `file_token` (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.';
989
+ }
990
+ exports.FileTokenInvalid = FileTokenInvalid;
991
+ class FilterIdInvalid extends BadRequest {
992
+ id = 'FILTER_ID_INVALID';
993
+ message = 'The specified filter ID is invalid.';
994
+ }
995
+ exports.FilterIdInvalid = FilterIdInvalid;
996
+ class FilterIncludeEmpty extends BadRequest {
997
+ id = 'FILTER_INCLUDE_EMPTY';
998
+ message = 'The include_peers vector of the filter is empty.';
999
+ }
1000
+ exports.FilterIncludeEmpty = FilterIncludeEmpty;
1001
+ class FilterNotSupported extends BadRequest {
1002
+ id = 'FILTER_NOT_SUPPORTED';
1003
+ message = 'The specified filter cannot be used in this context.';
1004
+ }
1005
+ exports.FilterNotSupported = FilterNotSupported;
1006
+ class FilterTitleEmpty extends BadRequest {
1007
+ id = 'FILTER_TITLE_EMPTY';
1008
+ message = 'The title field of the filter is empty.';
1009
+ }
1010
+ exports.FilterTitleEmpty = FilterTitleEmpty;
1011
+ class FirstnameInvalid extends BadRequest {
1012
+ id = 'FIRSTNAME_INVALID';
1013
+ message = 'The first name is invalid.';
1014
+ }
1015
+ exports.FirstnameInvalid = FirstnameInvalid;
1016
+ class FolderIdEmpty extends BadRequest {
1017
+ id = 'FOLDER_ID_EMPTY';
1018
+ message = 'An empty folder ID was specified.';
1019
+ }
1020
+ exports.FolderIdEmpty = FolderIdEmpty;
1021
+ class FolderIdInvalid extends BadRequest {
1022
+ id = 'FOLDER_ID_INVALID';
1023
+ message = 'Invalid folder ID.';
1024
+ }
1025
+ exports.FolderIdInvalid = FolderIdInvalid;
1026
+ class FormExpired extends BadRequest {
1027
+ id = 'FORM_EXPIRED';
1028
+ message = 'The form was generated more than 10 minutes ago and has expired, please re-generate it using [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm) and pass the new `form_id`.';
1029
+ }
1030
+ exports.FormExpired = FormExpired;
1031
+ class FormIdEmpty extends BadRequest {
1032
+ id = 'FORM_ID_EMPTY';
1033
+ message = 'The specified form ID is empty.';
1034
+ }
1035
+ exports.FormIdEmpty = FormIdEmpty;
1036
+ class FormUnsupported extends BadRequest {
1037
+ id = 'FORM_UNSUPPORTED';
1038
+ message = 'Please update your client.';
1039
+ }
1040
+ exports.FormUnsupported = FormUnsupported;
1041
+ class ForumEnabled extends BadRequest {
1042
+ id = 'FORUM_ENABLED';
1043
+ message = "You can't execute the specified action because the group is a [forum](https://core.telegram.org/api/forum), disable forum functionality to continue.";
1044
+ }
1045
+ exports.ForumEnabled = ForumEnabled;
1046
+ class FreshChangeAdminsForbidden extends BadRequest {
1047
+ id = 'FRESH_CHANGE_ADMINS_FORBIDDEN';
1048
+ message = "You were just elected admin, you can't add or modify other admins yet.";
1049
+ }
1050
+ exports.FreshChangeAdminsForbidden = FreshChangeAdminsForbidden;
1051
+ class FromMessageBotDisabled extends BadRequest {
1052
+ id = 'FROM_MESSAGE_BOT_DISABLED';
1053
+ message = "Bots can't use fromMessage min constructors.";
1054
+ }
1055
+ exports.FromMessageBotDisabled = FromMessageBotDisabled;
1056
+ class FromPeerInvalid extends BadRequest {
1057
+ id = 'FROM_PEER_INVALID';
1058
+ message = 'The specified from_id is invalid.';
1059
+ }
1060
+ exports.FromPeerInvalid = FromPeerInvalid;
1061
+ class GameBotInvalid extends BadRequest {
1062
+ id = 'GAME_BOT_INVALID';
1063
+ message = "Bots can't send another bot's game.";
1064
+ }
1065
+ exports.GameBotInvalid = GameBotInvalid;
1066
+ class GeneralModifyIconForbidden extends BadRequest {
1067
+ id = 'GENERAL_MODIFY_ICON_FORBIDDEN';
1068
+ message = 'You can\'t modify the icon of the "General" topic.';
1069
+ }
1070
+ exports.GeneralModifyIconForbidden = GeneralModifyIconForbidden;
1071
+ class GeoPointInvalid extends BadRequest {
1072
+ id = 'GEO_POINT_INVALID';
1073
+ message = 'Invalid geoposition provided.';
1074
+ }
1075
+ exports.GeoPointInvalid = GeoPointInvalid;
1076
+ class GiftSlugExpired extends BadRequest {
1077
+ id = 'GIFT_SLUG_EXPIRED';
1078
+ message = 'The specified gift slug has expired.';
1079
+ }
1080
+ exports.GiftSlugExpired = GiftSlugExpired;
1081
+ class GiftSlugInvalid extends BadRequest {
1082
+ id = 'GIFT_SLUG_INVALID';
1083
+ message = 'The specified slug is invalid.';
1084
+ }
1085
+ exports.GiftSlugInvalid = GiftSlugInvalid;
1086
+ class GifContentTypeInvalid extends BadRequest {
1087
+ id = 'GIF_CONTENT_TYPE_INVALID';
1088
+ message = 'GIF content-type invalid.';
1089
+ }
1090
+ exports.GifContentTypeInvalid = GifContentTypeInvalid;
1091
+ class GifIdInvalid extends BadRequest {
1092
+ id = 'GIF_ID_INVALID';
1093
+ message = 'The provided GIF ID is invalid.';
1094
+ }
1095
+ exports.GifIdInvalid = GifIdInvalid;
1096
+ class GraphExpiredReload extends BadRequest {
1097
+ id = 'GRAPH_EXPIRED_RELOAD';
1098
+ message = 'This graph has expired, please obtain a new graph token.';
1099
+ }
1100
+ exports.GraphExpiredReload = GraphExpiredReload;
1101
+ class GraphInvalidReload extends BadRequest {
1102
+ id = 'GRAPH_INVALID_RELOAD';
1103
+ message = 'Invalid graph token provided, please reload the stats and provide the updated token.';
1104
+ }
1105
+ exports.GraphInvalidReload = GraphInvalidReload;
1106
+ class GraphOutdatedReload extends BadRequest {
1107
+ id = 'GRAPH_OUTDATED_RELOAD';
1108
+ message = 'The graph is outdated, please get a new async token using stats.getBroadcastStats.';
1109
+ }
1110
+ exports.GraphOutdatedReload = GraphOutdatedReload;
1111
+ class GroupcallAlreadyDiscarded extends BadRequest {
1112
+ id = 'GROUPCALL_ALREADY_DISCARDED';
1113
+ message = 'The group call was already discarded.';
1114
+ }
1115
+ exports.GroupcallAlreadyDiscarded = GroupcallAlreadyDiscarded;
1116
+ class GroupcallForbidden extends BadRequest {
1117
+ id = 'GROUPCALL_FORBIDDEN';
1118
+ message = 'The group call has already ended.';
1119
+ }
1120
+ exports.GroupcallForbidden = GroupcallForbidden;
1121
+ class GroupcallInvalid extends BadRequest {
1122
+ id = 'GROUPCALL_INVALID';
1123
+ message = 'The specified group call is invalid.';
1124
+ }
1125
+ exports.GroupcallInvalid = GroupcallInvalid;
1126
+ class GroupcallJoinMissing extends BadRequest {
1127
+ id = 'GROUPCALL_JOIN_MISSING';
1128
+ message = "You haven't joined this group call.";
1129
+ }
1130
+ exports.GroupcallJoinMissing = GroupcallJoinMissing;
1131
+ class GroupcallNotModified extends BadRequest {
1132
+ id = 'GROUPCALL_NOT_MODIFIED';
1133
+ message = "Group call settings weren't modified.";
1134
+ }
1135
+ exports.GroupcallNotModified = GroupcallNotModified;
1136
+ class GroupcallSsrcDuplicateMuch extends BadRequest {
1137
+ id = 'GROUPCALL_SSRC_DUPLICATE_MUCH';
1138
+ message = 'The app needs to retry joining the group call with a new SSRC value.';
1139
+ }
1140
+ exports.GroupcallSsrcDuplicateMuch = GroupcallSsrcDuplicateMuch;
1141
+ class GroupedMediaInvalid extends BadRequest {
1142
+ id = 'GROUPED_MEDIA_INVALID';
1143
+ message = 'Invalid grouped media.';
1144
+ }
1145
+ exports.GroupedMediaInvalid = GroupedMediaInvalid;
1146
+ class GroupCallInvalid extends BadRequest {
1147
+ id = 'GROUP_CALL_INVALID';
1148
+ message = 'The group call is invalid';
1149
+ }
1150
+ exports.GroupCallInvalid = GroupCallInvalid;
1151
+ class HashtagInvalid extends BadRequest {
1152
+ id = 'HASHTAG_INVALID';
1153
+ message = 'The specified hashtag is invalid.';
1154
+ }
1155
+ exports.HashtagInvalid = HashtagInvalid;
1156
+ class HashInvalid extends BadRequest {
1157
+ id = 'HASH_INVALID';
1158
+ message = 'The provided hash is invalid.';
1159
+ }
1160
+ exports.HashInvalid = HashInvalid;
1161
+ class HideRequesterMissing extends BadRequest {
1162
+ id = 'HIDE_REQUESTER_MISSING';
1163
+ message = 'The join request was missing or was already handled.';
1164
+ }
1165
+ exports.HideRequesterMissing = HideRequesterMissing;
1166
+ class IdExpired extends BadRequest {
1167
+ id = 'ID_EXPIRED';
1168
+ message = 'The passed prepared inline message ID has expired.';
1169
+ }
1170
+ exports.IdExpired = IdExpired;
1171
+ class IdInvalid extends BadRequest {
1172
+ id = 'ID_INVALID';
1173
+ message = 'The passed ID is invalid.';
1174
+ }
1175
+ exports.IdInvalid = IdInvalid;
1176
+ class ImageProcessFailed extends BadRequest {
1177
+ id = 'IMAGE_PROCESS_FAILED';
1178
+ message = 'Failure while processing image.';
1179
+ }
1180
+ exports.ImageProcessFailed = ImageProcessFailed;
1181
+ class ImportFileInvalid extends BadRequest {
1182
+ id = 'IMPORT_FILE_INVALID';
1183
+ message = 'The specified chat export file is invalid.';
1184
+ }
1185
+ exports.ImportFileInvalid = ImportFileInvalid;
1186
+ class ImportFormatDateInvalid extends BadRequest {
1187
+ id = 'IMPORT_FORMAT_DATE_INVALID';
1188
+ message = 'The date specified in the import file is invalid.';
1189
+ }
1190
+ exports.ImportFormatDateInvalid = ImportFormatDateInvalid;
1191
+ class ImportFormatUnrecognized extends BadRequest {
1192
+ id = 'IMPORT_FORMAT_UNRECOGNIZED';
1193
+ message = 'The specified chat export file was exported from an unsupported chat app.';
1194
+ }
1195
+ exports.ImportFormatUnrecognized = ImportFormatUnrecognized;
1196
+ class ImportHistoryLogEmpty extends BadRequest {
1197
+ id = 'IMPORT_HISTORY_LOG_EMPTY';
1198
+ message = '';
1199
+ }
1200
+ exports.ImportHistoryLogEmpty = ImportHistoryLogEmpty;
1201
+ class ImportIdInvalid extends BadRequest {
1202
+ id = 'IMPORT_ID_INVALID';
1203
+ message = 'The specified import ID is invalid.';
1204
+ }
1205
+ exports.ImportIdInvalid = ImportIdInvalid;
1206
+ class ImportTokenInvalid extends BadRequest {
1207
+ id = 'IMPORT_TOKEN_INVALID';
1208
+ message = 'The specified token is invalid.';
1209
+ }
1210
+ exports.ImportTokenInvalid = ImportTokenInvalid;
1211
+ class InlineResultExpired extends BadRequest {
1212
+ id = 'INLINE_RESULT_EXPIRED';
1213
+ message = 'The inline query expired.';
1214
+ }
1215
+ exports.InlineResultExpired = InlineResultExpired;
1216
+ class InputChatlistInvalid extends BadRequest {
1217
+ id = 'INPUT_CHATLIST_INVALID';
1218
+ message = 'The specified folder is invalid.';
1219
+ }
1220
+ exports.InputChatlistInvalid = InputChatlistInvalid;
1221
+ class InputConstructorInvalid extends BadRequest {
1222
+ id = 'INPUT_CONSTRUCTOR_INVALID';
1223
+ message = 'The specified TL constructor is invalid.';
1224
+ }
1225
+ exports.InputConstructorInvalid = InputConstructorInvalid;
1226
+ class InputFetchError extends BadRequest {
1227
+ id = 'INPUT_FETCH_ERROR';
1228
+ message = 'An error occurred while parsing the provided TL constructor.';
1229
+ }
1230
+ exports.InputFetchError = InputFetchError;
1231
+ class InputFetchFail extends BadRequest {
1232
+ id = 'INPUT_FETCH_FAIL';
1233
+ message = 'An error occurred while parsing the provided TL constructor.';
1234
+ }
1235
+ exports.InputFetchFail = InputFetchFail;
1236
+ class InputFileInvalid extends BadRequest {
1237
+ id = 'INPUT_FILE_INVALID';
1238
+ message = 'The specified [InputFile](https://core.telegram.org/type/InputFile) is invalid.';
1239
+ }
1240
+ exports.InputFileInvalid = InputFileInvalid;
1241
+ class InputFilterInvalid extends BadRequest {
1242
+ id = 'INPUT_FILTER_INVALID';
1243
+ message = 'The specified filter is invalid.';
1244
+ }
1245
+ exports.InputFilterInvalid = InputFilterInvalid;
1246
+ class InputLayerInvalid extends BadRequest {
1247
+ id = 'INPUT_LAYER_INVALID';
1248
+ message = 'The specified layer is invalid.';
1249
+ }
1250
+ exports.InputLayerInvalid = InputLayerInvalid;
1251
+ class InputMethodInvalid extends BadRequest {
1252
+ id = 'INPUT_METHOD_INVALID';
1253
+ message = 'The specified method is invalid.';
1254
+ }
1255
+ exports.InputMethodInvalid = InputMethodInvalid;
1256
+ class InputPeersEmpty extends BadRequest {
1257
+ id = 'INPUT_PEERS_EMPTY';
1258
+ message = 'The specified peer array is empty.';
1259
+ }
1260
+ exports.InputPeersEmpty = InputPeersEmpty;
1261
+ class InputRequestTooLong extends BadRequest {
1262
+ id = 'INPUT_REQUEST_TOO_LONG';
1263
+ message = 'The request payload is too long.';
1264
+ }
1265
+ exports.InputRequestTooLong = InputRequestTooLong;
1266
+ class InputTextEmpty extends BadRequest {
1267
+ id = 'INPUT_TEXT_EMPTY';
1268
+ message = 'The specified text is empty.';
1269
+ }
1270
+ exports.InputTextEmpty = InputTextEmpty;
1271
+ class InputTextTooLong extends BadRequest {
1272
+ id = 'INPUT_TEXT_TOO_LONG';
1273
+ message = 'The specified text is too long.';
1274
+ }
1275
+ exports.InputTextTooLong = InputTextTooLong;
1276
+ class InputUserDeactivated extends BadRequest {
1277
+ id = 'INPUT_USER_DEACTIVATED';
1278
+ message = 'The specified user was deleted.';
1279
+ }
1280
+ exports.InputUserDeactivated = InputUserDeactivated;
1281
+ class InvitesTooMuch extends BadRequest {
1282
+ id = 'INVITES_TOO_MUCH';
1283
+ message = 'The maximum number of per-folder invites specified by the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [client configuration parameters »](https://core.telegram.org/api/config#chatlist-invites-limit-default) was reached.';
1284
+ }
1285
+ exports.InvitesTooMuch = InvitesTooMuch;
1286
+ class InviteForbiddenWithJoinas extends BadRequest {
1287
+ id = 'INVITE_FORBIDDEN_WITH_JOINAS';
1288
+ message = "If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID.";
1289
+ }
1290
+ exports.InviteForbiddenWithJoinas = InviteForbiddenWithJoinas;
1291
+ class InviteHashEmpty extends BadRequest {
1292
+ id = 'INVITE_HASH_EMPTY';
1293
+ message = 'The invite hash is empty.';
1294
+ }
1295
+ exports.InviteHashEmpty = InviteHashEmpty;
1296
+ class InviteHashExpired extends BadRequest {
1297
+ id = 'INVITE_HASH_EXPIRED';
1298
+ message = 'The invite link has expired.';
1299
+ }
1300
+ exports.InviteHashExpired = InviteHashExpired;
1301
+ class InviteHashInvalid extends BadRequest {
1302
+ id = 'INVITE_HASH_INVALID';
1303
+ message = 'The invite hash is invalid.';
1304
+ }
1305
+ exports.InviteHashInvalid = InviteHashInvalid;
1306
+ class InviteRequestSent extends BadRequest {
1307
+ id = 'INVITE_REQUEST_SENT';
1308
+ message = 'You have successfully requested to join this chat or channel.';
1309
+ }
1310
+ exports.InviteRequestSent = InviteRequestSent;
1311
+ class InviteRevokedMissing extends BadRequest {
1312
+ id = 'INVITE_REVOKED_MISSING';
1313
+ message = 'The specified invite link was already revoked or is invalid.';
1314
+ }
1315
+ exports.InviteRevokedMissing = InviteRevokedMissing;
1316
+ class InviteSlugEmpty extends BadRequest {
1317
+ id = 'INVITE_SLUG_EMPTY';
1318
+ message = 'The specified invite slug is empty.';
1319
+ }
1320
+ exports.InviteSlugEmpty = InviteSlugEmpty;
1321
+ class InviteSlugExpired extends BadRequest {
1322
+ id = 'INVITE_SLUG_EXPIRED';
1323
+ message = 'The specified chat folder link has expired.';
1324
+ }
1325
+ exports.InviteSlugExpired = InviteSlugExpired;
1326
+ class InviteSlugInvalid extends BadRequest {
1327
+ id = 'INVITE_SLUG_INVALID';
1328
+ message = 'The specified invitation slug is invalid.';
1329
+ }
1330
+ exports.InviteSlugInvalid = InviteSlugInvalid;
1331
+ class InvoicePayloadInvalid extends BadRequest {
1332
+ id = 'INVOICE_PAYLOAD_INVALID';
1333
+ message = 'The specified invoice payload is invalid.';
1334
+ }
1335
+ exports.InvoicePayloadInvalid = InvoicePayloadInvalid;
1336
+ class JoinAsPeerInvalid extends BadRequest {
1337
+ id = 'JOIN_AS_PEER_INVALID';
1338
+ message = 'The specified peer cannot be used to join a group call.';
1339
+ }
1340
+ exports.JoinAsPeerInvalid = JoinAsPeerInvalid;
1341
+ class LanguageInvalid extends BadRequest {
1342
+ id = 'LANGUAGE_INVALID';
1343
+ message = 'The specified lang_code is invalid.';
1344
+ }
1345
+ exports.LanguageInvalid = LanguageInvalid;
1346
+ class LangCodeInvalid extends BadRequest {
1347
+ id = 'LANG_CODE_INVALID';
1348
+ message = 'The specified language code is invalid.';
1349
+ }
1350
+ exports.LangCodeInvalid = LangCodeInvalid;
1351
+ class LangCodeNotSupported extends BadRequest {
1352
+ id = 'LANG_CODE_NOT_SUPPORTED';
1353
+ message = 'The specified language code is not supported.';
1354
+ }
1355
+ exports.LangCodeNotSupported = LangCodeNotSupported;
1356
+ class LangPackInvalid extends BadRequest {
1357
+ id = 'LANG_PACK_INVALID';
1358
+ message = 'The provided language pack is invalid.';
1359
+ }
1360
+ exports.LangPackInvalid = LangPackInvalid;
1361
+ class LastnameInvalid extends BadRequest {
1362
+ id = 'LASTNAME_INVALID';
1363
+ message = 'The last name is invalid.';
1364
+ }
1365
+ exports.LastnameInvalid = LastnameInvalid;
1366
+ class LimitInvalid extends BadRequest {
1367
+ id = 'LIMIT_INVALID';
1368
+ message = 'The provided limit is invalid.';
1369
+ }
1370
+ exports.LimitInvalid = LimitInvalid;
1371
+ class LinkNotModified extends BadRequest {
1372
+ id = 'LINK_NOT_MODIFIED';
1373
+ message = 'Discussion link not modified.';
1374
+ }
1375
+ exports.LinkNotModified = LinkNotModified;
1376
+ class LocationInvalid extends BadRequest {
1377
+ id = 'LOCATION_INVALID';
1378
+ message = 'The provided location is invalid.';
1379
+ }
1380
+ exports.LocationInvalid = LocationInvalid;
1381
+ class MaxDateInvalid extends BadRequest {
1382
+ id = 'MAX_DATE_INVALID';
1383
+ message = 'The specified maximum date is invalid.';
1384
+ }
1385
+ exports.MaxDateInvalid = MaxDateInvalid;
1386
+ class MaxIdInvalid extends BadRequest {
1387
+ id = 'MAX_ID_INVALID';
1388
+ message = 'The provided max ID is invalid.';
1389
+ }
1390
+ exports.MaxIdInvalid = MaxIdInvalid;
1391
+ class MaxQtsInvalid extends BadRequest {
1392
+ id = 'MAX_QTS_INVALID';
1393
+ message = 'The specified max_qts is invalid.';
1394
+ }
1395
+ exports.MaxQtsInvalid = MaxQtsInvalid;
1396
+ class Md5ChecksumInvalid extends BadRequest {
1397
+ id = 'MD5_CHECKSUM_INVALID';
1398
+ message = 'The MD5 checksums do not match.';
1399
+ }
1400
+ exports.Md5ChecksumInvalid = Md5ChecksumInvalid;
1401
+ class MediaCaptionTooLong extends BadRequest {
1402
+ id = 'MEDIA_CAPTION_TOO_LONG';
1403
+ message = 'The caption is too long.';
1404
+ }
1405
+ exports.MediaCaptionTooLong = MediaCaptionTooLong;
1406
+ class MediaEmpty extends BadRequest {
1407
+ id = 'MEDIA_EMPTY';
1408
+ message = 'The provided media object is invalid.';
1409
+ }
1410
+ exports.MediaEmpty = MediaEmpty;
1411
+ class MediaFileInvalid extends BadRequest {
1412
+ id = 'MEDIA_FILE_INVALID';
1413
+ message = 'The specified media file is invalid.';
1414
+ }
1415
+ exports.MediaFileInvalid = MediaFileInvalid;
1416
+ class MediaGroupedInvalid extends BadRequest {
1417
+ id = 'MEDIA_GROUPED_INVALID';
1418
+ message = 'You tried to send media of different types in an album.';
1419
+ }
1420
+ exports.MediaGroupedInvalid = MediaGroupedInvalid;
1421
+ class MediaInvalid extends BadRequest {
1422
+ id = 'MEDIA_INVALID';
1423
+ message = 'Media invalid.';
1424
+ }
1425
+ exports.MediaInvalid = MediaInvalid;
1426
+ class MediaNewInvalid extends BadRequest {
1427
+ id = 'MEDIA_NEW_INVALID';
1428
+ message = 'The new media is invalid.';
1429
+ }
1430
+ exports.MediaNewInvalid = MediaNewInvalid;
1431
+ class MediaPrevInvalid extends BadRequest {
1432
+ id = 'MEDIA_PREV_INVALID';
1433
+ message = 'Previous media invalid.';
1434
+ }
1435
+ exports.MediaPrevInvalid = MediaPrevInvalid;
1436
+ class MediaTtlInvalid extends BadRequest {
1437
+ id = 'MEDIA_TTL_INVALID';
1438
+ message = 'The specified media TTL is invalid.';
1439
+ }
1440
+ exports.MediaTtlInvalid = MediaTtlInvalid;
1441
+ class MediaTypeInvalid extends BadRequest {
1442
+ id = 'MEDIA_TYPE_INVALID';
1443
+ message = 'The specified media type cannot be used in stories.';
1444
+ }
1445
+ exports.MediaTypeInvalid = MediaTypeInvalid;
1446
+ class MediaVideoStoryMissing extends BadRequest {
1447
+ id = 'MEDIA_VIDEO_STORY_MISSING';
1448
+ message = 'A non-story video cannot be repubblished as a story (emitted when trying to resend a non-story video as a story using inputDocument).';
1449
+ }
1450
+ exports.MediaVideoStoryMissing = MediaVideoStoryMissing;
1451
+ class MegagroupGeoRequired extends BadRequest {
1452
+ id = 'MEGAGROUP_GEO_REQUIRED';
1453
+ message = 'This method can only be invoked on a geogroup.';
1454
+ }
1455
+ exports.MegagroupGeoRequired = MegagroupGeoRequired;
1456
+ class MegagroupIdInvalid extends BadRequest {
1457
+ id = 'MEGAGROUP_ID_INVALID';
1458
+ message = 'Invalid supergroup ID.';
1459
+ }
1460
+ exports.MegagroupIdInvalid = MegagroupIdInvalid;
1461
+ class MegagroupPrehistoryHidden extends BadRequest {
1462
+ id = 'MEGAGROUP_PREHISTORY_HIDDEN';
1463
+ message = "Group with hidden history for new members can't be set as discussion groups.";
1464
+ }
1465
+ exports.MegagroupPrehistoryHidden = MegagroupPrehistoryHidden;
1466
+ class MegagroupRequired extends BadRequest {
1467
+ id = 'MEGAGROUP_REQUIRED';
1468
+ message = 'You can only use this method on a supergroup.';
1469
+ }
1470
+ exports.MegagroupRequired = MegagroupRequired;
1471
+ class MessageEditTimeExpired extends BadRequest {
1472
+ id = 'MESSAGE_EDIT_TIME_EXPIRED';
1473
+ message = "You can't edit this message anymore, too much time has passed since its creation.";
1474
+ }
1475
+ exports.MessageEditTimeExpired = MessageEditTimeExpired;
1476
+ class MessageEmpty extends BadRequest {
1477
+ id = 'MESSAGE_EMPTY';
1478
+ message = 'The provided message is empty.';
1479
+ }
1480
+ exports.MessageEmpty = MessageEmpty;
1481
+ class MessageIdsEmpty extends BadRequest {
1482
+ id = 'MESSAGE_IDS_EMPTY';
1483
+ message = 'No message ids were provided.';
1484
+ }
1485
+ exports.MessageIdsEmpty = MessageIdsEmpty;
1486
+ class MessageIdInvalid extends BadRequest {
1487
+ id = 'MESSAGE_ID_INVALID';
1488
+ message = 'The provided message id is invalid.';
1489
+ }
1490
+ exports.MessageIdInvalid = MessageIdInvalid;
1491
+ class MessageNotModified extends BadRequest {
1492
+ id = 'MESSAGE_NOT_MODIFIED';
1493
+ message = "The provided message data is identical to the previous message data, the message wasn't modified.";
1494
+ }
1495
+ exports.MessageNotModified = MessageNotModified;
1496
+ class MessageNotReadYet extends BadRequest {
1497
+ id = 'MESSAGE_NOT_READ_YET';
1498
+ message = "The specified message wasn't read yet.";
1499
+ }
1500
+ exports.MessageNotReadYet = MessageNotReadYet;
1501
+ class MessagePollClosed extends BadRequest {
1502
+ id = 'MESSAGE_POLL_CLOSED';
1503
+ message = 'Poll closed.';
1504
+ }
1505
+ exports.MessagePollClosed = MessagePollClosed;
1506
+ class MessageTooLong extends BadRequest {
1507
+ id = 'MESSAGE_TOO_LONG';
1508
+ message = 'The provided message is too long.';
1509
+ }
1510
+ exports.MessageTooLong = MessageTooLong;
1511
+ class MessageTooOld extends BadRequest {
1512
+ id = 'MESSAGE_TOO_OLD';
1513
+ message = 'The message is too old, the requested information is not available.';
1514
+ }
1515
+ exports.MessageTooOld = MessageTooOld;
1516
+ class MethodInvalid extends BadRequest {
1517
+ id = 'METHOD_INVALID';
1518
+ message = 'The specified method is invalid.';
1519
+ }
1520
+ exports.MethodInvalid = MethodInvalid;
1521
+ class MinDateInvalid extends BadRequest {
1522
+ id = 'MIN_DATE_INVALID';
1523
+ message = 'The specified minimum date is invalid.';
1524
+ }
1525
+ exports.MinDateInvalid = MinDateInvalid;
1526
+ class MsgIdInvalid extends BadRequest {
1527
+ id = 'MSG_ID_INVALID';
1528
+ message = 'Invalid message ID provided.';
1529
+ }
1530
+ exports.MsgIdInvalid = MsgIdInvalid;
1531
+ class MsgTooOld extends BadRequest {
1532
+ id = 'MSG_TOO_OLD';
1533
+ 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
+ }
1535
+ exports.MsgTooOld = MsgTooOld;
1536
+ class MsgWaitFailed extends BadRequest {
1537
+ id = 'MSG_WAIT_FAILED';
1538
+ message = 'A waiting call returned an error.';
1539
+ }
1540
+ exports.MsgWaitFailed = MsgWaitFailed;
1541
+ class MultiMediaTooLong extends BadRequest {
1542
+ id = 'MULTI_MEDIA_TOO_LONG';
1543
+ message = 'Too many media files for album.';
1544
+ }
1545
+ exports.MultiMediaTooLong = MultiMediaTooLong;
1546
+ class NewSaltInvalid extends BadRequest {
1547
+ id = 'NEW_SALT_INVALID';
1548
+ message = 'The new salt is invalid.';
1549
+ }
1550
+ exports.NewSaltInvalid = NewSaltInvalid;
1551
+ class NewSettingsEmpty extends BadRequest {
1552
+ id = 'NEW_SETTINGS_EMPTY';
1553
+ message = 'No password is set on the current account, and no new password was specified in `new_settings`.';
1554
+ }
1555
+ exports.NewSettingsEmpty = NewSettingsEmpty;
1556
+ class NewSettingsInvalid extends BadRequest {
1557
+ id = 'NEW_SETTINGS_INVALID';
1558
+ message = 'The new password settings are invalid.';
1559
+ }
1560
+ exports.NewSettingsInvalid = NewSettingsInvalid;
1561
+ class NextOffsetInvalid extends BadRequest {
1562
+ id = 'NEXT_OFFSET_INVALID';
1563
+ message = 'The specified offset is longer than 64 bytes.';
1564
+ }
1565
+ exports.NextOffsetInvalid = NextOffsetInvalid;
1566
+ class NotEligible extends BadRequest {
1567
+ id = 'NOT_ELIGIBLE';
1568
+ message = 'The current user is not eligible to join the Peer-to-Peer Login Program.';
1569
+ }
1570
+ exports.NotEligible = NotEligible;
1571
+ class NotJoined extends BadRequest {
1572
+ id = 'NOT_JOINED';
1573
+ message = "The current user hasn't joined the Peer-to-Peer Login Program.";
1574
+ }
1575
+ exports.NotJoined = NotJoined;
1576
+ class OffsetInvalid extends BadRequest {
1577
+ id = 'OFFSET_INVALID';
1578
+ message = 'The provided offset is invalid.';
1579
+ }
1580
+ exports.OffsetInvalid = OffsetInvalid;
1581
+ class OffsetPeerIdInvalid extends BadRequest {
1582
+ id = 'OFFSET_PEER_ID_INVALID';
1583
+ message = 'The provided offset peer is invalid.';
1584
+ }
1585
+ exports.OffsetPeerIdInvalid = OffsetPeerIdInvalid;
1586
+ class OptionsTooMuch extends BadRequest {
1587
+ id = 'OPTIONS_TOO_MUCH';
1588
+ message = 'Too many options provided.';
1589
+ }
1590
+ exports.OptionsTooMuch = OptionsTooMuch;
1591
+ class OptionInvalid extends BadRequest {
1592
+ id = 'OPTION_INVALID';
1593
+ message = 'Invalid option selected.';
1594
+ }
1595
+ exports.OptionInvalid = OptionInvalid;
1596
+ class OrderInvalid extends BadRequest {
1597
+ id = 'ORDER_INVALID';
1598
+ message = 'The specified username order is invalid.';
1599
+ }
1600
+ exports.OrderInvalid = OrderInvalid;
1601
+ class PackShortNameInvalid extends BadRequest {
1602
+ id = 'PACK_SHORT_NAME_INVALID';
1603
+ message = 'Short pack name invalid.';
1604
+ }
1605
+ exports.PackShortNameInvalid = PackShortNameInvalid;
1606
+ class PackShortNameOccupied extends BadRequest {
1607
+ id = 'PACK_SHORT_NAME_OCCUPIED';
1608
+ message = 'A stickerpack with this name already exists.';
1609
+ }
1610
+ exports.PackShortNameOccupied = PackShortNameOccupied;
1611
+ class PackTitleInvalid extends BadRequest {
1612
+ id = 'PACK_TITLE_INVALID';
1613
+ message = 'The stickerpack title is invalid.';
1614
+ }
1615
+ exports.PackTitleInvalid = PackTitleInvalid;
1616
+ class ParticipantsTooFew extends BadRequest {
1617
+ id = 'PARTICIPANTS_TOO_FEW';
1618
+ message = 'Not enough participants.';
1619
+ }
1620
+ exports.ParticipantsTooFew = ParticipantsTooFew;
1621
+ class ParticipantIdInvalid extends BadRequest {
1622
+ id = 'PARTICIPANT_ID_INVALID';
1623
+ message = 'The specified participant ID is invalid.';
1624
+ }
1625
+ exports.ParticipantIdInvalid = ParticipantIdInvalid;
1626
+ class ParticipantJoinMissing extends BadRequest {
1627
+ id = 'PARTICIPANT_JOIN_MISSING';
1628
+ message = "Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall).";
1629
+ }
1630
+ exports.ParticipantJoinMissing = ParticipantJoinMissing;
1631
+ class ParticipantVersionOutdated extends BadRequest {
1632
+ id = 'PARTICIPANT_VERSION_OUTDATED';
1633
+ message = 'The other participant does not use an up to date telegram client with support for calls.';
1634
+ }
1635
+ exports.ParticipantVersionOutdated = ParticipantVersionOutdated;
1636
+ class PasswordEmpty extends BadRequest {
1637
+ id = 'PASSWORD_EMPTY';
1638
+ message = 'The provided password is empty.';
1639
+ }
1640
+ exports.PasswordEmpty = PasswordEmpty;
1641
+ class PasswordHashInvalid extends BadRequest {
1642
+ id = 'PASSWORD_HASH_INVALID';
1643
+ message = 'The provided password hash is invalid.';
1644
+ }
1645
+ exports.PasswordHashInvalid = PasswordHashInvalid;
1646
+ class PasswordMissing extends BadRequest {
1647
+ id = 'PASSWORD_MISSING';
1648
+ message = 'You must [enable 2FA](https://core.telegram.org/api/srp) before executing this operation.';
1649
+ }
1650
+ exports.PasswordMissing = PasswordMissing;
1651
+ class PasswordRecoveryExpired extends BadRequest {
1652
+ id = 'PASSWORD_RECOVERY_EXPIRED';
1653
+ message = 'The recovery code has expired.';
1654
+ }
1655
+ exports.PasswordRecoveryExpired = PasswordRecoveryExpired;
1656
+ class PasswordRecoveryNa extends BadRequest {
1657
+ id = 'PASSWORD_RECOVERY_NA';
1658
+ message = "No email was set, can't recover password via email.";
1659
+ }
1660
+ exports.PasswordRecoveryNa = PasswordRecoveryNa;
1661
+ class PasswordRequired extends BadRequest {
1662
+ id = 'PASSWORD_REQUIRED';
1663
+ message = 'A [2FA password](https://core.telegram.org/api/srp) must be configured to use Telegram Passport.';
1664
+ }
1665
+ exports.PasswordRequired = PasswordRequired;
1666
+ class PasswordTooFresh extends BadRequest {
1667
+ id = 'PASSWORD_TOO_FRESH_X';
1668
+ message = 'The password was modified less than 24 hours ago, try again in {value} seconds.';
1669
+ }
1670
+ exports.PasswordTooFresh = PasswordTooFresh;
1671
+ class PaymentProviderInvalid extends BadRequest {
1672
+ id = 'PAYMENT_PROVIDER_INVALID';
1673
+ message = 'The specified payment provider is invalid.';
1674
+ }
1675
+ exports.PaymentProviderInvalid = PaymentProviderInvalid;
1676
+ class PeersListEmpty extends BadRequest {
1677
+ id = 'PEERS_LIST_EMPTY';
1678
+ message = 'The specified list of peers is empty.';
1679
+ }
1680
+ exports.PeersListEmpty = PeersListEmpty;
1681
+ class PeerFlood extends BadRequest {
1682
+ id = 'PEER_FLOOD';
1683
+ message = 'The current account is spamreported, you cannot execute this action, check @spambot for more info.';
1684
+ }
1685
+ exports.PeerFlood = PeerFlood;
1686
+ class PeerHistoryEmpty extends BadRequest {
1687
+ id = 'PEER_HISTORY_EMPTY';
1688
+ message = "You can't pin an empty chat with a user.";
1689
+ }
1690
+ exports.PeerHistoryEmpty = PeerHistoryEmpty;
1691
+ class PeerIdInvalid extends BadRequest {
1692
+ id = 'PEER_ID_INVALID';
1693
+ message = 'The provided peer id is invalid.';
1694
+ }
1695
+ exports.PeerIdInvalid = PeerIdInvalid;
1696
+ class PeerIdNotSupported extends BadRequest {
1697
+ id = 'PEER_ID_NOT_SUPPORTED';
1698
+ message = 'The provided peer ID is not supported.';
1699
+ }
1700
+ exports.PeerIdNotSupported = PeerIdNotSupported;
1701
+ class PeerTypesInvalid extends BadRequest {
1702
+ id = 'PEER_TYPES_INVALID';
1703
+ message = 'The passed [keyboardButtonSwitchInline](https://core.telegram.org/constructor/keyboardButtonSwitchInline).`peer_types` field is invalid.';
1704
+ }
1705
+ exports.PeerTypesInvalid = PeerTypesInvalid;
1706
+ class PersistentTimestampEmpty extends BadRequest {
1707
+ id = 'PERSISTENT_TIMESTAMP_EMPTY';
1708
+ message = 'Persistent timestamp empty.';
1709
+ }
1710
+ exports.PersistentTimestampEmpty = PersistentTimestampEmpty;
1711
+ class PersistentTimestampInvalid extends BadRequest {
1712
+ id = 'PERSISTENT_TIMESTAMP_INVALID';
1713
+ message = 'Persistent timestamp invalid.';
1714
+ }
1715
+ exports.PersistentTimestampInvalid = PersistentTimestampInvalid;
1716
+ class PhoneCodeEmpty extends BadRequest {
1717
+ id = 'PHONE_CODE_EMPTY';
1718
+ message = 'phone_code is missing.';
1719
+ }
1720
+ exports.PhoneCodeEmpty = PhoneCodeEmpty;
1721
+ class PhoneCodeExpired extends BadRequest {
1722
+ id = 'PHONE_CODE_EXPIRED';
1723
+ message = 'The phone code you provided has expired.';
1724
+ }
1725
+ exports.PhoneCodeExpired = PhoneCodeExpired;
1726
+ class PhoneCodeHashEmpty extends BadRequest {
1727
+ id = 'PHONE_CODE_HASH_EMPTY';
1728
+ message = 'phone_code_hash is missing.';
1729
+ }
1730
+ exports.PhoneCodeHashEmpty = PhoneCodeHashEmpty;
1731
+ class PhoneCodeInvalid extends BadRequest {
1732
+ id = 'PHONE_CODE_INVALID';
1733
+ message = 'The provided phone code is invalid.';
1734
+ }
1735
+ exports.PhoneCodeInvalid = PhoneCodeInvalid;
1736
+ class PhoneHashExpired extends BadRequest {
1737
+ id = 'PHONE_HASH_EXPIRED';
1738
+ message = 'An invalid or expired `phone_code_hash` was provided.';
1739
+ }
1740
+ exports.PhoneHashExpired = PhoneHashExpired;
1741
+ class PhoneNotOccupied extends BadRequest {
1742
+ id = 'PHONE_NOT_OCCUPIED';
1743
+ message = 'No user is associated to the specified phone number.';
1744
+ }
1745
+ exports.PhoneNotOccupied = PhoneNotOccupied;
1746
+ class PhoneNumberAppSignupForbidden extends BadRequest {
1747
+ id = 'PHONE_NUMBER_APP_SIGNUP_FORBIDDEN';
1748
+ message = "You can't sign up using this app.";
1749
+ }
1750
+ exports.PhoneNumberAppSignupForbidden = PhoneNumberAppSignupForbidden;
1751
+ class PhoneNumberBanned extends BadRequest {
1752
+ id = 'PHONE_NUMBER_BANNED';
1753
+ message = 'The provided phone number is banned from telegram.';
1754
+ }
1755
+ exports.PhoneNumberBanned = PhoneNumberBanned;
1756
+ class PhoneNumberFlood extends BadRequest {
1757
+ id = 'PHONE_NUMBER_FLOOD';
1758
+ message = 'You asked for the code too many times.';
1759
+ }
1760
+ exports.PhoneNumberFlood = PhoneNumberFlood;
1761
+ class PhoneNumberInvalid extends BadRequest {
1762
+ id = 'PHONE_NUMBER_INVALID';
1763
+ message = 'The phone number is invalid.';
1764
+ }
1765
+ exports.PhoneNumberInvalid = PhoneNumberInvalid;
1766
+ class PhoneNumberOccupied extends BadRequest {
1767
+ id = 'PHONE_NUMBER_OCCUPIED';
1768
+ message = 'The phone number is already in use.';
1769
+ }
1770
+ exports.PhoneNumberOccupied = PhoneNumberOccupied;
1771
+ class PhoneNumberUnoccupied extends BadRequest {
1772
+ id = 'PHONE_NUMBER_UNOCCUPIED';
1773
+ message = 'The phone number is not yet being used.';
1774
+ }
1775
+ exports.PhoneNumberUnoccupied = PhoneNumberUnoccupied;
1776
+ class PhonePasswordProtected extends BadRequest {
1777
+ id = 'PHONE_PASSWORD_PROTECTED';
1778
+ message = 'This phone is password protected.';
1779
+ }
1780
+ exports.PhonePasswordProtected = PhonePasswordProtected;
1781
+ class PhotoContentTypeInvalid extends BadRequest {
1782
+ id = 'PHOTO_CONTENT_TYPE_INVALID';
1783
+ message = 'Photo mime-type invalid.';
1784
+ }
1785
+ exports.PhotoContentTypeInvalid = PhotoContentTypeInvalid;
1786
+ class PhotoContentUrlEmpty extends BadRequest {
1787
+ id = 'PHOTO_CONTENT_URL_EMPTY';
1788
+ message = 'Photo URL invalid.';
1789
+ }
1790
+ exports.PhotoContentUrlEmpty = PhotoContentUrlEmpty;
1791
+ class PhotoCropFileMissing extends BadRequest {
1792
+ id = 'PHOTO_CROP_FILE_MISSING';
1793
+ message = 'Photo crop file missing.';
1794
+ }
1795
+ exports.PhotoCropFileMissing = PhotoCropFileMissing;
1796
+ class PhotoCropSizeSmall extends BadRequest {
1797
+ id = 'PHOTO_CROP_SIZE_SMALL';
1798
+ message = 'Photo is too small.';
1799
+ }
1800
+ exports.PhotoCropSizeSmall = PhotoCropSizeSmall;
1801
+ class PhotoExtInvalid extends BadRequest {
1802
+ id = 'PHOTO_EXT_INVALID';
1803
+ message = 'The extension of the photo is invalid.';
1804
+ }
1805
+ exports.PhotoExtInvalid = PhotoExtInvalid;
1806
+ class PhotoFileMissing extends BadRequest {
1807
+ id = 'PHOTO_FILE_MISSING';
1808
+ message = 'Profile photo file missing.';
1809
+ }
1810
+ exports.PhotoFileMissing = PhotoFileMissing;
1811
+ class PhotoIdInvalid extends BadRequest {
1812
+ id = 'PHOTO_ID_INVALID';
1813
+ message = 'Photo ID invalid.';
1814
+ }
1815
+ exports.PhotoIdInvalid = PhotoIdInvalid;
1816
+ class PhotoInvalid extends BadRequest {
1817
+ id = 'PHOTO_INVALID';
1818
+ message = 'Photo invalid.';
1819
+ }
1820
+ exports.PhotoInvalid = PhotoInvalid;
1821
+ class PhotoInvalidDimensions extends BadRequest {
1822
+ id = 'PHOTO_INVALID_DIMENSIONS';
1823
+ message = 'The photo dimensions are invalid.';
1824
+ }
1825
+ exports.PhotoInvalidDimensions = PhotoInvalidDimensions;
1826
+ class PhotoSaveFileInvalid extends BadRequest {
1827
+ id = 'PHOTO_SAVE_FILE_INVALID';
1828
+ message = 'Internal issues, try again later.';
1829
+ }
1830
+ exports.PhotoSaveFileInvalid = PhotoSaveFileInvalid;
1831
+ class PhotoThumbUrlEmpty extends BadRequest {
1832
+ id = 'PHOTO_THUMB_URL_EMPTY';
1833
+ message = 'Photo thumbnail URL is empty.';
1834
+ }
1835
+ exports.PhotoThumbUrlEmpty = PhotoThumbUrlEmpty;
1836
+ class PhotoThumbUrlInvalid extends BadRequest {
1837
+ id = 'PHOTO_THUMB_URL_INVALID';
1838
+ message = 'The photo thumb URL is invalid';
1839
+ }
1840
+ exports.PhotoThumbUrlInvalid = PhotoThumbUrlInvalid;
1841
+ class PinnedDialogsTooMuch extends BadRequest {
1842
+ id = 'PINNED_DIALOGS_TOO_MUCH';
1843
+ message = 'Too many pinned dialogs.';
1844
+ }
1845
+ exports.PinnedDialogsTooMuch = PinnedDialogsTooMuch;
1846
+ class PinRestricted extends BadRequest {
1847
+ id = 'PIN_RESTRICTED';
1848
+ message = "You can't pin messages.";
1849
+ }
1850
+ exports.PinRestricted = PinRestricted;
1851
+ class PollAnswersInvalid extends BadRequest {
1852
+ id = 'POLL_ANSWERS_INVALID';
1853
+ message = 'Invalid poll answers were provided.';
1854
+ }
1855
+ exports.PollAnswersInvalid = PollAnswersInvalid;
1856
+ class PollAnswerInvalid extends BadRequest {
1857
+ id = 'POLL_ANSWER_INVALID';
1858
+ message = 'One of the poll answers is not acceptable.';
1859
+ }
1860
+ exports.PollAnswerInvalid = PollAnswerInvalid;
1861
+ class PollOptionDuplicate extends BadRequest {
1862
+ id = 'POLL_OPTION_DUPLICATE';
1863
+ message = 'Duplicate poll options provided.';
1864
+ }
1865
+ exports.PollOptionDuplicate = PollOptionDuplicate;
1866
+ class PollOptionInvalid extends BadRequest {
1867
+ id = 'POLL_OPTION_INVALID';
1868
+ message = 'Invalid poll option provided.';
1869
+ }
1870
+ exports.PollOptionInvalid = PollOptionInvalid;
1871
+ class PollQuestionInvalid extends BadRequest {
1872
+ id = 'POLL_QUESTION_INVALID';
1873
+ message = 'One of the poll questions is not acceptable.';
1874
+ }
1875
+ exports.PollQuestionInvalid = PollQuestionInvalid;
1876
+ class PollUnsupported extends BadRequest {
1877
+ id = 'POLL_UNSUPPORTED';
1878
+ message = 'This layer does not support polls in the invoked method';
1879
+ }
1880
+ exports.PollUnsupported = PollUnsupported;
1881
+ class PollVoteRequired extends BadRequest {
1882
+ id = 'POLL_VOTE_REQUIRED';
1883
+ message = 'Cast a vote in the poll before calling this method';
1884
+ }
1885
+ exports.PollVoteRequired = PollVoteRequired;
1886
+ class PremiumAccountRequired extends BadRequest {
1887
+ id = 'PREMIUM_ACCOUNT_REQUIRED';
1888
+ message = 'A premium account is required to execute this action.';
1889
+ }
1890
+ exports.PremiumAccountRequired = PremiumAccountRequired;
1891
+ class PricingChatInvalid extends BadRequest {
1892
+ id = 'PRICING_CHAT_INVALID';
1893
+ 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).';
1894
+ }
1895
+ exports.PricingChatInvalid = PricingChatInvalid;
1896
+ class PrivacyKeyInvalid extends BadRequest {
1897
+ id = 'PRIVACY_KEY_INVALID';
1898
+ message = 'The privacy key is invalid.';
1899
+ }
1900
+ exports.PrivacyKeyInvalid = PrivacyKeyInvalid;
1901
+ class PrivacyTooLong extends BadRequest {
1902
+ id = 'PRIVACY_TOO_LONG';
1903
+ message = 'Too many privacy rules were specified, the current limit is 1000.';
1904
+ }
1905
+ exports.PrivacyTooLong = PrivacyTooLong;
1906
+ class PrivacyValueInvalid extends BadRequest {
1907
+ id = 'PRIVACY_VALUE_INVALID';
1908
+ message = 'The specified privacy rule combination is invalid.';
1909
+ }
1910
+ exports.PrivacyValueInvalid = PrivacyValueInvalid;
1911
+ class PublicKeyRequired extends BadRequest {
1912
+ id = 'PUBLIC_KEY_REQUIRED';
1913
+ message = 'A public key is required.';
1914
+ }
1915
+ exports.PublicKeyRequired = PublicKeyRequired;
1916
+ class QueryIdEmpty extends BadRequest {
1917
+ id = 'QUERY_ID_EMPTY';
1918
+ message = 'The query ID is empty.';
1919
+ }
1920
+ exports.QueryIdEmpty = QueryIdEmpty;
1921
+ class QueryIdInvalid extends BadRequest {
1922
+ id = 'QUERY_ID_INVALID';
1923
+ message = 'The query ID is invalid.';
1924
+ }
1925
+ exports.QueryIdInvalid = QueryIdInvalid;
1926
+ class QueryTooShort extends BadRequest {
1927
+ id = 'QUERY_TOO_SHORT';
1928
+ message = 'The query string is too short.';
1929
+ }
1930
+ exports.QueryTooShort = QueryTooShort;
1931
+ class QuickRepliesTooMuch extends BadRequest {
1932
+ id = 'QUICK_REPLIES_TOO_MUCH';
1933
+ 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.';
1934
+ }
1935
+ exports.QuickRepliesTooMuch = QuickRepliesTooMuch;
1936
+ class QuizAnswerMissing extends BadRequest {
1937
+ id = 'QUIZ_ANSWER_MISSING';
1938
+ message = 'You can forward a quiz while hiding the original author only after choosing an option in the quiz.';
1939
+ }
1940
+ exports.QuizAnswerMissing = QuizAnswerMissing;
1941
+ class QuizCorrectAnswersEmpty extends BadRequest {
1942
+ id = 'QUIZ_CORRECT_ANSWERS_EMPTY';
1943
+ message = 'No correct quiz answer was specified.';
1944
+ }
1945
+ exports.QuizCorrectAnswersEmpty = QuizCorrectAnswersEmpty;
1946
+ class QuizCorrectAnswersTooMuch extends BadRequest {
1947
+ id = 'QUIZ_CORRECT_ANSWERS_TOO_MUCH';
1948
+ message = 'You specified too many correct answers in a quiz, quizzes can only have one right answer!';
1949
+ }
1950
+ exports.QuizCorrectAnswersTooMuch = QuizCorrectAnswersTooMuch;
1951
+ class QuizCorrectAnswerInvalid extends BadRequest {
1952
+ id = 'QUIZ_CORRECT_ANSWER_INVALID';
1953
+ message = 'An invalid value was provided to the correct_answers field.';
1954
+ }
1955
+ exports.QuizCorrectAnswerInvalid = QuizCorrectAnswerInvalid;
1956
+ class QuizMultipleInvalid extends BadRequest {
1957
+ id = 'QUIZ_MULTIPLE_INVALID';
1958
+ message = "Quizzes can't have the multiple_choice flag set!";
1959
+ }
1960
+ exports.QuizMultipleInvalid = QuizMultipleInvalid;
1961
+ class QuoteTextInvalid extends BadRequest {
1962
+ id = 'QUOTE_TEXT_INVALID';
1963
+ message = 'The specified `reply_to`.`quote_text` field is invalid.';
1964
+ }
1965
+ exports.QuoteTextInvalid = QuoteTextInvalid;
1966
+ class RaiseHandForbidden extends BadRequest {
1967
+ id = 'RAISE_HAND_FORBIDDEN';
1968
+ message = 'You cannot raise your hand.';
1969
+ }
1970
+ exports.RaiseHandForbidden = RaiseHandForbidden;
1971
+ class RandomIdEmpty extends BadRequest {
1972
+ id = 'RANDOM_ID_EMPTY';
1973
+ message = 'Random ID empty.';
1974
+ }
1975
+ exports.RandomIdEmpty = RandomIdEmpty;
1976
+ class RandomIdInvalid extends BadRequest {
1977
+ id = 'RANDOM_ID_INVALID';
1978
+ message = 'A provided random ID is invalid.';
1979
+ }
1980
+ exports.RandomIdInvalid = RandomIdInvalid;
1981
+ class RandomLengthInvalid extends BadRequest {
1982
+ id = 'RANDOM_LENGTH_INVALID';
1983
+ message = 'Random length invalid.';
1984
+ }
1985
+ exports.RandomLengthInvalid = RandomLengthInvalid;
1986
+ class RangesInvalid extends BadRequest {
1987
+ id = 'RANGES_INVALID';
1988
+ message = 'Invalid range provided.';
1989
+ }
1990
+ exports.RangesInvalid = RangesInvalid;
1991
+ class ReactionsTooMany extends BadRequest {
1992
+ id = 'REACTIONS_TOO_MANY';
1993
+ 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 »](https://core.telegram.org/api/config#client-configuration).";
1994
+ }
1995
+ exports.ReactionsTooMany = ReactionsTooMany;
1996
+ class ReactionEmpty extends BadRequest {
1997
+ id = 'REACTION_EMPTY';
1998
+ message = 'Empty reaction provided.';
1999
+ }
2000
+ exports.ReactionEmpty = ReactionEmpty;
2001
+ class ReactionInvalid extends BadRequest {
2002
+ id = 'REACTION_INVALID';
2003
+ message = 'The specified reaction is invalid.';
2004
+ }
2005
+ exports.ReactionInvalid = ReactionInvalid;
2006
+ class ReceiptEmpty extends BadRequest {
2007
+ id = 'RECEIPT_EMPTY';
2008
+ message = 'The specified receipt is empty.';
2009
+ }
2010
+ exports.ReceiptEmpty = ReceiptEmpty;
2011
+ class ReflectorNotAvailable extends BadRequest {
2012
+ id = 'REFLECTOR_NOT_AVAILABLE';
2013
+ message = 'The call reflector is not available';
2014
+ }
2015
+ exports.ReflectorNotAvailable = ReflectorNotAvailable;
2016
+ class ReplyMarkupBuyEmpty extends BadRequest {
2017
+ id = 'REPLY_MARKUP_BUY_EMPTY';
2018
+ message = 'Reply markup for buy button empty.';
2019
+ }
2020
+ exports.ReplyMarkupBuyEmpty = ReplyMarkupBuyEmpty;
2021
+ class ReplyMarkupGameEmpty extends BadRequest {
2022
+ id = 'REPLY_MARKUP_GAME_EMPTY';
2023
+ message = "A game message is being edited, but the newly provided keyboard doesn't have a keyboardButtonGame button.";
2024
+ }
2025
+ exports.ReplyMarkupGameEmpty = ReplyMarkupGameEmpty;
2026
+ class ReplyMarkupInvalid extends BadRequest {
2027
+ id = 'REPLY_MARKUP_INVALID';
2028
+ message = 'The provided reply markup is invalid.';
2029
+ }
2030
+ exports.ReplyMarkupInvalid = ReplyMarkupInvalid;
2031
+ class ReplyMarkupTooLong extends BadRequest {
2032
+ id = 'REPLY_MARKUP_TOO_LONG';
2033
+ message = 'The specified reply_markup is too long.';
2034
+ }
2035
+ exports.ReplyMarkupTooLong = ReplyMarkupTooLong;
2036
+ class ReplyMessagesTooMuch extends BadRequest {
2037
+ id = 'REPLY_MESSAGES_TOO_MUCH';
2038
+ message = 'Each shortcut can contain a maximum of [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config#quick-reply-messages-limit) messages, the limit was reached.';
2039
+ }
2040
+ exports.ReplyMessagesTooMuch = ReplyMessagesTooMuch;
2041
+ class ReplyMessageIdInvalid extends BadRequest {
2042
+ id = 'REPLY_MESSAGE_ID_INVALID';
2043
+ message = 'The specified reply-to message ID is invalid.';
2044
+ }
2045
+ exports.ReplyMessageIdInvalid = ReplyMessageIdInvalid;
2046
+ class ReplyToInvalid extends BadRequest {
2047
+ id = 'REPLY_TO_INVALID';
2048
+ message = 'The specified `reply_to` field is invalid.';
2049
+ }
2050
+ exports.ReplyToInvalid = ReplyToInvalid;
2051
+ class ReplyToUserInvalid extends BadRequest {
2052
+ id = 'REPLY_TO_USER_INVALID';
2053
+ message = 'The replied-to user is invalid.';
2054
+ }
2055
+ exports.ReplyToUserInvalid = ReplyToUserInvalid;
2056
+ class RequestTokenInvalid extends BadRequest {
2057
+ id = 'REQUEST_TOKEN_INVALID';
2058
+ 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
+ }
2060
+ exports.RequestTokenInvalid = RequestTokenInvalid;
2061
+ class ResetRequestMissing extends BadRequest {
2062
+ id = 'RESET_REQUEST_MISSING';
2063
+ message = 'No password reset is in progress.';
2064
+ }
2065
+ exports.ResetRequestMissing = ResetRequestMissing;
2066
+ class ResultsTooMuch extends BadRequest {
2067
+ id = 'RESULTS_TOO_MUCH';
2068
+ message = 'Too many results were provided.';
2069
+ }
2070
+ exports.ResultsTooMuch = ResultsTooMuch;
2071
+ class ResultIdDuplicate extends BadRequest {
2072
+ id = 'RESULT_ID_DUPLICATE';
2073
+ message = 'You provided a duplicate result ID.';
2074
+ }
2075
+ exports.ResultIdDuplicate = ResultIdDuplicate;
2076
+ class ResultIdEmpty extends BadRequest {
2077
+ id = 'RESULT_ID_EMPTY';
2078
+ message = 'Result ID empty.';
2079
+ }
2080
+ exports.ResultIdEmpty = ResultIdEmpty;
2081
+ class ResultIdInvalid extends BadRequest {
2082
+ id = 'RESULT_ID_INVALID';
2083
+ message = 'One of the specified result IDs is invalid.';
2084
+ }
2085
+ exports.ResultIdInvalid = ResultIdInvalid;
2086
+ class ResultTypeInvalid extends BadRequest {
2087
+ id = 'RESULT_TYPE_INVALID';
2088
+ message = 'Result type invalid.';
2089
+ }
2090
+ exports.ResultTypeInvalid = ResultTypeInvalid;
2091
+ class RevoteNotAllowed extends BadRequest {
2092
+ id = 'REVOTE_NOT_ALLOWED';
2093
+ message = 'You cannot change your vote.';
2094
+ }
2095
+ exports.RevoteNotAllowed = RevoteNotAllowed;
2096
+ class RightsNotModified extends BadRequest {
2097
+ id = 'RIGHTS_NOT_MODIFIED';
2098
+ message = 'The new admin rights are equal to the old rights, no change was made.';
2099
+ }
2100
+ exports.RightsNotModified = RightsNotModified;
2101
+ class RingtoneInvalid extends BadRequest {
2102
+ id = 'RINGTONE_INVALID';
2103
+ message = 'The specified ringtone is invalid.';
2104
+ }
2105
+ exports.RingtoneInvalid = RingtoneInvalid;
2106
+ class RingtoneMimeInvalid extends BadRequest {
2107
+ id = 'RINGTONE_MIME_INVALID';
2108
+ message = 'The MIME type for the ringtone is invalid.';
2109
+ }
2110
+ exports.RingtoneMimeInvalid = RingtoneMimeInvalid;
2111
+ class RsaDecryptFailed extends BadRequest {
2112
+ id = 'RSA_DECRYPT_FAILED';
2113
+ message = 'Internal RSA decryption failed.';
2114
+ }
2115
+ exports.RsaDecryptFailed = RsaDecryptFailed;
2116
+ class ScheduleBotNotAllowed extends BadRequest {
2117
+ id = 'SCHEDULE_BOT_NOT_ALLOWED';
2118
+ message = 'Bots cannot schedule messages.';
2119
+ }
2120
+ exports.ScheduleBotNotAllowed = ScheduleBotNotAllowed;
2121
+ class ScheduleDateInvalid extends BadRequest {
2122
+ id = 'SCHEDULE_DATE_INVALID';
2123
+ message = 'Invalid schedule date provided.';
2124
+ }
2125
+ exports.ScheduleDateInvalid = ScheduleDateInvalid;
2126
+ class ScheduleDateTooLate extends BadRequest {
2127
+ id = 'SCHEDULE_DATE_TOO_LATE';
2128
+ message = "You can't schedule a message this far in the future.";
2129
+ }
2130
+ exports.ScheduleDateTooLate = ScheduleDateTooLate;
2131
+ class ScheduleStatusPrivate extends BadRequest {
2132
+ id = 'SCHEDULE_STATUS_PRIVATE';
2133
+ message = "Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings.";
2134
+ }
2135
+ exports.ScheduleStatusPrivate = ScheduleStatusPrivate;
2136
+ class ScheduleTooMuch extends BadRequest {
2137
+ id = 'SCHEDULE_TOO_MUCH';
2138
+ message = 'There are too many scheduled messages.';
2139
+ }
2140
+ exports.ScheduleTooMuch = ScheduleTooMuch;
2141
+ class ScoreInvalid extends BadRequest {
2142
+ id = 'SCORE_INVALID';
2143
+ message = 'The specified game score is invalid.';
2144
+ }
2145
+ exports.ScoreInvalid = ScoreInvalid;
2146
+ class SearchQueryEmpty extends BadRequest {
2147
+ id = 'SEARCH_QUERY_EMPTY';
2148
+ message = 'The search query is empty.';
2149
+ }
2150
+ exports.SearchQueryEmpty = SearchQueryEmpty;
2151
+ class SearchWithLinkNotSupported extends BadRequest {
2152
+ id = 'SEARCH_WITH_LINK_NOT_SUPPORTED';
2153
+ message = 'You cannot provide a search query and an invite link at the same time.';
2154
+ }
2155
+ exports.SearchWithLinkNotSupported = SearchWithLinkNotSupported;
2156
+ class SecondsInvalid extends BadRequest {
2157
+ id = 'SECONDS_INVALID';
2158
+ message = 'Invalid duration provided.';
2159
+ }
2160
+ exports.SecondsInvalid = SecondsInvalid;
2161
+ class SecureSecretRequired extends BadRequest {
2162
+ id = 'SECURE_SECRET_REQUIRED';
2163
+ message = 'A secure secret is required.';
2164
+ }
2165
+ exports.SecureSecretRequired = SecureSecretRequired;
2166
+ class SendAsPeerInvalid extends BadRequest {
2167
+ id = 'SEND_AS_PEER_INVALID';
2168
+ message = "You can't send messages as the specified peer.";
2169
+ }
2170
+ exports.SendAsPeerInvalid = SendAsPeerInvalid;
2171
+ class SendMessageMediaInvalid extends BadRequest {
2172
+ id = 'SEND_MESSAGE_MEDIA_INVALID';
2173
+ message = 'Invalid media provided.';
2174
+ }
2175
+ exports.SendMessageMediaInvalid = SendMessageMediaInvalid;
2176
+ class SendMessageTypeInvalid extends BadRequest {
2177
+ id = 'SEND_MESSAGE_TYPE_INVALID';
2178
+ message = 'The message type is invalid.';
2179
+ }
2180
+ exports.SendMessageTypeInvalid = SendMessageTypeInvalid;
2181
+ class SessionTooFresh extends BadRequest {
2182
+ id = 'SESSION_TOO_FRESH_X';
2183
+ message = 'This session was created less than 24 hours ago, try again in {value} seconds.';
2184
+ }
2185
+ exports.SessionTooFresh = SessionTooFresh;
2186
+ class SettingsInvalid extends BadRequest {
2187
+ id = 'SETTINGS_INVALID';
2188
+ message = 'Invalid settings were provided.';
2189
+ }
2190
+ exports.SettingsInvalid = SettingsInvalid;
2191
+ class Sha256HashInvalid extends BadRequest {
2192
+ id = 'SHA256_HASH_INVALID';
2193
+ message = 'The provided SHA256 hash is invalid.';
2194
+ }
2195
+ exports.Sha256HashInvalid = Sha256HashInvalid;
2196
+ class ShortcutInvalid extends BadRequest {
2197
+ id = 'SHORTCUT_INVALID';
2198
+ message = 'The specified shortcut is invalid.';
2199
+ }
2200
+ exports.ShortcutInvalid = ShortcutInvalid;
2201
+ class ShortnameOccupyFailed extends BadRequest {
2202
+ id = 'SHORTNAME_OCCUPY_FAILED';
2203
+ message = 'An error occurred when trying to register the short-name used for the sticker pack. Try a different name';
2204
+ }
2205
+ exports.ShortnameOccupyFailed = ShortnameOccupyFailed;
2206
+ class ShortNameInvalid extends BadRequest {
2207
+ id = 'SHORT_NAME_INVALID';
2208
+ message = 'The specified short name is invalid.';
2209
+ }
2210
+ exports.ShortNameInvalid = ShortNameInvalid;
2211
+ class ShortNameOccupied extends BadRequest {
2212
+ id = 'SHORT_NAME_OCCUPIED';
2213
+ message = 'The specified short name is already in use.';
2214
+ }
2215
+ exports.ShortNameOccupied = ShortNameOccupied;
2216
+ class SlotsEmpty extends BadRequest {
2217
+ id = 'SLOTS_EMPTY';
2218
+ message = 'The specified slot list is empty.';
2219
+ }
2220
+ exports.SlotsEmpty = SlotsEmpty;
2221
+ class SlowmodeMultiMsgsDisabled extends BadRequest {
2222
+ id = 'SLOWMODE_MULTI_MSGS_DISABLED';
2223
+ message = 'Slowmode is enabled, you cannot forward multiple messages to this group.';
2224
+ }
2225
+ exports.SlowmodeMultiMsgsDisabled = SlowmodeMultiMsgsDisabled;
2226
+ class SlugInvalid extends BadRequest {
2227
+ id = 'SLUG_INVALID';
2228
+ message = 'The specified invoice slug is invalid.';
2229
+ }
2230
+ exports.SlugInvalid = SlugInvalid;
2231
+ class SmsjobIdInvalid extends BadRequest {
2232
+ id = 'SMSJOB_ID_INVALID';
2233
+ message = 'The specified job ID is invalid.';
2234
+ }
2235
+ exports.SmsjobIdInvalid = SmsjobIdInvalid;
2236
+ class SmsCodeCreateFailed extends BadRequest {
2237
+ id = 'SMS_CODE_CREATE_FAILED';
2238
+ message = 'An error occurred while creating the SMS code.';
2239
+ }
2240
+ exports.SmsCodeCreateFailed = SmsCodeCreateFailed;
2241
+ class SrpAInvalid extends BadRequest {
2242
+ id = 'SRP_A_INVALID';
2243
+ message = 'The specified inputCheckPasswordSRP.A value is invalid.';
2244
+ }
2245
+ exports.SrpAInvalid = SrpAInvalid;
2246
+ class SrpIdInvalid extends BadRequest {
2247
+ id = 'SRP_ID_INVALID';
2248
+ message = 'Invalid SRP ID provided.';
2249
+ }
2250
+ exports.SrpIdInvalid = SrpIdInvalid;
2251
+ class SrpPasswordChanged extends BadRequest {
2252
+ id = 'SRP_PASSWORD_CHANGED';
2253
+ message = 'Password has changed.';
2254
+ }
2255
+ exports.SrpPasswordChanged = SrpPasswordChanged;
2256
+ class StargiftInvalid extends BadRequest {
2257
+ id = 'STARGIFT_INVALID';
2258
+ message = 'The passed [inputInvoiceStarGift](https://core.telegram.org/constructor/inputInvoiceStarGift) is invalid.';
2259
+ }
2260
+ exports.StargiftInvalid = StargiftInvalid;
2261
+ class StargiftUsageLimited extends BadRequest {
2262
+ id = 'STARGIFT_USAGE_LIMITED';
2263
+ message = 'The gift is sold out.';
2264
+ }
2265
+ exports.StargiftUsageLimited = StargiftUsageLimited;
2266
+ class StarrefAwaitingEnd extends BadRequest {
2267
+ id = 'STARREF_AWAITING_END';
2268
+ 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.';
2269
+ }
2270
+ exports.StarrefAwaitingEnd = StarrefAwaitingEnd;
2271
+ class StarrefHashRevoked extends BadRequest {
2272
+ id = 'STARREF_HASH_REVOKED';
2273
+ message = 'The specified affiliate link was already revoked.';
2274
+ }
2275
+ exports.StarrefHashRevoked = StarrefHashRevoked;
2276
+ class StarrefPermilleInvalid extends BadRequest {
2277
+ id = 'STARREF_PERMILLE_INVALID';
2278
+ message = 'The specified commission_permille is invalid: 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.';
2279
+ }
2280
+ exports.StarrefPermilleInvalid = StarrefPermilleInvalid;
2281
+ class StarrefPermilleTooLow extends BadRequest {
2282
+ id = 'STARREF_PERMILLE_TOO_LOW';
2283
+ 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.';
2284
+ }
2285
+ exports.StarrefPermilleTooLow = StarrefPermilleTooLow;
2286
+ class StarsInvoiceInvalid extends BadRequest {
2287
+ id = 'STARS_INVOICE_INVALID';
2288
+ message = 'The specified Telegram Star invoice is invalid.';
2289
+ }
2290
+ exports.StarsInvoiceInvalid = StarsInvoiceInvalid;
2291
+ class StarsPaymentRequired extends BadRequest {
2292
+ id = 'STARS_PAYMENT_REQUIRED';
2293
+ message = 'To import this chat invite link, you must first [pay for the associated Telegram Star subscription »](https://core.telegram.org/api/subscriptions#channel-subscriptions).';
2294
+ }
2295
+ exports.StarsPaymentRequired = StarsPaymentRequired;
2296
+ class StartParamEmpty extends BadRequest {
2297
+ id = 'START_PARAM_EMPTY';
2298
+ message = 'The start parameter is empty.';
2299
+ }
2300
+ exports.StartParamEmpty = StartParamEmpty;
2301
+ class StartParamInvalid extends BadRequest {
2302
+ id = 'START_PARAM_INVALID';
2303
+ message = 'Start parameter invalid.';
2304
+ }
2305
+ exports.StartParamInvalid = StartParamInvalid;
2306
+ class StartParamTooLong extends BadRequest {
2307
+ id = 'START_PARAM_TOO_LONG';
2308
+ message = 'Start parameter is too long.';
2309
+ }
2310
+ exports.StartParamTooLong = StartParamTooLong;
2311
+ class StickerpackStickersTooMuch extends BadRequest {
2312
+ id = 'STICKERPACK_STICKERS_TOO_MUCH';
2313
+ message = "There are too many stickers in this stickerpack, you can't add any more.";
2314
+ }
2315
+ exports.StickerpackStickersTooMuch = StickerpackStickersTooMuch;
2316
+ class StickersetInvalid extends BadRequest {
2317
+ id = 'STICKERSET_INVALID';
2318
+ message = 'The provided sticker set is invalid.';
2319
+ }
2320
+ exports.StickersetInvalid = StickersetInvalid;
2321
+ class StickersetNotModified extends BadRequest {
2322
+ id = 'STICKERSET_NOT_MODIFIED';
2323
+ message = 'The passed stickerset information is equal to the current information.';
2324
+ }
2325
+ exports.StickersetNotModified = StickersetNotModified;
2326
+ class StickersEmpty extends BadRequest {
2327
+ id = 'STICKERS_EMPTY';
2328
+ message = 'No sticker provided.';
2329
+ }
2330
+ exports.StickersEmpty = StickersEmpty;
2331
+ class StickersTooMuch extends BadRequest {
2332
+ id = 'STICKERS_TOO_MUCH';
2333
+ message = "There are too many stickers in this stickerpack, you can't add any more.";
2334
+ }
2335
+ exports.StickersTooMuch = StickersTooMuch;
2336
+ class StickerDocumentInvalid extends BadRequest {
2337
+ id = 'STICKER_DOCUMENT_INVALID';
2338
+ message = 'The specified sticker document is invalid.';
2339
+ }
2340
+ exports.StickerDocumentInvalid = StickerDocumentInvalid;
2341
+ class StickerEmojiInvalid extends BadRequest {
2342
+ id = 'STICKER_EMOJI_INVALID';
2343
+ message = 'Sticker emoji invalid.';
2344
+ }
2345
+ exports.StickerEmojiInvalid = StickerEmojiInvalid;
2346
+ class StickerFileInvalid extends BadRequest {
2347
+ id = 'STICKER_FILE_INVALID';
2348
+ message = 'Sticker file invalid.';
2349
+ }
2350
+ exports.StickerFileInvalid = StickerFileInvalid;
2351
+ class StickerGifDimensions extends BadRequest {
2352
+ id = 'STICKER_GIF_DIMENSIONS';
2353
+ message = 'The specified video sticker has invalid dimensions.';
2354
+ }
2355
+ exports.StickerGifDimensions = StickerGifDimensions;
2356
+ class StickerIdInvalid extends BadRequest {
2357
+ id = 'STICKER_ID_INVALID';
2358
+ message = 'The provided sticker ID is invalid.';
2359
+ }
2360
+ exports.StickerIdInvalid = StickerIdInvalid;
2361
+ class StickerInvalid extends BadRequest {
2362
+ id = 'STICKER_INVALID';
2363
+ message = 'The provided sticker is invalid.';
2364
+ }
2365
+ exports.StickerInvalid = StickerInvalid;
2366
+ class StickerMimeInvalid extends BadRequest {
2367
+ id = 'STICKER_MIME_INVALID';
2368
+ message = 'The specified sticker MIME type is invalid.';
2369
+ }
2370
+ exports.StickerMimeInvalid = StickerMimeInvalid;
2371
+ class StickerPngDimensions extends BadRequest {
2372
+ id = 'STICKER_PNG_DIMENSIONS';
2373
+ message = 'Sticker png dimensions invalid.';
2374
+ }
2375
+ exports.StickerPngDimensions = StickerPngDimensions;
2376
+ class StickerPngNopng extends BadRequest {
2377
+ id = 'STICKER_PNG_NOPNG';
2378
+ message = 'One of the specified stickers is not a valid PNG file.';
2379
+ }
2380
+ exports.StickerPngNopng = StickerPngNopng;
2381
+ class StickerTgsNodoc extends BadRequest {
2382
+ id = 'STICKER_TGS_NODOC';
2383
+ message = 'You must send the animated sticker as a document.';
2384
+ }
2385
+ exports.StickerTgsNodoc = StickerTgsNodoc;
2386
+ class StickerTgsNotgs extends BadRequest {
2387
+ id = 'STICKER_TGS_NOTGS';
2388
+ message = 'Invalid TGS sticker provided.';
2389
+ }
2390
+ exports.StickerTgsNotgs = StickerTgsNotgs;
2391
+ class StickerThumbPngNopng extends BadRequest {
2392
+ id = 'STICKER_THUMB_PNG_NOPNG';
2393
+ message = 'Incorrect stickerset thumb file provided, PNG / WEBP expected.';
2394
+ }
2395
+ exports.StickerThumbPngNopng = StickerThumbPngNopng;
2396
+ class StickerThumbTgsNotgs extends BadRequest {
2397
+ id = 'STICKER_THUMB_TGS_NOTGS';
2398
+ message = 'Incorrect stickerset TGS thumb file provided.';
2399
+ }
2400
+ exports.StickerThumbTgsNotgs = StickerThumbTgsNotgs;
2401
+ class StickerVideoBig extends BadRequest {
2402
+ id = 'STICKER_VIDEO_BIG';
2403
+ message = 'The specified video sticker is too big.';
2404
+ }
2405
+ exports.StickerVideoBig = StickerVideoBig;
2406
+ class StickerVideoNodoc extends BadRequest {
2407
+ id = 'STICKER_VIDEO_NODOC';
2408
+ message = 'You must send the video sticker as a document.';
2409
+ }
2410
+ exports.StickerVideoNodoc = StickerVideoNodoc;
2411
+ class StickerVideoNowebm extends BadRequest {
2412
+ id = 'STICKER_VIDEO_NOWEBM';
2413
+ message = 'The specified video sticker is not in webm format.';
2414
+ }
2415
+ exports.StickerVideoNowebm = StickerVideoNowebm;
2416
+ class StoriesNeverCreated extends BadRequest {
2417
+ id = 'STORIES_NEVER_CREATED';
2418
+ message = "This peer hasn't ever posted any stories.";
2419
+ }
2420
+ exports.StoriesNeverCreated = StoriesNeverCreated;
2421
+ class StoriesTooMuch extends BadRequest {
2422
+ id = 'STORIES_TOO_MUCH';
2423
+ message = 'You have hit the maximum active stories limit as specified by the [`story_expiring_limit_*` client configuration parameters](https://core.telegram.org/api/config#story-expiring-limit-default): you should buy a [Premium](https://core.telegram.org/api/premium) subscription, delete an active story, or wait for the oldest story to expire.';
2424
+ }
2425
+ exports.StoriesTooMuch = StoriesTooMuch;
2426
+ class StoryIdEmpty extends BadRequest {
2427
+ id = 'STORY_ID_EMPTY';
2428
+ message = 'You specified no story IDs.';
2429
+ }
2430
+ exports.StoryIdEmpty = StoryIdEmpty;
2431
+ class StoryIdInvalid extends BadRequest {
2432
+ id = 'STORY_ID_INVALID';
2433
+ message = 'The specified story ID is invalid.';
2434
+ }
2435
+ exports.StoryIdInvalid = StoryIdInvalid;
2436
+ class StoryNotModified extends BadRequest {
2437
+ id = 'STORY_NOT_MODIFIED';
2438
+ message = "The new story information you passed is equal to the previous story information, thus it wasn't modified.";
2439
+ }
2440
+ exports.StoryNotModified = StoryNotModified;
2441
+ class StoryPeriodInvalid extends BadRequest {
2442
+ id = 'STORY_PERIOD_INVALID';
2443
+ message = 'The specified story period is invalid for this account.';
2444
+ }
2445
+ exports.StoryPeriodInvalid = StoryPeriodInvalid;
2446
+ class StorySendFloodMonthly extends BadRequest {
2447
+ id = 'STORY_SEND_FLOOD_MONTHLY_X';
2448
+ 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.";
2449
+ }
2450
+ exports.StorySendFloodMonthly = StorySendFloodMonthly;
2451
+ class StorySendFloodWeekly extends BadRequest {
2452
+ id = 'STORY_SEND_FLOOD_WEEKLY_X';
2453
+ 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.";
2454
+ }
2455
+ exports.StorySendFloodWeekly = StorySendFloodWeekly;
2456
+ class SubscriptionExportMissing extends BadRequest {
2457
+ id = 'SUBSCRIPTION_EXPORT_MISSING';
2458
+ 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).';
2459
+ }
2460
+ exports.SubscriptionExportMissing = SubscriptionExportMissing;
2461
+ class SubscriptionPeriodInvalid extends BadRequest {
2462
+ id = 'SUBSCRIPTION_PERIOD_INVALID';
2463
+ message = 'The specified subscription_pricing.period is invalid.';
2464
+ }
2465
+ exports.SubscriptionPeriodInvalid = SubscriptionPeriodInvalid;
2466
+ class SwitchPmTextEmpty extends BadRequest {
2467
+ id = 'SWITCH_PM_TEXT_EMPTY';
2468
+ message = 'The switch_pm.text field was empty.';
2469
+ }
2470
+ exports.SwitchPmTextEmpty = SwitchPmTextEmpty;
2471
+ class SwitchWebviewUrlInvalid extends BadRequest {
2472
+ id = 'SWITCH_WEBVIEW_URL_INVALID';
2473
+ message = 'The URL specified in switch_webview.url is invalid!';
2474
+ }
2475
+ exports.SwitchWebviewUrlInvalid = SwitchWebviewUrlInvalid;
2476
+ class TakeoutInvalid extends BadRequest {
2477
+ id = 'TAKEOUT_INVALID';
2478
+ message = 'The specified takeout ID is invalid.';
2479
+ }
2480
+ exports.TakeoutInvalid = TakeoutInvalid;
2481
+ class TakeoutRequired extends BadRequest {
2482
+ id = 'TAKEOUT_REQUIRED';
2483
+ message = 'A [takeout](https://core.telegram.org/api/takeout) session needs to be initialized first, [see here » for more info](https://core.telegram.org/api/takeout).';
2484
+ }
2485
+ exports.TakeoutRequired = TakeoutRequired;
2486
+ class TaskAlreadyExists extends BadRequest {
2487
+ id = 'TASK_ALREADY_EXISTS';
2488
+ message = 'An email reset was already requested.';
2489
+ }
2490
+ exports.TaskAlreadyExists = TaskAlreadyExists;
2491
+ class TempAuthKeyAlreadyBound extends BadRequest {
2492
+ id = 'TEMP_AUTH_KEY_ALREADY_BOUND';
2493
+ message = 'The passed temporary key is already bound to another **perm_auth_key_id**.';
2494
+ }
2495
+ exports.TempAuthKeyAlreadyBound = TempAuthKeyAlreadyBound;
2496
+ class TempAuthKeyEmpty extends BadRequest {
2497
+ id = 'TEMP_AUTH_KEY_EMPTY';
2498
+ message = 'No temporary auth key provided.';
2499
+ }
2500
+ exports.TempAuthKeyEmpty = TempAuthKeyEmpty;
2501
+ class TermsUrlInvalid extends BadRequest {
2502
+ id = 'TERMS_URL_INVALID';
2503
+ message = 'The specified [invoice](https://core.telegram.org/constructor/invoice).`terms_url` is invalid.';
2504
+ }
2505
+ exports.TermsUrlInvalid = TermsUrlInvalid;
2506
+ class ThemeFileInvalid extends BadRequest {
2507
+ id = 'THEME_FILE_INVALID';
2508
+ message = 'Invalid theme file provided.';
2509
+ }
2510
+ exports.ThemeFileInvalid = ThemeFileInvalid;
2511
+ class ThemeFormatInvalid extends BadRequest {
2512
+ id = 'THEME_FORMAT_INVALID';
2513
+ message = 'Invalid theme format provided.';
2514
+ }
2515
+ exports.ThemeFormatInvalid = ThemeFormatInvalid;
2516
+ class ThemeInvalid extends BadRequest {
2517
+ id = 'THEME_INVALID';
2518
+ message = 'Invalid theme provided.';
2519
+ }
2520
+ exports.ThemeInvalid = ThemeInvalid;
2521
+ class ThemeMimeInvalid extends BadRequest {
2522
+ id = 'THEME_MIME_INVALID';
2523
+ message = "The theme's MIME type is invalid.";
2524
+ }
2525
+ exports.ThemeMimeInvalid = ThemeMimeInvalid;
2526
+ class ThemeParamsInvalid extends BadRequest {
2527
+ id = 'THEME_PARAMS_INVALID';
2528
+ message = 'The specified `theme_params` field is invalid.';
2529
+ }
2530
+ exports.ThemeParamsInvalid = ThemeParamsInvalid;
2531
+ class ThemeTitleInvalid extends BadRequest {
2532
+ id = 'THEME_TITLE_INVALID';
2533
+ message = 'The specified theme title is invalid.';
2534
+ }
2535
+ exports.ThemeTitleInvalid = ThemeTitleInvalid;
2536
+ class TimezoneInvalid extends BadRequest {
2537
+ id = 'TIMEZONE_INVALID';
2538
+ message = 'The specified timezone does not exist.';
2539
+ }
2540
+ exports.TimezoneInvalid = TimezoneInvalid;
2541
+ class TitleInvalid extends BadRequest {
2542
+ id = 'TITLE_INVALID';
2543
+ message = 'The specified stickerpack title is invalid.';
2544
+ }
2545
+ exports.TitleInvalid = TitleInvalid;
2546
+ class TmpPasswordDisabled extends BadRequest {
2547
+ id = 'TMP_PASSWORD_DISABLED';
2548
+ message = 'The temporary password is disabled.';
2549
+ }
2550
+ exports.TmpPasswordDisabled = TmpPasswordDisabled;
2551
+ class TmpPasswordInvalid extends BadRequest {
2552
+ id = 'TMP_PASSWORD_INVALID';
2553
+ message = 'The passed tmp_password is invalid.';
2554
+ }
2555
+ exports.TmpPasswordInvalid = TmpPasswordInvalid;
2556
+ class TokenEmpty extends BadRequest {
2557
+ id = 'TOKEN_EMPTY';
2558
+ message = 'The specified token is empty.';
2559
+ }
2560
+ exports.TokenEmpty = TokenEmpty;
2561
+ class TokenInvalid extends BadRequest {
2562
+ id = 'TOKEN_INVALID';
2563
+ message = 'The provided token is invalid.';
2564
+ }
2565
+ exports.TokenInvalid = TokenInvalid;
2566
+ class TokenTypeInvalid extends BadRequest {
2567
+ id = 'TOKEN_TYPE_INVALID';
2568
+ message = 'The specified token type is invalid.';
2569
+ }
2570
+ exports.TokenTypeInvalid = TokenTypeInvalid;
2571
+ class TopicsEmpty extends BadRequest {
2572
+ id = 'TOPICS_EMPTY';
2573
+ message = 'You specified no topic IDs.';
2574
+ }
2575
+ exports.TopicsEmpty = TopicsEmpty;
2576
+ class TopicClosed extends BadRequest {
2577
+ id = 'TOPIC_CLOSED';
2578
+ message = "This topic was closed, you can't send messages to it anymore.";
2579
+ }
2580
+ exports.TopicClosed = TopicClosed;
2581
+ class TopicCloseSeparately extends BadRequest {
2582
+ id = 'TOPIC_CLOSE_SEPARATELY';
2583
+ message = 'The `close` flag cannot be provided together with any of the other flags.';
2584
+ }
2585
+ exports.TopicCloseSeparately = TopicCloseSeparately;
2586
+ class TopicDeleted extends BadRequest {
2587
+ id = 'TOPIC_DELETED';
2588
+ message = 'The specified topic was deleted.';
2589
+ }
2590
+ exports.TopicDeleted = TopicDeleted;
2591
+ class TopicHideSeparately extends BadRequest {
2592
+ id = 'TOPIC_HIDE_SEPARATELY';
2593
+ message = 'The `hide` flag cannot be provided together with any of the other flags.';
2594
+ }
2595
+ exports.TopicHideSeparately = TopicHideSeparately;
2596
+ class TopicIdInvalid extends BadRequest {
2597
+ id = 'TOPIC_ID_INVALID';
2598
+ message = 'The specified topic ID is invalid.';
2599
+ }
2600
+ exports.TopicIdInvalid = TopicIdInvalid;
2601
+ class TopicNotModified extends BadRequest {
2602
+ id = 'TOPIC_NOT_MODIFIED';
2603
+ message = 'The updated topic info is equal to the current topic info, nothing was changed.';
2604
+ }
2605
+ exports.TopicNotModified = TopicNotModified;
2606
+ class TopicTitleEmpty extends BadRequest {
2607
+ id = 'TOPIC_TITLE_EMPTY';
2608
+ message = 'The specified topic title is empty.';
2609
+ }
2610
+ exports.TopicTitleEmpty = TopicTitleEmpty;
2611
+ class ToLangInvalid extends BadRequest {
2612
+ id = 'TO_LANG_INVALID';
2613
+ message = 'The specified destination language is invalid.';
2614
+ }
2615
+ exports.ToLangInvalid = ToLangInvalid;
2616
+ class TransactionIdInvalid extends BadRequest {
2617
+ id = 'TRANSACTION_ID_INVALID';
2618
+ message = 'The specified transaction ID is invalid.';
2619
+ }
2620
+ exports.TransactionIdInvalid = TransactionIdInvalid;
2621
+ class TranscriptionFailed extends BadRequest {
2622
+ id = 'TRANSCRIPTION_FAILED';
2623
+ message = 'Audio transcription failed.';
2624
+ }
2625
+ exports.TranscriptionFailed = TranscriptionFailed;
2626
+ class TranslateReqQuotaExceeded extends BadRequest {
2627
+ id = 'TRANSLATE_REQ_QUOTA_EXCEEDED';
2628
+ message = 'Translation is currently unavailable due to a temporary server-side lack of resources.';
2629
+ }
2630
+ exports.TranslateReqQuotaExceeded = TranslateReqQuotaExceeded;
2631
+ class TtlDaysInvalid extends BadRequest {
2632
+ id = 'TTL_DAYS_INVALID';
2633
+ message = 'The provided TTL is invalid.';
2634
+ }
2635
+ exports.TtlDaysInvalid = TtlDaysInvalid;
2636
+ class TtlMediaInvalid extends BadRequest {
2637
+ id = 'TTL_MEDIA_INVALID';
2638
+ message = 'Invalid media Time To Live was provided.';
2639
+ }
2640
+ exports.TtlMediaInvalid = TtlMediaInvalid;
2641
+ class TtlPeriodInvalid extends BadRequest {
2642
+ id = 'TTL_PERIOD_INVALID';
2643
+ message = 'The specified TTL period is invalid.';
2644
+ }
2645
+ exports.TtlPeriodInvalid = TtlPeriodInvalid;
2646
+ class TypesEmpty extends BadRequest {
2647
+ id = 'TYPES_EMPTY';
2648
+ message = 'No top peer type was provided.';
2649
+ }
2650
+ exports.TypesEmpty = TypesEmpty;
2651
+ class TypeConstructorInvalid extends BadRequest {
2652
+ id = 'TYPE_CONSTRUCTOR_INVALID';
2653
+ message = 'The type constructor is invalid';
2654
+ }
2655
+ exports.TypeConstructorInvalid = TypeConstructorInvalid;
2656
+ class UntilDateInvalid extends BadRequest {
2657
+ id = 'UNTIL_DATE_INVALID';
2658
+ message = 'Invalid until date provided.';
2659
+ }
2660
+ exports.UntilDateInvalid = UntilDateInvalid;
2661
+ class UrlInvalid extends BadRequest {
2662
+ id = 'URL_INVALID';
2663
+ message = 'Invalid URL provided.';
2664
+ }
2665
+ exports.UrlInvalid = UrlInvalid;
2666
+ class UsageLimitInvalid extends BadRequest {
2667
+ id = 'USAGE_LIMIT_INVALID';
2668
+ message = 'The specified usage limit is invalid.';
2669
+ }
2670
+ exports.UsageLimitInvalid = UsageLimitInvalid;
2671
+ class UsernamesActiveTooMuch extends BadRequest {
2672
+ id = 'USERNAMES_ACTIVE_TOO_MUCH';
2673
+ message = 'The maximum number of active usernames was reached.';
2674
+ }
2675
+ exports.UsernamesActiveTooMuch = UsernamesActiveTooMuch;
2676
+ class UsernameInvalid extends BadRequest {
2677
+ id = 'USERNAME_INVALID';
2678
+ message = 'The provided username is not valid.';
2679
+ }
2680
+ exports.UsernameInvalid = UsernameInvalid;
2681
+ class UsernameNotModified extends BadRequest {
2682
+ id = 'USERNAME_NOT_MODIFIED';
2683
+ message = 'The username was not modified.';
2684
+ }
2685
+ exports.UsernameNotModified = UsernameNotModified;
2686
+ class UsernameNotOccupied extends BadRequest {
2687
+ id = 'USERNAME_NOT_OCCUPIED';
2688
+ message = 'The provided username is not occupied.';
2689
+ }
2690
+ exports.UsernameNotOccupied = UsernameNotOccupied;
2691
+ class UsernameOccupied extends BadRequest {
2692
+ id = 'USERNAME_OCCUPIED';
2693
+ message = 'The provided username is already occupied.';
2694
+ }
2695
+ exports.UsernameOccupied = UsernameOccupied;
2696
+ class UsernamePurchaseAvailable extends BadRequest {
2697
+ id = 'USERNAME_PURCHASE_AVAILABLE';
2698
+ message = 'The specified username can be purchased on https://fragment.com.';
2699
+ }
2700
+ exports.UsernamePurchaseAvailable = UsernamePurchaseAvailable;
2701
+ class UserpicUploadRequired extends BadRequest {
2702
+ id = 'USERPIC_UPLOAD_REQUIRED';
2703
+ message = 'You must have a profile picture to publish your geolocation.';
2704
+ }
2705
+ exports.UserpicUploadRequired = UserpicUploadRequired;
2706
+ class UsersTooFew extends BadRequest {
2707
+ id = 'USERS_TOO_FEW';
2708
+ message = 'Not enough users (to create a chat, for example).';
2709
+ }
2710
+ exports.UsersTooFew = UsersTooFew;
2711
+ class UsersTooMuch extends BadRequest {
2712
+ id = 'USERS_TOO_MUCH';
2713
+ message = 'The maximum number of users has been exceeded (to create a chat, for example).';
2714
+ }
2715
+ exports.UsersTooMuch = UsersTooMuch;
2716
+ class UserAdminInvalid extends BadRequest {
2717
+ id = 'USER_ADMIN_INVALID';
2718
+ message = "You're not an admin.";
2719
+ }
2720
+ exports.UserAdminInvalid = UserAdminInvalid;
2721
+ class UserAlreadyInvited extends BadRequest {
2722
+ id = 'USER_ALREADY_INVITED';
2723
+ message = 'You have already invited this user.';
2724
+ }
2725
+ exports.UserAlreadyInvited = UserAlreadyInvited;
2726
+ class UserAlreadyParticipant extends BadRequest {
2727
+ id = 'USER_ALREADY_PARTICIPANT';
2728
+ message = 'The user is already in the group.';
2729
+ }
2730
+ exports.UserAlreadyParticipant = UserAlreadyParticipant;
2731
+ class UserBannedInChannel extends BadRequest {
2732
+ id = 'USER_BANNED_IN_CHANNEL';
2733
+ message = "You're banned from sending messages in supergroups/channels.";
2734
+ }
2735
+ exports.UserBannedInChannel = UserBannedInChannel;
2736
+ class UserBlocked extends BadRequest {
2737
+ id = 'USER_BLOCKED';
2738
+ message = 'User blocked.';
2739
+ }
2740
+ exports.UserBlocked = UserBlocked;
2741
+ class UserBot extends BadRequest {
2742
+ id = 'USER_BOT';
2743
+ message = 'Bots can only be admins in channels.';
2744
+ }
2745
+ exports.UserBot = UserBot;
2746
+ class UserBotInvalid extends BadRequest {
2747
+ id = 'USER_BOT_INVALID';
2748
+ message = 'User accounts must provide the `bot` method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.';
2749
+ }
2750
+ exports.UserBotInvalid = UserBotInvalid;
2751
+ class UserBotRequired extends BadRequest {
2752
+ id = 'USER_BOT_REQUIRED';
2753
+ message = 'This method can only be called by a bot.';
2754
+ }
2755
+ exports.UserBotRequired = UserBotRequired;
2756
+ class UserChannelsTooMuch extends BadRequest {
2757
+ id = 'USER_CHANNELS_TOO_MUCH';
2758
+ message = 'One of the users you tried to add is already in too many channels/supergroups.';
2759
+ }
2760
+ exports.UserChannelsTooMuch = UserChannelsTooMuch;
2761
+ class UserCreator extends BadRequest {
2762
+ id = 'USER_CREATOR';
2763
+ message = "For channels.editAdmin: you've tried to edit the admin rights of the owner, but you're not the owner; for channels.leaveChannel: you can't leave this channel, because you're its creator.";
2764
+ }
2765
+ exports.UserCreator = UserCreator;
2766
+ class UserGiftUnavailable extends BadRequest {
2767
+ id = 'USER_GIFT_UNAVAILABLE';
2768
+ message = 'Gifts are not available in the current region ([stars_gifts_enabled](https://core.telegram.org/api/config#stars-gifts-enabled) is equal to false).';
2769
+ }
2770
+ exports.UserGiftUnavailable = UserGiftUnavailable;
2771
+ class UserIdInvalid extends BadRequest {
2772
+ id = 'USER_ID_INVALID';
2773
+ message = 'The provided user ID is invalid.';
2774
+ }
2775
+ exports.UserIdInvalid = UserIdInvalid;
2776
+ class UserInvalid extends BadRequest {
2777
+ id = 'USER_INVALID';
2778
+ message = 'Invalid user provided.';
2779
+ }
2780
+ exports.UserInvalid = UserInvalid;
2781
+ class UserIsBlocked extends BadRequest {
2782
+ id = 'USER_IS_BLOCKED';
2783
+ message = 'You were blocked by this user.';
2784
+ }
2785
+ exports.UserIsBlocked = UserIsBlocked;
2786
+ class UserIsBot extends BadRequest {
2787
+ id = 'USER_IS_BOT';
2788
+ message = "Bots can't send messages to other bots.";
2789
+ }
2790
+ exports.UserIsBot = UserIsBot;
2791
+ class UserKicked extends BadRequest {
2792
+ id = 'USER_KICKED';
2793
+ message = 'This user was kicked from this supergroup/channel.';
2794
+ }
2795
+ exports.UserKicked = UserKicked;
2796
+ class UserNotMutualContact extends BadRequest {
2797
+ id = 'USER_NOT_MUTUAL_CONTACT';
2798
+ message = 'The provided user is not a mutual contact.';
2799
+ }
2800
+ exports.UserNotMutualContact = UserNotMutualContact;
2801
+ class UserNotParticipant extends BadRequest {
2802
+ id = 'USER_NOT_PARTICIPANT';
2803
+ message = "You're not a member of this supergroup/channel.";
2804
+ }
2805
+ exports.UserNotParticipant = UserNotParticipant;
2806
+ class UserPublicMissing extends BadRequest {
2807
+ id = 'USER_PUBLIC_MISSING';
2808
+ message = 'Cannot generate a link to stories posted by a peer without a username.';
2809
+ }
2810
+ exports.UserPublicMissing = UserPublicMissing;
2811
+ class UserVolumeInvalid extends BadRequest {
2812
+ id = 'USER_VOLUME_INVALID';
2813
+ message = 'The specified user volume is invalid.';
2814
+ }
2815
+ exports.UserVolumeInvalid = UserVolumeInvalid;
2816
+ class VenueIdInvalid extends BadRequest {
2817
+ id = 'VENUE_ID_INVALID';
2818
+ message = 'The specified venue ID is invalid.';
2819
+ }
2820
+ exports.VenueIdInvalid = VenueIdInvalid;
2821
+ class VideoContentTypeInvalid extends BadRequest {
2822
+ id = 'VIDEO_CONTENT_TYPE_INVALID';
2823
+ message = "The video's content type is invalid.";
2824
+ }
2825
+ exports.VideoContentTypeInvalid = VideoContentTypeInvalid;
2826
+ class VideoFileInvalid extends BadRequest {
2827
+ id = 'VIDEO_FILE_INVALID';
2828
+ message = 'The specified video file is invalid.';
2829
+ }
2830
+ exports.VideoFileInvalid = VideoFileInvalid;
2831
+ class VideoPauseForbidden extends BadRequest {
2832
+ id = 'VIDEO_PAUSE_FORBIDDEN';
2833
+ message = 'You cannot pause the video stream.';
2834
+ }
2835
+ exports.VideoPauseForbidden = VideoPauseForbidden;
2836
+ class VideoStopForbidden extends BadRequest {
2837
+ id = 'VIDEO_STOP_FORBIDDEN';
2838
+ message = 'You cannot stop the video stream.';
2839
+ }
2840
+ exports.VideoStopForbidden = VideoStopForbidden;
2841
+ class VideoTitleEmpty extends BadRequest {
2842
+ id = 'VIDEO_TITLE_EMPTY';
2843
+ message = 'The specified video title is empty.';
2844
+ }
2845
+ exports.VideoTitleEmpty = VideoTitleEmpty;
2846
+ class VoiceMessagesForbidden extends BadRequest {
2847
+ id = 'VOICE_MESSAGES_FORBIDDEN';
2848
+ message = "This user's privacy settings forbid you from sending voice messages.";
2849
+ }
2850
+ exports.VoiceMessagesForbidden = VoiceMessagesForbidden;
2851
+ class VolumeLocNotFound extends BadRequest {
2852
+ id = 'VOLUME_LOC_NOT_FOUND';
2853
+ message = "The volume location can't be found";
2854
+ }
2855
+ exports.VolumeLocNotFound = VolumeLocNotFound;
2856
+ class WallpaperFileInvalid extends BadRequest {
2857
+ id = 'WALLPAPER_FILE_INVALID';
2858
+ message = 'The specified wallpaper file is invalid.';
2859
+ }
2860
+ exports.WallpaperFileInvalid = WallpaperFileInvalid;
2861
+ class WallpaperInvalid extends BadRequest {
2862
+ id = 'WALLPAPER_INVALID';
2863
+ message = 'The specified wallpaper is invalid.';
2864
+ }
2865
+ exports.WallpaperInvalid = WallpaperInvalid;
2866
+ class WallpaperMimeInvalid extends BadRequest {
2867
+ id = 'WALLPAPER_MIME_INVALID';
2868
+ message = 'The specified wallpaper MIME type is invalid.';
2869
+ }
2870
+ exports.WallpaperMimeInvalid = WallpaperMimeInvalid;
2871
+ class WallpaperNotFound extends BadRequest {
2872
+ id = 'WALLPAPER_NOT_FOUND';
2873
+ message = 'The specified wallpaper could not be found.';
2874
+ }
2875
+ exports.WallpaperNotFound = WallpaperNotFound;
2876
+ class WcConvertUrlInvalid extends BadRequest {
2877
+ id = 'WC_CONVERT_URL_INVALID';
2878
+ message = 'WC convert URL invalid.';
2879
+ }
2880
+ exports.WcConvertUrlInvalid = WcConvertUrlInvalid;
2881
+ class WebdocumentInvalid extends BadRequest {
2882
+ id = 'WEBDOCUMENT_INVALID';
2883
+ message = 'Invalid webdocument URL provided.';
2884
+ }
2885
+ exports.WebdocumentInvalid = WebdocumentInvalid;
2886
+ class WebdocumentMimeInvalid extends BadRequest {
2887
+ id = 'WEBDOCUMENT_MIME_INVALID';
2888
+ message = 'Invalid webdocument mime type provided.';
2889
+ }
2890
+ exports.WebdocumentMimeInvalid = WebdocumentMimeInvalid;
2891
+ class WebdocumentSizeTooBig extends BadRequest {
2892
+ id = 'WEBDOCUMENT_SIZE_TOO_BIG';
2893
+ message = 'Webdocument is too big!';
2894
+ }
2895
+ exports.WebdocumentSizeTooBig = WebdocumentSizeTooBig;
2896
+ class WebdocumentUrlEmpty extends BadRequest {
2897
+ id = 'WEBDOCUMENT_URL_EMPTY';
2898
+ message = 'The passed web document URL is empty.';
2899
+ }
2900
+ exports.WebdocumentUrlEmpty = WebdocumentUrlEmpty;
2901
+ class WebdocumentUrlInvalid extends BadRequest {
2902
+ id = 'WEBDOCUMENT_URL_INVALID';
2903
+ message = 'The specified webdocument URL is invalid.';
2904
+ }
2905
+ exports.WebdocumentUrlInvalid = WebdocumentUrlInvalid;
2906
+ class WebpageCurlFailed extends BadRequest {
2907
+ id = 'WEBPAGE_CURL_FAILED';
2908
+ message = 'Failure while fetching the webpage with cURL.';
2909
+ }
2910
+ exports.WebpageCurlFailed = WebpageCurlFailed;
2911
+ class WebpageMediaEmpty extends BadRequest {
2912
+ id = 'WEBPAGE_MEDIA_EMPTY';
2913
+ message = 'Webpage media empty.';
2914
+ }
2915
+ exports.WebpageMediaEmpty = WebpageMediaEmpty;
2916
+ class WebpageNotFound extends BadRequest {
2917
+ id = 'WEBPAGE_NOT_FOUND';
2918
+ message = 'A preview for the specified webpage `url` could not be generated.';
2919
+ }
2920
+ exports.WebpageNotFound = WebpageNotFound;
2921
+ class WebpageUrlInvalid extends BadRequest {
2922
+ id = 'WEBPAGE_URL_INVALID';
2923
+ message = 'The specified webpage `url` is invalid.';
2924
+ }
2925
+ exports.WebpageUrlInvalid = WebpageUrlInvalid;
2926
+ class WebpushAuthInvalid extends BadRequest {
2927
+ id = 'WEBPUSH_AUTH_INVALID';
2928
+ message = 'The specified web push authentication secret is invalid.';
2929
+ }
2930
+ exports.WebpushAuthInvalid = WebpushAuthInvalid;
2931
+ class WebpushKeyInvalid extends BadRequest {
2932
+ id = 'WEBPUSH_KEY_INVALID';
2933
+ message = 'The specified web push elliptic curve Diffie-Hellman public key is invalid.';
2934
+ }
2935
+ exports.WebpushKeyInvalid = WebpushKeyInvalid;
2936
+ class WebpushTokenInvalid extends BadRequest {
2937
+ id = 'WEBPUSH_TOKEN_INVALID';
2938
+ message = 'The specified web push token is invalid.';
2939
+ }
2940
+ exports.WebpushTokenInvalid = WebpushTokenInvalid;
2941
+ class YouBlockedUser extends BadRequest {
2942
+ id = 'YOU_BLOCKED_USER';
2943
+ message = 'You blocked this user.';
2944
+ }
2945
+ exports.YouBlockedUser = YouBlockedUser;