@tgsnake/skema 2.1.0 → 2.2.0-browser.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.
@@ -9,8 +9,9 @@
9
9
  */
10
10
  export { BytesIO } from '@tgsnake/bytesio';
11
11
  export { Logger } from '@tgsnake/log';
12
- export { gzipSync, gunzipSync } from 'node:zlib';
13
- export { Buffer } from 'node:buffer';
12
+ export { gzipSync, gunzipSync } from 'browserify-zlib';
13
+ export { Buffer } from 'buffer';
14
+ import { inspect as nodeInspect } from 'util';
14
15
  import bigInt from 'big-integer';
15
16
  /**
16
17
  * Identifies the runtime platform environment.
@@ -24,5 +25,5 @@ export declare const platform: string;
24
25
  *
25
26
  * @type {typeof nodeInspect}
26
27
  */
27
- export declare const inspect: any;
28
+ export declare const inspect: typeof nodeInspect;
28
29
  export { bigInt };
package/dist/src/deps.js CHANGED
@@ -9,9 +9,9 @@
9
9
  */
10
10
  export { BytesIO } from '@tgsnake/bytesio';
11
11
  export { Logger } from '@tgsnake/log';
12
- export { gzipSync, gunzipSync } from 'node:zlib';
13
- export { Buffer } from 'node:buffer';
14
- import { inspect as nodeInspect } from 'node:util';
12
+ export { gzipSync, gunzipSync } from 'browserify-zlib';
13
+ export { Buffer } from 'buffer';
14
+ import { inspect as nodeInspect } from 'util';
15
15
  import bigInt from 'big-integer';
16
16
  // Other platform compatibility
17
17
  // After this line, we will provide some compatibility for Deno, Bun, and Browser so that the same code can run in both environments without modification.
@@ -30,5 +30,5 @@ export const platform = isDeno ? 'Deno' : isBun ? 'Bun' : isBrowser ? 'Browser'
30
30
  *
31
31
  * @type {typeof nodeInspect}
32
32
  */
33
- export const inspect = (isDeno ? globalThis.Deno.inspect : nodeInspect);
33
+ export const inspect = nodeInspect;
34
34
  export { bigInt };
@@ -12,7 +12,7 @@
12
12
  * This file is auto generate. *
13
13
  * All change made in this file will be lost! *
14
14
  ***********************************************************/
15
- declare const count = 844;
15
+ declare const count = 884;
16
16
  declare const Exceptions: {
17
17
  303: {
18
18
  _: string;
@@ -34,6 +34,9 @@ declare const Exceptions: {
34
34
  ADMIN_RANK_INVALID: string;
35
35
  ADMIN_RIGHTS_EMPTY: string;
36
36
  AD_EXPIRED: string;
37
+ AICOMPOSE_TONE_INVALID: string;
38
+ AICOMPOSE_TONE_TITLE_INVALID: string;
39
+ AI_COMPOSE_TASK_MISSING: string;
37
40
  ALBUM_PHOTOS_TOO_MANY: string;
38
41
  API_ID_INVALID: string;
39
42
  API_ID_PUBLISHED_FLOOD: string;
@@ -51,6 +54,7 @@ declare const Exceptions: {
51
54
  BANK_CARD_NUMBER_INVALID: string;
52
55
  BANNED_RIGHTS_INVALID: string;
53
56
  BASE_PORT_LOC_INVALID: string;
57
+ BIRTHDAY_ALREADY: string;
54
58
  BIRTHDAY_INVALID: string;
55
59
  BOOSTS_EMPTY: string;
56
60
  BOOSTS_REQUIRED: string;
@@ -65,10 +69,12 @@ declare const Exceptions: {
65
69
  BOT_CHANNELS_NA: string;
66
70
  BOT_COMMAND_DESCRIPTION_INVALID: string;
67
71
  BOT_COMMAND_INVALID: string;
72
+ BOT_CREATE_LIMIT_EXCEEDED: string;
68
73
  BOT_DOMAIN_INVALID: string;
69
74
  BOT_FALLBACK_UNSUPPORTED: string;
70
75
  BOT_GAMES_DISABLED: string;
71
76
  BOT_GROUPS_BLOCKED: string;
77
+ BOT_ID_INVALID: string;
72
78
  BOT_INLINE_DISABLED: string;
73
79
  BOT_INVALID: string;
74
80
  BOT_INVOICE_INVALID: string;
@@ -103,6 +109,7 @@ declare const Exceptions: {
103
109
  BUTTON_USER_PRIVACY_RESTRICTED: string;
104
110
  CALL_ALREADY_ACCEPTED: string;
105
111
  CALL_ALREADY_DECLINED: string;
112
+ CALL_NOT_ACTIVE: string;
106
113
  CALL_OCCUPY_FAILED: string;
107
114
  CALL_PEER_INVALID: string;
108
115
  CALL_PROTOCOL_FLAGS_INVALID: string;
@@ -147,6 +154,7 @@ declare const Exceptions: {
147
154
  CHAT_SEND_INLINE_FORBIDDEN: string;
148
155
  CHAT_TITLE_EMPTY: string;
149
156
  CHAT_TOO_BIG: string;
157
+ CHAT_WRITE_FORBIDDEN: string;
150
158
  CODE_EMPTY: string;
151
159
  CODE_HASH_INVALID: string;
152
160
  CODE_INVALID: string;
@@ -203,6 +211,9 @@ declare const Exceptions: {
203
211
  ENCRYPTION_ID_INVALID: string;
204
212
  ENTITIES_TOO_LONG: string;
205
213
  ENTITY_BOUNDS_INVALID: string;
214
+ ENTITY_DATE_FORMAT_INVALID: string;
215
+ ENTITY_DATE_INVALID: string;
216
+ ENTITY_DATE_TOO_LONG: string;
206
217
  ENTITY_MENTION_USER_INVALID: string;
207
218
  ERROR_TEXT_EMPTY: string;
208
219
  EXPIRES_AT_INVALID: string;
@@ -211,6 +222,7 @@ declare const Exceptions: {
211
222
  EXTENDED_MEDIA_AMOUNT_INVALID: string;
212
223
  EXTENDED_MEDIA_EMPTY: string;
213
224
  EXTENDED_MEDIA_INVALID: string;
225
+ EXTENDED_MEDIA_PEER_INVALID: string;
214
226
  EXTERNAL_URL_INVALID: string;
215
227
  FIELD_NAME_EMPTY: string;
216
228
  FIELD_NAME_INVALID: string;
@@ -321,8 +333,11 @@ declare const Exceptions: {
321
333
  LANG_PACK_INVALID: string;
322
334
  LASTNAME_INVALID: string;
323
335
  LIMIT_INVALID: string;
336
+ LIMIT_PER_POST_INVALID: string;
324
337
  LINK_NOT_MODIFIED: string;
325
338
  LOCATION_INVALID: string;
339
+ MANAGER_INVALID: string;
340
+ MANAGER_PERMISSION_MISSING: string;
326
341
  MAX_DATE_INVALID: string;
327
342
  MAX_ID_INVALID: string;
328
343
  MAX_QTS_INVALID: string;
@@ -358,8 +373,10 @@ declare const Exceptions: {
358
373
  MSG_ID_INVALID: string;
359
374
  MSG_TOO_OLD: string;
360
375
  MSG_VOICE_MISSING: string;
376
+ MSG_VOICE_TOO_LONG: string;
361
377
  MSG_WAIT_FAILED: string;
362
378
  MULTI_MEDIA_TOO_LONG: string;
379
+ NAME_INVALID: string;
363
380
  NEED_ACTION_MISSING: string;
364
381
  NEW_SALT_INVALID: string;
365
382
  NEW_SETTINGS_EMPTY: string;
@@ -383,6 +400,7 @@ declare const Exceptions: {
383
400
  PARTICIPANT_ID_INVALID: string;
384
401
  PARTICIPANT_JOIN_MISSING: string;
385
402
  PARTICIPANT_VERSION_OUTDATED: string;
403
+ PASSKEY_ORIGIN_MISMATCH: string;
386
404
  PASSWORD_EMPTY: string;
387
405
  PASSWORD_HASH_INVALID: string;
388
406
  PASSWORD_MISSING: string;
@@ -443,6 +461,8 @@ declare const Exceptions: {
443
461
  PRIVACY_KEY_INVALID: string;
444
462
  PRIVACY_TOO_LONG: string;
445
463
  PRIVACY_VALUE_INVALID: string;
464
+ PUBLIC_BROADCAST_EXPECTED: string;
465
+ PUBLIC_KEY_INVALID: string;
446
466
  PUBLIC_KEY_REQUIRED: string;
447
467
  PURPOSE_INVALID: string;
448
468
  QUERY_ID_EMPTY: string;
@@ -477,6 +497,7 @@ declare const Exceptions: {
477
497
  REPLY_TO_INVALID: string;
478
498
  REPLY_TO_MONOFORUM_PEER_INVALID: string;
479
499
  REPLY_TO_USER_INVALID: string;
500
+ REQUEST_MSG_EXPIRED: string;
480
501
  REQUEST_TOKEN_INVALID: string;
481
502
  RESELL_STARS_TOO_FEW: string;
482
503
  RESELL_STARS_TOO_MUCH: string;
@@ -532,6 +553,7 @@ declare const Exceptions: {
532
553
  STARGIFT_NOT_FOUND: string;
533
554
  STARGIFT_NOT_OWNER: string;
534
555
  STARGIFT_NOT_UNIQUE: string;
556
+ STARGIFT_OBJECT_INVALID: string;
535
557
  STARGIFT_OFFER_INVALID: string;
536
558
  STARGIFT_OFFER_NOT_ALLOWED: string;
537
559
  STARGIFT_OWNER_INVALID: string;
@@ -579,6 +601,7 @@ declare const Exceptions: {
579
601
  STORIES_TOO_MUCH: string;
580
602
  STORY_ID_EMPTY: string;
581
603
  STORY_ID_INVALID: string;
604
+ STORY_LIVE_ALREADY_X: string;
582
605
  STORY_NOT_MODIFIED: string;
583
606
  STORY_PERIOD_INVALID: string;
584
607
  STORY_SEND_FLOOD_MONTHLY_X: string;
@@ -596,6 +619,7 @@ declare const Exceptions: {
596
619
  TEMP_AUTH_KEY_ALREADY_BOUND: string;
597
620
  TEMP_AUTH_KEY_EMPTY: string;
598
621
  TERMS_URL_INVALID: string;
622
+ TEXTDRAFT_PEER_INVALID: string;
599
623
  THEME_FILE_INVALID: string;
600
624
  THEME_FORMAT_INVALID: string;
601
625
  THEME_INVALID: string;
@@ -608,6 +632,7 @@ declare const Exceptions: {
608
632
  TMP_PASSWORD_DISABLED: string;
609
633
  TMP_PASSWORD_INVALID: string;
610
634
  TODO_ITEMS_EMPTY: string;
635
+ TODO_ITEMS_TOO_MUCH: string;
611
636
  TODO_ITEM_DUPLICATE: string;
612
637
  TODO_NOT_MODIFIED: string;
613
638
  TOKEN_EMPTY: string;
@@ -633,6 +658,7 @@ declare const Exceptions: {
633
658
  TYPE_CONSTRUCTOR_INVALID: string;
634
659
  UNSUPPORTED: string;
635
660
  UNTIL_DATE_INVALID: string;
661
+ URL_EXPIRED: string;
636
662
  URL_INVALID: string;
637
663
  USAGE_LIMIT_INVALID: string;
638
664
  USERNAMES_ACTIVE_TOO_MUCH: string;
@@ -641,6 +667,7 @@ declare const Exceptions: {
641
667
  USERNAME_NOT_OCCUPIED: string;
642
668
  USERNAME_OCCUPIED: string;
643
669
  USERNAME_PURCHASE_AVAILABLE: string;
670
+ USERNAME_SUFFIX_MISSING: string;
644
671
  USERPIC_UPLOAD_REQUIRED: string;
645
672
  USERS_TOO_FEW: string;
646
673
  USERS_TOO_MUCH: string;
@@ -652,6 +679,7 @@ declare const Exceptions: {
652
679
  USER_BOT: string;
653
680
  USER_BOT_INVALID: string;
654
681
  USER_BOT_REQUIRED: string;
682
+ USER_BOT_TO_BOT_DISABLED: string;
655
683
  USER_CHANNELS_TOO_MUCH: string;
656
684
  USER_CREATOR: string;
657
685
  USER_GIFT_UNAVAILABLE: string;
@@ -666,6 +694,7 @@ declare const Exceptions: {
666
694
  USER_VOLUME_INVALID: string;
667
695
  VENUE_ID_INVALID: string;
668
696
  VIDEO_CONTENT_TYPE_INVALID: string;
697
+ VIDEO_DURATION_INVALID: string;
669
698
  VIDEO_FILE_INVALID: string;
670
699
  VIDEO_PAUSE_FORBIDDEN: string;
671
700
  VIDEO_STOP_FORBIDDEN: string;
@@ -677,6 +706,8 @@ declare const Exceptions: {
677
706
  WALLPAPER_MIME_INVALID: string;
678
707
  WALLPAPER_NOT_FOUND: string;
679
708
  WC_CONVERT_URL_INVALID: string;
709
+ WEBAPP_REQ_ID_INVALID: string;
710
+ WEBAUTH_TOKEN_EXPIRED: string;
680
711
  WEBDOCUMENT_INVALID: string;
681
712
  WEBDOCUMENT_MIME_INVALID: string;
682
713
  WEBDOCUMENT_SIZE_TOO_BIG: string;
@@ -709,8 +740,11 @@ declare const Exceptions: {
709
740
  ALLOW_PAYMENT_REQUIRED_X: string;
710
741
  ANONYMOUS_REACTIONS_DISABLED: string;
711
742
  BOT_ACCESS_FORBIDDEN: string;
743
+ BOT_FORUM_CREATE_FORBIDDEN: string;
744
+ BOT_GUARD_NOT_SUPPORTED: string;
712
745
  BOT_VERIFIER_FORBIDDEN: string;
713
746
  BROADCAST_FORBIDDEN: string;
747
+ CHANNEL_PRIVATE: string;
714
748
  CHANNEL_PUBLIC_GROUP_NA: string;
715
749
  CHAT_ACTION_FORBIDDEN: string;
716
750
  CHAT_ADMIN_INVITE_REQUIRED: string;
@@ -735,6 +769,7 @@ declare const Exceptions: {
735
769
  CHAT_WRITE_FORBIDDEN: string;
736
770
  EDIT_BOT_INVITE_FORBIDDEN: string;
737
771
  GROUPCALL_ALREADY_STARTED: string;
772
+ GROUPCALL_CHANGE_FORBIDDEN: string;
738
773
  GROUPCALL_FORBIDDEN: string;
739
774
  INLINE_BOT_REQUIRED: string;
740
775
  MESSAGE_AUTHOR_REQUIRED: string;
@@ -749,9 +784,11 @@ declare const Exceptions: {
749
784
  RIGHT_FORBIDDEN: string;
750
785
  SENSITIVE_CHANGE_FORBIDDEN: string;
751
786
  TAKEOUT_REQUIRED: string;
787
+ USER_BANNED_IN_CHANNEL: string;
752
788
  USER_BOT_INVALID: string;
753
789
  USER_CHANNELS_TOO_MUCH: string;
754
790
  USER_DELETED: string;
791
+ USER_DISALLOWED_STARGIFTS: string;
755
792
  USER_INVALID: string;
756
793
  USER_IS_BLOCKED: string;
757
794
  USER_NOT_MUTUAL_CONTACT: string;
@@ -788,6 +825,7 @@ declare const Exceptions: {
788
825
  PEER_ID_INVALID: string;
789
826
  PHONE_NUMBER_INVALID: string;
790
827
  PHONE_PASSWORD_FLOOD: string;
828
+ POLL_MEMBER_RESTRICTED: string;
791
829
  PRECHECKOUT_FAILED: string;
792
830
  PREMIUM_CURRENTLY_UNAVAILABLE: string;
793
831
  PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN: string;
@@ -819,6 +857,7 @@ declare const Exceptions: {
819
857
  };
820
858
  500: {
821
859
  _: string;
860
+ AICOMPOSE_TIMEOUT: string;
822
861
  API_CALL_ERROR: string;
823
862
  AUTH_KEY_UNSYNCHRONIZED: string;
824
863
  AUTH_RESTART: string;
@@ -855,6 +894,7 @@ declare const Exceptions: {
855
894
  NEED_DOC_INVALID: string;
856
895
  NEED_MEMBER_INVALID: string;
857
896
  No_workers_running: string;
897
+ OAUTH_REQUEST_INVALID: string;
858
898
  PARTICIPANT_CALL_FAILED: string;
859
899
  PASSKEY_AUTH_RESTART: string;
860
900
  PERSISTENT_TIMESTAMP_OUTDATED: string;
@@ -12,7 +12,7 @@
12
12
  * This file is auto generate. *
13
13
  * All change made in this file will be lost! *
14
14
  ***********************************************************/
15
- const count = 844;
15
+ const count = 884;
16
16
  const Exceptions = {
17
17
  303: {
18
18
  _: 'SeeOther.SeeOther',
@@ -34,6 +34,9 @@ const Exceptions = {
34
34
  ADMIN_RANK_INVALID: 'BadRequest.AdminRankInvalid',
35
35
  ADMIN_RIGHTS_EMPTY: 'BadRequest.AdminRightsEmpty',
36
36
  AD_EXPIRED: 'BadRequest.AdExpired',
37
+ AICOMPOSE_TONE_INVALID: 'BadRequest.AicomposeToneInvalid',
38
+ AICOMPOSE_TONE_TITLE_INVALID: 'BadRequest.AicomposeToneTitleInvalid',
39
+ AI_COMPOSE_TASK_MISSING: 'BadRequest.AiComposeTaskMissing',
37
40
  ALBUM_PHOTOS_TOO_MANY: 'BadRequest.AlbumPhotosTooMany',
38
41
  API_ID_INVALID: 'BadRequest.ApiIdInvalid',
39
42
  API_ID_PUBLISHED_FLOOD: 'BadRequest.ApiIdPublishedFlood',
@@ -51,6 +54,7 @@ const Exceptions = {
51
54
  BANK_CARD_NUMBER_INVALID: 'BadRequest.BankCardNumberInvalid',
52
55
  BANNED_RIGHTS_INVALID: 'BadRequest.BannedRightsInvalid',
53
56
  BASE_PORT_LOC_INVALID: 'BadRequest.BasePortLocInvalid',
57
+ BIRTHDAY_ALREADY: 'BadRequest.BirthdayAlready',
54
58
  BIRTHDAY_INVALID: 'BadRequest.BirthdayInvalid',
55
59
  BOOSTS_EMPTY: 'BadRequest.BoostsEmpty',
56
60
  BOOSTS_REQUIRED: 'BadRequest.BoostsRequired',
@@ -65,10 +69,12 @@ const Exceptions = {
65
69
  BOT_CHANNELS_NA: 'BadRequest.BotChannelsNa',
66
70
  BOT_COMMAND_DESCRIPTION_INVALID: 'BadRequest.BotCommandDescriptionInvalid',
67
71
  BOT_COMMAND_INVALID: 'BadRequest.BotCommandInvalid',
72
+ BOT_CREATE_LIMIT_EXCEEDED: 'BadRequest.BotCreateLimitExceeded',
68
73
  BOT_DOMAIN_INVALID: 'BadRequest.BotDomainInvalid',
69
74
  BOT_FALLBACK_UNSUPPORTED: 'BadRequest.BotFallbackUnsupported',
70
75
  BOT_GAMES_DISABLED: 'BadRequest.BotGamesDisabled',
71
76
  BOT_GROUPS_BLOCKED: 'BadRequest.BotGroupsBlocked',
77
+ BOT_ID_INVALID: 'BadRequest.BotIdInvalid',
72
78
  BOT_INLINE_DISABLED: 'BadRequest.BotInlineDisabled',
73
79
  BOT_INVALID: 'BadRequest.BotInvalid',
74
80
  BOT_INVOICE_INVALID: 'BadRequest.BotInvoiceInvalid',
@@ -103,6 +109,7 @@ const Exceptions = {
103
109
  BUTTON_USER_PRIVACY_RESTRICTED: 'BadRequest.ButtonUserPrivacyRestricted',
104
110
  CALL_ALREADY_ACCEPTED: 'BadRequest.CallAlreadyAccepted',
105
111
  CALL_ALREADY_DECLINED: 'BadRequest.CallAlreadyDeclined',
112
+ CALL_NOT_ACTIVE: 'BadRequest.CallNotActive',
106
113
  CALL_OCCUPY_FAILED: 'BadRequest.CallOccupyFailed',
107
114
  CALL_PEER_INVALID: 'BadRequest.CallPeerInvalid',
108
115
  CALL_PROTOCOL_FLAGS_INVALID: 'BadRequest.CallProtocolFlagsInvalid',
@@ -147,6 +154,7 @@ const Exceptions = {
147
154
  CHAT_SEND_INLINE_FORBIDDEN: 'BadRequest.ChatSendInlineForbidden',
148
155
  CHAT_TITLE_EMPTY: 'BadRequest.ChatTitleEmpty',
149
156
  CHAT_TOO_BIG: 'BadRequest.ChatTooBig',
157
+ CHAT_WRITE_FORBIDDEN: 'BadRequest.ChatWriteForbidden',
150
158
  CODE_EMPTY: 'BadRequest.CodeEmpty',
151
159
  CODE_HASH_INVALID: 'BadRequest.CodeHashInvalid',
152
160
  CODE_INVALID: 'BadRequest.CodeInvalid',
@@ -203,6 +211,9 @@ const Exceptions = {
203
211
  ENCRYPTION_ID_INVALID: 'BadRequest.EncryptionIdInvalid',
204
212
  ENTITIES_TOO_LONG: 'BadRequest.EntitiesTooLong',
205
213
  ENTITY_BOUNDS_INVALID: 'BadRequest.EntityBoundsInvalid',
214
+ ENTITY_DATE_FORMAT_INVALID: 'BadRequest.EntityDateFormatInvalid',
215
+ ENTITY_DATE_INVALID: 'BadRequest.EntityDateInvalid',
216
+ ENTITY_DATE_TOO_LONG: 'BadRequest.EntityDateTooLong',
206
217
  ENTITY_MENTION_USER_INVALID: 'BadRequest.EntityMentionUserInvalid',
207
218
  ERROR_TEXT_EMPTY: 'BadRequest.ErrorTextEmpty',
208
219
  EXPIRES_AT_INVALID: 'BadRequest.ExpiresAtInvalid',
@@ -211,6 +222,7 @@ const Exceptions = {
211
222
  EXTENDED_MEDIA_AMOUNT_INVALID: 'BadRequest.ExtendedMediaAmountInvalid',
212
223
  EXTENDED_MEDIA_EMPTY: 'BadRequest.ExtendedMediaEmpty',
213
224
  EXTENDED_MEDIA_INVALID: 'BadRequest.ExtendedMediaInvalid',
225
+ EXTENDED_MEDIA_PEER_INVALID: 'BadRequest.ExtendedMediaPeerInvalid',
214
226
  EXTERNAL_URL_INVALID: 'BadRequest.ExternalUrlInvalid',
215
227
  FIELD_NAME_EMPTY: 'BadRequest.FieldNameEmpty',
216
228
  FIELD_NAME_INVALID: 'BadRequest.FieldNameInvalid',
@@ -321,8 +333,11 @@ const Exceptions = {
321
333
  LANG_PACK_INVALID: 'BadRequest.LangPackInvalid',
322
334
  LASTNAME_INVALID: 'BadRequest.LastnameInvalid',
323
335
  LIMIT_INVALID: 'BadRequest.LimitInvalid',
336
+ LIMIT_PER_POST_INVALID: 'BadRequest.LimitPerPostInvalid',
324
337
  LINK_NOT_MODIFIED: 'BadRequest.LinkNotModified',
325
338
  LOCATION_INVALID: 'BadRequest.LocationInvalid',
339
+ MANAGER_INVALID: 'BadRequest.ManagerInvalid',
340
+ MANAGER_PERMISSION_MISSING: 'BadRequest.ManagerPermissionMissing',
326
341
  MAX_DATE_INVALID: 'BadRequest.MaxDateInvalid',
327
342
  MAX_ID_INVALID: 'BadRequest.MaxIdInvalid',
328
343
  MAX_QTS_INVALID: 'BadRequest.MaxQtsInvalid',
@@ -358,8 +373,10 @@ const Exceptions = {
358
373
  MSG_ID_INVALID: 'BadRequest.MsgIdInvalid',
359
374
  MSG_TOO_OLD: 'BadRequest.MsgTooOld',
360
375
  MSG_VOICE_MISSING: 'BadRequest.MsgVoiceMissing',
376
+ MSG_VOICE_TOO_LONG: 'BadRequest.MsgVoiceTooLong',
361
377
  MSG_WAIT_FAILED: 'BadRequest.MsgWaitFailed',
362
378
  MULTI_MEDIA_TOO_LONG: 'BadRequest.MultiMediaTooLong',
379
+ NAME_INVALID: 'BadRequest.NameInvalid',
363
380
  NEED_ACTION_MISSING: 'BadRequest.NeedActionMissing',
364
381
  NEW_SALT_INVALID: 'BadRequest.NewSaltInvalid',
365
382
  NEW_SETTINGS_EMPTY: 'BadRequest.NewSettingsEmpty',
@@ -383,6 +400,7 @@ const Exceptions = {
383
400
  PARTICIPANT_ID_INVALID: 'BadRequest.ParticipantIdInvalid',
384
401
  PARTICIPANT_JOIN_MISSING: 'BadRequest.ParticipantJoinMissing',
385
402
  PARTICIPANT_VERSION_OUTDATED: 'BadRequest.ParticipantVersionOutdated',
403
+ PASSKEY_ORIGIN_MISMATCH: 'BadRequest.PasskeyOriginMismatch',
386
404
  PASSWORD_EMPTY: 'BadRequest.PasswordEmpty',
387
405
  PASSWORD_HASH_INVALID: 'BadRequest.PasswordHashInvalid',
388
406
  PASSWORD_MISSING: 'BadRequest.PasswordMissing',
@@ -443,6 +461,8 @@ const Exceptions = {
443
461
  PRIVACY_KEY_INVALID: 'BadRequest.PrivacyKeyInvalid',
444
462
  PRIVACY_TOO_LONG: 'BadRequest.PrivacyTooLong',
445
463
  PRIVACY_VALUE_INVALID: 'BadRequest.PrivacyValueInvalid',
464
+ PUBLIC_BROADCAST_EXPECTED: 'BadRequest.PublicBroadcastExpected',
465
+ PUBLIC_KEY_INVALID: 'BadRequest.PublicKeyInvalid',
446
466
  PUBLIC_KEY_REQUIRED: 'BadRequest.PublicKeyRequired',
447
467
  PURPOSE_INVALID: 'BadRequest.PurposeInvalid',
448
468
  QUERY_ID_EMPTY: 'BadRequest.QueryIdEmpty',
@@ -477,6 +497,7 @@ const Exceptions = {
477
497
  REPLY_TO_INVALID: 'BadRequest.ReplyToInvalid',
478
498
  REPLY_TO_MONOFORUM_PEER_INVALID: 'BadRequest.ReplyToMonoforumPeerInvalid',
479
499
  REPLY_TO_USER_INVALID: 'BadRequest.ReplyToUserInvalid',
500
+ REQUEST_MSG_EXPIRED: 'BadRequest.RequestMsgExpired',
480
501
  REQUEST_TOKEN_INVALID: 'BadRequest.RequestTokenInvalid',
481
502
  RESELL_STARS_TOO_FEW: 'BadRequest.ResellStarsTooFew',
482
503
  RESELL_STARS_TOO_MUCH: 'BadRequest.ResellStarsTooMuch',
@@ -532,6 +553,7 @@ const Exceptions = {
532
553
  STARGIFT_NOT_FOUND: 'BadRequest.StargiftNotFound',
533
554
  STARGIFT_NOT_OWNER: 'BadRequest.StargiftNotOwner',
534
555
  STARGIFT_NOT_UNIQUE: 'BadRequest.StargiftNotUnique',
556
+ STARGIFT_OBJECT_INVALID: 'BadRequest.StargiftObjectInvalid',
535
557
  STARGIFT_OFFER_INVALID: 'BadRequest.StargiftOfferInvalid',
536
558
  STARGIFT_OFFER_NOT_ALLOWED: 'BadRequest.StargiftOfferNotAllowed',
537
559
  STARGIFT_OWNER_INVALID: 'BadRequest.StargiftOwnerInvalid',
@@ -579,6 +601,7 @@ const Exceptions = {
579
601
  STORIES_TOO_MUCH: 'BadRequest.StoriesTooMuch',
580
602
  STORY_ID_EMPTY: 'BadRequest.StoryIdEmpty',
581
603
  STORY_ID_INVALID: 'BadRequest.StoryIdInvalid',
604
+ STORY_LIVE_ALREADY_X: 'BadRequest.StoryLiveAlready',
582
605
  STORY_NOT_MODIFIED: 'BadRequest.StoryNotModified',
583
606
  STORY_PERIOD_INVALID: 'BadRequest.StoryPeriodInvalid',
584
607
  STORY_SEND_FLOOD_MONTHLY_X: 'BadRequest.StorySendFloodMonthly',
@@ -596,6 +619,7 @@ const Exceptions = {
596
619
  TEMP_AUTH_KEY_ALREADY_BOUND: 'BadRequest.TempAuthKeyAlreadyBound',
597
620
  TEMP_AUTH_KEY_EMPTY: 'BadRequest.TempAuthKeyEmpty',
598
621
  TERMS_URL_INVALID: 'BadRequest.TermsUrlInvalid',
622
+ TEXTDRAFT_PEER_INVALID: 'BadRequest.TextdraftPeerInvalid',
599
623
  THEME_FILE_INVALID: 'BadRequest.ThemeFileInvalid',
600
624
  THEME_FORMAT_INVALID: 'BadRequest.ThemeFormatInvalid',
601
625
  THEME_INVALID: 'BadRequest.ThemeInvalid',
@@ -608,6 +632,7 @@ const Exceptions = {
608
632
  TMP_PASSWORD_DISABLED: 'BadRequest.TmpPasswordDisabled',
609
633
  TMP_PASSWORD_INVALID: 'BadRequest.TmpPasswordInvalid',
610
634
  TODO_ITEMS_EMPTY: 'BadRequest.TodoItemsEmpty',
635
+ TODO_ITEMS_TOO_MUCH: 'BadRequest.TodoItemsTooMuch',
611
636
  TODO_ITEM_DUPLICATE: 'BadRequest.TodoItemDuplicate',
612
637
  TODO_NOT_MODIFIED: 'BadRequest.TodoNotModified',
613
638
  TOKEN_EMPTY: 'BadRequest.TokenEmpty',
@@ -633,6 +658,7 @@ const Exceptions = {
633
658
  TYPE_CONSTRUCTOR_INVALID: 'BadRequest.TypeConstructorInvalid',
634
659
  UNSUPPORTED: 'BadRequest.UNSUPPORTED',
635
660
  UNTIL_DATE_INVALID: 'BadRequest.UntilDateInvalid',
661
+ URL_EXPIRED: 'BadRequest.UrlExpired',
636
662
  URL_INVALID: 'BadRequest.UrlInvalid',
637
663
  USAGE_LIMIT_INVALID: 'BadRequest.UsageLimitInvalid',
638
664
  USERNAMES_ACTIVE_TOO_MUCH: 'BadRequest.UsernamesActiveTooMuch',
@@ -641,6 +667,7 @@ const Exceptions = {
641
667
  USERNAME_NOT_OCCUPIED: 'BadRequest.UsernameNotOccupied',
642
668
  USERNAME_OCCUPIED: 'BadRequest.UsernameOccupied',
643
669
  USERNAME_PURCHASE_AVAILABLE: 'BadRequest.UsernamePurchaseAvailable',
670
+ USERNAME_SUFFIX_MISSING: 'BadRequest.UsernameSuffixMissing',
644
671
  USERPIC_UPLOAD_REQUIRED: 'BadRequest.UserpicUploadRequired',
645
672
  USERS_TOO_FEW: 'BadRequest.UsersTooFew',
646
673
  USERS_TOO_MUCH: 'BadRequest.UsersTooMuch',
@@ -652,6 +679,7 @@ const Exceptions = {
652
679
  USER_BOT: 'BadRequest.UserBot',
653
680
  USER_BOT_INVALID: 'BadRequest.UserBotInvalid',
654
681
  USER_BOT_REQUIRED: 'BadRequest.UserBotRequired',
682
+ USER_BOT_TO_BOT_DISABLED: 'BadRequest.UserBotToBotDisabled',
655
683
  USER_CHANNELS_TOO_MUCH: 'BadRequest.UserChannelsTooMuch',
656
684
  USER_CREATOR: 'BadRequest.UserCreator',
657
685
  USER_GIFT_UNAVAILABLE: 'BadRequest.UserGiftUnavailable',
@@ -666,6 +694,7 @@ const Exceptions = {
666
694
  USER_VOLUME_INVALID: 'BadRequest.UserVolumeInvalid',
667
695
  VENUE_ID_INVALID: 'BadRequest.VenueIdInvalid',
668
696
  VIDEO_CONTENT_TYPE_INVALID: 'BadRequest.VideoContentTypeInvalid',
697
+ VIDEO_DURATION_INVALID: 'BadRequest.VideoDurationInvalid',
669
698
  VIDEO_FILE_INVALID: 'BadRequest.VideoFileInvalid',
670
699
  VIDEO_PAUSE_FORBIDDEN: 'BadRequest.VideoPauseForbidden',
671
700
  VIDEO_STOP_FORBIDDEN: 'BadRequest.VideoStopForbidden',
@@ -677,6 +706,8 @@ const Exceptions = {
677
706
  WALLPAPER_MIME_INVALID: 'BadRequest.WallpaperMimeInvalid',
678
707
  WALLPAPER_NOT_FOUND: 'BadRequest.WallpaperNotFound',
679
708
  WC_CONVERT_URL_INVALID: 'BadRequest.WcConvertUrlInvalid',
709
+ WEBAPP_REQ_ID_INVALID: 'BadRequest.WebappReqIdInvalid',
710
+ WEBAUTH_TOKEN_EXPIRED: 'BadRequest.WebauthTokenExpired',
680
711
  WEBDOCUMENT_INVALID: 'BadRequest.WebdocumentInvalid',
681
712
  WEBDOCUMENT_MIME_INVALID: 'BadRequest.WebdocumentMimeInvalid',
682
713
  WEBDOCUMENT_SIZE_TOO_BIG: 'BadRequest.WebdocumentSizeTooBig',
@@ -709,8 +740,11 @@ const Exceptions = {
709
740
  ALLOW_PAYMENT_REQUIRED_X: 'Forbidden.AllowPaymentRequired',
710
741
  ANONYMOUS_REACTIONS_DISABLED: 'Forbidden.AnonymousReactionsDisabled',
711
742
  BOT_ACCESS_FORBIDDEN: 'Forbidden.BotAccessForbidden',
743
+ BOT_FORUM_CREATE_FORBIDDEN: 'Forbidden.BotForumCreateForbidden',
744
+ BOT_GUARD_NOT_SUPPORTED: 'Forbidden.BotGuardNotSupported',
712
745
  BOT_VERIFIER_FORBIDDEN: 'Forbidden.BotVerifierForbidden',
713
746
  BROADCAST_FORBIDDEN: 'Forbidden.BroadcastForbidden',
747
+ CHANNEL_PRIVATE: 'Forbidden.ChannelPrivate',
714
748
  CHANNEL_PUBLIC_GROUP_NA: 'Forbidden.ChannelPublicGroupNa',
715
749
  CHAT_ACTION_FORBIDDEN: 'Forbidden.ChatActionForbidden',
716
750
  CHAT_ADMIN_INVITE_REQUIRED: 'Forbidden.ChatAdminInviteRequired',
@@ -735,6 +769,7 @@ const Exceptions = {
735
769
  CHAT_WRITE_FORBIDDEN: 'Forbidden.ChatWriteForbidden',
736
770
  EDIT_BOT_INVITE_FORBIDDEN: 'Forbidden.EditBotInviteForbidden',
737
771
  GROUPCALL_ALREADY_STARTED: 'Forbidden.GroupcallAlreadyStarted',
772
+ GROUPCALL_CHANGE_FORBIDDEN: 'Forbidden.GroupcallChangeForbidden',
738
773
  GROUPCALL_FORBIDDEN: 'Forbidden.GroupcallForbidden',
739
774
  INLINE_BOT_REQUIRED: 'Forbidden.InlineBotRequired',
740
775
  MESSAGE_AUTHOR_REQUIRED: 'Forbidden.MessageAuthorRequired',
@@ -749,9 +784,11 @@ const Exceptions = {
749
784
  RIGHT_FORBIDDEN: 'Forbidden.RightForbidden',
750
785
  SENSITIVE_CHANGE_FORBIDDEN: 'Forbidden.SensitiveChangeForbidden',
751
786
  TAKEOUT_REQUIRED: 'Forbidden.TakeoutRequired',
787
+ USER_BANNED_IN_CHANNEL: 'Forbidden.UserBannedInChannel',
752
788
  USER_BOT_INVALID: 'Forbidden.UserBotInvalid',
753
789
  USER_CHANNELS_TOO_MUCH: 'Forbidden.UserChannelsTooMuch',
754
790
  USER_DELETED: 'Forbidden.UserDeleted',
791
+ USER_DISALLOWED_STARGIFTS: 'Forbidden.UserDisallowedStargifts',
755
792
  USER_INVALID: 'Forbidden.UserInvalid',
756
793
  USER_IS_BLOCKED: 'Forbidden.UserIsBlocked',
757
794
  USER_NOT_MUTUAL_CONTACT: 'Forbidden.UserNotMutualContact',
@@ -788,6 +825,7 @@ const Exceptions = {
788
825
  PEER_ID_INVALID: 'NotAcceptable.PeerIdInvalid',
789
826
  PHONE_NUMBER_INVALID: 'NotAcceptable.PhoneNumberInvalid',
790
827
  PHONE_PASSWORD_FLOOD: 'NotAcceptable.PhonePasswordFlood',
828
+ POLL_MEMBER_RESTRICTED: 'NotAcceptable.PollMemberRestricted',
791
829
  PRECHECKOUT_FAILED: 'NotAcceptable.PrecheckoutFailed',
792
830
  PREMIUM_CURRENTLY_UNAVAILABLE: 'NotAcceptable.PremiumCurrentlyUnavailable',
793
831
  PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN: 'NotAcceptable.PreviousChatImportActiveWaitmin',
@@ -819,6 +857,7 @@ const Exceptions = {
819
857
  },
820
858
  500: {
821
859
  _: 'InternalServerError.InternalServerError',
860
+ AICOMPOSE_TIMEOUT: 'InternalServerError.AicomposeTimeout',
822
861
  API_CALL_ERROR: 'InternalServerError.ApiCallError',
823
862
  AUTH_KEY_UNSYNCHRONIZED: 'InternalServerError.AuthKeyUnsynchronized',
824
863
  AUTH_RESTART: 'InternalServerError.AuthRestart',
@@ -855,6 +894,7 @@ const Exceptions = {
855
894
  NEED_DOC_INVALID: 'InternalServerError.NeedDocInvalid',
856
895
  NEED_MEMBER_INVALID: 'InternalServerError.NeedMemberInvalid',
857
896
  No_workers_running: 'InternalServerError.NoWorkersRunning',
897
+ OAUTH_REQUEST_INVALID: 'InternalServerError.OauthRequestInvalid',
858
898
  PARTICIPANT_CALL_FAILED: 'InternalServerError.ParticipantCallFailed',
859
899
  PASSKEY_AUTH_RESTART: 'InternalServerError.PasskeyAuthRestart',
860
900
  PERSISTENT_TIMESTAMP_OUTDATED: 'InternalServerError.PersistentTimestampOutdated',