teleproto 206.1.3 → 210.1.3

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/Version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "206.1.3";
1
+ export declare const version = "210.1.3";
package/Version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "206.1.3";
4
+ exports.version = "210.1.3";
package/crypto/IGE.js CHANGED
@@ -74,13 +74,13 @@ class IGE {
74
74
  Helpers.generateRandomBytes(blockSize - padding),
75
75
  ]);
76
76
  }
77
- const iv1 = this.iv.slice(0, blockSize);
78
- const iv2 = this.iv.slice(blockSize, 2 * blockSize);
77
+ const iv1 = this.iv.subarray(0, blockSize);
78
+ const iv2 = this.iv.subarray(blockSize, 2 * blockSize);
79
79
  let prevCipher = iv1;
80
80
  let prevPlain = iv2;
81
81
  const output = Buffer.alloc(plainText.length);
82
82
  for (let i = 0; i < plainText.length; i += blockSize) {
83
- const plainBlock = plainText.slice(i, i + blockSize);
83
+ const plainBlock = plainText.subarray(i, i + blockSize);
84
84
  const xored = this.xorBuffers(plainBlock, prevCipher);
85
85
  const encrypted = this.aesEncryptBlock(xored);
86
86
  const cipherBlock = this.xorBuffers(encrypted, prevPlain);
@@ -95,13 +95,13 @@ class IGE {
95
95
  if (cipherText.length % blockSize !== 0) {
96
96
  throw new Error("Cipher text must be multiple of 16 bytes");
97
97
  }
98
- const iv1 = this.iv.slice(0, blockSize);
99
- const iv2 = this.iv.slice(blockSize, 2 * blockSize);
98
+ const iv1 = this.iv.subarray(0, blockSize);
99
+ const iv2 = this.iv.subarray(blockSize, 2 * blockSize);
100
100
  let prevCipher = iv1;
101
101
  let prevPlain = iv2;
102
102
  const output = Buffer.alloc(cipherText.length);
103
103
  for (let i = 0; i < cipherText.length; i += blockSize) {
104
- const cipherBlock = cipherText.slice(i, i + blockSize);
104
+ const cipherBlock = cipherText.subarray(i, i + blockSize);
105
105
  const xored = this.xorBuffers(cipherBlock, prevPlain);
106
106
  const decrypted = this.aesDecryptBlock(xored);
107
107
  const plainBlock = this.xorBuffers(decrypted, prevCipher);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teleproto",
3
- "version": "206.1.3",
3
+ "version": "210.1.3",
4
4
  "description": "NodeJS MTProto API Telegram client library,",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,3 +1,3 @@
1
- export declare const LAYER = 206;
1
+ export declare const LAYER = 210;
2
2
  declare const tlobjects: any;
3
3
  export { tlobjects };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tlobjects = exports.LAYER = void 0;
4
- exports.LAYER = 206;
4
+ exports.LAYER = 210;
5
5
  const _1 = require(".");
6
6
  const tlobjects = {};
7
7
  exports.tlobjects = tlobjects;
package/tl/api.d.ts CHANGED
@@ -3151,8 +3151,9 @@ export namespace Api {
3151
3151
  botVerification?: Api.TypeBotVerification;
3152
3152
  sendPaidMessagesStars?: long;
3153
3153
  disallowedGifts?: Api.TypeDisallowedGiftsSettings;
3154
+ starsRating?: Api.TypeStarsRating;
3154
3155
  }> {
3155
- CONSTRUCTOR_ID: 2582085701;
3156
+ CONSTRUCTOR_ID: 702447806;
3156
3157
  SUBCLASS_OF_ID: 524706233;
3157
3158
  classType: "constructor";
3158
3159
  className: "UserFull";
@@ -3207,6 +3208,7 @@ export namespace Api {
3207
3208
  botVerification?: Api.TypeBotVerification;
3208
3209
  sendPaidMessagesStars?: long;
3209
3210
  disallowedGifts?: Api.TypeDisallowedGiftsSettings;
3211
+ starsRating?: Api.TypeStarsRating;
3210
3212
  }
3211
3213
  export class Contact extends VirtualClass<{
3212
3214
  userId: long;
@@ -12580,8 +12582,9 @@ export namespace Api {
12580
12582
  quoteText?: string;
12581
12583
  quoteEntities?: Api.TypeMessageEntity[];
12582
12584
  quoteOffset?: int;
12585
+ todoItemId?: int;
12583
12586
  }> {
12584
- CONSTRUCTOR_ID: 2948336091;
12587
+ CONSTRUCTOR_ID: 1763137035;
12585
12588
  SUBCLASS_OF_ID: 1531810151;
12586
12589
  classType: "constructor";
12587
12590
  className: "MessageReplyHeader";
@@ -12598,6 +12601,7 @@ export namespace Api {
12598
12601
  quoteText?: string;
12599
12602
  quoteEntities?: Api.TypeMessageEntity[];
12600
12603
  quoteOffset?: int;
12604
+ todoItemId?: int;
12601
12605
  }
12602
12606
  export class MessageReplyStoryHeader extends VirtualClass<{
12603
12607
  peer: Api.TypePeer;
@@ -14494,8 +14498,9 @@ export namespace Api {
14494
14498
  quoteEntities?: Api.TypeMessageEntity[];
14495
14499
  quoteOffset?: int;
14496
14500
  monoforumPeerId?: Api.TypeInputPeer;
14501
+ todoItemId?: int;
14497
14502
  }> {
14498
- CONSTRUCTOR_ID: 2960144560;
14503
+ CONSTRUCTOR_ID: 2258615824;
14499
14504
  SUBCLASS_OF_ID: 2356220701;
14500
14505
  classType: "constructor";
14501
14506
  className: "InputReplyToMessage";
@@ -14508,6 +14513,7 @@ export namespace Api {
14508
14513
  quoteEntities?: Api.TypeMessageEntity[];
14509
14514
  quoteOffset?: int;
14510
14515
  monoforumPeerId?: Api.TypeInputPeer;
14516
+ todoItemId?: int;
14511
14517
  }
14512
14518
  export class InputReplyToStory extends VirtualClass<{
14513
14519
  peer: Api.TypeInputPeer;
@@ -15987,6 +15993,8 @@ export namespace Api {
15987
15993
  limited?: boolean;
15988
15994
  soldOut?: boolean;
15989
15995
  birthday?: boolean;
15996
+ requirePremium?: boolean;
15997
+ limitedPerUser?: boolean;
15990
15998
  id: long;
15991
15999
  sticker: Api.TypeDocument;
15992
16000
  stars: long;
@@ -15999,8 +16007,11 @@ export namespace Api {
15999
16007
  upgradeStars?: long;
16000
16008
  resellMinStars?: long;
16001
16009
  title?: string;
16010
+ releasedBy?: Api.TypePeer;
16011
+ perUserTotal?: int;
16012
+ perUserRemains?: int;
16002
16013
  }> {
16003
- CONSTRUCTOR_ID: 3324693032;
16014
+ CONSTRUCTOR_ID: 12386139;
16004
16015
  SUBCLASS_OF_ID: 3273414923;
16005
16016
  classType: "constructor";
16006
16017
  className: "StarGift";
@@ -16009,6 +16020,8 @@ export namespace Api {
16009
16020
  limited?: boolean;
16010
16021
  soldOut?: boolean;
16011
16022
  birthday?: boolean;
16023
+ requirePremium?: boolean;
16024
+ limitedPerUser?: boolean;
16012
16025
  id: long;
16013
16026
  sticker: Api.TypeDocument;
16014
16027
  stars: long;
@@ -16021,9 +16034,13 @@ export namespace Api {
16021
16034
  upgradeStars?: long;
16022
16035
  resellMinStars?: long;
16023
16036
  title?: string;
16037
+ releasedBy?: Api.TypePeer;
16038
+ perUserTotal?: int;
16039
+ perUserRemains?: int;
16024
16040
  }
16025
16041
  export class StarGiftUnique extends VirtualClass<{
16026
16042
  // flags: null;
16043
+ requirePremium?: boolean;
16027
16044
  id: long;
16028
16045
  title: string;
16029
16046
  slug: string;
@@ -16036,13 +16053,15 @@ export namespace Api {
16036
16053
  availabilityTotal: int;
16037
16054
  giftAddress?: string;
16038
16055
  resellStars?: long;
16056
+ releasedBy?: Api.TypePeer;
16039
16057
  }> {
16040
- CONSTRUCTOR_ID: 1678891913;
16058
+ CONSTRUCTOR_ID: 4130830510;
16041
16059
  SUBCLASS_OF_ID: 3273414923;
16042
16060
  classType: "constructor";
16043
16061
  className: "StarGiftUnique";
16044
16062
  static fromReader(reader: Reader): StarGiftUnique;
16045
16063
  // flags: null;
16064
+ requirePremium?: boolean;
16046
16065
  id: long;
16047
16066
  title: string;
16048
16067
  slug: string;
@@ -16055,6 +16074,7 @@ export namespace Api {
16055
16074
  availabilityTotal: int;
16056
16075
  giftAddress?: string;
16057
16076
  resellStars?: long;
16077
+ releasedBy?: Api.TypePeer;
16058
16078
  }
16059
16079
  export class MessageReportOption extends VirtualClass<{
16060
16080
  text: string;
@@ -16308,8 +16328,9 @@ export namespace Api {
16308
16328
  transferStars?: long;
16309
16329
  canTransferAt?: int;
16310
16330
  canResellAt?: int;
16331
+ collectionId?: int[];
16311
16332
  }> {
16312
- CONSTRUCTOR_ID: 3755607193;
16333
+ CONSTRUCTOR_ID: 514213599;
16313
16334
  SUBCLASS_OF_ID: 2385198100;
16314
16335
  classType: "constructor";
16315
16336
  className: "SavedStarGift";
@@ -16332,6 +16353,7 @@ export namespace Api {
16332
16353
  transferStars?: long;
16333
16354
  canTransferAt?: int;
16334
16355
  canResellAt?: int;
16356
+ collectionId?: int[];
16335
16357
  }
16336
16358
  export class InputSavedStarGiftUser extends VirtualClass<{
16337
16359
  msgId: int;
@@ -16607,6 +16629,44 @@ export namespace Api {
16607
16629
  price?: Api.TypeStarsAmount;
16608
16630
  scheduleDate?: int;
16609
16631
  }
16632
+ export class StarsRating extends VirtualClass<{
16633
+ // flags: null;
16634
+ level: int;
16635
+ currentLevelStars: long;
16636
+ stars: long;
16637
+ nextLevelStars?: long;
16638
+ }> {
16639
+ CONSTRUCTOR_ID: 453922567;
16640
+ SUBCLASS_OF_ID: 1668506656;
16641
+ classType: "constructor";
16642
+ className: "StarsRating";
16643
+ static fromReader(reader: Reader): StarsRating;
16644
+ // flags: null;
16645
+ level: int;
16646
+ currentLevelStars: long;
16647
+ stars: long;
16648
+ nextLevelStars?: long;
16649
+ }
16650
+ export class StarGiftCollection extends VirtualClass<{
16651
+ // flags: null;
16652
+ collectionId: int;
16653
+ title: string;
16654
+ icon?: Api.TypeDocument;
16655
+ giftsCount: int;
16656
+ hash: long;
16657
+ }> {
16658
+ CONSTRUCTOR_ID: 2641040304;
16659
+ SUBCLASS_OF_ID: 1138805578;
16660
+ classType: "constructor";
16661
+ className: "StarGiftCollection";
16662
+ static fromReader(reader: Reader): StarGiftCollection;
16663
+ // flags: null;
16664
+ collectionId: int;
16665
+ title: string;
16666
+ icon?: Api.TypeDocument;
16667
+ giftsCount: int;
16668
+ hash: long;
16669
+ }
16610
16670
  export class ResPQ extends VirtualClass<{
16611
16671
  nonce: int128;
16612
16672
  serverNonce: int128;
@@ -20780,14 +20840,18 @@ export namespace Api {
20780
20840
  export class StarGifts extends VirtualClass<{
20781
20841
  hash: int;
20782
20842
  gifts: Api.TypeStarGift[];
20843
+ chats: Api.TypeChat[];
20844
+ users: Api.TypeUser[];
20783
20845
  }> {
20784
- CONSTRUCTOR_ID: 2417396202;
20846
+ CONSTRUCTOR_ID: 785918357;
20785
20847
  SUBCLASS_OF_ID: 1635309988;
20786
20848
  classType: "constructor";
20787
20849
  className: "payments.StarGifts";
20788
20850
  static fromReader(reader: Reader): StarGifts;
20789
20851
  hash: int;
20790
20852
  gifts: Api.TypeStarGift[];
20853
+ chats: Api.TypeChat[];
20854
+ users: Api.TypeUser[];
20791
20855
  }
20792
20856
  export class ConnectedStarRefBots extends VirtualClass<{
20793
20857
  count: int;
@@ -20901,6 +20965,23 @@ export namespace Api {
20901
20965
  counters?: Api.TypeStarGiftAttributeCounter[];
20902
20966
  users: Api.TypeUser[];
20903
20967
  }
20968
+ export class StarGiftCollectionsNotModified extends VirtualClass<void> {
20969
+ CONSTRUCTOR_ID: 2696564503;
20970
+ SUBCLASS_OF_ID: 4028047852;
20971
+ classType: "constructor";
20972
+ className: "payments.StarGiftCollectionsNotModified";
20973
+ static fromReader(reader: Reader): StarGiftCollectionsNotModified;
20974
+ }
20975
+ export class StarGiftCollections extends VirtualClass<{
20976
+ collections: Api.TypeStarGiftCollection[];
20977
+ }> {
20978
+ CONSTRUCTOR_ID: 2317955827;
20979
+ SUBCLASS_OF_ID: 4028047852;
20980
+ classType: "constructor";
20981
+ className: "payments.StarGiftCollections";
20982
+ static fromReader(reader: Reader): StarGiftCollections;
20983
+ collections: Api.TypeStarGiftCollection[];
20984
+ }
20904
20985
  }
20905
20986
 
20906
20987
  export namespace phone {
@@ -21801,6 +21882,7 @@ export namespace Api {
21801
21882
  export type TypeSavedStarGifts = payments.SavedStarGifts;
21802
21883
  export type TypeStarGiftWithdrawalUrl = payments.StarGiftWithdrawalUrl;
21803
21884
  export type TypeResaleStarGifts = payments.ResaleStarGifts;
21885
+ export type TypeStarGiftCollections = payments.StarGiftCollectionsNotModified | payments.StarGiftCollections;
21804
21886
  }
21805
21887
 
21806
21888
  export namespace phone {
@@ -29670,10 +29752,11 @@ export namespace Api {
29670
29752
  excludeUnique?: boolean;
29671
29753
  sortByValue?: boolean;
29672
29754
  peer: Api.TypeEntityLike;
29755
+ collectionId?: int;
29673
29756
  offset: string;
29674
29757
  limit: int;
29675
29758
  }>, payments.TypeSavedStarGifts> {
29676
- CONSTRUCTOR_ID: 595791337;
29759
+ CONSTRUCTOR_ID: 2736383337;
29677
29760
  SUBCLASS_OF_ID: 3574671511;
29678
29761
  classType: "request";
29679
29762
  className: "payments.GetSavedStarGifts";
@@ -29686,6 +29769,7 @@ export namespace Api {
29686
29769
  excludeUnique?: boolean;
29687
29770
  sortByValue?: boolean;
29688
29771
  peer: Api.TypeEntityLike;
29772
+ collectionId?: int;
29689
29773
  offset: string;
29690
29774
  limit: int;
29691
29775
  }
@@ -29783,6 +29867,78 @@ export namespace Api {
29783
29867
  stargift: Api.TypeInputSavedStarGift;
29784
29868
  resellStars: long;
29785
29869
  }
29870
+ export class CreateStarGiftCollection extends Request<Partial<{
29871
+ peer: Api.TypeEntityLike;
29872
+ title: string;
29873
+ stargift: Api.TypeInputSavedStarGift[];
29874
+ }>, Api.TypeStarGiftCollection> {
29875
+ CONSTRUCTOR_ID: 524947079;
29876
+ SUBCLASS_OF_ID: 1138805578;
29877
+ classType: "request";
29878
+ className: "payments.CreateStarGiftCollection";
29879
+ static fromReader(reader: Reader): CreateStarGiftCollection;
29880
+ peer: Api.TypeEntityLike;
29881
+ title: string;
29882
+ stargift: Api.TypeInputSavedStarGift[];
29883
+ }
29884
+ export class UpdateStarGiftCollection extends Request<Partial<{
29885
+ // flags: null;
29886
+ peer: Api.TypeEntityLike;
29887
+ collectionId: int;
29888
+ title?: string;
29889
+ deleteStargift?: Api.TypeInputSavedStarGift[];
29890
+ addStargift?: Api.TypeInputSavedStarGift[];
29891
+ order?: Api.TypeInputSavedStarGift[];
29892
+ }>, Api.TypeStarGiftCollection> {
29893
+ CONSTRUCTOR_ID: 1339932391;
29894
+ SUBCLASS_OF_ID: 1138805578;
29895
+ classType: "request";
29896
+ className: "payments.UpdateStarGiftCollection";
29897
+ static fromReader(reader: Reader): UpdateStarGiftCollection;
29898
+ // flags: null;
29899
+ peer: Api.TypeEntityLike;
29900
+ collectionId: int;
29901
+ title?: string;
29902
+ deleteStargift?: Api.TypeInputSavedStarGift[];
29903
+ addStargift?: Api.TypeInputSavedStarGift[];
29904
+ order?: Api.TypeInputSavedStarGift[];
29905
+ }
29906
+ export class ReorderStarGiftCollections extends Request<Partial<{
29907
+ peer: Api.TypeEntityLike;
29908
+ order: int[];
29909
+ }>, Bool> {
29910
+ CONSTRUCTOR_ID: 3274372300;
29911
+ SUBCLASS_OF_ID: 4122188204;
29912
+ classType: "request";
29913
+ className: "payments.ReorderStarGiftCollections";
29914
+ static fromReader(reader: Reader): ReorderStarGiftCollections;
29915
+ peer: Api.TypeEntityLike;
29916
+ order: int[];
29917
+ }
29918
+ export class DeleteStarGiftCollection extends Request<Partial<{
29919
+ peer: Api.TypeEntityLike;
29920
+ collectionId: int;
29921
+ }>, Bool> {
29922
+ CONSTRUCTOR_ID: 2908113128;
29923
+ SUBCLASS_OF_ID: 4122188204;
29924
+ classType: "request";
29925
+ className: "payments.DeleteStarGiftCollection";
29926
+ static fromReader(reader: Reader): DeleteStarGiftCollection;
29927
+ peer: Api.TypeEntityLike;
29928
+ collectionId: int;
29929
+ }
29930
+ export class GetStarGiftCollections extends Request<Partial<{
29931
+ peer: Api.TypeEntityLike;
29932
+ hash: long;
29933
+ }>, payments.TypeStarGiftCollections> {
29934
+ CONSTRUCTOR_ID: 2551943645;
29935
+ SUBCLASS_OF_ID: 4028047852;
29936
+ classType: "request";
29937
+ className: "payments.GetStarGiftCollections";
29938
+ static fromReader(reader: Reader): GetStarGiftCollections;
29939
+ peer: Api.TypeEntityLike;
29940
+ hash: long;
29941
+ }
29786
29942
  }
29787
29943
 
29788
29944
  export namespace stickers {
@@ -31678,6 +31834,8 @@ export namespace Api {
31678
31834
  export type TypeTodoList = TodoList;
31679
31835
  export type TypeTodoCompletion = TodoCompletion;
31680
31836
  export type TypeSuggestedPost = SuggestedPost;
31837
+ export type TypeStarsRating = StarsRating;
31838
+ export type TypeStarGiftCollection = StarGiftCollection;
31681
31839
  export type TypeResPQ = ResPQ;
31682
31840
  export type TypeP_Q_inner_data = PQInnerData | PQInnerDataDc | PQInnerDataTemp | PQInnerDataTempDc;
31683
31841
  export type TypeBindAuthKeyInner = BindAuthKeyInner;
@@ -31718,7 +31876,7 @@ export namespace Api {
31718
31876
  | help.GetConfig | help.GetNearestDc | help.GetAppUpdate | help.GetInviteText | help.GetSupport | help.SetBotUpdatesStatus | help.GetCdnConfig | help.GetRecentMeUrls | help.GetTermsOfServiceUpdate | help.AcceptTermsOfService | help.GetDeepLinkInfo | help.GetAppConfig | help.SaveAppLog | help.GetPassportConfig | help.GetSupportName | help.GetUserInfo | help.EditUserInfo | help.GetPromoData | help.HidePromoData | help.DismissSuggestion | help.GetCountriesList | help.GetPremiumPromo | help.GetPeerColors | help.GetPeerProfileColors | help.GetTimezonesList
31719
31877
  | channels.ReadHistory | channels.DeleteMessages | channels.ReportSpam | channels.GetMessages | channels.GetParticipants | channels.GetParticipant | channels.GetChannels | channels.GetFullChannel | channels.CreateChannel | channels.EditAdmin | channels.EditTitle | channels.EditPhoto | channels.CheckUsername | channels.UpdateUsername | channels.JoinChannel | channels.LeaveChannel | channels.InviteToChannel | channels.DeleteChannel | channels.ExportMessageLink | channels.ToggleSignatures | channels.GetAdminedPublicChannels | channels.EditBanned | channels.GetAdminLog | channels.SetStickers | channels.ReadMessageContents | channels.DeleteHistory | channels.TogglePreHistoryHidden | channels.GetLeftChannels | channels.GetGroupsForDiscussion | channels.SetDiscussionGroup | channels.EditCreator | channels.EditLocation | channels.ToggleSlowMode | channels.GetInactiveChannels | channels.ConvertToGigagroup | channels.GetSendAs | channels.DeleteParticipantHistory | channels.ToggleJoinToSend | channels.ToggleJoinRequest | channels.ReorderUsernames | channels.ToggleUsername | channels.DeactivateAllUsernames | channels.ToggleForum | channels.CreateForumTopic | channels.GetForumTopics | channels.GetForumTopicsByID | channels.EditForumTopic | channels.UpdatePinnedForumTopic | channels.DeleteTopicHistory | channels.ReorderPinnedForumTopics | channels.ToggleAntiSpam | channels.ReportAntiSpamFalsePositive | channels.ToggleParticipantsHidden | channels.UpdateColor | channels.ToggleViewForumAsMessages | channels.GetChannelRecommendations | channels.UpdateEmojiStatus | channels.SetBoostsToUnblockRestrictions | channels.SetEmojiStickers | channels.RestrictSponsoredMessages | channels.SearchPosts | channels.UpdatePaidMessagesPrice | channels.ToggleAutotranslation | channels.GetMessageAuthor
31720
31878
  | bots.SendCustomRequest | bots.AnswerWebhookJSONQuery | bots.SetBotCommands | bots.ResetBotCommands | bots.GetBotCommands | bots.SetBotMenuButton | bots.GetBotMenuButton | bots.SetBotBroadcastDefaultAdminRights | bots.SetBotGroupDefaultAdminRights | bots.SetBotInfo | bots.GetBotInfo | bots.ReorderUsernames | bots.ToggleUsername | bots.CanSendMessage | bots.AllowSendMessage | bots.InvokeWebViewCustomMethod | bots.GetPopularAppBots | bots.AddPreviewMedia | bots.EditPreviewMedia | bots.DeletePreviewMedia | bots.ReorderPreviewMedias | bots.GetPreviewInfo | bots.GetPreviewMedias | bots.UpdateUserEmojiStatus | bots.ToggleUserEmojiStatusPermission | bots.CheckDownloadFileParams | bots.GetAdminedBots | bots.UpdateStarRefProgram | bots.SetCustomVerification | bots.GetBotRecommendations
31721
- | payments.GetPaymentForm | payments.GetPaymentReceipt | payments.ValidateRequestedInfo | payments.SendPaymentForm | payments.GetSavedInfo | payments.ClearSavedInfo | payments.GetBankCardData | payments.ExportInvoice | payments.AssignAppStoreTransaction | payments.AssignPlayMarketTransaction | payments.GetPremiumGiftCodeOptions | payments.CheckGiftCode | payments.ApplyGiftCode | payments.GetGiveawayInfo | payments.LaunchPrepaidGiveaway | payments.GetStarsTopupOptions | payments.GetStarsStatus | payments.GetStarsTransactions | payments.SendStarsForm | payments.RefundStarsCharge | payments.GetStarsRevenueStats | payments.GetStarsRevenueWithdrawalUrl | payments.GetStarsRevenueAdsAccountUrl | payments.GetStarsTransactionsByID | payments.GetStarsGiftOptions | payments.GetStarsSubscriptions | payments.ChangeStarsSubscription | payments.FulfillStarsSubscription | payments.GetStarsGiveawayOptions | payments.GetStarGifts | payments.SaveStarGift | payments.ConvertStarGift | payments.BotCancelStarsSubscription | payments.GetConnectedStarRefBots | payments.GetConnectedStarRefBot | payments.GetSuggestedStarRefBots | payments.ConnectStarRefBot | payments.EditConnectedStarRefBot | payments.GetStarGiftUpgradePreview | payments.UpgradeStarGift | payments.TransferStarGift | payments.GetUniqueStarGift | payments.GetSavedStarGifts | payments.GetSavedStarGift | payments.GetStarGiftWithdrawalUrl | payments.ToggleChatStarGiftNotifications | payments.ToggleStarGiftsPinnedToTop | payments.CanPurchaseStore | payments.GetResaleStarGifts | payments.UpdateStarGiftPrice
31879
+ | payments.GetPaymentForm | payments.GetPaymentReceipt | payments.ValidateRequestedInfo | payments.SendPaymentForm | payments.GetSavedInfo | payments.ClearSavedInfo | payments.GetBankCardData | payments.ExportInvoice | payments.AssignAppStoreTransaction | payments.AssignPlayMarketTransaction | payments.GetPremiumGiftCodeOptions | payments.CheckGiftCode | payments.ApplyGiftCode | payments.GetGiveawayInfo | payments.LaunchPrepaidGiveaway | payments.GetStarsTopupOptions | payments.GetStarsStatus | payments.GetStarsTransactions | payments.SendStarsForm | payments.RefundStarsCharge | payments.GetStarsRevenueStats | payments.GetStarsRevenueWithdrawalUrl | payments.GetStarsRevenueAdsAccountUrl | payments.GetStarsTransactionsByID | payments.GetStarsGiftOptions | payments.GetStarsSubscriptions | payments.ChangeStarsSubscription | payments.FulfillStarsSubscription | payments.GetStarsGiveawayOptions | payments.GetStarGifts | payments.SaveStarGift | payments.ConvertStarGift | payments.BotCancelStarsSubscription | payments.GetConnectedStarRefBots | payments.GetConnectedStarRefBot | payments.GetSuggestedStarRefBots | payments.ConnectStarRefBot | payments.EditConnectedStarRefBot | payments.GetStarGiftUpgradePreview | payments.UpgradeStarGift | payments.TransferStarGift | payments.GetUniqueStarGift | payments.GetSavedStarGifts | payments.GetSavedStarGift | payments.GetStarGiftWithdrawalUrl | payments.ToggleChatStarGiftNotifications | payments.ToggleStarGiftsPinnedToTop | payments.CanPurchaseStore | payments.GetResaleStarGifts | payments.UpdateStarGiftPrice | payments.CreateStarGiftCollection | payments.UpdateStarGiftCollection | payments.ReorderStarGiftCollections | payments.DeleteStarGiftCollection | payments.GetStarGiftCollections
31722
31880
  | stickers.CreateStickerSet | stickers.RemoveStickerFromSet | stickers.ChangeStickerPosition | stickers.AddStickerToSet | stickers.SetStickerSetThumb | stickers.CheckShortName | stickers.SuggestShortName | stickers.ChangeSticker | stickers.RenameStickerSet | stickers.DeleteStickerSet | stickers.ReplaceSticker
31723
31881
  | phone.GetCallConfig | phone.RequestCall | phone.AcceptCall | phone.ConfirmCall | phone.ReceivedCall | phone.DiscardCall | phone.SetCallRating | phone.SaveCallDebug | phone.SendSignalingData | phone.CreateGroupCall | phone.JoinGroupCall | phone.LeaveGroupCall | phone.InviteToGroupCall | phone.DiscardGroupCall | phone.ToggleGroupCallSettings | phone.GetGroupCall | phone.GetGroupParticipants | phone.CheckGroupCall | phone.ToggleGroupCallRecord | phone.EditGroupCallParticipant | phone.EditGroupCallTitle | phone.GetGroupCallJoinAs | phone.ExportGroupCallInvite | phone.ToggleGroupCallStartSubscription | phone.StartScheduledGroupCall | phone.SaveDefaultGroupCallJoinAs | phone.JoinGroupCallPresentation | phone.LeaveGroupCallPresentation | phone.GetGroupCallStreamChannels | phone.GetGroupCallStreamRtmpUrl | phone.SaveCallLog | phone.CreateConferenceCall | phone.DeleteConferenceCallParticipants | phone.SendConferenceCallBroadcast | phone.InviteConferenceCallParticipant | phone.DeclineConferenceCallInvite | phone.GetGroupCallChainBlocks
31724
31882
  | langpack.GetLangPack | langpack.GetStrings | langpack.GetDifference | langpack.GetLanguages | langpack.GetLanguage
package/tl/apiTl.js CHANGED
@@ -209,7 +209,7 @@ inputReportReasonGeoIrrelevant#dbd4feed = ReportReason;
209
209
  inputReportReasonFake#f5ddd6e7 = ReportReason;
210
210
  inputReportReasonIllegalDrugs#a8eb2be = ReportReason;
211
211
  inputReportReasonPersonalDetails#9ec7863d = ReportReason;
212
- userFull#99e78045 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings = UserFull;
212
+ userFull#29de80be flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating = UserFull;
213
213
  contact#145ade0b user_id:long mutual:Bool = Contact;
214
214
  importedContact#c13e3c50 user_id:long client_id:long = ImportedContact;
215
215
  contactStatus#16d9703b user_id:long status:UserStatus = ContactStatus;
@@ -1052,7 +1052,7 @@ help.countriesList#87d0759e countries:Vector<help.Country> hash:int = help.Count
1052
1052
  messageViews#455b853d flags:# views:flags.0?int forwards:flags.1?int replies:flags.2?MessageReplies = MessageViews;
1053
1053
  messages.messageViews#b6c4f543 views:Vector<MessageViews> chats:Vector<Chat> users:Vector<User> = messages.MessageViews;
1054
1054
  messages.discussionMessage#a6341782 flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int unread_count:int chats:Vector<Chat> users:Vector<User> = messages.DiscussionMessage;
1055
- messageReplyHeader#afbc09db flags:# reply_to_scheduled:flags.2?true forum_topic:flags.3?true quote:flags.9?true reply_to_msg_id:flags.4?int reply_to_peer_id:flags.0?Peer reply_from:flags.5?MessageFwdHeader reply_media:flags.8?MessageMedia reply_to_top_id:flags.1?int quote_text:flags.6?string quote_entities:flags.7?Vector<MessageEntity> quote_offset:flags.10?int = MessageReplyHeader;
1055
+ messageReplyHeader#6917560b flags:# reply_to_scheduled:flags.2?true forum_topic:flags.3?true quote:flags.9?true reply_to_msg_id:flags.4?int reply_to_peer_id:flags.0?Peer reply_from:flags.5?MessageFwdHeader reply_media:flags.8?MessageMedia reply_to_top_id:flags.1?int quote_text:flags.6?string quote_entities:flags.7?Vector<MessageEntity> quote_offset:flags.10?int todo_item_id:flags.11?int = MessageReplyHeader;
1056
1056
  messageReplyStoryHeader#e5af939 peer:Peer story_id:int = MessageReplyHeader;
1057
1057
  messageReplies#83d60fc2 flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector<Peer> channel_id:flags.0?long max_id:flags.2?int read_max_id:flags.3?int = MessageReplies;
1058
1058
  peerBlocked#e8fd8014 peer_id:Peer date:int = PeerBlocked;
@@ -1246,7 +1246,7 @@ storyViewPublicForward#9083670b flags:# blocked:flags.0?true blocked_my_stories_
1246
1246
  storyViewPublicRepost#bd74cf49 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true peer_id:Peer story:StoryItem = StoryView;
1247
1247
  stories.storyViewsList#59d78fc5 flags:# count:int views_count:int forwards_count:int reactions_count:int views:Vector<StoryView> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = stories.StoryViewsList;
1248
1248
  stories.storyViews#de9eed1d views:Vector<StoryViews> users:Vector<User> = stories.StoryViews;
1249
- inputReplyToMessage#b07038b0 flags:# reply_to_msg_id:int top_msg_id:flags.0?int reply_to_peer_id:flags.1?InputPeer quote_text:flags.2?string quote_entities:flags.3?Vector<MessageEntity> quote_offset:flags.4?int monoforum_peer_id:flags.5?InputPeer = InputReplyTo;
1249
+ inputReplyToMessage#869fbe10 flags:# reply_to_msg_id:int top_msg_id:flags.0?int reply_to_peer_id:flags.1?InputPeer quote_text:flags.2?string quote_entities:flags.3?Vector<MessageEntity> quote_offset:flags.4?int monoforum_peer_id:flags.5?InputPeer todo_item_id:flags.6?int = InputReplyTo;
1250
1250
  inputReplyToStory#5881323a peer:InputPeer story_id:int = InputReplyTo;
1251
1251
  inputReplyToMonoForum#69d66c45 monoforum_peer_id:InputPeer = InputReplyTo;
1252
1252
  exportedStoryLink#3fc9053b link:string = ExportedStoryLink;
@@ -1387,10 +1387,10 @@ starsSubscription#2e6eab1a flags:# canceled:flags.0?true can_refulfill:flags.1?t
1387
1387
  messageReactor#4ba3a95a flags:# top:flags.0?true my:flags.1?true anonymous:flags.2?true peer_id:flags.3?Peer count:int = MessageReactor;
1388
1388
  starsGiveawayOption#94ce852a flags:# extended:flags.0?true default:flags.1?true stars:long yearly_boosts:int store_product:flags.2?string currency:string amount:long winners:Vector<StarsGiveawayWinnersOption> = StarsGiveawayOption;
1389
1389
  starsGiveawayWinnersOption#54236209 flags:# default:flags.0?true users:int per_user_stars:long = StarsGiveawayWinnersOption;
1390
- starGift#c62aca28 flags:# limited:flags.0?true sold_out:flags.1?true birthday:flags.2?true id:long sticker:Document stars:long availability_remains:flags.0?int availability_total:flags.0?int availability_resale:flags.4?long convert_stars:long first_sale_date:flags.1?int last_sale_date:flags.1?int upgrade_stars:flags.3?long resell_min_stars:flags.4?long title:flags.5?string = StarGift;
1391
- starGiftUnique#6411db89 flags:# id:long title:string slug:string num:int owner_id:flags.0?Peer owner_name:flags.1?string owner_address:flags.2?string attributes:Vector<StarGiftAttribute> availability_issued:int availability_total:int gift_address:flags.3?string resell_stars:flags.4?long = StarGift;
1390
+ starGift#bcff5b flags:# limited:flags.0?true sold_out:flags.1?true birthday:flags.2?true require_premium:flags.7?true limited_per_user:flags.8?true id:long sticker:Document stars:long availability_remains:flags.0?int availability_total:flags.0?int availability_resale:flags.4?long convert_stars:long first_sale_date:flags.1?int last_sale_date:flags.1?int upgrade_stars:flags.3?long resell_min_stars:flags.4?long title:flags.5?string released_by:flags.6?Peer per_user_total:flags.8?int per_user_remains:flags.8?int = StarGift;
1391
+ starGiftUnique#f63778ae flags:# require_premium:flags.6?true id:long title:string slug:string num:int owner_id:flags.0?Peer owner_name:flags.1?string owner_address:flags.2?string attributes:Vector<StarGiftAttribute> availability_issued:int availability_total:int gift_address:flags.3?string resell_stars:flags.4?long released_by:flags.5?Peer = StarGift;
1392
1392
  payments.starGiftsNotModified#a388a368 = payments.StarGifts;
1393
- payments.starGifts#901689ea hash:int gifts:Vector<StarGift> = payments.StarGifts;
1393
+ payments.starGifts#2ed82995 hash:int gifts:Vector<StarGift> chats:Vector<Chat> users:Vector<User> = payments.StarGifts;
1394
1394
  messageReportOption#7903e3d9 text:string option:bytes = MessageReportOption;
1395
1395
  reportResultChooseOption#f0e4e0b6 title:string options:Vector<MessageReportOption> = ReportResult;
1396
1396
  reportResultAddComment#6f09ac31 flags:# optional:flags.0?true option:bytes = ReportResult;
@@ -1417,7 +1417,7 @@ users.users#62d706b8 users:Vector<User> = users.Users;
1417
1417
  users.usersSlice#315a4974 count:int users:Vector<User> = users.Users;
1418
1418
  payments.uniqueStarGift#caa2f60b gift:StarGift users:Vector<User> = payments.UniqueStarGift;
1419
1419
  messages.webPagePreview#b53e8b21 media:MessageMedia users:Vector<User> = messages.WebPagePreview;
1420
- savedStarGift#dfda0499 flags:# name_hidden:flags.0?true unsaved:flags.5?true refunded:flags.9?true can_upgrade:flags.10?true pinned_to_top:flags.12?true from_id:flags.1?Peer date:int gift:StarGift message:flags.2?TextWithEntities msg_id:flags.3?int saved_id:flags.11?long convert_stars:flags.4?long upgrade_stars:flags.6?long can_export_at:flags.7?int transfer_stars:flags.8?long can_transfer_at:flags.13?int can_resell_at:flags.14?int = SavedStarGift;
1420
+ savedStarGift#1ea646df flags:# name_hidden:flags.0?true unsaved:flags.5?true refunded:flags.9?true can_upgrade:flags.10?true pinned_to_top:flags.12?true from_id:flags.1?Peer date:int gift:StarGift message:flags.2?TextWithEntities msg_id:flags.3?int saved_id:flags.11?long convert_stars:flags.4?long upgrade_stars:flags.6?long can_export_at:flags.7?int transfer_stars:flags.8?long can_transfer_at:flags.13?int can_resell_at:flags.14?int collection_id:flags.15?Vector<int> = SavedStarGift;
1421
1421
  payments.savedStarGifts#95f389b1 flags:# count:int chat_notifications_enabled:flags.1?Bool gifts:Vector<SavedStarGift> next_offset:flags.0?string chats:Vector<Chat> users:Vector<User> = payments.SavedStarGifts;
1422
1422
  inputSavedStarGiftUser#69279795 msg_id:int = InputSavedStarGift;
1423
1423
  inputSavedStarGiftChat#f101aa7f peer:InputPeer saved_id:long = InputSavedStarGift;
@@ -1446,6 +1446,10 @@ todoItem#cba9a52f id:int title:TextWithEntities = TodoItem;
1446
1446
  todoList#49b92a26 flags:# others_can_append:flags.0?true others_can_complete:flags.1?true title:TextWithEntities list:Vector<TodoItem> = TodoList;
1447
1447
  todoCompletion#4cc120b7 id:int completed_by:long date:int = TodoCompletion;
1448
1448
  suggestedPost#e8e37e5 flags:# accepted:flags.1?true rejected:flags.2?true price:flags.3?StarsAmount schedule_date:flags.0?int = SuggestedPost;
1449
+ starsRating#1b0e4f07 flags:# level:int current_level_stars:long stars:long next_level_stars:flags.0?long = StarsRating;
1450
+ starGiftCollection#9d6b13b0 flags:# collection_id:int title:string icon:flags.0?Document gifts_count:int hash:long = StarGiftCollection;
1451
+ payments.starGiftCollectionsNotModified#a0ba4f17 = payments.StarGiftCollections;
1452
+ payments.starGiftCollections#8a2932f3 collections:Vector<StarGiftCollection> = payments.StarGiftCollections;
1449
1453
  ---functions---
1450
1454
  invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
1451
1455
  invokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector<long> query:!X = X;
@@ -2034,7 +2038,7 @@ payments.getStarGiftUpgradePreview#9c9abcb1 gift_id:long = payments.StarGiftUpgr
2034
2038
  payments.upgradeStarGift#aed6e4f5 flags:# keep_original_details:flags.0?true stargift:InputSavedStarGift = Updates;
2035
2039
  payments.transferStarGift#7f18176a stargift:InputSavedStarGift to_id:InputPeer = Updates;
2036
2040
  payments.getUniqueStarGift#a1974d72 slug:string = payments.UniqueStarGift;
2037
- payments.getSavedStarGifts#23830de9 flags:# exclude_unsaved:flags.0?true exclude_saved:flags.1?true exclude_unlimited:flags.2?true exclude_limited:flags.3?true exclude_unique:flags.4?true sort_by_value:flags.5?true peer:InputPeer offset:string limit:int = payments.SavedStarGifts;
2041
+ payments.getSavedStarGifts#a319e569 flags:# exclude_unsaved:flags.0?true exclude_saved:flags.1?true exclude_unlimited:flags.2?true exclude_limited:flags.3?true exclude_unique:flags.4?true sort_by_value:flags.5?true peer:InputPeer collection_id:flags.6?int offset:string limit:int = payments.SavedStarGifts;
2038
2042
  payments.getSavedStarGift#b455a106 stargift:Vector<InputSavedStarGift> = payments.SavedStarGifts;
2039
2043
  payments.getStarGiftWithdrawalUrl#d06e93a8 stargift:InputSavedStarGift password:InputCheckPasswordSRP = payments.StarGiftWithdrawalUrl;
2040
2044
  payments.toggleChatStarGiftNotifications#60eaefa1 flags:# enabled:flags.0?true peer:InputPeer = Bool;
@@ -2042,6 +2046,11 @@ payments.toggleStarGiftsPinnedToTop#1513e7b0 peer:InputPeer stargift:Vector<Inpu
2042
2046
  payments.canPurchaseStore#4fdc5ea7 purpose:InputStorePaymentPurpose = Bool;
2043
2047
  payments.getResaleStarGifts#7a5fa236 flags:# sort_by_price:flags.1?true sort_by_num:flags.2?true attributes_hash:flags.0?long gift_id:long attributes:flags.3?Vector<StarGiftAttributeId> offset:string limit:int = payments.ResaleStarGifts;
2044
2048
  payments.updateStarGiftPrice#3baea4e1 stargift:InputSavedStarGift resell_stars:long = Updates;
2049
+ payments.createStarGiftCollection#1f4a0e87 peer:InputPeer title:string stargift:Vector<InputSavedStarGift> = StarGiftCollection;
2050
+ payments.updateStarGiftCollection#4fddbee7 flags:# peer:InputPeer collection_id:int title:flags.0?string delete_stargift:flags.1?Vector<InputSavedStarGift> add_stargift:flags.2?Vector<InputSavedStarGift> order:flags.3?Vector<InputSavedStarGift> = StarGiftCollection;
2051
+ payments.reorderStarGiftCollections#c32af4cc peer:InputPeer order:Vector<int> = Bool;
2052
+ payments.deleteStarGiftCollection#ad5648e8 peer:InputPeer collection_id:int = Bool;
2053
+ payments.getStarGiftCollections#981b91dd peer:InputPeer hash:long = payments.StarGiftCollections;
2045
2054
  stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet;
2046
2055
  stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet;
2047
2056
  stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet;