@tgsnake/skema 1.7.0 → 1.9.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/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  This project was originally based on the source code from [`@tgsnake/core`](https://github.com/tgsnake/core). 🐍
5
5
 
6
6
  <center>
7
- <b>Layer 220</b>
7
+ <b>Layer 222</b>
8
8
  </center>
9
9
 
10
10
  ## Features ✨
@@ -1,4 +1,4 @@
1
- declare const count = 744;
1
+ declare const count = 817;
2
2
  declare const Exceptions: {
3
3
  303: {
4
4
  _: string;
@@ -52,6 +52,7 @@ declare const Exceptions: {
52
52
  BOT_COMMAND_DESCRIPTION_INVALID: string;
53
53
  BOT_COMMAND_INVALID: string;
54
54
  BOT_DOMAIN_INVALID: string;
55
+ BOT_FALLBACK_UNSUPPORTED: string;
55
56
  BOT_GAMES_DISABLED: string;
56
57
  BOT_GROUPS_BLOCKED: string;
57
58
  BOT_INLINE_DISABLED: string;
@@ -69,6 +70,8 @@ declare const Exceptions: {
69
70
  BROADCAST_ID_INVALID: string;
70
71
  BROADCAST_PUBLIC_VOTERS_FORBIDDEN: string;
71
72
  BROADCAST_REQUIRED: string;
73
+ BUSINESS_CONNECTION_INVALID: string;
74
+ BUSINESS_CONNECTION_NOT_ALLOWED: string;
72
75
  BUSINESS_PEER_INVALID: string;
73
76
  BUSINESS_PEER_USAGE_MISSING: string;
74
77
  BUSINESS_RECIPIENTS_EMPTY: string;
@@ -77,6 +80,7 @@ declare const Exceptions: {
77
80
  BUTTON_COPY_TEXT_INVALID: string;
78
81
  BUTTON_DATA_INVALID: string;
79
82
  BUTTON_ID_INVALID: string;
83
+ BUTTON_INVALID: string;
80
84
  BUTTON_POS_INVALID: string;
81
85
  BUTTON_TEXT_INVALID: string;
82
86
  BUTTON_TYPE_INVALID: string;
@@ -88,6 +92,7 @@ declare const Exceptions: {
88
92
  CALL_OCCUPY_FAILED: string;
89
93
  CALL_PEER_INVALID: string;
90
94
  CALL_PROTOCOL_FLAGS_INVALID: string;
95
+ CALL_PROTOCOL_LAYER_INVALID: string;
91
96
  CDN_METHOD_INVALID: string;
92
97
  CHANNELS_ADMIN_LOCATED_TOO_MUCH: string;
93
98
  CHANNELS_ADMIN_PUBLIC_TOO_MUCH: string;
@@ -97,11 +102,14 @@ declare const Exceptions: {
97
102
  CHANNEL_FORUM_MISSING: string;
98
103
  CHANNEL_ID_INVALID: string;
99
104
  CHANNEL_INVALID: string;
105
+ CHANNEL_MONOFORUM_UNSUPPORTED: string;
100
106
  CHANNEL_PARICIPANT_MISSING: string;
101
107
  CHANNEL_PRIVATE: string;
102
108
  CHANNEL_TOO_BIG: string;
103
109
  CHANNEL_TOO_LARGE: string;
104
110
  CHARGE_ALREADY_REFUNDED: string;
111
+ CHARGE_ID_EMPTY: string;
112
+ CHARGE_ID_INVALID: string;
105
113
  CHATLINKS_TOO_MUCH: string;
106
114
  CHATLINK_SLUG_EMPTY: string;
107
115
  CHATLINK_SLUG_EXPIRED: string;
@@ -148,6 +156,7 @@ declare const Exceptions: {
148
156
  CREATE_CALL_FAILED: string;
149
157
  CURRENCY_TOTAL_AMOUNT_INVALID: string;
150
158
  CUSTOM_REACTIONS_TOO_MANY: string;
159
+ DATA_HASH_SIZE_INVALID: string;
151
160
  DATA_INVALID: string;
152
161
  DATA_JSON_INVALID: string;
153
162
  DATA_TOO_LONG: string;
@@ -155,6 +164,7 @@ declare const Exceptions: {
155
164
  DC_ID_INVALID: string;
156
165
  DH_G_A_INVALID: string;
157
166
  DOCUMENT_INVALID: string;
167
+ EFFECT_ID_INVALID: string;
158
168
  EMAIL_HASH_EXPIRED: string;
159
169
  EMAIL_INVALID: string;
160
170
  EMAIL_NOT_ALLOWED: string;
@@ -177,9 +187,11 @@ declare const Exceptions: {
177
187
  ENTITY_BOUNDS_INVALID: string;
178
188
  ENTITY_MENTION_USER_INVALID: string;
179
189
  ERROR_TEXT_EMPTY: string;
190
+ EXPIRES_AT_INVALID: string;
180
191
  EXPIRE_DATE_INVALID: string;
181
192
  EXPORT_CARD_INVALID: string;
182
193
  EXTENDED_MEDIA_AMOUNT_INVALID: string;
194
+ EXTENDED_MEDIA_INVALID: string;
183
195
  EXTERNAL_URL_INVALID: string;
184
196
  FIELD_NAME_EMPTY: string;
185
197
  FIELD_NAME_INVALID: string;
@@ -213,16 +225,20 @@ declare const Exceptions: {
213
225
  FOLDER_ID_INVALID: string;
214
226
  FORM_EXPIRED: string;
215
227
  FORM_ID_EMPTY: string;
228
+ FORM_SUBMIT_DUPLICATE: string;
216
229
  FORM_UNSUPPORTED: string;
217
230
  FORUM_ENABLED: string;
218
231
  FRESH_CHANGE_ADMINS_FORBIDDEN: string;
219
232
  FROM_MESSAGE_BOT_DISABLED: string;
220
233
  FROM_PEER_INVALID: string;
234
+ FROZEN_PARTICIPANT_MISSING: string;
221
235
  GAME_BOT_INVALID: string;
222
236
  GENERAL_MODIFY_ICON_FORBIDDEN: string;
223
237
  GEO_POINT_INVALID: string;
238
+ GIFT_MONTHS_INVALID: string;
224
239
  GIFT_SLUG_EXPIRED: string;
225
240
  GIFT_SLUG_INVALID: string;
241
+ GIFT_STARS_INVALID: string;
226
242
  GIF_CONTENT_TYPE_INVALID: string;
227
243
  GIF_ID_INVALID: string;
228
244
  GRAPH_EXPIRED_RELOAD: string;
@@ -238,6 +254,7 @@ declare const Exceptions: {
238
254
  GROUP_CALL_INVALID: string;
239
255
  HASHTAG_INVALID: string;
240
256
  HASH_INVALID: string;
257
+ HASH_SIZE_INVALID: string;
241
258
  HIDE_REQUESTER_MISSING: string;
242
259
  ID_EXPIRED: string;
243
260
  ID_INVALID: string;
@@ -258,6 +275,7 @@ declare const Exceptions: {
258
275
  INPUT_LAYER_INVALID: string;
259
276
  INPUT_METHOD_INVALID: string;
260
277
  INPUT_PEERS_EMPTY: string;
278
+ INPUT_PURPOSE_INVALID: string;
261
279
  INPUT_REQUEST_TOO_LONG: string;
262
280
  INPUT_TEXT_EMPTY: string;
263
281
  INPUT_TEXT_TOO_LONG: string;
@@ -272,6 +290,7 @@ declare const Exceptions: {
272
290
  INVITE_SLUG_EMPTY: string;
273
291
  INVITE_SLUG_EXPIRED: string;
274
292
  INVITE_SLUG_INVALID: string;
293
+ INVOICE_INVALID: string;
275
294
  INVOICE_PAYLOAD_INVALID: string;
276
295
  JOIN_AS_PEER_INVALID: string;
277
296
  LANGUAGE_INVALID: string;
@@ -286,6 +305,7 @@ declare const Exceptions: {
286
305
  MAX_ID_INVALID: string;
287
306
  MAX_QTS_INVALID: string;
288
307
  MD5_CHECKSUM_INVALID: string;
308
+ MEDIA_ALREADY_PAID: string;
289
309
  MEDIA_CAPTION_TOO_LONG: string;
290
310
  MEDIA_EMPTY: string;
291
311
  MEDIA_FILE_INVALID: string;
@@ -311,16 +331,20 @@ declare const Exceptions: {
311
331
  MESSAGE_TOO_OLD: string;
312
332
  METHOD_INVALID: string;
313
333
  MIN_DATE_INVALID: string;
334
+ MONTH_INVALID: string;
314
335
  MSG_ID_INVALID: string;
315
336
  MSG_TOO_OLD: string;
337
+ MSG_VOICE_MISSING: string;
316
338
  MSG_WAIT_FAILED: string;
317
339
  MULTI_MEDIA_TOO_LONG: string;
318
340
  NEW_SALT_INVALID: string;
319
341
  NEW_SETTINGS_EMPTY: string;
320
342
  NEW_SETTINGS_INVALID: string;
321
343
  NEXT_OFFSET_INVALID: string;
344
+ NOGENERAL_HIDE_FORBIDDEN: string;
322
345
  NOT_ELIGIBLE: string;
323
346
  NOT_JOINED: string;
347
+ NO_PAYMENT_NEEDED: string;
324
348
  OFFSET_INVALID: string;
325
349
  OFFSET_PEER_ID_INVALID: string;
326
350
  OPTIONS_TOO_MUCH: string;
@@ -329,6 +353,8 @@ declare const Exceptions: {
329
353
  PACK_SHORT_NAME_INVALID: string;
330
354
  PACK_SHORT_NAME_OCCUPIED: string;
331
355
  PACK_TITLE_INVALID: string;
356
+ PACK_TYPE_INVALID: string;
357
+ PARENT_PEER_INVALID: string;
332
358
  PARTICIPANTS_TOO_FEW: string;
333
359
  PARTICIPANT_ID_INVALID: string;
334
360
  PARTICIPANT_JOIN_MISSING: string;
@@ -340,7 +366,9 @@ declare const Exceptions: {
340
366
  PASSWORD_RECOVERY_NA: string;
341
367
  PASSWORD_REQUIRED: string;
342
368
  PASSWORD_TOO_FRESH_X: string;
369
+ PAYMENT_CREDENTIALS_INVALID: string;
343
370
  PAYMENT_PROVIDER_INVALID: string;
371
+ PAYMENT_REQUIRED: string;
344
372
  PEERS_LIST_EMPTY: string;
345
373
  PEER_FLOOD: string;
346
374
  PEER_HISTORY_EMPTY: string;
@@ -375,6 +403,7 @@ declare const Exceptions: {
375
403
  PHOTO_THUMB_URL_EMPTY: string;
376
404
  PHOTO_THUMB_URL_INVALID: string;
377
405
  PINNED_DIALOGS_TOO_MUCH: string;
406
+ PINNED_TOO_MUCH: string;
378
407
  PIN_RESTRICTED: string;
379
408
  POLL_ANSWERS_INVALID: string;
380
409
  POLL_ANSWER_INVALID: string;
@@ -389,9 +418,11 @@ declare const Exceptions: {
389
418
  PRIVACY_TOO_LONG: string;
390
419
  PRIVACY_VALUE_INVALID: string;
391
420
  PUBLIC_KEY_REQUIRED: string;
421
+ PURPOSE_INVALID: string;
392
422
  QUERY_ID_EMPTY: string;
393
423
  QUERY_ID_INVALID: string;
394
424
  QUERY_TOO_SHORT: string;
425
+ QUICK_REPLIES_BOT_NOT_ALLOWED: string;
395
426
  QUICK_REPLIES_TOO_MUCH: string;
396
427
  QUIZ_ANSWER_MISSING: string;
397
428
  QUIZ_CORRECT_ANSWERS_EMPTY: string;
@@ -401,9 +432,11 @@ declare const Exceptions: {
401
432
  QUOTE_TEXT_INVALID: string;
402
433
  RAISE_HAND_FORBIDDEN: string;
403
434
  RANDOM_ID_EMPTY: string;
435
+ RANDOM_ID_EXPIRED: string;
404
436
  RANDOM_ID_INVALID: string;
405
437
  RANDOM_LENGTH_INVALID: string;
406
438
  RANGES_INVALID: string;
439
+ REACTIONS_COUNT_INVALID: string;
407
440
  REACTIONS_TOO_MANY: string;
408
441
  REACTION_EMPTY: string;
409
442
  REACTION_INVALID: string;
@@ -416,6 +449,7 @@ declare const Exceptions: {
416
449
  REPLY_MESSAGES_TOO_MUCH: string;
417
450
  REPLY_MESSAGE_ID_INVALID: string;
418
451
  REPLY_TO_INVALID: string;
452
+ REPLY_TO_MONOFORUM_PEER_INVALID: string;
419
453
  REPLY_TO_USER_INVALID: string;
420
454
  REQUEST_TOKEN_INVALID: string;
421
455
  RESET_REQUEST_MISSING: string;
@@ -429,6 +463,7 @@ declare const Exceptions: {
429
463
  RINGTONE_INVALID: string;
430
464
  RINGTONE_MIME_INVALID: string;
431
465
  RSA_DECRYPT_FAILED: string;
466
+ SAVED_ID_EMPTY: string;
432
467
  SCHEDULE_BOT_NOT_ALLOWED: string;
433
468
  SCHEDULE_DATE_INVALID: string;
434
469
  SCHEDULE_DATE_TOO_LATE: string;
@@ -439,7 +474,9 @@ declare const Exceptions: {
439
474
  SEARCH_WITH_LINK_NOT_SUPPORTED: string;
440
475
  SECONDS_INVALID: string;
441
476
  SECURE_SECRET_REQUIRED: string;
477
+ SELF_DELETE_RESTRICTED: string;
442
478
  SEND_AS_PEER_INVALID: string;
479
+ SEND_MESSAGE_GAME_INVALID: string;
443
480
  SEND_MESSAGE_MEDIA_INVALID: string;
444
481
  SEND_MESSAGE_TYPE_INVALID: string;
445
482
  SESSION_TOO_FRESH_X: string;
@@ -457,13 +494,25 @@ declare const Exceptions: {
457
494
  SRP_A_INVALID: string;
458
495
  SRP_ID_INVALID: string;
459
496
  SRP_PASSWORD_CHANGED: string;
497
+ STARGIFT_ALREADY_CONVERTED: string;
498
+ STARGIFT_ALREADY_REFUNDED: string;
499
+ STARGIFT_ALREADY_UPGRADED: string;
460
500
  STARGIFT_INVALID: string;
501
+ STARGIFT_NOT_FOUND: string;
502
+ STARGIFT_OWNER_INVALID: string;
503
+ STARGIFT_PEER_INVALID: string;
504
+ STARGIFT_RESELL_CURRENCY_NOT_ALLOWED: string;
505
+ STARGIFT_SLUG_INVALID: string;
506
+ STARGIFT_TRANSFER_TOO_EARLY_X: string;
507
+ STARGIFT_UPGRADE_UNAVAILABLE: string;
461
508
  STARGIFT_USAGE_LIMITED: string;
509
+ STARGIFT_USER_USAGE_LIMITED: string;
462
510
  STARREF_AWAITING_END: string;
463
511
  STARREF_EXPIRED: string;
464
512
  STARREF_HASH_REVOKED: string;
465
513
  STARREF_PERMILLE_INVALID: string;
466
514
  STARREF_PERMILLE_TOO_LOW: string;
515
+ STARS_AMOUNT_INVALID: string;
467
516
  STARS_INVOICE_INVALID: string;
468
517
  STARS_PAYMENT_REQUIRED: string;
469
518
  START_PARAM_EMPTY: string;
@@ -499,7 +548,10 @@ declare const Exceptions: {
499
548
  STORY_SEND_FLOOD_MONTHLY_X: string;
500
549
  STORY_SEND_FLOOD_WEEKLY_X: string;
501
550
  SUBSCRIPTION_EXPORT_MISSING: string;
551
+ SUBSCRIPTION_ID_INVALID: string;
502
552
  SUBSCRIPTION_PERIOD_INVALID: string;
553
+ SUGGESTED_POST_AMOUNT_INVALID: string;
554
+ SUGGESTED_POST_PEER_INVALID: string;
503
555
  SWITCH_PM_TEXT_EMPTY: string;
504
556
  SWITCH_WEBVIEW_URL_INVALID: string;
505
557
  TAKEOUT_INVALID: string;
@@ -513,11 +565,15 @@ declare const Exceptions: {
513
565
  THEME_INVALID: string;
514
566
  THEME_MIME_INVALID: string;
515
567
  THEME_PARAMS_INVALID: string;
568
+ THEME_SLUG_INVALID: string;
516
569
  THEME_TITLE_INVALID: string;
517
570
  TIMEZONE_INVALID: string;
518
571
  TITLE_INVALID: string;
519
572
  TMP_PASSWORD_DISABLED: string;
520
573
  TMP_PASSWORD_INVALID: string;
574
+ TODO_ITEMS_EMPTY: string;
575
+ TODO_ITEM_DUPLICATE: string;
576
+ TODO_NOT_MODIFIED: string;
521
577
  TOKEN_EMPTY: string;
522
578
  TOKEN_INVALID: string;
523
579
  TOKEN_TYPE_INVALID: string;
@@ -529,6 +585,7 @@ declare const Exceptions: {
529
585
  TOPIC_ID_INVALID: string;
530
586
  TOPIC_NOT_MODIFIED: string;
531
587
  TOPIC_TITLE_EMPTY: string;
588
+ TO_ID_INVALID: string;
532
589
  TO_LANG_INVALID: string;
533
590
  TRANSACTION_ID_INVALID: string;
534
591
  TRANSCRIPTION_FAILED: string;
@@ -538,6 +595,7 @@ declare const Exceptions: {
538
595
  TTL_PERIOD_INVALID: string;
539
596
  TYPES_EMPTY: string;
540
597
  TYPE_CONSTRUCTOR_INVALID: string;
598
+ UNSUPPORTED: string;
541
599
  UNTIL_DATE_INVALID: string;
542
600
  URL_INVALID: string;
543
601
  USAGE_LIMIT_INVALID: string;
@@ -611,7 +669,10 @@ declare const Exceptions: {
611
669
  };
612
670
  403: {
613
671
  _: string;
672
+ ALLOW_PAYMENT_REQUIRED_X: string;
614
673
  ANONYMOUS_REACTIONS_DISABLED: string;
674
+ BOT_ACCESS_FORBIDDEN: string;
675
+ BOT_VERIFIER_FORBIDDEN: string;
615
676
  BROADCAST_FORBIDDEN: string;
616
677
  CHANNEL_PUBLIC_GROUP_NA: string;
617
678
  CHAT_ACTION_FORBIDDEN: string;
@@ -632,6 +693,7 @@ declare const Exceptions: {
632
693
  CHAT_SEND_STICKERS_FORBIDDEN: string;
633
694
  CHAT_SEND_VIDEOS_FORBIDDEN: string;
634
695
  CHAT_SEND_VOICES_FORBIDDEN: string;
696
+ CHAT_SEND_WEBPAGE_FORBIDDEN: string;
635
697
  CHAT_TYPE_INVALID: string;
636
698
  CHAT_WRITE_FORBIDDEN: string;
637
699
  EDIT_BOT_INVITE_FORBIDDEN: string;
@@ -657,6 +719,7 @@ declare const Exceptions: {
657
719
  USER_IS_BLOCKED: string;
658
720
  USER_NOT_MUTUAL_CONTACT: string;
659
721
  USER_NOT_PARTICIPANT: string;
722
+ USER_PERMISSION_DENIED: string;
660
723
  USER_PRIVACY_RESTRICTED: string;
661
724
  USER_RESTRICTED: string;
662
725
  VOICE_MESSAGES_FORBIDDEN: string;
@@ -664,10 +727,13 @@ declare const Exceptions: {
664
727
  };
665
728
  404: {
666
729
  _: string;
730
+ METHOD_INVALID: string;
667
731
  PEER_ID_INVALID: string;
668
732
  };
669
733
  406: {
670
734
  _: string;
735
+ ALLOW_PAYMENT_REQUIRED: string;
736
+ API_GIFT_RESTRICTED_UPDATE_APP: string;
671
737
  AUTH_KEY_DUPLICATED: string;
672
738
  BANNED_RIGHTS_INVALID: string;
673
739
  BUSINESS_ADDRESS_ACTIVE: string;
@@ -682,16 +748,21 @@ declare const Exceptions: {
682
748
  GIFTCODE_NOT_ALLOWED: string;
683
749
  INVITE_HASH_EXPIRED: string;
684
750
  PAYMENT_UNSUPPORTED: string;
751
+ PEER_ID_INVALID: string;
685
752
  PHONE_NUMBER_INVALID: string;
686
753
  PHONE_PASSWORD_FLOOD: string;
754
+ PRECHECKOUT_FAILED: string;
687
755
  PREMIUM_CURRENTLY_UNAVAILABLE: string;
688
756
  PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN: string;
689
757
  PRIVACY_PREMIUM_REQUIRED: string;
690
758
  SEND_CODE_UNAVAILABLE: string;
759
+ STARGIFT_EXPORT_IN_PROGRESS: string;
760
+ STARS_FORM_AMOUNT_MISMATCH: string;
691
761
  STICKERSET_INVALID: string;
692
762
  STICKERSET_OWNER_ANONYMOUS: string;
693
763
  TOPIC_CLOSED: string;
694
764
  TOPIC_DELETED: string;
765
+ TRANSLATIONS_DISABLED: string;
695
766
  UPDATE_APP_TO_LOGIN: string;
696
767
  USERPIC_PRIVACY_REQUIRED: string;
697
768
  USERPIC_UPLOAD_REQUIRED: string;
@@ -704,6 +775,7 @@ declare const Exceptions: {
704
775
  FLOOD_PREMIUM_WAIT_X: string;
705
776
  FLOOD_TEST_PHONE_WAIT_X: string;
706
777
  FLOOD_WAIT_X: string;
778
+ FROZEN_METHOD_INVALID: string;
707
779
  PREMIUM_SUB_ACTIVE_UNTIL_X: string;
708
780
  SLOWMODE_WAIT_X: string;
709
781
  TAKEOUT_INIT_DELAY_X: string;
@@ -759,6 +831,7 @@ declare const Exceptions: {
759
831
  STORAGE_CHECK_FAILED: string;
760
832
  STORE_INVALID_SCALAR_TYPE: string;
761
833
  TRANSLATE_REQ_FAILED: string;
834
+ TRANSLATION_TIMEOUT: string;
762
835
  UNKNOWN_METHOD: string;
763
836
  UPLOAD_NO_VOLUME: string;
764
837
  VOLUME_LOC_NOT_FOUND: string;