@tgsnake/skema 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/errors/exceptions/All.d.ts +28 -1
- package/dist/errors/exceptions/All.js +28 -1
- package/dist/errors/exceptions/BadRequest400.d.ts +88 -0
- package/dist/errors/exceptions/BadRequest400.js +122 -11
- package/dist/errors/exceptions/Forbidden403.d.ts +4 -0
- package/dist/errors/exceptions/Forbidden403.js +7 -2
- package/dist/errors/exceptions/InternalServerError500.d.ts +16 -0
- package/dist/errors/exceptions/InternalServerError500.js +22 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const count =
|
|
1
|
+
declare const count = 844;
|
|
2
2
|
declare const Exceptions: {
|
|
3
3
|
303: {
|
|
4
4
|
_: string;
|
|
@@ -138,6 +138,7 @@ declare const Exceptions: {
|
|
|
138
138
|
CODE_INVALID: string;
|
|
139
139
|
COLLECTIBLE_INVALID: string;
|
|
140
140
|
COLLECTIBLE_NOT_FOUND: string;
|
|
141
|
+
COLLECTION_ID_INVALID: string;
|
|
141
142
|
COLOR_INVALID: string;
|
|
142
143
|
CONNECTION_API_ID_INVALID: string;
|
|
143
144
|
CONNECTION_APP_VERSION_EMPTY: string;
|
|
@@ -154,6 +155,7 @@ declare const Exceptions: {
|
|
|
154
155
|
CONTACT_NAME_EMPTY: string;
|
|
155
156
|
CONTACT_REQ_MISSING: string;
|
|
156
157
|
CREATE_CALL_FAILED: string;
|
|
158
|
+
CREDENTIAL_INVALID: string;
|
|
157
159
|
CURRENCY_TOTAL_AMOUNT_INVALID: string;
|
|
158
160
|
CUSTOM_REACTIONS_TOO_MANY: string;
|
|
159
161
|
DATA_HASH_SIZE_INVALID: string;
|
|
@@ -164,8 +166,10 @@ declare const Exceptions: {
|
|
|
164
166
|
DC_ID_INVALID: string;
|
|
165
167
|
DH_G_A_INVALID: string;
|
|
166
168
|
DOCUMENT_INVALID: string;
|
|
169
|
+
EFFECT_CHAT_INVALID: string;
|
|
167
170
|
EFFECT_ID_INVALID: string;
|
|
168
171
|
EMAIL_HASH_EXPIRED: string;
|
|
172
|
+
EMAIL_INSTALL_MISSING: string;
|
|
169
173
|
EMAIL_INVALID: string;
|
|
170
174
|
EMAIL_NOT_ALLOWED: string;
|
|
171
175
|
EMAIL_NOT_SETUP: string;
|
|
@@ -191,6 +195,7 @@ declare const Exceptions: {
|
|
|
191
195
|
EXPIRE_DATE_INVALID: string;
|
|
192
196
|
EXPORT_CARD_INVALID: string;
|
|
193
197
|
EXTENDED_MEDIA_AMOUNT_INVALID: string;
|
|
198
|
+
EXTENDED_MEDIA_EMPTY: string;
|
|
194
199
|
EXTENDED_MEDIA_INVALID: string;
|
|
195
200
|
EXTERNAL_URL_INVALID: string;
|
|
196
201
|
FIELD_NAME_EMPTY: string;
|
|
@@ -212,6 +217,7 @@ declare const Exceptions: {
|
|
|
212
217
|
FILE_REFERENCE_EMPTY: string;
|
|
213
218
|
FILE_REFERENCE_EXPIRED: string;
|
|
214
219
|
FILE_REFERENCE_INVALID: string;
|
|
220
|
+
FILE_REFERENCE_X_EMPTY: string;
|
|
215
221
|
FILE_REFERENCE_X_EXPIRED: string;
|
|
216
222
|
FILE_REFERENCE_X_INVALID: string;
|
|
217
223
|
FILE_TITLE_EMPTY: string;
|
|
@@ -277,6 +283,8 @@ declare const Exceptions: {
|
|
|
277
283
|
INPUT_PEERS_EMPTY: string;
|
|
278
284
|
INPUT_PURPOSE_INVALID: string;
|
|
279
285
|
INPUT_REQUEST_TOO_LONG: string;
|
|
286
|
+
INPUT_STARS_AMOUNT_INVALID: string;
|
|
287
|
+
INPUT_STARS_NANOS_INVALID: string;
|
|
280
288
|
INPUT_TEXT_EMPTY: string;
|
|
281
289
|
INPUT_TEXT_TOO_LONG: string;
|
|
282
290
|
INPUT_USER_DEACTIVATED: string;
|
|
@@ -327,6 +335,7 @@ declare const Exceptions: {
|
|
|
327
335
|
MESSAGE_NOT_MODIFIED: string;
|
|
328
336
|
MESSAGE_NOT_READ_YET: string;
|
|
329
337
|
MESSAGE_POLL_CLOSED: string;
|
|
338
|
+
MESSAGE_REQUIRED: string;
|
|
330
339
|
MESSAGE_TOO_LONG: string;
|
|
331
340
|
MESSAGE_TOO_OLD: string;
|
|
332
341
|
METHOD_INVALID: string;
|
|
@@ -337,6 +346,7 @@ declare const Exceptions: {
|
|
|
337
346
|
MSG_VOICE_MISSING: string;
|
|
338
347
|
MSG_WAIT_FAILED: string;
|
|
339
348
|
MULTI_MEDIA_TOO_LONG: string;
|
|
349
|
+
NEED_ACTION_MISSING: string;
|
|
340
350
|
NEW_SALT_INVALID: string;
|
|
341
351
|
NEW_SETTINGS_EMPTY: string;
|
|
342
352
|
NEW_SETTINGS_INVALID: string;
|
|
@@ -404,6 +414,7 @@ declare const Exceptions: {
|
|
|
404
414
|
PHOTO_THUMB_URL_INVALID: string;
|
|
405
415
|
PINNED_DIALOGS_TOO_MUCH: string;
|
|
406
416
|
PINNED_TOO_MUCH: string;
|
|
417
|
+
PINNED_TOPIC_NOT_MODIFIED: string;
|
|
407
418
|
PIN_RESTRICTED: string;
|
|
408
419
|
POLL_ANSWERS_INVALID: string;
|
|
409
420
|
POLL_ANSWER_INVALID: string;
|
|
@@ -413,6 +424,7 @@ declare const Exceptions: {
|
|
|
413
424
|
POLL_UNSUPPORTED: string;
|
|
414
425
|
POLL_VOTE_REQUIRED: string;
|
|
415
426
|
PREMIUM_ACCOUNT_REQUIRED: string;
|
|
427
|
+
PREMIUM_PURPOSE_INVALID: string;
|
|
416
428
|
PRICING_CHAT_INVALID: string;
|
|
417
429
|
PRIVACY_KEY_INVALID: string;
|
|
418
430
|
PRIVACY_TOO_LONG: string;
|
|
@@ -452,6 +464,8 @@ declare const Exceptions: {
|
|
|
452
464
|
REPLY_TO_MONOFORUM_PEER_INVALID: string;
|
|
453
465
|
REPLY_TO_USER_INVALID: string;
|
|
454
466
|
REQUEST_TOKEN_INVALID: string;
|
|
467
|
+
RESELL_STARS_TOO_FEW: string;
|
|
468
|
+
RESELL_STARS_TOO_MUCH: string;
|
|
455
469
|
RESET_REQUEST_MISSING: string;
|
|
456
470
|
RESULTS_TOO_MUCH: string;
|
|
457
471
|
RESULT_ID_DUPLICATE: string;
|
|
@@ -464,6 +478,7 @@ declare const Exceptions: {
|
|
|
464
478
|
RINGTONE_MIME_INVALID: string;
|
|
465
479
|
RSA_DECRYPT_FAILED: string;
|
|
466
480
|
SAVED_ID_EMPTY: string;
|
|
481
|
+
SAVED_PEER_INVALID: string;
|
|
467
482
|
SCHEDULE_BOT_NOT_ALLOWED: string;
|
|
468
483
|
SCHEDULE_DATE_INVALID: string;
|
|
469
484
|
SCHEDULE_DATE_TOO_LATE: string;
|
|
@@ -497,11 +512,18 @@ declare const Exceptions: {
|
|
|
497
512
|
STARGIFT_ALREADY_CONVERTED: string;
|
|
498
513
|
STARGIFT_ALREADY_REFUNDED: string;
|
|
499
514
|
STARGIFT_ALREADY_UPGRADED: string;
|
|
515
|
+
STARGIFT_ATTRIBUTE_INVALID: string;
|
|
500
516
|
STARGIFT_INVALID: string;
|
|
517
|
+
STARGIFT_MESSAGE_INVALID: string;
|
|
501
518
|
STARGIFT_NOT_FOUND: string;
|
|
519
|
+
STARGIFT_NOT_OWNER: string;
|
|
520
|
+
STARGIFT_NOT_UNIQUE: string;
|
|
521
|
+
STARGIFT_OFFER_INVALID: string;
|
|
522
|
+
STARGIFT_OFFER_NOT_ALLOWED: string;
|
|
502
523
|
STARGIFT_OWNER_INVALID: string;
|
|
503
524
|
STARGIFT_PEER_INVALID: string;
|
|
504
525
|
STARGIFT_RESELL_CURRENCY_NOT_ALLOWED: string;
|
|
526
|
+
STARGIFT_RESELL_TOO_EARLY_X: string;
|
|
505
527
|
STARGIFT_SLUG_INVALID: string;
|
|
506
528
|
STARGIFT_TRANSFER_TOO_EARLY_X: string;
|
|
507
529
|
STARGIFT_UPGRADE_UNAVAILABLE: string;
|
|
@@ -669,6 +691,7 @@ declare const Exceptions: {
|
|
|
669
691
|
};
|
|
670
692
|
403: {
|
|
671
693
|
_: string;
|
|
694
|
+
ACCESS_DENIED: string;
|
|
672
695
|
ALLOW_PAYMENT_REQUIRED_X: string;
|
|
673
696
|
ANONYMOUS_REACTIONS_DISABLED: string;
|
|
674
697
|
BOT_ACCESS_FORBIDDEN: string;
|
|
@@ -794,6 +817,7 @@ declare const Exceptions: {
|
|
|
794
817
|
CHAT_OCCUPY_LOC_FAILED: string;
|
|
795
818
|
CHAT_OCCUPY_USERNAME_FAILED: string;
|
|
796
819
|
CHP_CALL_FAIL: string;
|
|
820
|
+
ENCRYPTION_DECLINE_ADMIN_FAILED: string;
|
|
797
821
|
ENCRYPTION_OCCUPY_ADMIN_FAILED: string;
|
|
798
822
|
ENCRYPTION_OCCUPY_FAILED: string;
|
|
799
823
|
FOLDER_DEAC_AUTOFIX_ALL: string;
|
|
@@ -814,9 +838,11 @@ declare const Exceptions: {
|
|
|
814
838
|
MSG_WAIT_FAILED: string;
|
|
815
839
|
MT_SEND_QUEUE_TOO_LONG: string;
|
|
816
840
|
NEED_CHAT_INVALID: string;
|
|
841
|
+
NEED_DOC_INVALID: string;
|
|
817
842
|
NEED_MEMBER_INVALID: string;
|
|
818
843
|
No_workers_running: string;
|
|
819
844
|
PARTICIPANT_CALL_FAILED: string;
|
|
845
|
+
PASSKEY_AUTH_RESTART: string;
|
|
820
846
|
PERSISTENT_TIMESTAMP_OUTDATED: string;
|
|
821
847
|
PHOTO_CREATE_FAILED: string;
|
|
822
848
|
POSTPONED_TIMEOUT: string;
|
|
@@ -835,6 +861,7 @@ declare const Exceptions: {
|
|
|
835
861
|
UNKNOWN_METHOD: string;
|
|
836
862
|
UPLOAD_NO_VOLUME: string;
|
|
837
863
|
VOLUME_LOC_NOT_FOUND: string;
|
|
864
|
+
VOLUME_MOVE_INVALID: string;
|
|
838
865
|
WORKER_BUSY_TOO_LONG_RETRY: string;
|
|
839
866
|
WP_ID_GENERATE_FAILED: string;
|
|
840
867
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.count = exports.Exceptions = void 0;
|
|
4
|
-
const count =
|
|
4
|
+
const count = 844;
|
|
5
5
|
exports.count = count;
|
|
6
6
|
const Exceptions = {
|
|
7
7
|
303: {
|
|
@@ -142,6 +142,7 @@ const Exceptions = {
|
|
|
142
142
|
CODE_INVALID: 'BadRequest.CodeInvalid',
|
|
143
143
|
COLLECTIBLE_INVALID: 'BadRequest.CollectibleInvalid',
|
|
144
144
|
COLLECTIBLE_NOT_FOUND: 'BadRequest.CollectibleNotFound',
|
|
145
|
+
COLLECTION_ID_INVALID: 'BadRequest.CollectionIdInvalid',
|
|
145
146
|
COLOR_INVALID: 'BadRequest.ColorInvalid',
|
|
146
147
|
CONNECTION_API_ID_INVALID: 'BadRequest.ConnectionApiIdInvalid',
|
|
147
148
|
CONNECTION_APP_VERSION_EMPTY: 'BadRequest.ConnectionAppVersionEmpty',
|
|
@@ -158,6 +159,7 @@ const Exceptions = {
|
|
|
158
159
|
CONTACT_NAME_EMPTY: 'BadRequest.ContactNameEmpty',
|
|
159
160
|
CONTACT_REQ_MISSING: 'BadRequest.ContactReqMissing',
|
|
160
161
|
CREATE_CALL_FAILED: 'BadRequest.CreateCallFailed',
|
|
162
|
+
CREDENTIAL_INVALID: 'BadRequest.CredentialInvalid',
|
|
161
163
|
CURRENCY_TOTAL_AMOUNT_INVALID: 'BadRequest.CurrencyTotalAmountInvalid',
|
|
162
164
|
CUSTOM_REACTIONS_TOO_MANY: 'BadRequest.CustomReactionsTooMany',
|
|
163
165
|
DATA_HASH_SIZE_INVALID: 'BadRequest.DataHashSizeInvalid',
|
|
@@ -168,8 +170,10 @@ const Exceptions = {
|
|
|
168
170
|
DC_ID_INVALID: 'BadRequest.DcIdInvalid',
|
|
169
171
|
DH_G_A_INVALID: 'BadRequest.DhGAInvalid',
|
|
170
172
|
DOCUMENT_INVALID: 'BadRequest.DocumentInvalid',
|
|
173
|
+
EFFECT_CHAT_INVALID: 'BadRequest.EffectChatInvalid',
|
|
171
174
|
EFFECT_ID_INVALID: 'BadRequest.EffectIdInvalid',
|
|
172
175
|
EMAIL_HASH_EXPIRED: 'BadRequest.EmailHashExpired',
|
|
176
|
+
EMAIL_INSTALL_MISSING: 'BadRequest.EmailInstallMissing',
|
|
173
177
|
EMAIL_INVALID: 'BadRequest.EmailInvalid',
|
|
174
178
|
EMAIL_NOT_ALLOWED: 'BadRequest.EmailNotAllowed',
|
|
175
179
|
EMAIL_NOT_SETUP: 'BadRequest.EmailNotSetup',
|
|
@@ -195,6 +199,7 @@ const Exceptions = {
|
|
|
195
199
|
EXPIRE_DATE_INVALID: 'BadRequest.ExpireDateInvalid',
|
|
196
200
|
EXPORT_CARD_INVALID: 'BadRequest.ExportCardInvalid',
|
|
197
201
|
EXTENDED_MEDIA_AMOUNT_INVALID: 'BadRequest.ExtendedMediaAmountInvalid',
|
|
202
|
+
EXTENDED_MEDIA_EMPTY: 'BadRequest.ExtendedMediaEmpty',
|
|
198
203
|
EXTENDED_MEDIA_INVALID: 'BadRequest.ExtendedMediaInvalid',
|
|
199
204
|
EXTERNAL_URL_INVALID: 'BadRequest.ExternalUrlInvalid',
|
|
200
205
|
FIELD_NAME_EMPTY: 'BadRequest.FieldNameEmpty',
|
|
@@ -216,6 +221,7 @@ const Exceptions = {
|
|
|
216
221
|
FILE_REFERENCE_EMPTY: 'BadRequest.FileReferenceEmpty',
|
|
217
222
|
FILE_REFERENCE_EXPIRED: 'BadRequest.FileReferenceExpired',
|
|
218
223
|
FILE_REFERENCE_INVALID: 'BadRequest.FileReferenceInvalid',
|
|
224
|
+
FILE_REFERENCE_X_EMPTY: 'BadRequest.FileReferenceXEmpty',
|
|
219
225
|
FILE_REFERENCE_X_EXPIRED: 'BadRequest.FileReferenceXExpired',
|
|
220
226
|
FILE_REFERENCE_X_INVALID: 'BadRequest.FileReferenceXInvalid',
|
|
221
227
|
FILE_TITLE_EMPTY: 'BadRequest.FileTitleEmpty',
|
|
@@ -281,6 +287,8 @@ const Exceptions = {
|
|
|
281
287
|
INPUT_PEERS_EMPTY: 'BadRequest.InputPeersEmpty',
|
|
282
288
|
INPUT_PURPOSE_INVALID: 'BadRequest.InputPurposeInvalid',
|
|
283
289
|
INPUT_REQUEST_TOO_LONG: 'BadRequest.InputRequestTooLong',
|
|
290
|
+
INPUT_STARS_AMOUNT_INVALID: 'BadRequest.InputStarsAmountInvalid',
|
|
291
|
+
INPUT_STARS_NANOS_INVALID: 'BadRequest.InputStarsNanosInvalid',
|
|
284
292
|
INPUT_TEXT_EMPTY: 'BadRequest.InputTextEmpty',
|
|
285
293
|
INPUT_TEXT_TOO_LONG: 'BadRequest.InputTextTooLong',
|
|
286
294
|
INPUT_USER_DEACTIVATED: 'BadRequest.InputUserDeactivated',
|
|
@@ -331,6 +339,7 @@ const Exceptions = {
|
|
|
331
339
|
MESSAGE_NOT_MODIFIED: 'BadRequest.MessageNotModified',
|
|
332
340
|
MESSAGE_NOT_READ_YET: 'BadRequest.MessageNotReadYet',
|
|
333
341
|
MESSAGE_POLL_CLOSED: 'BadRequest.MessagePollClosed',
|
|
342
|
+
MESSAGE_REQUIRED: 'BadRequest.MessageRequired',
|
|
334
343
|
MESSAGE_TOO_LONG: 'BadRequest.MessageTooLong',
|
|
335
344
|
MESSAGE_TOO_OLD: 'BadRequest.MessageTooOld',
|
|
336
345
|
METHOD_INVALID: 'BadRequest.MethodInvalid',
|
|
@@ -341,6 +350,7 @@ const Exceptions = {
|
|
|
341
350
|
MSG_VOICE_MISSING: 'BadRequest.MsgVoiceMissing',
|
|
342
351
|
MSG_WAIT_FAILED: 'BadRequest.MsgWaitFailed',
|
|
343
352
|
MULTI_MEDIA_TOO_LONG: 'BadRequest.MultiMediaTooLong',
|
|
353
|
+
NEED_ACTION_MISSING: 'BadRequest.NeedActionMissing',
|
|
344
354
|
NEW_SALT_INVALID: 'BadRequest.NewSaltInvalid',
|
|
345
355
|
NEW_SETTINGS_EMPTY: 'BadRequest.NewSettingsEmpty',
|
|
346
356
|
NEW_SETTINGS_INVALID: 'BadRequest.NewSettingsInvalid',
|
|
@@ -408,6 +418,7 @@ const Exceptions = {
|
|
|
408
418
|
PHOTO_THUMB_URL_INVALID: 'BadRequest.PhotoThumbUrlInvalid',
|
|
409
419
|
PINNED_DIALOGS_TOO_MUCH: 'BadRequest.PinnedDialogsTooMuch',
|
|
410
420
|
PINNED_TOO_MUCH: 'BadRequest.PinnedTooMuch',
|
|
421
|
+
PINNED_TOPIC_NOT_MODIFIED: 'BadRequest.PinnedTopicNotModified',
|
|
411
422
|
PIN_RESTRICTED: 'BadRequest.PinRestricted',
|
|
412
423
|
POLL_ANSWERS_INVALID: 'BadRequest.PollAnswersInvalid',
|
|
413
424
|
POLL_ANSWER_INVALID: 'BadRequest.PollAnswerInvalid',
|
|
@@ -417,6 +428,7 @@ const Exceptions = {
|
|
|
417
428
|
POLL_UNSUPPORTED: 'BadRequest.PollUnsupported',
|
|
418
429
|
POLL_VOTE_REQUIRED: 'BadRequest.PollVoteRequired',
|
|
419
430
|
PREMIUM_ACCOUNT_REQUIRED: 'BadRequest.PremiumAccountRequired',
|
|
431
|
+
PREMIUM_PURPOSE_INVALID: 'BadRequest.PremiumPurposeInvalid',
|
|
420
432
|
PRICING_CHAT_INVALID: 'BadRequest.PricingChatInvalid',
|
|
421
433
|
PRIVACY_KEY_INVALID: 'BadRequest.PrivacyKeyInvalid',
|
|
422
434
|
PRIVACY_TOO_LONG: 'BadRequest.PrivacyTooLong',
|
|
@@ -456,6 +468,8 @@ const Exceptions = {
|
|
|
456
468
|
REPLY_TO_MONOFORUM_PEER_INVALID: 'BadRequest.ReplyToMonoforumPeerInvalid',
|
|
457
469
|
REPLY_TO_USER_INVALID: 'BadRequest.ReplyToUserInvalid',
|
|
458
470
|
REQUEST_TOKEN_INVALID: 'BadRequest.RequestTokenInvalid',
|
|
471
|
+
RESELL_STARS_TOO_FEW: 'BadRequest.ResellStarsTooFew',
|
|
472
|
+
RESELL_STARS_TOO_MUCH: 'BadRequest.ResellStarsTooMuch',
|
|
459
473
|
RESET_REQUEST_MISSING: 'BadRequest.ResetRequestMissing',
|
|
460
474
|
RESULTS_TOO_MUCH: 'BadRequest.ResultsTooMuch',
|
|
461
475
|
RESULT_ID_DUPLICATE: 'BadRequest.ResultIdDuplicate',
|
|
@@ -468,6 +482,7 @@ const Exceptions = {
|
|
|
468
482
|
RINGTONE_MIME_INVALID: 'BadRequest.RingtoneMimeInvalid',
|
|
469
483
|
RSA_DECRYPT_FAILED: 'BadRequest.RsaDecryptFailed',
|
|
470
484
|
SAVED_ID_EMPTY: 'BadRequest.SavedIdEmpty',
|
|
485
|
+
SAVED_PEER_INVALID: 'BadRequest.SavedPeerInvalid',
|
|
471
486
|
SCHEDULE_BOT_NOT_ALLOWED: 'BadRequest.ScheduleBotNotAllowed',
|
|
472
487
|
SCHEDULE_DATE_INVALID: 'BadRequest.ScheduleDateInvalid',
|
|
473
488
|
SCHEDULE_DATE_TOO_LATE: 'BadRequest.ScheduleDateTooLate',
|
|
@@ -501,11 +516,18 @@ const Exceptions = {
|
|
|
501
516
|
STARGIFT_ALREADY_CONVERTED: 'BadRequest.StargiftAlreadyConverted',
|
|
502
517
|
STARGIFT_ALREADY_REFUNDED: 'BadRequest.StargiftAlreadyRefunded',
|
|
503
518
|
STARGIFT_ALREADY_UPGRADED: 'BadRequest.StargiftAlreadyUpgraded',
|
|
519
|
+
STARGIFT_ATTRIBUTE_INVALID: 'BadRequest.StargiftAttributeInvalid',
|
|
504
520
|
STARGIFT_INVALID: 'BadRequest.StargiftInvalid',
|
|
521
|
+
STARGIFT_MESSAGE_INVALID: 'BadRequest.StargiftMessageInvalid',
|
|
505
522
|
STARGIFT_NOT_FOUND: 'BadRequest.StargiftNotFound',
|
|
523
|
+
STARGIFT_NOT_OWNER: 'BadRequest.StargiftNotOwner',
|
|
524
|
+
STARGIFT_NOT_UNIQUE: 'BadRequest.StargiftNotUnique',
|
|
525
|
+
STARGIFT_OFFER_INVALID: 'BadRequest.StargiftOfferInvalid',
|
|
526
|
+
STARGIFT_OFFER_NOT_ALLOWED: 'BadRequest.StargiftOfferNotAllowed',
|
|
506
527
|
STARGIFT_OWNER_INVALID: 'BadRequest.StargiftOwnerInvalid',
|
|
507
528
|
STARGIFT_PEER_INVALID: 'BadRequest.StargiftPeerInvalid',
|
|
508
529
|
STARGIFT_RESELL_CURRENCY_NOT_ALLOWED: 'BadRequest.StargiftResellCurrencyNotAllowed',
|
|
530
|
+
STARGIFT_RESELL_TOO_EARLY_X: 'BadRequest.StargiftResellTooEarly',
|
|
509
531
|
STARGIFT_SLUG_INVALID: 'BadRequest.StargiftSlugInvalid',
|
|
510
532
|
STARGIFT_TRANSFER_TOO_EARLY_X: 'BadRequest.StargiftTransferTooEarly',
|
|
511
533
|
STARGIFT_UPGRADE_UNAVAILABLE: 'BadRequest.StargiftUpgradeUnavailable',
|
|
@@ -673,6 +695,7 @@ const Exceptions = {
|
|
|
673
695
|
},
|
|
674
696
|
403: {
|
|
675
697
|
_: 'Forbidden.Forbidden',
|
|
698
|
+
ACCESS_DENIED: 'Forbidden.AccessDenied',
|
|
676
699
|
ALLOW_PAYMENT_REQUIRED_X: 'Forbidden.AllowPaymentRequired',
|
|
677
700
|
ANONYMOUS_REACTIONS_DISABLED: 'Forbidden.AnonymousReactionsDisabled',
|
|
678
701
|
BOT_ACCESS_FORBIDDEN: 'Forbidden.BotAccessForbidden',
|
|
@@ -798,6 +821,7 @@ const Exceptions = {
|
|
|
798
821
|
CHAT_OCCUPY_LOC_FAILED: 'InternalServerError.ChatOccupyLocFailed',
|
|
799
822
|
CHAT_OCCUPY_USERNAME_FAILED: 'InternalServerError.ChatOccupyUsernameFailed',
|
|
800
823
|
CHP_CALL_FAIL: 'InternalServerError.ChpCallFail',
|
|
824
|
+
ENCRYPTION_DECLINE_ADMIN_FAILED: 'InternalServerError.EncryptionDeclineAdminFailed',
|
|
801
825
|
ENCRYPTION_OCCUPY_ADMIN_FAILED: 'InternalServerError.EncryptionOccupyAdminFailed',
|
|
802
826
|
ENCRYPTION_OCCUPY_FAILED: 'InternalServerError.EncryptionOccupyFailed',
|
|
803
827
|
FOLDER_DEAC_AUTOFIX_ALL: 'InternalServerError.FolderDeacAutofixAll',
|
|
@@ -818,9 +842,11 @@ const Exceptions = {
|
|
|
818
842
|
MSG_WAIT_FAILED: 'InternalServerError.MsgWaitFailed',
|
|
819
843
|
MT_SEND_QUEUE_TOO_LONG: 'InternalServerError.MtSendQueueTooLong',
|
|
820
844
|
NEED_CHAT_INVALID: 'InternalServerError.NeedChatInvalid',
|
|
845
|
+
NEED_DOC_INVALID: 'InternalServerError.NeedDocInvalid',
|
|
821
846
|
NEED_MEMBER_INVALID: 'InternalServerError.NeedMemberInvalid',
|
|
822
847
|
No_workers_running: 'InternalServerError.NoWorkersRunning',
|
|
823
848
|
PARTICIPANT_CALL_FAILED: 'InternalServerError.ParticipantCallFailed',
|
|
849
|
+
PASSKEY_AUTH_RESTART: 'InternalServerError.PasskeyAuthRestart',
|
|
824
850
|
PERSISTENT_TIMESTAMP_OUTDATED: 'InternalServerError.PersistentTimestampOutdated',
|
|
825
851
|
PHOTO_CREATE_FAILED: 'InternalServerError.PhotoCreateFailed',
|
|
826
852
|
POSTPONED_TIMEOUT: 'InternalServerError.PostponedTimeout',
|
|
@@ -839,6 +865,7 @@ const Exceptions = {
|
|
|
839
865
|
UNKNOWN_METHOD: 'InternalServerError.UnknownMethod',
|
|
840
866
|
UPLOAD_NO_VOLUME: 'InternalServerError.UploadNoVolume',
|
|
841
867
|
VOLUME_LOC_NOT_FOUND: 'InternalServerError.VolumeLocNotFound',
|
|
868
|
+
VOLUME_MOVE_INVALID: 'InternalServerError.VolumeMoveInvalid',
|
|
842
869
|
WORKER_BUSY_TOO_LONG_RETRY: 'InternalServerError.WorkerBusyTooLongRetry',
|
|
843
870
|
WP_ID_GENERATE_FAILED: 'InternalServerError.WpIdGenerateFailed',
|
|
844
871
|
},
|
|
@@ -515,6 +515,10 @@ export declare class CollectibleNotFound extends BadRequest {
|
|
|
515
515
|
id: string;
|
|
516
516
|
message: string;
|
|
517
517
|
}
|
|
518
|
+
export declare class CollectionIdInvalid extends BadRequest {
|
|
519
|
+
id: string;
|
|
520
|
+
message: string;
|
|
521
|
+
}
|
|
518
522
|
export declare class ColorInvalid extends BadRequest {
|
|
519
523
|
id: string;
|
|
520
524
|
message: string;
|
|
@@ -579,6 +583,10 @@ export declare class CreateCallFailed extends BadRequest {
|
|
|
579
583
|
id: string;
|
|
580
584
|
message: string;
|
|
581
585
|
}
|
|
586
|
+
export declare class CredentialInvalid extends BadRequest {
|
|
587
|
+
id: string;
|
|
588
|
+
message: string;
|
|
589
|
+
}
|
|
582
590
|
export declare class CurrencyTotalAmountInvalid extends BadRequest {
|
|
583
591
|
id: string;
|
|
584
592
|
message: string;
|
|
@@ -619,6 +627,10 @@ export declare class DocumentInvalid extends BadRequest {
|
|
|
619
627
|
id: string;
|
|
620
628
|
message: string;
|
|
621
629
|
}
|
|
630
|
+
export declare class EffectChatInvalid extends BadRequest {
|
|
631
|
+
id: string;
|
|
632
|
+
message: string;
|
|
633
|
+
}
|
|
622
634
|
export declare class EffectIdInvalid extends BadRequest {
|
|
623
635
|
id: string;
|
|
624
636
|
message: string;
|
|
@@ -627,6 +639,10 @@ export declare class EmailHashExpired extends BadRequest {
|
|
|
627
639
|
id: string;
|
|
628
640
|
message: string;
|
|
629
641
|
}
|
|
642
|
+
export declare class EmailInstallMissing extends BadRequest {
|
|
643
|
+
id: string;
|
|
644
|
+
message: string;
|
|
645
|
+
}
|
|
630
646
|
export declare class EmailInvalid extends BadRequest {
|
|
631
647
|
id: string;
|
|
632
648
|
message: string;
|
|
@@ -727,6 +743,10 @@ export declare class ExtendedMediaAmountInvalid extends BadRequest {
|
|
|
727
743
|
id: string;
|
|
728
744
|
message: string;
|
|
729
745
|
}
|
|
746
|
+
export declare class ExtendedMediaEmpty extends BadRequest {
|
|
747
|
+
id: string;
|
|
748
|
+
message: string;
|
|
749
|
+
}
|
|
730
750
|
export declare class ExtendedMediaInvalid extends BadRequest {
|
|
731
751
|
id: string;
|
|
732
752
|
message: string;
|
|
@@ -811,6 +831,10 @@ export declare class FileReferenceInvalid extends BadRequest {
|
|
|
811
831
|
id: string;
|
|
812
832
|
message: string;
|
|
813
833
|
}
|
|
834
|
+
export declare class FileReferenceXEmpty extends BadRequest {
|
|
835
|
+
id: string;
|
|
836
|
+
message: string;
|
|
837
|
+
}
|
|
814
838
|
export declare class FileReferenceXExpired extends BadRequest {
|
|
815
839
|
id: string;
|
|
816
840
|
message: string;
|
|
@@ -1071,6 +1095,14 @@ export declare class InputRequestTooLong extends BadRequest {
|
|
|
1071
1095
|
id: string;
|
|
1072
1096
|
message: string;
|
|
1073
1097
|
}
|
|
1098
|
+
export declare class InputStarsAmountInvalid extends BadRequest {
|
|
1099
|
+
id: string;
|
|
1100
|
+
message: string;
|
|
1101
|
+
}
|
|
1102
|
+
export declare class InputStarsNanosInvalid extends BadRequest {
|
|
1103
|
+
id: string;
|
|
1104
|
+
message: string;
|
|
1105
|
+
}
|
|
1074
1106
|
export declare class InputTextEmpty extends BadRequest {
|
|
1075
1107
|
id: string;
|
|
1076
1108
|
message: string;
|
|
@@ -1271,6 +1303,10 @@ export declare class MessagePollClosed extends BadRequest {
|
|
|
1271
1303
|
id: string;
|
|
1272
1304
|
message: string;
|
|
1273
1305
|
}
|
|
1306
|
+
export declare class MessageRequired extends BadRequest {
|
|
1307
|
+
id: string;
|
|
1308
|
+
message: string;
|
|
1309
|
+
}
|
|
1274
1310
|
export declare class MessageTooLong extends BadRequest {
|
|
1275
1311
|
id: string;
|
|
1276
1312
|
message: string;
|
|
@@ -1311,6 +1347,10 @@ export declare class MultiMediaTooLong extends BadRequest {
|
|
|
1311
1347
|
id: string;
|
|
1312
1348
|
message: string;
|
|
1313
1349
|
}
|
|
1350
|
+
export declare class NeedActionMissing extends BadRequest {
|
|
1351
|
+
id: string;
|
|
1352
|
+
message: string;
|
|
1353
|
+
}
|
|
1314
1354
|
export declare class NewSaltInvalid extends BadRequest {
|
|
1315
1355
|
id: string;
|
|
1316
1356
|
message: string;
|
|
@@ -1579,6 +1619,10 @@ export declare class PinnedTooMuch extends BadRequest {
|
|
|
1579
1619
|
id: string;
|
|
1580
1620
|
message: string;
|
|
1581
1621
|
}
|
|
1622
|
+
export declare class PinnedTopicNotModified extends BadRequest {
|
|
1623
|
+
id: string;
|
|
1624
|
+
message: string;
|
|
1625
|
+
}
|
|
1582
1626
|
export declare class PinRestricted extends BadRequest {
|
|
1583
1627
|
id: string;
|
|
1584
1628
|
message: string;
|
|
@@ -1615,6 +1659,10 @@ export declare class PremiumAccountRequired extends BadRequest {
|
|
|
1615
1659
|
id: string;
|
|
1616
1660
|
message: string;
|
|
1617
1661
|
}
|
|
1662
|
+
export declare class PremiumPurposeInvalid extends BadRequest {
|
|
1663
|
+
id: string;
|
|
1664
|
+
message: string;
|
|
1665
|
+
}
|
|
1618
1666
|
export declare class PricingChatInvalid extends BadRequest {
|
|
1619
1667
|
id: string;
|
|
1620
1668
|
message: string;
|
|
@@ -1771,6 +1819,14 @@ export declare class RequestTokenInvalid extends BadRequest {
|
|
|
1771
1819
|
id: string;
|
|
1772
1820
|
message: string;
|
|
1773
1821
|
}
|
|
1822
|
+
export declare class ResellStarsTooFew extends BadRequest {
|
|
1823
|
+
id: string;
|
|
1824
|
+
message: string;
|
|
1825
|
+
}
|
|
1826
|
+
export declare class ResellStarsTooMuch extends BadRequest {
|
|
1827
|
+
id: string;
|
|
1828
|
+
message: string;
|
|
1829
|
+
}
|
|
1774
1830
|
export declare class ResetRequestMissing extends BadRequest {
|
|
1775
1831
|
id: string;
|
|
1776
1832
|
message: string;
|
|
@@ -1819,6 +1875,10 @@ export declare class SavedIdEmpty extends BadRequest {
|
|
|
1819
1875
|
id: string;
|
|
1820
1876
|
message: string;
|
|
1821
1877
|
}
|
|
1878
|
+
export declare class SavedPeerInvalid extends BadRequest {
|
|
1879
|
+
id: string;
|
|
1880
|
+
message: string;
|
|
1881
|
+
}
|
|
1822
1882
|
export declare class ScheduleBotNotAllowed extends BadRequest {
|
|
1823
1883
|
id: string;
|
|
1824
1884
|
message: string;
|
|
@@ -1951,14 +2011,38 @@ export declare class StargiftAlreadyUpgraded extends BadRequest {
|
|
|
1951
2011
|
id: string;
|
|
1952
2012
|
message: string;
|
|
1953
2013
|
}
|
|
2014
|
+
export declare class StargiftAttributeInvalid extends BadRequest {
|
|
2015
|
+
id: string;
|
|
2016
|
+
message: string;
|
|
2017
|
+
}
|
|
1954
2018
|
export declare class StargiftInvalid extends BadRequest {
|
|
1955
2019
|
id: string;
|
|
1956
2020
|
message: string;
|
|
1957
2021
|
}
|
|
2022
|
+
export declare class StargiftMessageInvalid extends BadRequest {
|
|
2023
|
+
id: string;
|
|
2024
|
+
message: string;
|
|
2025
|
+
}
|
|
1958
2026
|
export declare class StargiftNotFound extends BadRequest {
|
|
1959
2027
|
id: string;
|
|
1960
2028
|
message: string;
|
|
1961
2029
|
}
|
|
2030
|
+
export declare class StargiftNotOwner extends BadRequest {
|
|
2031
|
+
id: string;
|
|
2032
|
+
message: string;
|
|
2033
|
+
}
|
|
2034
|
+
export declare class StargiftNotUnique extends BadRequest {
|
|
2035
|
+
id: string;
|
|
2036
|
+
message: string;
|
|
2037
|
+
}
|
|
2038
|
+
export declare class StargiftOfferInvalid extends BadRequest {
|
|
2039
|
+
id: string;
|
|
2040
|
+
message: string;
|
|
2041
|
+
}
|
|
2042
|
+
export declare class StargiftOfferNotAllowed extends BadRequest {
|
|
2043
|
+
id: string;
|
|
2044
|
+
message: string;
|
|
2045
|
+
}
|
|
1962
2046
|
export declare class StargiftOwnerInvalid extends BadRequest {
|
|
1963
2047
|
id: string;
|
|
1964
2048
|
message: string;
|
|
@@ -1971,6 +2055,10 @@ export declare class StargiftResellCurrencyNotAllowed extends BadRequest {
|
|
|
1971
2055
|
id: string;
|
|
1972
2056
|
message: string;
|
|
1973
2057
|
}
|
|
2058
|
+
export declare class StargiftResellTooEarly extends BadRequest {
|
|
2059
|
+
id: string;
|
|
2060
|
+
message: string;
|
|
2061
|
+
}
|
|
1974
2062
|
export declare class StargiftSlugInvalid extends BadRequest {
|
|
1975
2063
|
id: string;
|
|
1976
2064
|
message: string;
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BotMethodInvalid = exports.BotInvoiceInvalid = exports.BotInvalid = exports.BotInlineDisabled = exports.BotGroupsBlocked = exports.BotGamesDisabled = exports.BotFallbackUnsupported = exports.BotDomainInvalid = exports.BotCommandInvalid = exports.BotCommandDescriptionInvalid = exports.BotChannelsNa = exports.BotBusinessMissing = exports.BotAppShortnameInvalid = exports.BotAppInvalid = exports.BotAppBotInvalid = exports.BotAlreadyDisabled = exports.BotsTooMuch = exports.BoostPeerInvalid = exports.BoostNotModified = exports.BoostsRequired = exports.BoostsEmpty = exports.BirthdayInvalid = exports.BasePortLocInvalid = exports.BannedRightsInvalid = exports.BankCardNumberInvalid = exports.BalanceTooLow = exports.AutoarchiveNotAvailable = exports.AuthTokenInvalidx = exports.AuthTokenInvalid = exports.AuthTokenExpired = exports.AuthTokenException = exports.AuthTokenAlreadyAccepted = exports.AuthBytesInvalid = exports.AudioTitleEmpty = exports.AudioContentUrlEmpty = exports.ArticleTitleEmpty = exports.ApiIdPublishedFlood = exports.ApiIdInvalid = exports.AlbumPhotosTooMany = exports.AdExpired = exports.AdminRightsEmpty = exports.AdminRankInvalid = exports.AdminRankEmojiNotAllowed = exports.AdminIdInvalid = exports.AdminsTooMuch = exports.AddressInvalid = exports.AccessTokenInvalid = exports.AccessTokenExpired = exports.AboutTooLong = exports.BadRequest = void 0;
|
|
4
4
|
exports.ChargeIdEmpty = exports.ChargeAlreadyRefunded = exports.ChannelTooLarge = exports.ChannelTooBig = exports.ChannelPrivate = exports.ChannelParicipantMissing = exports.ChannelMonoforumUnsupported = exports.ChannelInvalid = exports.ChannelIdInvalid = exports.ChannelForumMissing = exports.ChannelBanned = exports.ChannelAddInvalid = exports.ChannelsTooMuch = exports.ChannelsAdminPublicTooMuch = exports.ChannelsAdminLocatedTooMuch = exports.CdnMethodInvalid = exports.CallProtocolLayerInvalid = exports.CallProtocolFlagsInvalid = exports.CallPeerInvalid = exports.CallOccupyFailed = exports.CallAlreadyDeclined = exports.CallAlreadyAccepted = exports.ButtonUserPrivacyRestricted = exports.ButtonUserInvalid = exports.ButtonUrlInvalid = exports.ButtonTypeInvalid = exports.ButtonTextInvalid = exports.ButtonPosInvalid = exports.ButtonInvalid = exports.ButtonIdInvalid = exports.ButtonDataInvalid = exports.ButtonCopyTextInvalid = exports.BusinessWorkHoursPeriodInvalid = exports.BusinessWorkHoursEmpty = exports.BusinessRecipientsEmpty = exports.BusinessPeerUsageMissing = exports.BusinessPeerInvalid = exports.BusinessConnectionNotAllowed = exports.BusinessConnectionInvalid = exports.BroadcastRequired = exports.BroadcastPublicVotersForbidden = exports.BroadcastIdInvalid = exports.BotWebviewDisabled = exports.BotScoreNotModified = exports.BotResponseTimeout = exports.BotPollsDisabled = exports.BotPaymentsDisabled = exports.BotOnesideNotAvail = exports.BotNotConnectedYet = exports.BotMissing = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
5
|
+
exports.DataHashSizeInvalid = exports.CustomReactionsTooMany = exports.CurrencyTotalAmountInvalid = exports.CredentialInvalid = exports.CreateCallFailed = exports.ContactReqMissing = exports.ContactNameEmpty = exports.ContactMissing = exports.ContactIdInvalid = exports.ContactAddMissing = exports.ConnectionSystemLangCodeEmpty = exports.ConnectionSystemEmpty = exports.ConnectionNotInited = exports.ConnectionLayerInvalid = exports.ConnectionLangPackInvalid = exports.ConnectionIdInvalid = exports.ConnectionDeviceModelEmpty = exports.ConnectionAppVersionEmpty = exports.ConnectionApiIdInvalid = exports.ColorInvalid = exports.CollectionIdInvalid = exports.CollectibleNotFound = exports.CollectibleInvalid = exports.CodeInvalid = exports.CodeHashInvalid = exports.CodeEmpty = exports.ChatTooBig = exports.ChatTitleEmpty = exports.ChatSendInlineForbidden = exports.ChatRevokeDateUnsupported = exports.ChatRestricted = exports.ChatPublicRequired = exports.ChatNotModified = exports.ChatMemberAddFailed = exports.ChatLinkExists = exports.ChatInvitePermanent = exports.ChatInvalid = exports.ChatIdInvalid = exports.ChatIdEmpty = exports.ChatForwardsRestricted = exports.ChatDiscussionUnallowed = exports.ChatAdminRequired = exports.ChatAboutTooLong = exports.ChatAboutNotModified = exports.ChatlistExcludeInvalid = exports.ChatlistsTooMuch = exports.ChatlinkSlugExpired = exports.ChatlinkSlugEmpty = exports.ChatlinksTooMuch = exports.ChargeIdInvalid = void 0;
|
|
6
|
+
exports.FilePartSizeChanged = exports.FilePartLengthInvalid = exports.FilePartInvalid = exports.FilePartEmpty = exports.FilePartsInvalid = exports.FileMigrate = exports.FileIdInvalid = exports.FileEmtpy = exports.FileContentTypeInvalid = exports.FieldNameInvalid = exports.FieldNameEmpty = exports.ExternalUrlInvalid = exports.ExtendedMediaInvalid = exports.ExtendedMediaEmpty = exports.ExtendedMediaAmountInvalid = exports.ExportCardInvalid = exports.ExpireDateInvalid = exports.ExpiresAtInvalid = exports.ErrorTextEmpty = exports.EntityMentionUserInvalid = exports.EntityBoundsInvalid = exports.EntitiesTooLong = exports.EncryptionIdInvalid = exports.EncryptionDeclined = exports.EncryptionAlreadyDeclined = exports.EncryptionAlreadyAccepted = exports.EncryptedMessageInvalid = exports.EmoticonStickerpackMissing = exports.EmoticonInvalid = exports.EmoticonEmpty = exports.EmojiNotModified = exports.EmojiMarkupInvalid = exports.EmojiInvalid = exports.EmailVerifyExpired = exports.EmailUnconfirmedX = exports.EmailUnconfirmed = exports.EmailNotSetup = exports.EmailNotAllowed = exports.EmailInvalid = exports.EmailInstallMissing = exports.EmailHashExpired = exports.EffectIdInvalid = exports.EffectChatInvalid = exports.DocumentInvalid = exports.DhGAInvalid = exports.DcIdInvalid = exports.DateEmpty = exports.DataTooLong = exports.DataJsonInvalid = exports.DataInvalid = void 0;
|
|
7
|
+
exports.HashtagInvalid = exports.GroupCallInvalid = exports.GroupedMediaInvalid = exports.GroupcallSsrcDuplicateMuch = exports.GroupcallNotModified = exports.GroupcallJoinMissing = exports.GroupcallInvalid = exports.GroupcallForbidden = exports.GroupcallAlreadyDiscarded = exports.GraphOutdatedReload = exports.GraphInvalidReload = exports.GraphExpiredReload = exports.GifIdInvalid = exports.GifContentTypeInvalid = exports.GiftStarsInvalid = exports.GiftSlugInvalid = exports.GiftSlugExpired = exports.GiftMonthsInvalid = exports.GeoPointInvalid = exports.GeneralModifyIconForbidden = exports.GameBotInvalid = exports.FrozenParticipantMissing = exports.FromPeerInvalid = exports.FromMessageBotDisabled = exports.FreshChangeAdminsForbidden = exports.ForumEnabled = exports.FormUnsupported = exports.FormSubmitDuplicate = exports.FormIdEmpty = exports.FormExpired = exports.FolderIdInvalid = exports.FolderIdEmpty = exports.FirstnameInvalid = exports.FilterTitleEmpty = exports.FilterNotSupported = exports.FilterIncludeEmpty = exports.FilterIdInvalid = exports.FileTokenInvalid = exports.FileTitleEmpty = exports.FileReferenceXInvalid = exports.FileReferenceXExpired = exports.FileReferenceXEmpty = exports.FileReferenceInvalid = exports.FileReferenceExpired = exports.FileReferenceEmpty = exports.FileReferenceAny = exports.FilePartMissing = exports.FilePartTooSmall = exports.FilePartTooBig = exports.FilePartSizeInvalid = void 0;
|
|
8
|
+
exports.LocationInvalid = exports.LinkNotModified = exports.LimitInvalid = exports.LastnameInvalid = exports.LangPackInvalid = exports.LangCodeNotSupported = exports.LangCodeInvalid = exports.LanguageInvalid = exports.JoinAsPeerInvalid = exports.InvoicePayloadInvalid = exports.InvoiceInvalid = exports.InviteSlugInvalid = exports.InviteSlugExpired = exports.InviteSlugEmpty = exports.InviteRevokedMissing = exports.InviteRequestSent = exports.InviteHashInvalid = exports.InviteHashExpired = exports.InviteHashEmpty = exports.InviteForbiddenWithJoinas = exports.InvitesTooMuch = exports.InputUserDeactivated = exports.InputTextTooLong = exports.InputTextEmpty = exports.InputStarsNanosInvalid = exports.InputStarsAmountInvalid = exports.InputRequestTooLong = exports.InputPurposeInvalid = exports.InputPeersEmpty = exports.InputMethodInvalid = exports.InputLayerInvalid = exports.InputFilterInvalid = exports.InputFileInvalid = exports.InputFetchFail = exports.InputFetchError = exports.InputConstructorInvalid = exports.InputChatlistInvalid = exports.InlineResultExpired = exports.ImportTokenInvalid = exports.ImportIdInvalid = exports.ImportHistoryLogEmpty = exports.ImportFormatUnrecognized = exports.ImportFormatDateInvalid = exports.ImportFileInvalid = exports.ImageProcessFailed = exports.IdInvalid = exports.IdExpired = exports.HideRequesterMissing = exports.HashSizeInvalid = exports.HashInvalid = void 0;
|
|
9
|
+
exports.OptionInvalid = exports.OptionsTooMuch = exports.OffsetPeerIdInvalid = exports.OffsetInvalid = exports.NoPaymentNeeded = exports.NotJoined = exports.NotEligible = exports.NogeneralHideForbidden = exports.NextOffsetInvalid = exports.NewSettingsInvalid = exports.NewSettingsEmpty = exports.NewSaltInvalid = exports.NeedActionMissing = exports.MultiMediaTooLong = exports.MsgWaitFailed = exports.MsgVoiceMissing = exports.MsgTooOld = exports.MsgIdInvalid = exports.MonthInvalid = exports.MinDateInvalid = exports.MethodInvalid = exports.MessageTooOld = exports.MessageTooLong = exports.MessageRequired = exports.MessagePollClosed = exports.MessageNotReadYet = exports.MessageNotModified = exports.MessageIdInvalid = exports.MessageIdsEmpty = exports.MessageEmpty = exports.MessageEditTimeExpired = exports.MegagroupRequired = exports.MegagroupPrehistoryHidden = exports.MegagroupIdInvalid = exports.MegagroupGeoRequired = exports.MediaVideoStoryMissing = exports.MediaTypeInvalid = exports.MediaTtlInvalid = exports.MediaPrevInvalid = exports.MediaNewInvalid = exports.MediaInvalid = exports.MediaGroupedInvalid = exports.MediaFileInvalid = exports.MediaEmpty = exports.MediaCaptionTooLong = exports.MediaAlreadyPaid = exports.Md5ChecksumInvalid = exports.MaxQtsInvalid = exports.MaxIdInvalid = exports.MaxDateInvalid = void 0;
|
|
10
|
+
exports.PhotoInvalidDimensions = exports.PhotoInvalid = exports.PhotoIdInvalid = exports.PhotoFileMissing = exports.PhotoExtInvalid = exports.PhotoCropSizeSmall = exports.PhotoCropFileMissing = exports.PhotoContentUrlEmpty = exports.PhotoContentTypeInvalid = exports.PhonePasswordProtected = exports.PhoneNumberUnoccupied = exports.PhoneNumberOccupied = exports.PhoneNumberInvalid = exports.PhoneNumberFlood = exports.PhoneNumberBanned = exports.PhoneNumberAppSignupForbidden = exports.PhoneNotOccupied = exports.PhoneHashExpired = exports.PhoneCodeInvalid = exports.PhoneCodeHashEmpty = exports.PhoneCodeExpired = exports.PhoneCodeEmpty = exports.PersistentTimestampInvalid = exports.PersistentTimestampEmpty = exports.PeerTypesInvalid = exports.PeerIdNotSupported = exports.PeerIdInvalid = exports.PeerHistoryEmpty = exports.PeerFlood = exports.PeersListEmpty = exports.PaymentRequired = exports.PaymentProviderInvalid = exports.PaymentCredentialsInvalid = exports.PasswordTooFresh = exports.PasswordRequired = exports.PasswordRecoveryNa = exports.PasswordRecoveryExpired = exports.PasswordMissing = exports.PasswordHashInvalid = exports.PasswordEmpty = exports.ParticipantVersionOutdated = exports.ParticipantJoinMissing = exports.ParticipantIdInvalid = exports.ParticipantsTooFew = exports.ParentPeerInvalid = exports.PackTypeInvalid = exports.PackTitleInvalid = exports.PackShortNameOccupied = exports.PackShortNameInvalid = exports.OrderInvalid = void 0;
|
|
11
|
+
exports.ReplyMessagesTooMuch = exports.ReplyMarkupTooLong = exports.ReplyMarkupInvalid = exports.ReplyMarkupGameEmpty = exports.ReplyMarkupBuyEmpty = exports.ReflectorNotAvailable = exports.ReceiptEmpty = exports.ReactionInvalid = exports.ReactionEmpty = exports.ReactionsTooMany = exports.ReactionsCountInvalid = exports.RangesInvalid = exports.RandomLengthInvalid = exports.RandomIdInvalid = exports.RandomIdExpired = exports.RandomIdEmpty = exports.RaiseHandForbidden = exports.QuoteTextInvalid = exports.QuizMultipleInvalid = exports.QuizCorrectAnswerInvalid = exports.QuizCorrectAnswersTooMuch = exports.QuizCorrectAnswersEmpty = exports.QuizAnswerMissing = exports.QuickRepliesTooMuch = exports.QuickRepliesBotNotAllowed = exports.QueryTooShort = exports.QueryIdInvalid = exports.QueryIdEmpty = exports.PurposeInvalid = exports.PublicKeyRequired = exports.PrivacyValueInvalid = exports.PrivacyTooLong = exports.PrivacyKeyInvalid = exports.PricingChatInvalid = exports.PremiumPurposeInvalid = exports.PremiumAccountRequired = exports.PollVoteRequired = exports.PollUnsupported = exports.PollQuestionInvalid = exports.PollOptionInvalid = exports.PollOptionDuplicate = exports.PollAnswerInvalid = exports.PollAnswersInvalid = exports.PinRestricted = exports.PinnedTopicNotModified = exports.PinnedTooMuch = exports.PinnedDialogsTooMuch = exports.PhotoThumbUrlInvalid = exports.PhotoThumbUrlEmpty = exports.PhotoSaveFileInvalid = void 0;
|
|
12
|
+
exports.SrpPasswordChanged = exports.SrpIdInvalid = exports.SrpAInvalid = exports.SmsCodeCreateFailed = exports.SmsjobIdInvalid = exports.SlugInvalid = exports.SlowmodeMultiMsgsDisabled = exports.SlotsEmpty = exports.ShortNameOccupied = exports.ShortNameInvalid = exports.ShortnameOccupyFailed = exports.ShortcutInvalid = exports.Sha256HashInvalid = exports.SettingsInvalid = exports.SessionTooFresh = exports.SendMessageTypeInvalid = exports.SendMessageMediaInvalid = exports.SendMessageGameInvalid = exports.SendAsPeerInvalid = exports.SelfDeleteRestricted = exports.SecureSecretRequired = exports.SecondsInvalid = exports.SearchWithLinkNotSupported = exports.SearchQueryEmpty = exports.ScoreInvalid = exports.ScheduleTooMuch = exports.ScheduleStatusPrivate = exports.ScheduleDateTooLate = exports.ScheduleDateInvalid = exports.ScheduleBotNotAllowed = exports.SavedPeerInvalid = exports.SavedIdEmpty = exports.RsaDecryptFailed = exports.RingtoneMimeInvalid = exports.RingtoneInvalid = exports.RightsNotModified = exports.RevoteNotAllowed = exports.ResultTypeInvalid = exports.ResultIdInvalid = exports.ResultIdEmpty = exports.ResultIdDuplicate = exports.ResultsTooMuch = exports.ResetRequestMissing = exports.ResellStarsTooMuch = exports.ResellStarsTooFew = exports.RequestTokenInvalid = exports.ReplyToUserInvalid = exports.ReplyToMonoforumPeerInvalid = exports.ReplyToInvalid = exports.ReplyMessageIdInvalid = void 0;
|
|
13
|
+
exports.StickerVideoBig = exports.StickerThumbTgsNotgs = exports.StickerThumbPngNopng = exports.StickerTgsNotgs = exports.StickerTgsNodoc = exports.StickerPngNopng = exports.StickerPngDimensions = exports.StickerMimeInvalid = exports.StickerInvalid = exports.StickerIdInvalid = exports.StickerGifDimensions = exports.StickerFileInvalid = exports.StickerEmojiInvalid = exports.StickerDocumentInvalid = exports.StickersTooMuch = exports.StickersEmpty = exports.StickersetNotModified = exports.StickersetInvalid = exports.StickerpackStickersTooMuch = exports.StartParamTooLong = exports.StartParamInvalid = exports.StartParamEmpty = exports.StarsPaymentRequired = exports.StarsInvoiceInvalid = exports.StarsAmountInvalid = exports.StarrefPermilleTooLow = exports.StarrefPermilleInvalid = exports.StarrefHashRevoked = exports.StarrefExpired = exports.StarrefAwaitingEnd = exports.StargiftUserUsageLimited = exports.StargiftUsageLimited = exports.StargiftUpgradeUnavailable = exports.StargiftTransferTooEarly = exports.StargiftSlugInvalid = exports.StargiftResellTooEarly = exports.StargiftResellCurrencyNotAllowed = exports.StargiftPeerInvalid = exports.StargiftOwnerInvalid = exports.StargiftOfferNotAllowed = exports.StargiftOfferInvalid = exports.StargiftNotUnique = exports.StargiftNotOwner = exports.StargiftNotFound = exports.StargiftMessageInvalid = exports.StargiftInvalid = exports.StargiftAttributeInvalid = exports.StargiftAlreadyUpgraded = exports.StargiftAlreadyRefunded = exports.StargiftAlreadyConverted = void 0;
|
|
14
|
+
exports.ToLangInvalid = exports.ToIdInvalid = exports.TopicTitleEmpty = exports.TopicNotModified = exports.TopicIdInvalid = exports.TopicHideSeparately = exports.TopicDeleted = exports.TopicCloseSeparately = exports.TopicClosed = exports.TopicsEmpty = exports.TokenTypeInvalid = exports.TokenInvalid = exports.TokenEmpty = exports.TodoNotModified = exports.TodoItemDuplicate = exports.TodoItemsEmpty = exports.TmpPasswordInvalid = exports.TmpPasswordDisabled = exports.TitleInvalid = exports.TimezoneInvalid = exports.ThemeTitleInvalid = exports.ThemeSlugInvalid = exports.ThemeParamsInvalid = exports.ThemeMimeInvalid = exports.ThemeInvalid = exports.ThemeFormatInvalid = exports.ThemeFileInvalid = exports.TermsUrlInvalid = exports.TempAuthKeyEmpty = exports.TempAuthKeyAlreadyBound = exports.TaskAlreadyExists = exports.TakeoutRequired = exports.TakeoutInvalid = exports.SwitchWebviewUrlInvalid = exports.SwitchPmTextEmpty = exports.SuggestedPostPeerInvalid = exports.SuggestedPostAmountInvalid = exports.SubscriptionPeriodInvalid = exports.SubscriptionIdInvalid = exports.SubscriptionExportMissing = exports.StorySendFloodWeekly = exports.StorySendFloodMonthly = exports.StoryPeriodInvalid = exports.StoryNotModified = exports.StoryIdInvalid = exports.StoryIdEmpty = exports.StoriesTooMuch = exports.StoriesNeverCreated = exports.StickerVideoNowebm = exports.StickerVideoNodoc = void 0;
|
|
15
|
+
exports.WallpaperFileInvalid = exports.VolumeLocNotFound = exports.VoiceMessagesForbidden = exports.VideoTitleEmpty = exports.VideoStopForbidden = exports.VideoPauseForbidden = exports.VideoFileInvalid = exports.VideoContentTypeInvalid = exports.VenueIdInvalid = exports.UserVolumeInvalid = exports.UserPublicMissing = exports.UserNotParticipant = exports.UserNotMutualContact = exports.UserKicked = exports.UserIsBot = exports.UserIsBlocked = exports.UserInvalid = exports.UserIdInvalid = exports.UserGiftUnavailable = exports.UserCreator = exports.UserChannelsTooMuch = exports.UserBotRequired = exports.UserBotInvalid = exports.UserBot = exports.UserBlocked = exports.UserBannedInChannel = exports.UserAlreadyParticipant = exports.UserAlreadyInvited = exports.UserAdminInvalid = exports.UsersTooMuch = exports.UsersTooFew = exports.UserpicUploadRequired = exports.UsernamePurchaseAvailable = exports.UsernameOccupied = exports.UsernameNotOccupied = exports.UsernameNotModified = exports.UsernameInvalid = exports.UsernamesActiveTooMuch = exports.UsageLimitInvalid = exports.UrlInvalid = exports.UntilDateInvalid = exports.UNSUPPORTED = exports.TypeConstructorInvalid = exports.TypesEmpty = exports.TtlPeriodInvalid = exports.TtlMediaInvalid = exports.TtlDaysInvalid = exports.TranslateReqQuotaExceeded = exports.TranscriptionFailed = exports.TransactionIdInvalid = void 0;
|
|
16
|
+
exports.YouBlockedUser = exports.WebpushTokenInvalid = exports.WebpushKeyInvalid = exports.WebpushAuthInvalid = exports.WebpageUrlInvalid = exports.WebpageNotFound = exports.WebpageMediaEmpty = exports.WebpageCurlFailed = exports.WebdocumentUrlInvalid = exports.WebdocumentUrlEmpty = exports.WebdocumentSizeTooBig = exports.WebdocumentMimeInvalid = exports.WebdocumentInvalid = exports.WcConvertUrlInvalid = exports.WallpaperNotFound = exports.WallpaperMimeInvalid = exports.WallpaperInvalid = void 0;
|
|
16
17
|
const RpcError_js_1 = require("@/errors/RpcError.js");
|
|
17
18
|
class BadRequest extends RpcError_js_1.RPCError {
|
|
18
19
|
code = 400;
|
|
@@ -659,6 +660,11 @@ class CollectibleNotFound extends BadRequest {
|
|
|
659
660
|
message = 'The specified collectible could not be found.';
|
|
660
661
|
}
|
|
661
662
|
exports.CollectibleNotFound = CollectibleNotFound;
|
|
663
|
+
class CollectionIdInvalid extends BadRequest {
|
|
664
|
+
id = 'COLLECTION_ID_INVALID';
|
|
665
|
+
message = '';
|
|
666
|
+
}
|
|
667
|
+
exports.CollectionIdInvalid = CollectionIdInvalid;
|
|
662
668
|
class ColorInvalid extends BadRequest {
|
|
663
669
|
id = 'COLOR_INVALID';
|
|
664
670
|
message = 'The specified color palette ID was invalid.';
|
|
@@ -739,6 +745,11 @@ class CreateCallFailed extends BadRequest {
|
|
|
739
745
|
message = 'An error occurred while creating the call.';
|
|
740
746
|
}
|
|
741
747
|
exports.CreateCallFailed = CreateCallFailed;
|
|
748
|
+
class CredentialInvalid extends BadRequest {
|
|
749
|
+
id = 'CREDENTIAL_INVALID';
|
|
750
|
+
message = '';
|
|
751
|
+
}
|
|
752
|
+
exports.CredentialInvalid = CredentialInvalid;
|
|
742
753
|
class CurrencyTotalAmountInvalid extends BadRequest {
|
|
743
754
|
id = 'CURRENCY_TOTAL_AMOUNT_INVALID';
|
|
744
755
|
message = 'The total amount of all prices is invalid.';
|
|
@@ -789,6 +800,11 @@ class DocumentInvalid extends BadRequest {
|
|
|
789
800
|
message = 'The specified document is invalid.';
|
|
790
801
|
}
|
|
791
802
|
exports.DocumentInvalid = DocumentInvalid;
|
|
803
|
+
class EffectChatInvalid extends BadRequest {
|
|
804
|
+
id = 'EFFECT_CHAT_INVALID';
|
|
805
|
+
message = '';
|
|
806
|
+
}
|
|
807
|
+
exports.EffectChatInvalid = EffectChatInvalid;
|
|
792
808
|
class EffectIdInvalid extends BadRequest {
|
|
793
809
|
id = 'EFFECT_ID_INVALID';
|
|
794
810
|
message = 'The specified effect ID is invalid.';
|
|
@@ -799,6 +815,11 @@ class EmailHashExpired extends BadRequest {
|
|
|
799
815
|
message = 'Email hash expired.';
|
|
800
816
|
}
|
|
801
817
|
exports.EmailHashExpired = EmailHashExpired;
|
|
818
|
+
class EmailInstallMissing extends BadRequest {
|
|
819
|
+
id = 'EMAIL_INSTALL_MISSING';
|
|
820
|
+
message = '';
|
|
821
|
+
}
|
|
822
|
+
exports.EmailInstallMissing = EmailInstallMissing;
|
|
802
823
|
class EmailInvalid extends BadRequest {
|
|
803
824
|
id = 'EMAIL_INVALID';
|
|
804
825
|
message = 'The specified email is invalid.';
|
|
@@ -924,6 +945,11 @@ class ExtendedMediaAmountInvalid extends BadRequest {
|
|
|
924
945
|
message = 'The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.';
|
|
925
946
|
}
|
|
926
947
|
exports.ExtendedMediaAmountInvalid = ExtendedMediaAmountInvalid;
|
|
948
|
+
class ExtendedMediaEmpty extends BadRequest {
|
|
949
|
+
id = 'EXTENDED_MEDIA_EMPTY';
|
|
950
|
+
message = '';
|
|
951
|
+
}
|
|
952
|
+
exports.ExtendedMediaEmpty = ExtendedMediaEmpty;
|
|
927
953
|
class ExtendedMediaInvalid extends BadRequest {
|
|
928
954
|
id = 'EXTENDED_MEDIA_INVALID';
|
|
929
955
|
message = 'The specified paid media is invalid.';
|
|
@@ -1029,6 +1055,11 @@ class FileReferenceInvalid extends BadRequest {
|
|
|
1029
1055
|
message = 'The specified [file reference](https://core.telegram.org/api/file-references) is invalid.';
|
|
1030
1056
|
}
|
|
1031
1057
|
exports.FileReferenceInvalid = FileReferenceInvalid;
|
|
1058
|
+
class FileReferenceXEmpty extends BadRequest {
|
|
1059
|
+
id = 'FILE_REFERENCE_X_EMPTY';
|
|
1060
|
+
message = '';
|
|
1061
|
+
}
|
|
1062
|
+
exports.FileReferenceXEmpty = FileReferenceXEmpty;
|
|
1032
1063
|
class FileReferenceXExpired extends BadRequest {
|
|
1033
1064
|
id = 'FILE_REFERENCE_X_EXPIRED';
|
|
1034
1065
|
message = 'The file reference of the media file at index {value} in the passed media array expired, it [must be refreshed as specified in the documentation](https://core.telegram.org/api/file-references). .';
|
|
@@ -1354,6 +1385,16 @@ class InputRequestTooLong extends BadRequest {
|
|
|
1354
1385
|
message = 'The request payload is too long.';
|
|
1355
1386
|
}
|
|
1356
1387
|
exports.InputRequestTooLong = InputRequestTooLong;
|
|
1388
|
+
class InputStarsAmountInvalid extends BadRequest {
|
|
1389
|
+
id = 'INPUT_STARS_AMOUNT_INVALID';
|
|
1390
|
+
message = '';
|
|
1391
|
+
}
|
|
1392
|
+
exports.InputStarsAmountInvalid = InputStarsAmountInvalid;
|
|
1393
|
+
class InputStarsNanosInvalid extends BadRequest {
|
|
1394
|
+
id = 'INPUT_STARS_NANOS_INVALID';
|
|
1395
|
+
message = '';
|
|
1396
|
+
}
|
|
1397
|
+
exports.InputStarsNanosInvalid = InputStarsNanosInvalid;
|
|
1357
1398
|
class InputTextEmpty extends BadRequest {
|
|
1358
1399
|
id = 'INPUT_TEXT_EMPTY';
|
|
1359
1400
|
message = 'The specified text is empty.';
|
|
@@ -1604,6 +1645,11 @@ class MessagePollClosed extends BadRequest {
|
|
|
1604
1645
|
message = 'Poll closed.';
|
|
1605
1646
|
}
|
|
1606
1647
|
exports.MessagePollClosed = MessagePollClosed;
|
|
1648
|
+
class MessageRequired extends BadRequest {
|
|
1649
|
+
id = 'MESSAGE_REQUIRED';
|
|
1650
|
+
message = '';
|
|
1651
|
+
}
|
|
1652
|
+
exports.MessageRequired = MessageRequired;
|
|
1607
1653
|
class MessageTooLong extends BadRequest {
|
|
1608
1654
|
id = 'MESSAGE_TOO_LONG';
|
|
1609
1655
|
message = 'The provided message is too long.';
|
|
@@ -1654,6 +1700,11 @@ class MultiMediaTooLong extends BadRequest {
|
|
|
1654
1700
|
message = 'Too many media files for album.';
|
|
1655
1701
|
}
|
|
1656
1702
|
exports.MultiMediaTooLong = MultiMediaTooLong;
|
|
1703
|
+
class NeedActionMissing extends BadRequest {
|
|
1704
|
+
id = 'NEED_ACTION_MISSING';
|
|
1705
|
+
message = '';
|
|
1706
|
+
}
|
|
1707
|
+
exports.NeedActionMissing = NeedActionMissing;
|
|
1657
1708
|
class NewSaltInvalid extends BadRequest {
|
|
1658
1709
|
id = 'NEW_SALT_INVALID';
|
|
1659
1710
|
message = 'The new salt is invalid.';
|
|
@@ -1989,6 +2040,11 @@ class PinnedTooMuch extends BadRequest {
|
|
|
1989
2040
|
message = 'There are too many pinned topics, unpin some first.';
|
|
1990
2041
|
}
|
|
1991
2042
|
exports.PinnedTooMuch = PinnedTooMuch;
|
|
2043
|
+
class PinnedTopicNotModified extends BadRequest {
|
|
2044
|
+
id = 'PINNED_TOPIC_NOT_MODIFIED';
|
|
2045
|
+
message = '';
|
|
2046
|
+
}
|
|
2047
|
+
exports.PinnedTopicNotModified = PinnedTopicNotModified;
|
|
1992
2048
|
class PinRestricted extends BadRequest {
|
|
1993
2049
|
id = 'PIN_RESTRICTED';
|
|
1994
2050
|
message = "You can't pin messages.";
|
|
@@ -2034,6 +2090,11 @@ class PremiumAccountRequired extends BadRequest {
|
|
|
2034
2090
|
message = 'A premium account is required to execute this action.';
|
|
2035
2091
|
}
|
|
2036
2092
|
exports.PremiumAccountRequired = PremiumAccountRequired;
|
|
2093
|
+
class PremiumPurposeInvalid extends BadRequest {
|
|
2094
|
+
id = 'PREMIUM_PURPOSE_INVALID';
|
|
2095
|
+
message = '';
|
|
2096
|
+
}
|
|
2097
|
+
exports.PremiumPurposeInvalid = PremiumPurposeInvalid;
|
|
2037
2098
|
class PricingChatInvalid extends BadRequest {
|
|
2038
2099
|
id = 'PRICING_CHAT_INVALID';
|
|
2039
2100
|
message = 'The pricing for the [subscription](https://core.telegram.org/api/subscriptions) is invalid, the maximum price is specified in the [`stars_subscription_amount_max` config key »](https://core.telegram.org/api/config#stars-subscription-amount-max).';
|
|
@@ -2229,6 +2290,16 @@ class RequestTokenInvalid extends BadRequest {
|
|
|
2229
2290
|
message = 'The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile.';
|
|
2230
2291
|
}
|
|
2231
2292
|
exports.RequestTokenInvalid = RequestTokenInvalid;
|
|
2293
|
+
class ResellStarsTooFew extends BadRequest {
|
|
2294
|
+
id = 'RESELL_STARS_TOO_FEW';
|
|
2295
|
+
message = '';
|
|
2296
|
+
}
|
|
2297
|
+
exports.ResellStarsTooFew = ResellStarsTooFew;
|
|
2298
|
+
class ResellStarsTooMuch extends BadRequest {
|
|
2299
|
+
id = 'RESELL_STARS_TOO_MUCH';
|
|
2300
|
+
message = '';
|
|
2301
|
+
}
|
|
2302
|
+
exports.ResellStarsTooMuch = ResellStarsTooMuch;
|
|
2232
2303
|
class ResetRequestMissing extends BadRequest {
|
|
2233
2304
|
id = 'RESET_REQUEST_MISSING';
|
|
2234
2305
|
message = 'No password reset is in progress.';
|
|
@@ -2289,6 +2360,11 @@ class SavedIdEmpty extends BadRequest {
|
|
|
2289
2360
|
message = 'The passed inputSavedStarGiftChat.saved_id is empty.';
|
|
2290
2361
|
}
|
|
2291
2362
|
exports.SavedIdEmpty = SavedIdEmpty;
|
|
2363
|
+
class SavedPeerInvalid extends BadRequest {
|
|
2364
|
+
id = 'SAVED_PEER_INVALID';
|
|
2365
|
+
message = '';
|
|
2366
|
+
}
|
|
2367
|
+
exports.SavedPeerInvalid = SavedPeerInvalid;
|
|
2292
2368
|
class ScheduleBotNotAllowed extends BadRequest {
|
|
2293
2369
|
id = 'SCHEDULE_BOT_NOT_ALLOWED';
|
|
2294
2370
|
message = 'Bots cannot schedule messages.';
|
|
@@ -2454,16 +2530,46 @@ class StargiftAlreadyUpgraded extends BadRequest {
|
|
|
2454
2530
|
message = 'The specified gift was already upgraded to a collectible gift.';
|
|
2455
2531
|
}
|
|
2456
2532
|
exports.StargiftAlreadyUpgraded = StargiftAlreadyUpgraded;
|
|
2533
|
+
class StargiftAttributeInvalid extends BadRequest {
|
|
2534
|
+
id = 'STARGIFT_ATTRIBUTE_INVALID';
|
|
2535
|
+
message = '';
|
|
2536
|
+
}
|
|
2537
|
+
exports.StargiftAttributeInvalid = StargiftAttributeInvalid;
|
|
2457
2538
|
class StargiftInvalid extends BadRequest {
|
|
2458
2539
|
id = 'STARGIFT_INVALID';
|
|
2459
2540
|
message = 'The passed gift is invalid.';
|
|
2460
2541
|
}
|
|
2461
2542
|
exports.StargiftInvalid = StargiftInvalid;
|
|
2543
|
+
class StargiftMessageInvalid extends BadRequest {
|
|
2544
|
+
id = 'STARGIFT_MESSAGE_INVALID';
|
|
2545
|
+
message = '';
|
|
2546
|
+
}
|
|
2547
|
+
exports.StargiftMessageInvalid = StargiftMessageInvalid;
|
|
2462
2548
|
class StargiftNotFound extends BadRequest {
|
|
2463
2549
|
id = 'STARGIFT_NOT_FOUND';
|
|
2464
2550
|
message = 'The specified gift was not found.';
|
|
2465
2551
|
}
|
|
2466
2552
|
exports.StargiftNotFound = StargiftNotFound;
|
|
2553
|
+
class StargiftNotOwner extends BadRequest {
|
|
2554
|
+
id = 'STARGIFT_NOT_OWNER';
|
|
2555
|
+
message = '';
|
|
2556
|
+
}
|
|
2557
|
+
exports.StargiftNotOwner = StargiftNotOwner;
|
|
2558
|
+
class StargiftNotUnique extends BadRequest {
|
|
2559
|
+
id = 'STARGIFT_NOT_UNIQUE';
|
|
2560
|
+
message = '';
|
|
2561
|
+
}
|
|
2562
|
+
exports.StargiftNotUnique = StargiftNotUnique;
|
|
2563
|
+
class StargiftOfferInvalid extends BadRequest {
|
|
2564
|
+
id = 'STARGIFT_OFFER_INVALID';
|
|
2565
|
+
message = '';
|
|
2566
|
+
}
|
|
2567
|
+
exports.StargiftOfferInvalid = StargiftOfferInvalid;
|
|
2568
|
+
class StargiftOfferNotAllowed extends BadRequest {
|
|
2569
|
+
id = 'STARGIFT_OFFER_NOT_ALLOWED';
|
|
2570
|
+
message = '';
|
|
2571
|
+
}
|
|
2572
|
+
exports.StargiftOfferNotAllowed = StargiftOfferNotAllowed;
|
|
2467
2573
|
class StargiftOwnerInvalid extends BadRequest {
|
|
2468
2574
|
id = 'STARGIFT_OWNER_INVALID';
|
|
2469
2575
|
message = 'You cannot transfer or sell a gift owned by another user.';
|
|
@@ -2479,6 +2585,11 @@ class StargiftResellCurrencyNotAllowed extends BadRequest {
|
|
|
2479
2585
|
message = "You can't buy the gift using the specified currency (i.e. trying to pay in Stars for TON gifts).";
|
|
2480
2586
|
}
|
|
2481
2587
|
exports.StargiftResellCurrencyNotAllowed = StargiftResellCurrencyNotAllowed;
|
|
2588
|
+
class StargiftResellTooEarly extends BadRequest {
|
|
2589
|
+
id = 'STARGIFT_RESELL_TOO_EARLY_X';
|
|
2590
|
+
message = '';
|
|
2591
|
+
}
|
|
2592
|
+
exports.StargiftResellTooEarly = StargiftResellTooEarly;
|
|
2482
2593
|
class StargiftSlugInvalid extends BadRequest {
|
|
2483
2594
|
id = 'STARGIFT_SLUG_INVALID';
|
|
2484
2595
|
message = 'The specified gift slug is invalid.';
|
|
@@ -3,6 +3,10 @@ export declare class Forbidden extends RPCError {
|
|
|
3
3
|
code: number;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
+
export declare class AccessDenied extends Forbidden {
|
|
7
|
+
id: string;
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
6
10
|
export declare class AllowPaymentRequired extends Forbidden {
|
|
7
11
|
id: string;
|
|
8
12
|
message: string;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.YourPrivacyRestricted = exports.VoiceMessagesForbidden = exports.UserRestricted = exports.UserPrivacyRestricted = exports.UserPermissionDenied = exports.UserNotParticipant = void 0;
|
|
3
|
+
exports.UserIsBlocked = exports.UserInvalid = exports.UserDeleted = exports.UserChannelsTooMuch = exports.UserBotInvalid = exports.TakeoutRequired = exports.SensitiveChangeForbidden = exports.RightForbidden = exports.PublicChannelMissing = exports.PrivacyPremiumRequired = exports.PremiumAccountRequired = exports.PollVoteRequired = exports.PeerIdInvalid = exports.ParticipantJoinMissing = exports.NotEligible = exports.MessageDeleteForbidden = exports.MessageAuthorRequired = exports.InlineBotRequired = exports.GroupcallForbidden = exports.GroupcallAlreadyStarted = exports.EditBotInviteForbidden = exports.ChatWriteForbidden = exports.ChatTypeInvalid = exports.ChatSendWebpageForbidden = exports.ChatSendVoicesForbidden = exports.ChatSendVideosForbidden = exports.ChatSendStickersForbidden = exports.ChatSendRoundvideosForbidden = exports.ChatSendPollForbidden = exports.ChatSendPlainForbidden = exports.ChatSendPhotosForbidden = exports.ChatSendMediaForbidden = exports.ChatSendInlineForbidden = exports.ChatSendGifsForbidden = exports.ChatSendGameForbidden = exports.ChatSendDocsForbidden = exports.ChatSendAudiosForbidden = exports.ChatGuestSendForbidden = exports.ChatForbidden = exports.ChatAdminRequired = exports.ChatAdminInviteRequired = exports.ChatActionForbidden = exports.ChannelPublicGroupNa = exports.BroadcastForbidden = exports.BotVerifierForbidden = exports.BotAccessForbidden = exports.AnonymousReactionsDisabled = exports.AllowPaymentRequired = exports.AccessDenied = exports.Forbidden = void 0;
|
|
4
|
+
exports.YourPrivacyRestricted = exports.VoiceMessagesForbidden = exports.UserRestricted = exports.UserPrivacyRestricted = exports.UserPermissionDenied = exports.UserNotParticipant = exports.UserNotMutualContact = void 0;
|
|
5
5
|
const RpcError_js_1 = require("@/errors/RpcError.js");
|
|
6
6
|
class Forbidden extends RpcError_js_1.RPCError {
|
|
7
7
|
code = 403;
|
|
8
8
|
name = 'FORBIDDEN';
|
|
9
9
|
}
|
|
10
10
|
exports.Forbidden = Forbidden;
|
|
11
|
+
class AccessDenied extends Forbidden {
|
|
12
|
+
id = 'ACCESS_DENIED';
|
|
13
|
+
message = '';
|
|
14
|
+
}
|
|
15
|
+
exports.AccessDenied = AccessDenied;
|
|
11
16
|
class AllowPaymentRequired extends Forbidden {
|
|
12
17
|
id = 'ALLOW_PAYMENT_REQUIRED_X';
|
|
13
18
|
message = 'This peer charges {value} [Telegram Stars](https://core.telegram.org/api/stars) per message, but the `allow_paid_stars` was not set or its value is smaller than {value}.';
|
|
@@ -51,6 +51,10 @@ export declare class ChpCallFail extends InternalServerError {
|
|
|
51
51
|
id: string;
|
|
52
52
|
message: string;
|
|
53
53
|
}
|
|
54
|
+
export declare class EncryptionDeclineAdminFailed extends InternalServerError {
|
|
55
|
+
id: string;
|
|
56
|
+
message: string;
|
|
57
|
+
}
|
|
54
58
|
export declare class EncryptionOccupyAdminFailed extends InternalServerError {
|
|
55
59
|
id: string;
|
|
56
60
|
message: string;
|
|
@@ -131,6 +135,10 @@ export declare class NeedChatInvalid extends InternalServerError {
|
|
|
131
135
|
id: string;
|
|
132
136
|
message: string;
|
|
133
137
|
}
|
|
138
|
+
export declare class NeedDocInvalid extends InternalServerError {
|
|
139
|
+
id: string;
|
|
140
|
+
message: string;
|
|
141
|
+
}
|
|
134
142
|
export declare class NeedMemberInvalid extends InternalServerError {
|
|
135
143
|
id: string;
|
|
136
144
|
message: string;
|
|
@@ -143,6 +151,10 @@ export declare class ParticipantCallFailed extends InternalServerError {
|
|
|
143
151
|
id: string;
|
|
144
152
|
message: string;
|
|
145
153
|
}
|
|
154
|
+
export declare class PasskeyAuthRestart extends InternalServerError {
|
|
155
|
+
id: string;
|
|
156
|
+
message: string;
|
|
157
|
+
}
|
|
146
158
|
export declare class PersistentTimestampOutdated extends InternalServerError {
|
|
147
159
|
id: string;
|
|
148
160
|
message: string;
|
|
@@ -215,6 +227,10 @@ export declare class VolumeLocNotFound extends InternalServerError {
|
|
|
215
227
|
id: string;
|
|
216
228
|
message: string;
|
|
217
229
|
}
|
|
230
|
+
export declare class VolumeMoveInvalid extends InternalServerError {
|
|
231
|
+
id: string;
|
|
232
|
+
message: string;
|
|
233
|
+
}
|
|
218
234
|
export declare class WorkerBusyTooLongRetry extends InternalServerError {
|
|
219
235
|
id: string;
|
|
220
236
|
message: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.WpIdGenerateFailed = exports.WorkerBusyTooLongRetry = exports.VolumeLocNotFound = exports.UploadNoVolume = exports.UnknownMethod = exports.TranslationTimeout = void 0;
|
|
3
|
+
exports.SignInFailed = exports.SendMediaInvalid = exports.RpcMcgetFail = exports.RpcConnectFailed = exports.RpcCallFail = exports.RegIdGenerateFailed = exports.RandomIdDuplicate = exports.PtsChangeEmpty = exports.PostponedTimeout = exports.PhotoCreateFailed = exports.PersistentTimestampOutdated = exports.PasskeyAuthRestart = exports.ParticipantCallFailed = exports.NoWorkersRunning = exports.NeedMemberInvalid = exports.NeedDocInvalid = exports.NeedChatInvalid = exports.MtSendQueueTooLong = exports.MsgWaitFailed = exports.MsgRangeUnsync = exports.MsgidDecreaseRetry = exports.MemberOccupyUsernameFailed = exports.MemberOccupyPrimaryLocFailed = exports.MemberNoLocation = exports.MemberNotFound = exports.MemberFetchFailed = exports.MemberChatAddFailed = exports.InterdcCallRichError = exports.InterdcCallError = exports.ImageEngineDown = exports.HistoryGetFailed = exports.GroupedIdOccupyFailed = exports.GroupcallAddParticipantsFailed = exports.FolderDeacAutofixAll = exports.EncryptionOccupyFailed = exports.EncryptionOccupyAdminFailed = exports.EncryptionDeclineAdminFailed = exports.ChpCallFail = exports.ChatOccupyUsernameFailed = exports.ChatOccupyLocFailed = exports.ChatInvalid = exports.ChatIdGenerateFailed = exports.CdnUploadTimeout = exports.CdnSaltsEmpty = exports.CallOccupyFailed = exports.AuthRestartX = exports.AuthRestart = exports.AuthKeyUnsynchronized = exports.ApiCallError = exports.InternalServerError = void 0;
|
|
4
|
+
exports.WpIdGenerateFailed = exports.WorkerBusyTooLongRetry = exports.VolumeMoveInvalid = exports.VolumeLocNotFound = exports.UploadNoVolume = exports.UnknownMethod = exports.TranslationTimeout = exports.TranslateReqFailed = exports.StoreInvalidScalarType = exports.StorageCheckFailed = void 0;
|
|
5
5
|
const RpcError_js_1 = require("@/errors/RpcError.js");
|
|
6
6
|
class InternalServerError extends RpcError_js_1.RPCError {
|
|
7
7
|
code = 500;
|
|
@@ -68,6 +68,11 @@ class ChpCallFail extends InternalServerError {
|
|
|
68
68
|
message = 'Telegram is having internal problems. Please try again later';
|
|
69
69
|
}
|
|
70
70
|
exports.ChpCallFail = ChpCallFail;
|
|
71
|
+
class EncryptionDeclineAdminFailed extends InternalServerError {
|
|
72
|
+
id = 'ENCRYPTION_DECLINE_ADMIN_FAILED';
|
|
73
|
+
message = '';
|
|
74
|
+
}
|
|
75
|
+
exports.EncryptionDeclineAdminFailed = EncryptionDeclineAdminFailed;
|
|
71
76
|
class EncryptionOccupyAdminFailed extends InternalServerError {
|
|
72
77
|
id = 'ENCRYPTION_OCCUPY_ADMIN_FAILED';
|
|
73
78
|
message = 'Failed occupying memory for admin info due to Telegram having internal problems. Please try again later';
|
|
@@ -168,6 +173,11 @@ class NeedChatInvalid extends InternalServerError {
|
|
|
168
173
|
message = 'The provided chat is invalid';
|
|
169
174
|
}
|
|
170
175
|
exports.NeedChatInvalid = NeedChatInvalid;
|
|
176
|
+
class NeedDocInvalid extends InternalServerError {
|
|
177
|
+
id = 'NEED_DOC_INVALID';
|
|
178
|
+
message = '';
|
|
179
|
+
}
|
|
180
|
+
exports.NeedDocInvalid = NeedDocInvalid;
|
|
171
181
|
class NeedMemberInvalid extends InternalServerError {
|
|
172
182
|
id = 'NEED_MEMBER_INVALID';
|
|
173
183
|
message = 'The provided member is invalid or does not exist';
|
|
@@ -183,6 +193,11 @@ class ParticipantCallFailed extends InternalServerError {
|
|
|
183
193
|
message = 'Failure while making call due to Telegram having internal problems. Please try again later';
|
|
184
194
|
}
|
|
185
195
|
exports.ParticipantCallFailed = ParticipantCallFailed;
|
|
196
|
+
class PasskeyAuthRestart extends InternalServerError {
|
|
197
|
+
id = 'PASSKEY_AUTH_RESTART';
|
|
198
|
+
message = '';
|
|
199
|
+
}
|
|
200
|
+
exports.PasskeyAuthRestart = PasskeyAuthRestart;
|
|
186
201
|
class PersistentTimestampOutdated extends InternalServerError {
|
|
187
202
|
id = 'PERSISTENT_TIMESTAMP_OUTDATED';
|
|
188
203
|
message = 'Channel internal replication issues, try again later (treat this like an RPC_CALL_FAIL).';
|
|
@@ -273,6 +288,11 @@ class VolumeLocNotFound extends InternalServerError {
|
|
|
273
288
|
message = 'Telegram is having internal problems. Please try again later';
|
|
274
289
|
}
|
|
275
290
|
exports.VolumeLocNotFound = VolumeLocNotFound;
|
|
291
|
+
class VolumeMoveInvalid extends InternalServerError {
|
|
292
|
+
id = 'VOLUME_MOVE_INVALID';
|
|
293
|
+
message = '';
|
|
294
|
+
}
|
|
295
|
+
exports.VolumeMoveInvalid = VolumeMoveInvalid;
|
|
276
296
|
class WorkerBusyTooLongRetry extends InternalServerError {
|
|
277
297
|
id = 'WORKER_BUSY_TOO_LONG_RETRY';
|
|
278
298
|
message = 'Server workers are too busy right now due to Telegram having internal problems. Please try again later';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tgsnake/skema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "A compiled Telegram TL Schema and Telegram errors Schema into usable JavaScript classes with full TypeScript support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|