@tgsnake/skema 1.1.0 → 1.2.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/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 209</b>
7
+ <b>Layer 210</b>
8
8
  </center>
9
9
 
10
10
  ## Features ✨
package/dist/raw/All.d.ts CHANGED
@@ -260,7 +260,7 @@ export declare const AllTLObject: {
260
260
  4124956391: string;
261
261
  177124030: string;
262
262
  2663876157: string;
263
- 2582085701: string;
263
+ 702447806: string;
264
264
  341499403: string;
265
265
  3242081360: string;
266
266
  383348795: string;
@@ -1438,7 +1438,7 @@ export declare const AllTLObject: {
1438
1438
  1269016922: string;
1439
1439
  2496562474: string;
1440
1440
  1411605001: string;
1441
- 2139438098: string;
1441
+ 12386139: string;
1442
1442
  4130830510: string;
1443
1443
  2743640936: string;
1444
1444
  785918357: string;
@@ -1468,7 +1468,7 @@ export declare const AllTLObject: {
1468
1468
  828000628: string;
1469
1469
  3399677451: string;
1470
1470
  3040774945: string;
1471
- 3755607193: string;
1471
+ 514213599: string;
1472
1472
  2515765681: string;
1473
1473
  1764202389: string;
1474
1474
  4043418239: string;
@@ -1497,6 +1497,10 @@ export declare const AllTLObject: {
1497
1497
  1236871718: string;
1498
1498
  1287725239: string;
1499
1499
  244201445: string;
1500
+ 453922567: string;
1501
+ 2641040304: string;
1502
+ 2696564503: string;
1503
+ 2317955827: string;
1500
1504
  3416209197: string;
1501
1505
  1036301552: string;
1502
1506
  3251461801: string;
@@ -2084,7 +2088,7 @@ export declare const AllTLObject: {
2084
2088
  2933318901: string;
2085
2089
  2132285290: string;
2086
2090
  2711047538: string;
2087
- 595791337: string;
2091
+ 2736383337: string;
2088
2092
  3025510662: string;
2089
2093
  3496907688: string;
2090
2094
  1626009505: string;
@@ -2092,6 +2096,11 @@ export declare const AllTLObject: {
2092
2096
  1339842215: string;
2093
2097
  2053087798: string;
2094
2098
  1001301217: string;
2099
+ 524947079: string;
2100
+ 1339932391: string;
2101
+ 3274372300: string;
2102
+ 2908113128: string;
2103
+ 2551943645: string;
2095
2104
  2418125671: string;
2096
2105
  4151709521: string;
2097
2106
  4290172106: string;
package/dist/raw/All.js CHANGED
@@ -263,7 +263,7 @@ exports.AllTLObject = {
263
263
  0xf5ddd6e7: 'Raw.InputReportReasonFake',
264
264
  0xa8eb2be: 'Raw.InputReportReasonIllegalDrugs',
265
265
  0x9ec7863d: 'Raw.InputReportReasonPersonalDetails',
266
- 0x99e78045: 'Raw.UserFull',
266
+ 0x29de80be: 'Raw.UserFull',
267
267
  0x145ade0b: 'Raw.Contact',
268
268
  0xc13e3c50: 'Raw.ImportedContact',
269
269
  0x16d9703b: 'Raw.ContactStatus',
@@ -1441,7 +1441,7 @@ exports.AllTLObject = {
1441
1441
  0x4ba3a95a: 'Raw.MessageReactor',
1442
1442
  0x94ce852a: 'Raw.StarsGiveawayOption',
1443
1443
  0x54236209: 'Raw.StarsGiveawayWinnersOption',
1444
- 0x7f853c12: 'Raw.StarGift',
1444
+ 0xbcff5b: 'Raw.StarGift',
1445
1445
  0xf63778ae: 'Raw.StarGiftUnique',
1446
1446
  0xa388a368: 'Raw.payments.StarGiftsNotModified',
1447
1447
  0x2ed82995: 'Raw.payments.StarGifts',
@@ -1471,7 +1471,7 @@ exports.AllTLObject = {
1471
1471
  0x315a4974: 'Raw.users.UsersSlice',
1472
1472
  0xcaa2f60b: 'Raw.payments.UniqueStarGift',
1473
1473
  0xb53e8b21: 'Raw.messages.WebPagePreview',
1474
- 0xdfda0499: 'Raw.SavedStarGift',
1474
+ 0x1ea646df: 'Raw.SavedStarGift',
1475
1475
  0x95f389b1: 'Raw.payments.SavedStarGifts',
1476
1476
  0x69279795: 'Raw.InputSavedStarGiftUser',
1477
1477
  0xf101aa7f: 'Raw.InputSavedStarGiftChat',
@@ -1500,6 +1500,10 @@ exports.AllTLObject = {
1500
1500
  0x49b92a26: 'Raw.TodoList',
1501
1501
  0x4cc120b7: 'Raw.TodoCompletion',
1502
1502
  0xe8e37e5: 'Raw.SuggestedPost',
1503
+ 0x1b0e4f07: 'Raw.StarsRating',
1504
+ 0x9d6b13b0: 'Raw.StarGiftCollection',
1505
+ 0xa0ba4f17: 'Raw.payments.StarGiftCollectionsNotModified',
1506
+ 0x8a2932f3: 'Raw.payments.StarGiftCollections',
1503
1507
  0xcb9f372d: 'Raw.InvokeAfterMsg',
1504
1508
  0x3dc4b4f0: 'Raw.InvokeAfterMsgs',
1505
1509
  0xc1cd5ea9: 'Raw.InitConnection',
@@ -2087,7 +2091,7 @@ exports.AllTLObject = {
2087
2091
  0xaed6e4f5: 'Raw.payments.UpgradeStarGift',
2088
2092
  0x7f18176a: 'Raw.payments.TransferStarGift',
2089
2093
  0xa1974d72: 'Raw.payments.GetUniqueStarGift',
2090
- 0x23830de9: 'Raw.payments.GetSavedStarGifts',
2094
+ 0xa319e569: 'Raw.payments.GetSavedStarGifts',
2091
2095
  0xb455a106: 'Raw.payments.GetSavedStarGift',
2092
2096
  0xd06e93a8: 'Raw.payments.GetStarGiftWithdrawalUrl',
2093
2097
  0x60eaefa1: 'Raw.payments.ToggleChatStarGiftNotifications',
@@ -2095,6 +2099,11 @@ exports.AllTLObject = {
2095
2099
  0x4fdc5ea7: 'Raw.payments.CanPurchaseStore',
2096
2100
  0x7a5fa236: 'Raw.payments.GetResaleStarGifts',
2097
2101
  0x3baea4e1: 'Raw.payments.UpdateStarGiftPrice',
2102
+ 0x1f4a0e87: 'Raw.payments.CreateStarGiftCollection',
2103
+ 0x4fddbee7: 'Raw.payments.UpdateStarGiftCollection',
2104
+ 0xc32af4cc: 'Raw.payments.ReorderStarGiftCollections',
2105
+ 0xad5648e8: 'Raw.payments.DeleteStarGiftCollection',
2106
+ 0x981b91dd: 'Raw.payments.GetStarGiftCollections',
2098
2107
  0x9021ab67: 'Raw.stickers.CreateStickerSet',
2099
2108
  0xf7760f51: 'Raw.stickers.RemoveStickerFromSet',
2100
2109
  0xffb6d4ca: 'Raw.stickers.ChangeStickerPosition',
package/dist/raw/Raw.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare namespace Raw {
15
15
  type Vector<T> = Array<T>;
16
16
  const Layer: number;
17
17
  const HighestSCLayer: number;
18
- type TypesTLRequest = Raw.ReqPq | Raw.ReqPqMulti | Raw.ReqDhParams | Raw.SetClientDhParams | Raw.DestroyAuthKey | Raw.RpcDropAnswer | Raw.GetFutureSalts | Raw.Ping | Raw.PingDelayDisconnect | Raw.DestroySession | Raw.InvokeAfterMsg | Raw.InvokeAfterMsgs | Raw.InitConnection | Raw.InvokeWithLayer | Raw.InvokeWithoutUpdates | Raw.InvokeWithMessagesRange | Raw.InvokeWithTakeout | Raw.InvokeWithBusinessConnection | Raw.InvokeWithGooglePlayIntegrity | Raw.InvokeWithApnsSecret | Raw.InvokeWithReCaptcha | Raw.auth.SendCode | Raw.auth.SignUp | Raw.auth.SignIn | Raw.auth.LogOut | Raw.auth.ResetAuthorizations | Raw.auth.ExportAuthorization | Raw.auth.ImportAuthorization | Raw.auth.BindTempAuthKey | Raw.auth.ImportBotAuthorization | Raw.auth.CheckPassword | Raw.auth.RequestPasswordRecovery | Raw.auth.RecoverPassword | Raw.auth.ResendCode | Raw.auth.CancelCode | Raw.auth.DropTempAuthKeys | Raw.auth.ExportLoginToken | Raw.auth.ImportLoginToken | Raw.auth.AcceptLoginToken | Raw.auth.CheckRecoveryPassword | Raw.auth.ImportWebTokenAuthorization | Raw.auth.RequestFirebaseSms | Raw.auth.ResetLoginEmail | Raw.auth.ReportMissingCode | Raw.account.RegisterDevice | Raw.account.UnregisterDevice | Raw.account.UpdateNotifySettings | Raw.account.GetNotifySettings | Raw.account.ResetNotifySettings | Raw.account.UpdateProfile | Raw.account.UpdateStatus | Raw.account.GetWallPapers | Raw.account.ReportPeer | Raw.account.CheckUsername | Raw.account.UpdateUsername | Raw.account.GetPrivacy | Raw.account.SetPrivacy | Raw.account.DeleteAccount | Raw.account.GetAccountTTL | Raw.account.SetAccountTTL | Raw.account.SendChangePhoneCode | Raw.account.ChangePhone | Raw.account.UpdateDeviceLocked | Raw.account.GetAuthorizations | Raw.account.ResetAuthorization | Raw.account.GetPassword | Raw.account.GetPasswordSettings | Raw.account.UpdatePasswordSettings | Raw.account.SendConfirmPhoneCode | Raw.account.ConfirmPhone | Raw.account.GetTmpPassword | Raw.account.GetWebAuthorizations | Raw.account.ResetWebAuthorization | Raw.account.ResetWebAuthorizations | Raw.account.GetAllSecureValues | Raw.account.GetSecureValue | Raw.account.SaveSecureValue | Raw.account.DeleteSecureValue | Raw.account.GetAuthorizationForm | Raw.account.AcceptAuthorization | Raw.account.SendVerifyPhoneCode | Raw.account.VerifyPhone | Raw.account.SendVerifyEmailCode | Raw.account.VerifyEmail | Raw.account.InitTakeoutSession | Raw.account.FinishTakeoutSession | Raw.account.ConfirmPasswordEmail | Raw.account.ResendPasswordEmail | Raw.account.CancelPasswordEmail | Raw.account.GetContactSignUpNotification | Raw.account.SetContactSignUpNotification | Raw.account.GetNotifyExceptions | Raw.account.GetWallPaper | Raw.account.UploadWallPaper | Raw.account.SaveWallPaper | Raw.account.InstallWallPaper | Raw.account.ResetWallPapers | Raw.account.GetAutoDownloadSettings | Raw.account.SaveAutoDownloadSettings | Raw.account.UploadTheme | Raw.account.CreateTheme | Raw.account.UpdateTheme | Raw.account.SaveTheme | Raw.account.InstallTheme | Raw.account.GetTheme | Raw.account.GetThemes | Raw.account.SetContentSettings | Raw.account.GetContentSettings | Raw.account.GetMultiWallPapers | Raw.account.GetGlobalPrivacySettings | Raw.account.SetGlobalPrivacySettings | Raw.account.ReportProfilePhoto | Raw.account.ResetPassword | Raw.account.DeclinePasswordReset | Raw.account.GetChatThemes | Raw.account.SetAuthorizationTTL | Raw.account.ChangeAuthorizationSettings | Raw.account.GetSavedRingtones | Raw.account.SaveRingtone | Raw.account.UploadRingtone | Raw.account.UpdateEmojiStatus | Raw.account.GetDefaultEmojiStatuses | Raw.account.GetRecentEmojiStatuses | Raw.account.ClearRecentEmojiStatuses | Raw.account.ReorderUsernames | Raw.account.ToggleUsername | Raw.account.GetDefaultProfilePhotoEmojis | Raw.account.GetDefaultGroupPhotoEmojis | Raw.account.GetAutoSaveSettings | Raw.account.SaveAutoSaveSettings | Raw.account.DeleteAutoSaveExceptions | Raw.account.InvalidateSignInCodes | Raw.account.UpdateColor | Raw.account.GetDefaultBackgroundEmojis | Raw.account.GetChannelDefaultEmojiStatuses | Raw.account.GetChannelRestrictedStatusEmojis | Raw.account.UpdateBusinessWorkHours | Raw.account.UpdateBusinessLocation | Raw.account.UpdateBusinessGreetingMessage | Raw.account.UpdateBusinessAwayMessage | Raw.account.UpdateConnectedBot | Raw.account.GetConnectedBots | Raw.account.GetBotBusinessConnection | Raw.account.UpdateBusinessIntro | Raw.account.ToggleConnectedBotPaused | Raw.account.DisablePeerConnectedBot | Raw.account.UpdateBirthday | Raw.account.CreateBusinessChatLink | Raw.account.EditBusinessChatLink | Raw.account.DeleteBusinessChatLink | Raw.account.GetBusinessChatLinks | Raw.account.ResolveBusinessChatLink | Raw.account.UpdatePersonalChannel | Raw.account.ToggleSponsoredMessages | Raw.account.GetReactionsNotifySettings | Raw.account.SetReactionsNotifySettings | Raw.account.GetCollectibleEmojiStatuses | Raw.account.GetPaidMessagesRevenue | Raw.account.ToggleNoPaidMessagesException | Raw.users.GetUsers | Raw.users.GetFullUser | Raw.users.SetSecureValueErrors | Raw.users.GetRequirementsToContact | Raw.contacts.GetContactIDs | Raw.contacts.GetStatuses | Raw.contacts.GetContacts | Raw.contacts.ImportContacts | Raw.contacts.DeleteContacts | Raw.contacts.DeleteByPhones | Raw.contacts.Block | Raw.contacts.Unblock | Raw.contacts.GetBlocked | Raw.contacts.Search | Raw.contacts.ResolveUsername | Raw.contacts.GetTopPeers | Raw.contacts.ResetTopPeerRating | Raw.contacts.ResetSaved | Raw.contacts.GetSaved | Raw.contacts.ToggleTopPeers | Raw.contacts.AddContact | Raw.contacts.AcceptContact | Raw.contacts.GetLocated | Raw.contacts.BlockFromReplies | Raw.contacts.ResolvePhone | Raw.contacts.ExportContactToken | Raw.contacts.ImportContactToken | Raw.contacts.EditCloseFriends | Raw.contacts.SetBlocked | Raw.contacts.GetBirthdays | Raw.contacts.GetSponsoredPeers | Raw.messages.GetMessages | Raw.messages.GetDialogs | Raw.messages.GetHistory | Raw.messages.Search | Raw.messages.ReadHistory | Raw.messages.DeleteHistory | Raw.messages.DeleteMessages | Raw.messages.ReceivedMessages | Raw.messages.SetTyping | Raw.messages.SendMessage | Raw.messages.SendMedia | Raw.messages.ForwardMessages | Raw.messages.ReportSpam | Raw.messages.GetPeerSettings | Raw.messages.Report | Raw.messages.GetChats | Raw.messages.GetFullChat | Raw.messages.EditChatTitle | Raw.messages.EditChatPhoto | Raw.messages.AddChatUser | Raw.messages.DeleteChatUser | Raw.messages.CreateChat | Raw.messages.GetDhConfig | Raw.messages.RequestEncryption | Raw.messages.AcceptEncryption | Raw.messages.DiscardEncryption | Raw.messages.SetEncryptedTyping | Raw.messages.ReadEncryptedHistory | Raw.messages.SendEncrypted | Raw.messages.SendEncryptedFile | Raw.messages.SendEncryptedService | Raw.messages.ReceivedQueue | Raw.messages.ReportEncryptedSpam | Raw.messages.ReadMessageContents | Raw.messages.GetStickers | Raw.messages.GetAllStickers | Raw.messages.GetWebPagePreview | Raw.messages.ExportChatInvite | Raw.messages.CheckChatInvite | Raw.messages.ImportChatInvite | Raw.messages.GetStickerSet | Raw.messages.InstallStickerSet | Raw.messages.UninstallStickerSet | Raw.messages.StartBot | Raw.messages.GetMessagesViews | Raw.messages.EditChatAdmin | Raw.messages.MigrateChat | Raw.messages.SearchGlobal | Raw.messages.ReorderStickerSets | Raw.messages.GetDocumentByHash | Raw.messages.GetSavedGifs | Raw.messages.SaveGif | Raw.messages.GetInlineBotResults | Raw.messages.SetInlineBotResults | Raw.messages.SendInlineBotResult | Raw.messages.GetMessageEditData | Raw.messages.EditMessage | Raw.messages.EditInlineBotMessage | Raw.messages.GetBotCallbackAnswer | Raw.messages.SetBotCallbackAnswer | Raw.messages.GetPeerDialogs | Raw.messages.SaveDraft | Raw.messages.GetAllDrafts | Raw.messages.GetFeaturedStickers | Raw.messages.ReadFeaturedStickers | Raw.messages.GetRecentStickers | Raw.messages.SaveRecentSticker | Raw.messages.ClearRecentStickers | Raw.messages.GetArchivedStickers | Raw.messages.GetMaskStickers | Raw.messages.GetAttachedStickers | Raw.messages.SetGameScore | Raw.messages.SetInlineGameScore | Raw.messages.GetGameHighScores | Raw.messages.GetInlineGameHighScores | Raw.messages.GetCommonChats | Raw.messages.GetWebPage | Raw.messages.ToggleDialogPin | Raw.messages.ReorderPinnedDialogs | Raw.messages.GetPinnedDialogs | Raw.messages.SetBotShippingResults | Raw.messages.SetBotPrecheckoutResults | Raw.messages.UploadMedia | Raw.messages.SendScreenshotNotification | Raw.messages.GetFavedStickers | Raw.messages.FaveSticker | Raw.messages.GetUnreadMentions | Raw.messages.ReadMentions | Raw.messages.GetRecentLocations | Raw.messages.SendMultiMedia | Raw.messages.UploadEncryptedFile | Raw.messages.SearchStickerSets | Raw.messages.GetSplitRanges | Raw.messages.MarkDialogUnread | Raw.messages.GetDialogUnreadMarks | Raw.messages.ClearAllDrafts | Raw.messages.UpdatePinnedMessage | Raw.messages.SendVote | Raw.messages.GetPollResults | Raw.messages.GetOnlines | Raw.messages.EditChatAbout | Raw.messages.EditChatDefaultBannedRights | Raw.messages.GetEmojiKeywords | Raw.messages.GetEmojiKeywordsDifference | Raw.messages.GetEmojiKeywordsLanguages | Raw.messages.GetEmojiURL | Raw.messages.GetSearchCounters | Raw.messages.RequestUrlAuth | Raw.messages.AcceptUrlAuth | Raw.messages.HidePeerSettingsBar | Raw.messages.GetScheduledHistory | Raw.messages.GetScheduledMessages | Raw.messages.SendScheduledMessages | Raw.messages.DeleteScheduledMessages | Raw.messages.GetPollVotes | Raw.messages.ToggleStickerSets | Raw.messages.GetDialogFilters | Raw.messages.GetSuggestedDialogFilters | Raw.messages.UpdateDialogFilter | Raw.messages.UpdateDialogFiltersOrder | Raw.messages.GetOldFeaturedStickers | Raw.messages.GetReplies | Raw.messages.GetDiscussionMessage | Raw.messages.ReadDiscussion | Raw.messages.UnpinAllMessages | Raw.messages.DeleteChat | Raw.messages.DeletePhoneCallHistory | Raw.messages.CheckHistoryImport | Raw.messages.InitHistoryImport | Raw.messages.UploadImportedMedia | Raw.messages.StartHistoryImport | Raw.messages.GetExportedChatInvites | Raw.messages.GetExportedChatInvite | Raw.messages.EditExportedChatInvite | Raw.messages.DeleteRevokedExportedChatInvites | Raw.messages.DeleteExportedChatInvite | Raw.messages.GetAdminsWithInvites | Raw.messages.GetChatInviteImporters | Raw.messages.SetHistoryTTL | Raw.messages.CheckHistoryImportPeer | Raw.messages.SetChatTheme | Raw.messages.GetMessageReadParticipants | Raw.messages.GetSearchResultsCalendar | Raw.messages.GetSearchResultsPositions | Raw.messages.HideChatJoinRequest | Raw.messages.HideAllChatJoinRequests | Raw.messages.ToggleNoForwards | Raw.messages.SaveDefaultSendAs | Raw.messages.SendReaction | Raw.messages.GetMessagesReactions | Raw.messages.GetMessageReactionsList | Raw.messages.SetChatAvailableReactions | Raw.messages.GetAvailableReactions | Raw.messages.SetDefaultReaction | Raw.messages.TranslateText | Raw.messages.GetUnreadReactions | Raw.messages.ReadReactions | Raw.messages.SearchSentMedia | Raw.messages.GetAttachMenuBots | Raw.messages.GetAttachMenuBot | Raw.messages.ToggleBotInAttachMenu | Raw.messages.RequestWebView | Raw.messages.ProlongWebView | Raw.messages.RequestSimpleWebView | Raw.messages.SendWebViewResultMessage | Raw.messages.SendWebViewData | Raw.messages.TranscribeAudio | Raw.messages.RateTranscribedAudio | Raw.messages.GetCustomEmojiDocuments | Raw.messages.GetEmojiStickers | Raw.messages.GetFeaturedEmojiStickers | Raw.messages.ReportReaction | Raw.messages.GetTopReactions | Raw.messages.GetRecentReactions | Raw.messages.ClearRecentReactions | Raw.messages.GetExtendedMedia | Raw.messages.SetDefaultHistoryTTL | Raw.messages.GetDefaultHistoryTTL | Raw.messages.SendBotRequestedPeer | Raw.messages.GetEmojiGroups | Raw.messages.GetEmojiStatusGroups | Raw.messages.GetEmojiProfilePhotoGroups | Raw.messages.SearchCustomEmoji | Raw.messages.TogglePeerTranslations | Raw.messages.GetBotApp | Raw.messages.RequestAppWebView | Raw.messages.SetChatWallPaper | Raw.messages.SearchEmojiStickerSets | Raw.messages.GetSavedDialogs | Raw.messages.GetSavedHistory | Raw.messages.DeleteSavedHistory | Raw.messages.GetPinnedSavedDialogs | Raw.messages.ToggleSavedDialogPin | Raw.messages.ReorderPinnedSavedDialogs | Raw.messages.GetSavedReactionTags | Raw.messages.UpdateSavedReactionTag | Raw.messages.GetDefaultTagReactions | Raw.messages.GetOutboxReadDate | Raw.messages.GetQuickReplies | Raw.messages.ReorderQuickReplies | Raw.messages.CheckQuickReplyShortcut | Raw.messages.EditQuickReplyShortcut | Raw.messages.DeleteQuickReplyShortcut | Raw.messages.GetQuickReplyMessages | Raw.messages.SendQuickReplyMessages | Raw.messages.DeleteQuickReplyMessages | Raw.messages.ToggleDialogFilterTags | Raw.messages.GetMyStickers | Raw.messages.GetEmojiStickerGroups | Raw.messages.GetAvailableEffects | Raw.messages.EditFactCheck | Raw.messages.DeleteFactCheck | Raw.messages.GetFactCheck | Raw.messages.RequestMainWebView | Raw.messages.SendPaidReaction | Raw.messages.TogglePaidReactionPrivacy | Raw.messages.GetPaidReactionPrivacy | Raw.messages.ViewSponsoredMessage | Raw.messages.ClickSponsoredMessage | Raw.messages.ReportSponsoredMessage | Raw.messages.GetSponsoredMessages | Raw.messages.SavePreparedInlineMessage | Raw.messages.GetPreparedInlineMessage | Raw.messages.SearchStickers | Raw.messages.ReportMessagesDelivery | Raw.messages.GetSavedDialogsByID | Raw.messages.ReadSavedHistory | Raw.messages.ToggleTodoCompleted | Raw.messages.AppendTodoList | Raw.messages.ToggleSuggestedPostApproval | Raw.updates.GetState | Raw.updates.GetDifference | Raw.updates.GetChannelDifference | Raw.photos.UpdateProfilePhoto | Raw.photos.UploadProfilePhoto | Raw.photos.DeletePhotos | Raw.photos.GetUserPhotos | Raw.photos.UploadContactProfilePhoto | Raw.upload.SaveFilePart | Raw.upload.GetFile | Raw.upload.SaveBigFilePart | Raw.upload.GetWebFile | Raw.upload.GetCdnFile | Raw.upload.ReuploadCdnFile | Raw.upload.GetCdnFileHashes | Raw.upload.GetFileHashes | Raw.help.GetConfig | Raw.help.GetNearestDc | Raw.help.GetAppUpdate | Raw.help.GetInviteText | Raw.help.GetSupport | Raw.help.SetBotUpdatesStatus | Raw.help.GetCdnConfig | Raw.help.GetRecentMeUrls | Raw.help.GetTermsOfServiceUpdate | Raw.help.AcceptTermsOfService | Raw.help.GetDeepLinkInfo | Raw.help.GetAppConfig | Raw.help.SaveAppLog | Raw.help.GetPassportConfig | Raw.help.GetSupportName | Raw.help.GetUserInfo | Raw.help.EditUserInfo | Raw.help.GetPromoData | Raw.help.HidePromoData | Raw.help.DismissSuggestion | Raw.help.GetCountriesList | Raw.help.GetPremiumPromo | Raw.help.GetPeerColors | Raw.help.GetPeerProfileColors | Raw.help.GetTimezonesList | Raw.channels.ReadHistory | Raw.channels.DeleteMessages | Raw.channels.ReportSpam | Raw.channels.GetMessages | Raw.channels.GetParticipants | Raw.channels.GetParticipant | Raw.channels.GetChannels | Raw.channels.GetFullChannel | Raw.channels.CreateChannel | Raw.channels.EditAdmin | Raw.channels.EditTitle | Raw.channels.EditPhoto | Raw.channels.CheckUsername | Raw.channels.UpdateUsername | Raw.channels.JoinChannel | Raw.channels.LeaveChannel | Raw.channels.InviteToChannel | Raw.channels.DeleteChannel | Raw.channels.ExportMessageLink | Raw.channels.ToggleSignatures | Raw.channels.GetAdminedPublicChannels | Raw.channels.EditBanned | Raw.channels.GetAdminLog | Raw.channels.SetStickers | Raw.channels.ReadMessageContents | Raw.channels.DeleteHistory | Raw.channels.TogglePreHistoryHidden | Raw.channels.GetLeftChannels | Raw.channels.GetGroupsForDiscussion | Raw.channels.SetDiscussionGroup | Raw.channels.EditCreator | Raw.channels.EditLocation | Raw.channels.ToggleSlowMode | Raw.channels.GetInactiveChannels | Raw.channels.ConvertToGigagroup | Raw.channels.GetSendAs | Raw.channels.DeleteParticipantHistory | Raw.channels.ToggleJoinToSend | Raw.channels.ToggleJoinRequest | Raw.channels.ReorderUsernames | Raw.channels.ToggleUsername | Raw.channels.DeactivateAllUsernames | Raw.channels.ToggleForum | Raw.channels.CreateForumTopic | Raw.channels.GetForumTopics | Raw.channels.GetForumTopicsByID | Raw.channels.EditForumTopic | Raw.channels.UpdatePinnedForumTopic | Raw.channels.DeleteTopicHistory | Raw.channels.ReorderPinnedForumTopics | Raw.channels.ToggleAntiSpam | Raw.channels.ReportAntiSpamFalsePositive | Raw.channels.ToggleParticipantsHidden | Raw.channels.UpdateColor | Raw.channels.ToggleViewForumAsMessages | Raw.channels.GetChannelRecommendations | Raw.channels.UpdateEmojiStatus | Raw.channels.SetBoostsToUnblockRestrictions | Raw.channels.SetEmojiStickers | Raw.channels.RestrictSponsoredMessages | Raw.channels.SearchPosts | Raw.channels.UpdatePaidMessagesPrice | Raw.channels.ToggleAutotranslation | Raw.channels.GetMessageAuthor | Raw.bots.SendCustomRequest | Raw.bots.AnswerWebhookJSONQuery | Raw.bots.SetBotCommands | Raw.bots.ResetBotCommands | Raw.bots.GetBotCommands | Raw.bots.SetBotMenuButton | Raw.bots.GetBotMenuButton | Raw.bots.SetBotBroadcastDefaultAdminRights | Raw.bots.SetBotGroupDefaultAdminRights | Raw.bots.SetBotInfo | Raw.bots.GetBotInfo | Raw.bots.ReorderUsernames | Raw.bots.ToggleUsername | Raw.bots.CanSendMessage | Raw.bots.AllowSendMessage | Raw.bots.InvokeWebViewCustomMethod | Raw.bots.GetPopularAppBots | Raw.bots.AddPreviewMedia | Raw.bots.EditPreviewMedia | Raw.bots.DeletePreviewMedia | Raw.bots.ReorderPreviewMedias | Raw.bots.GetPreviewInfo | Raw.bots.GetPreviewMedias | Raw.bots.UpdateUserEmojiStatus | Raw.bots.ToggleUserEmojiStatusPermission | Raw.bots.CheckDownloadFileParams | Raw.bots.GetAdminedBots | Raw.bots.UpdateStarRefProgram | Raw.bots.SetCustomVerification | Raw.bots.GetBotRecommendations | Raw.payments.GetPaymentForm | Raw.payments.GetPaymentReceipt | Raw.payments.ValidateRequestedInfo | Raw.payments.SendPaymentForm | Raw.payments.GetSavedInfo | Raw.payments.ClearSavedInfo | Raw.payments.GetBankCardData | Raw.payments.ExportInvoice | Raw.payments.AssignAppStoreTransaction | Raw.payments.AssignPlayMarketTransaction | Raw.payments.GetPremiumGiftCodeOptions | Raw.payments.CheckGiftCode | Raw.payments.ApplyGiftCode | Raw.payments.GetGiveawayInfo | Raw.payments.LaunchPrepaidGiveaway | Raw.payments.GetStarsTopupOptions | Raw.payments.GetStarsStatus | Raw.payments.GetStarsTransactions | Raw.payments.SendStarsForm | Raw.payments.RefundStarsCharge | Raw.payments.GetStarsRevenueStats | Raw.payments.GetStarsRevenueWithdrawalUrl | Raw.payments.GetStarsRevenueAdsAccountUrl | Raw.payments.GetStarsTransactionsByID | Raw.payments.GetStarsGiftOptions | Raw.payments.GetStarsSubscriptions | Raw.payments.ChangeStarsSubscription | Raw.payments.FulfillStarsSubscription | Raw.payments.GetStarsGiveawayOptions | Raw.payments.GetStarGifts | Raw.payments.SaveStarGift | Raw.payments.ConvertStarGift | Raw.payments.BotCancelStarsSubscription | Raw.payments.GetConnectedStarRefBots | Raw.payments.GetConnectedStarRefBot | Raw.payments.GetSuggestedStarRefBots | Raw.payments.ConnectStarRefBot | Raw.payments.EditConnectedStarRefBot | Raw.payments.GetStarGiftUpgradePreview | Raw.payments.UpgradeStarGift | Raw.payments.TransferStarGift | Raw.payments.GetUniqueStarGift | Raw.payments.GetSavedStarGifts | Raw.payments.GetSavedStarGift | Raw.payments.GetStarGiftWithdrawalUrl | Raw.payments.ToggleChatStarGiftNotifications | Raw.payments.ToggleStarGiftsPinnedToTop | Raw.payments.CanPurchaseStore | Raw.payments.GetResaleStarGifts | Raw.payments.UpdateStarGiftPrice | Raw.stickers.CreateStickerSet | Raw.stickers.RemoveStickerFromSet | Raw.stickers.ChangeStickerPosition | Raw.stickers.AddStickerToSet | Raw.stickers.SetStickerSetThumb | Raw.stickers.CheckShortName | Raw.stickers.SuggestShortName | Raw.stickers.ChangeSticker | Raw.stickers.RenameStickerSet | Raw.stickers.DeleteStickerSet | Raw.stickers.ReplaceSticker | Raw.phone.GetCallConfig | Raw.phone.RequestCall | Raw.phone.AcceptCall | Raw.phone.ConfirmCall | Raw.phone.ReceivedCall | Raw.phone.DiscardCall | Raw.phone.SetCallRating | Raw.phone.SaveCallDebug | Raw.phone.SendSignalingData | Raw.phone.CreateGroupCall | Raw.phone.JoinGroupCall | Raw.phone.LeaveGroupCall | Raw.phone.InviteToGroupCall | Raw.phone.DiscardGroupCall | Raw.phone.ToggleGroupCallSettings | Raw.phone.GetGroupCall | Raw.phone.GetGroupParticipants | Raw.phone.CheckGroupCall | Raw.phone.ToggleGroupCallRecord | Raw.phone.EditGroupCallParticipant | Raw.phone.EditGroupCallTitle | Raw.phone.GetGroupCallJoinAs | Raw.phone.ExportGroupCallInvite | Raw.phone.ToggleGroupCallStartSubscription | Raw.phone.StartScheduledGroupCall | Raw.phone.SaveDefaultGroupCallJoinAs | Raw.phone.JoinGroupCallPresentation | Raw.phone.LeaveGroupCallPresentation | Raw.phone.GetGroupCallStreamChannels | Raw.phone.GetGroupCallStreamRtmpUrl | Raw.phone.SaveCallLog | Raw.phone.CreateConferenceCall | Raw.phone.DeleteConferenceCallParticipants | Raw.phone.SendConferenceCallBroadcast | Raw.phone.InviteConferenceCallParticipant | Raw.phone.DeclineConferenceCallInvite | Raw.phone.GetGroupCallChainBlocks | Raw.langpack.GetLangPack | Raw.langpack.GetStrings | Raw.langpack.GetDifference | Raw.langpack.GetLanguages | Raw.langpack.GetLanguage | Raw.folders.EditPeerFolders | Raw.stats.GetBroadcastStats | Raw.stats.LoadAsyncGraph | Raw.stats.GetMegagroupStats | Raw.stats.GetMessagePublicForwards | Raw.stats.GetMessageStats | Raw.stats.GetStoryStats | Raw.stats.GetStoryPublicForwards | Raw.chatlists.ExportChatlistInvite | Raw.chatlists.DeleteExportedInvite | Raw.chatlists.EditExportedInvite | Raw.chatlists.GetExportedInvites | Raw.chatlists.CheckChatlistInvite | Raw.chatlists.JoinChatlistInvite | Raw.chatlists.GetChatlistUpdates | Raw.chatlists.JoinChatlistUpdates | Raw.chatlists.HideChatlistUpdates | Raw.chatlists.GetLeaveChatlistSuggestions | Raw.chatlists.LeaveChatlist | Raw.stories.CanSendStory | Raw.stories.SendStory | Raw.stories.EditStory | Raw.stories.DeleteStories | Raw.stories.TogglePinned | Raw.stories.GetAllStories | Raw.stories.GetPinnedStories | Raw.stories.GetStoriesArchive | Raw.stories.GetStoriesByID | Raw.stories.ToggleAllStoriesHidden | Raw.stories.ReadStories | Raw.stories.IncrementStoryViews | Raw.stories.GetStoryViewsList | Raw.stories.GetStoriesViews | Raw.stories.ExportStoryLink | Raw.stories.Report | Raw.stories.ActivateStealthMode | Raw.stories.SendReaction | Raw.stories.GetPeerStories | Raw.stories.GetAllReadPeerStories | Raw.stories.GetPeerMaxIDs | Raw.stories.GetChatsToSend | Raw.stories.TogglePeerStoriesHidden | Raw.stories.GetStoryReactionsList | Raw.stories.TogglePinnedToTop | Raw.stories.SearchPosts | Raw.premium.GetBoostsList | Raw.premium.GetMyBoosts | Raw.premium.ApplyBoost | Raw.premium.GetBoostsStatus | Raw.premium.GetUserBoosts | Raw.smsjobs.IsEligibleToJoin | Raw.smsjobs.Join | Raw.smsjobs.Leave | Raw.smsjobs.UpdateSettings | Raw.smsjobs.GetStatus | Raw.smsjobs.GetSmsJob | Raw.smsjobs.FinishJob | Raw.fragment.GetCollectibleInfo;
18
+ type TypesTLRequest = Raw.ReqPq | Raw.ReqPqMulti | Raw.ReqDhParams | Raw.SetClientDhParams | Raw.DestroyAuthKey | Raw.RpcDropAnswer | Raw.GetFutureSalts | Raw.Ping | Raw.PingDelayDisconnect | Raw.DestroySession | Raw.InvokeAfterMsg | Raw.InvokeAfterMsgs | Raw.InitConnection | Raw.InvokeWithLayer | Raw.InvokeWithoutUpdates | Raw.InvokeWithMessagesRange | Raw.InvokeWithTakeout | Raw.InvokeWithBusinessConnection | Raw.InvokeWithGooglePlayIntegrity | Raw.InvokeWithApnsSecret | Raw.InvokeWithReCaptcha | Raw.auth.SendCode | Raw.auth.SignUp | Raw.auth.SignIn | Raw.auth.LogOut | Raw.auth.ResetAuthorizations | Raw.auth.ExportAuthorization | Raw.auth.ImportAuthorization | Raw.auth.BindTempAuthKey | Raw.auth.ImportBotAuthorization | Raw.auth.CheckPassword | Raw.auth.RequestPasswordRecovery | Raw.auth.RecoverPassword | Raw.auth.ResendCode | Raw.auth.CancelCode | Raw.auth.DropTempAuthKeys | Raw.auth.ExportLoginToken | Raw.auth.ImportLoginToken | Raw.auth.AcceptLoginToken | Raw.auth.CheckRecoveryPassword | Raw.auth.ImportWebTokenAuthorization | Raw.auth.RequestFirebaseSms | Raw.auth.ResetLoginEmail | Raw.auth.ReportMissingCode | Raw.account.RegisterDevice | Raw.account.UnregisterDevice | Raw.account.UpdateNotifySettings | Raw.account.GetNotifySettings | Raw.account.ResetNotifySettings | Raw.account.UpdateProfile | Raw.account.UpdateStatus | Raw.account.GetWallPapers | Raw.account.ReportPeer | Raw.account.CheckUsername | Raw.account.UpdateUsername | Raw.account.GetPrivacy | Raw.account.SetPrivacy | Raw.account.DeleteAccount | Raw.account.GetAccountTTL | Raw.account.SetAccountTTL | Raw.account.SendChangePhoneCode | Raw.account.ChangePhone | Raw.account.UpdateDeviceLocked | Raw.account.GetAuthorizations | Raw.account.ResetAuthorization | Raw.account.GetPassword | Raw.account.GetPasswordSettings | Raw.account.UpdatePasswordSettings | Raw.account.SendConfirmPhoneCode | Raw.account.ConfirmPhone | Raw.account.GetTmpPassword | Raw.account.GetWebAuthorizations | Raw.account.ResetWebAuthorization | Raw.account.ResetWebAuthorizations | Raw.account.GetAllSecureValues | Raw.account.GetSecureValue | Raw.account.SaveSecureValue | Raw.account.DeleteSecureValue | Raw.account.GetAuthorizationForm | Raw.account.AcceptAuthorization | Raw.account.SendVerifyPhoneCode | Raw.account.VerifyPhone | Raw.account.SendVerifyEmailCode | Raw.account.VerifyEmail | Raw.account.InitTakeoutSession | Raw.account.FinishTakeoutSession | Raw.account.ConfirmPasswordEmail | Raw.account.ResendPasswordEmail | Raw.account.CancelPasswordEmail | Raw.account.GetContactSignUpNotification | Raw.account.SetContactSignUpNotification | Raw.account.GetNotifyExceptions | Raw.account.GetWallPaper | Raw.account.UploadWallPaper | Raw.account.SaveWallPaper | Raw.account.InstallWallPaper | Raw.account.ResetWallPapers | Raw.account.GetAutoDownloadSettings | Raw.account.SaveAutoDownloadSettings | Raw.account.UploadTheme | Raw.account.CreateTheme | Raw.account.UpdateTheme | Raw.account.SaveTheme | Raw.account.InstallTheme | Raw.account.GetTheme | Raw.account.GetThemes | Raw.account.SetContentSettings | Raw.account.GetContentSettings | Raw.account.GetMultiWallPapers | Raw.account.GetGlobalPrivacySettings | Raw.account.SetGlobalPrivacySettings | Raw.account.ReportProfilePhoto | Raw.account.ResetPassword | Raw.account.DeclinePasswordReset | Raw.account.GetChatThemes | Raw.account.SetAuthorizationTTL | Raw.account.ChangeAuthorizationSettings | Raw.account.GetSavedRingtones | Raw.account.SaveRingtone | Raw.account.UploadRingtone | Raw.account.UpdateEmojiStatus | Raw.account.GetDefaultEmojiStatuses | Raw.account.GetRecentEmojiStatuses | Raw.account.ClearRecentEmojiStatuses | Raw.account.ReorderUsernames | Raw.account.ToggleUsername | Raw.account.GetDefaultProfilePhotoEmojis | Raw.account.GetDefaultGroupPhotoEmojis | Raw.account.GetAutoSaveSettings | Raw.account.SaveAutoSaveSettings | Raw.account.DeleteAutoSaveExceptions | Raw.account.InvalidateSignInCodes | Raw.account.UpdateColor | Raw.account.GetDefaultBackgroundEmojis | Raw.account.GetChannelDefaultEmojiStatuses | Raw.account.GetChannelRestrictedStatusEmojis | Raw.account.UpdateBusinessWorkHours | Raw.account.UpdateBusinessLocation | Raw.account.UpdateBusinessGreetingMessage | Raw.account.UpdateBusinessAwayMessage | Raw.account.UpdateConnectedBot | Raw.account.GetConnectedBots | Raw.account.GetBotBusinessConnection | Raw.account.UpdateBusinessIntro | Raw.account.ToggleConnectedBotPaused | Raw.account.DisablePeerConnectedBot | Raw.account.UpdateBirthday | Raw.account.CreateBusinessChatLink | Raw.account.EditBusinessChatLink | Raw.account.DeleteBusinessChatLink | Raw.account.GetBusinessChatLinks | Raw.account.ResolveBusinessChatLink | Raw.account.UpdatePersonalChannel | Raw.account.ToggleSponsoredMessages | Raw.account.GetReactionsNotifySettings | Raw.account.SetReactionsNotifySettings | Raw.account.GetCollectibleEmojiStatuses | Raw.account.GetPaidMessagesRevenue | Raw.account.ToggleNoPaidMessagesException | Raw.users.GetUsers | Raw.users.GetFullUser | Raw.users.SetSecureValueErrors | Raw.users.GetRequirementsToContact | Raw.contacts.GetContactIDs | Raw.contacts.GetStatuses | Raw.contacts.GetContacts | Raw.contacts.ImportContacts | Raw.contacts.DeleteContacts | Raw.contacts.DeleteByPhones | Raw.contacts.Block | Raw.contacts.Unblock | Raw.contacts.GetBlocked | Raw.contacts.Search | Raw.contacts.ResolveUsername | Raw.contacts.GetTopPeers | Raw.contacts.ResetTopPeerRating | Raw.contacts.ResetSaved | Raw.contacts.GetSaved | Raw.contacts.ToggleTopPeers | Raw.contacts.AddContact | Raw.contacts.AcceptContact | Raw.contacts.GetLocated | Raw.contacts.BlockFromReplies | Raw.contacts.ResolvePhone | Raw.contacts.ExportContactToken | Raw.contacts.ImportContactToken | Raw.contacts.EditCloseFriends | Raw.contacts.SetBlocked | Raw.contacts.GetBirthdays | Raw.contacts.GetSponsoredPeers | Raw.messages.GetMessages | Raw.messages.GetDialogs | Raw.messages.GetHistory | Raw.messages.Search | Raw.messages.ReadHistory | Raw.messages.DeleteHistory | Raw.messages.DeleteMessages | Raw.messages.ReceivedMessages | Raw.messages.SetTyping | Raw.messages.SendMessage | Raw.messages.SendMedia | Raw.messages.ForwardMessages | Raw.messages.ReportSpam | Raw.messages.GetPeerSettings | Raw.messages.Report | Raw.messages.GetChats | Raw.messages.GetFullChat | Raw.messages.EditChatTitle | Raw.messages.EditChatPhoto | Raw.messages.AddChatUser | Raw.messages.DeleteChatUser | Raw.messages.CreateChat | Raw.messages.GetDhConfig | Raw.messages.RequestEncryption | Raw.messages.AcceptEncryption | Raw.messages.DiscardEncryption | Raw.messages.SetEncryptedTyping | Raw.messages.ReadEncryptedHistory | Raw.messages.SendEncrypted | Raw.messages.SendEncryptedFile | Raw.messages.SendEncryptedService | Raw.messages.ReceivedQueue | Raw.messages.ReportEncryptedSpam | Raw.messages.ReadMessageContents | Raw.messages.GetStickers | Raw.messages.GetAllStickers | Raw.messages.GetWebPagePreview | Raw.messages.ExportChatInvite | Raw.messages.CheckChatInvite | Raw.messages.ImportChatInvite | Raw.messages.GetStickerSet | Raw.messages.InstallStickerSet | Raw.messages.UninstallStickerSet | Raw.messages.StartBot | Raw.messages.GetMessagesViews | Raw.messages.EditChatAdmin | Raw.messages.MigrateChat | Raw.messages.SearchGlobal | Raw.messages.ReorderStickerSets | Raw.messages.GetDocumentByHash | Raw.messages.GetSavedGifs | Raw.messages.SaveGif | Raw.messages.GetInlineBotResults | Raw.messages.SetInlineBotResults | Raw.messages.SendInlineBotResult | Raw.messages.GetMessageEditData | Raw.messages.EditMessage | Raw.messages.EditInlineBotMessage | Raw.messages.GetBotCallbackAnswer | Raw.messages.SetBotCallbackAnswer | Raw.messages.GetPeerDialogs | Raw.messages.SaveDraft | Raw.messages.GetAllDrafts | Raw.messages.GetFeaturedStickers | Raw.messages.ReadFeaturedStickers | Raw.messages.GetRecentStickers | Raw.messages.SaveRecentSticker | Raw.messages.ClearRecentStickers | Raw.messages.GetArchivedStickers | Raw.messages.GetMaskStickers | Raw.messages.GetAttachedStickers | Raw.messages.SetGameScore | Raw.messages.SetInlineGameScore | Raw.messages.GetGameHighScores | Raw.messages.GetInlineGameHighScores | Raw.messages.GetCommonChats | Raw.messages.GetWebPage | Raw.messages.ToggleDialogPin | Raw.messages.ReorderPinnedDialogs | Raw.messages.GetPinnedDialogs | Raw.messages.SetBotShippingResults | Raw.messages.SetBotPrecheckoutResults | Raw.messages.UploadMedia | Raw.messages.SendScreenshotNotification | Raw.messages.GetFavedStickers | Raw.messages.FaveSticker | Raw.messages.GetUnreadMentions | Raw.messages.ReadMentions | Raw.messages.GetRecentLocations | Raw.messages.SendMultiMedia | Raw.messages.UploadEncryptedFile | Raw.messages.SearchStickerSets | Raw.messages.GetSplitRanges | Raw.messages.MarkDialogUnread | Raw.messages.GetDialogUnreadMarks | Raw.messages.ClearAllDrafts | Raw.messages.UpdatePinnedMessage | Raw.messages.SendVote | Raw.messages.GetPollResults | Raw.messages.GetOnlines | Raw.messages.EditChatAbout | Raw.messages.EditChatDefaultBannedRights | Raw.messages.GetEmojiKeywords | Raw.messages.GetEmojiKeywordsDifference | Raw.messages.GetEmojiKeywordsLanguages | Raw.messages.GetEmojiURL | Raw.messages.GetSearchCounters | Raw.messages.RequestUrlAuth | Raw.messages.AcceptUrlAuth | Raw.messages.HidePeerSettingsBar | Raw.messages.GetScheduledHistory | Raw.messages.GetScheduledMessages | Raw.messages.SendScheduledMessages | Raw.messages.DeleteScheduledMessages | Raw.messages.GetPollVotes | Raw.messages.ToggleStickerSets | Raw.messages.GetDialogFilters | Raw.messages.GetSuggestedDialogFilters | Raw.messages.UpdateDialogFilter | Raw.messages.UpdateDialogFiltersOrder | Raw.messages.GetOldFeaturedStickers | Raw.messages.GetReplies | Raw.messages.GetDiscussionMessage | Raw.messages.ReadDiscussion | Raw.messages.UnpinAllMessages | Raw.messages.DeleteChat | Raw.messages.DeletePhoneCallHistory | Raw.messages.CheckHistoryImport | Raw.messages.InitHistoryImport | Raw.messages.UploadImportedMedia | Raw.messages.StartHistoryImport | Raw.messages.GetExportedChatInvites | Raw.messages.GetExportedChatInvite | Raw.messages.EditExportedChatInvite | Raw.messages.DeleteRevokedExportedChatInvites | Raw.messages.DeleteExportedChatInvite | Raw.messages.GetAdminsWithInvites | Raw.messages.GetChatInviteImporters | Raw.messages.SetHistoryTTL | Raw.messages.CheckHistoryImportPeer | Raw.messages.SetChatTheme | Raw.messages.GetMessageReadParticipants | Raw.messages.GetSearchResultsCalendar | Raw.messages.GetSearchResultsPositions | Raw.messages.HideChatJoinRequest | Raw.messages.HideAllChatJoinRequests | Raw.messages.ToggleNoForwards | Raw.messages.SaveDefaultSendAs | Raw.messages.SendReaction | Raw.messages.GetMessagesReactions | Raw.messages.GetMessageReactionsList | Raw.messages.SetChatAvailableReactions | Raw.messages.GetAvailableReactions | Raw.messages.SetDefaultReaction | Raw.messages.TranslateText | Raw.messages.GetUnreadReactions | Raw.messages.ReadReactions | Raw.messages.SearchSentMedia | Raw.messages.GetAttachMenuBots | Raw.messages.GetAttachMenuBot | Raw.messages.ToggleBotInAttachMenu | Raw.messages.RequestWebView | Raw.messages.ProlongWebView | Raw.messages.RequestSimpleWebView | Raw.messages.SendWebViewResultMessage | Raw.messages.SendWebViewData | Raw.messages.TranscribeAudio | Raw.messages.RateTranscribedAudio | Raw.messages.GetCustomEmojiDocuments | Raw.messages.GetEmojiStickers | Raw.messages.GetFeaturedEmojiStickers | Raw.messages.ReportReaction | Raw.messages.GetTopReactions | Raw.messages.GetRecentReactions | Raw.messages.ClearRecentReactions | Raw.messages.GetExtendedMedia | Raw.messages.SetDefaultHistoryTTL | Raw.messages.GetDefaultHistoryTTL | Raw.messages.SendBotRequestedPeer | Raw.messages.GetEmojiGroups | Raw.messages.GetEmojiStatusGroups | Raw.messages.GetEmojiProfilePhotoGroups | Raw.messages.SearchCustomEmoji | Raw.messages.TogglePeerTranslations | Raw.messages.GetBotApp | Raw.messages.RequestAppWebView | Raw.messages.SetChatWallPaper | Raw.messages.SearchEmojiStickerSets | Raw.messages.GetSavedDialogs | Raw.messages.GetSavedHistory | Raw.messages.DeleteSavedHistory | Raw.messages.GetPinnedSavedDialogs | Raw.messages.ToggleSavedDialogPin | Raw.messages.ReorderPinnedSavedDialogs | Raw.messages.GetSavedReactionTags | Raw.messages.UpdateSavedReactionTag | Raw.messages.GetDefaultTagReactions | Raw.messages.GetOutboxReadDate | Raw.messages.GetQuickReplies | Raw.messages.ReorderQuickReplies | Raw.messages.CheckQuickReplyShortcut | Raw.messages.EditQuickReplyShortcut | Raw.messages.DeleteQuickReplyShortcut | Raw.messages.GetQuickReplyMessages | Raw.messages.SendQuickReplyMessages | Raw.messages.DeleteQuickReplyMessages | Raw.messages.ToggleDialogFilterTags | Raw.messages.GetMyStickers | Raw.messages.GetEmojiStickerGroups | Raw.messages.GetAvailableEffects | Raw.messages.EditFactCheck | Raw.messages.DeleteFactCheck | Raw.messages.GetFactCheck | Raw.messages.RequestMainWebView | Raw.messages.SendPaidReaction | Raw.messages.TogglePaidReactionPrivacy | Raw.messages.GetPaidReactionPrivacy | Raw.messages.ViewSponsoredMessage | Raw.messages.ClickSponsoredMessage | Raw.messages.ReportSponsoredMessage | Raw.messages.GetSponsoredMessages | Raw.messages.SavePreparedInlineMessage | Raw.messages.GetPreparedInlineMessage | Raw.messages.SearchStickers | Raw.messages.ReportMessagesDelivery | Raw.messages.GetSavedDialogsByID | Raw.messages.ReadSavedHistory | Raw.messages.ToggleTodoCompleted | Raw.messages.AppendTodoList | Raw.messages.ToggleSuggestedPostApproval | Raw.updates.GetState | Raw.updates.GetDifference | Raw.updates.GetChannelDifference | Raw.photos.UpdateProfilePhoto | Raw.photos.UploadProfilePhoto | Raw.photos.DeletePhotos | Raw.photos.GetUserPhotos | Raw.photos.UploadContactProfilePhoto | Raw.upload.SaveFilePart | Raw.upload.GetFile | Raw.upload.SaveBigFilePart | Raw.upload.GetWebFile | Raw.upload.GetCdnFile | Raw.upload.ReuploadCdnFile | Raw.upload.GetCdnFileHashes | Raw.upload.GetFileHashes | Raw.help.GetConfig | Raw.help.GetNearestDc | Raw.help.GetAppUpdate | Raw.help.GetInviteText | Raw.help.GetSupport | Raw.help.SetBotUpdatesStatus | Raw.help.GetCdnConfig | Raw.help.GetRecentMeUrls | Raw.help.GetTermsOfServiceUpdate | Raw.help.AcceptTermsOfService | Raw.help.GetDeepLinkInfo | Raw.help.GetAppConfig | Raw.help.SaveAppLog | Raw.help.GetPassportConfig | Raw.help.GetSupportName | Raw.help.GetUserInfo | Raw.help.EditUserInfo | Raw.help.GetPromoData | Raw.help.HidePromoData | Raw.help.DismissSuggestion | Raw.help.GetCountriesList | Raw.help.GetPremiumPromo | Raw.help.GetPeerColors | Raw.help.GetPeerProfileColors | Raw.help.GetTimezonesList | Raw.channels.ReadHistory | Raw.channels.DeleteMessages | Raw.channels.ReportSpam | Raw.channels.GetMessages | Raw.channels.GetParticipants | Raw.channels.GetParticipant | Raw.channels.GetChannels | Raw.channels.GetFullChannel | Raw.channels.CreateChannel | Raw.channels.EditAdmin | Raw.channels.EditTitle | Raw.channels.EditPhoto | Raw.channels.CheckUsername | Raw.channels.UpdateUsername | Raw.channels.JoinChannel | Raw.channels.LeaveChannel | Raw.channels.InviteToChannel | Raw.channels.DeleteChannel | Raw.channels.ExportMessageLink | Raw.channels.ToggleSignatures | Raw.channels.GetAdminedPublicChannels | Raw.channels.EditBanned | Raw.channels.GetAdminLog | Raw.channels.SetStickers | Raw.channels.ReadMessageContents | Raw.channels.DeleteHistory | Raw.channels.TogglePreHistoryHidden | Raw.channels.GetLeftChannels | Raw.channels.GetGroupsForDiscussion | Raw.channels.SetDiscussionGroup | Raw.channels.EditCreator | Raw.channels.EditLocation | Raw.channels.ToggleSlowMode | Raw.channels.GetInactiveChannels | Raw.channels.ConvertToGigagroup | Raw.channels.GetSendAs | Raw.channels.DeleteParticipantHistory | Raw.channels.ToggleJoinToSend | Raw.channels.ToggleJoinRequest | Raw.channels.ReorderUsernames | Raw.channels.ToggleUsername | Raw.channels.DeactivateAllUsernames | Raw.channels.ToggleForum | Raw.channels.CreateForumTopic | Raw.channels.GetForumTopics | Raw.channels.GetForumTopicsByID | Raw.channels.EditForumTopic | Raw.channels.UpdatePinnedForumTopic | Raw.channels.DeleteTopicHistory | Raw.channels.ReorderPinnedForumTopics | Raw.channels.ToggleAntiSpam | Raw.channels.ReportAntiSpamFalsePositive | Raw.channels.ToggleParticipantsHidden | Raw.channels.UpdateColor | Raw.channels.ToggleViewForumAsMessages | Raw.channels.GetChannelRecommendations | Raw.channels.UpdateEmojiStatus | Raw.channels.SetBoostsToUnblockRestrictions | Raw.channels.SetEmojiStickers | Raw.channels.RestrictSponsoredMessages | Raw.channels.SearchPosts | Raw.channels.UpdatePaidMessagesPrice | Raw.channels.ToggleAutotranslation | Raw.channels.GetMessageAuthor | Raw.bots.SendCustomRequest | Raw.bots.AnswerWebhookJSONQuery | Raw.bots.SetBotCommands | Raw.bots.ResetBotCommands | Raw.bots.GetBotCommands | Raw.bots.SetBotMenuButton | Raw.bots.GetBotMenuButton | Raw.bots.SetBotBroadcastDefaultAdminRights | Raw.bots.SetBotGroupDefaultAdminRights | Raw.bots.SetBotInfo | Raw.bots.GetBotInfo | Raw.bots.ReorderUsernames | Raw.bots.ToggleUsername | Raw.bots.CanSendMessage | Raw.bots.AllowSendMessage | Raw.bots.InvokeWebViewCustomMethod | Raw.bots.GetPopularAppBots | Raw.bots.AddPreviewMedia | Raw.bots.EditPreviewMedia | Raw.bots.DeletePreviewMedia | Raw.bots.ReorderPreviewMedias | Raw.bots.GetPreviewInfo | Raw.bots.GetPreviewMedias | Raw.bots.UpdateUserEmojiStatus | Raw.bots.ToggleUserEmojiStatusPermission | Raw.bots.CheckDownloadFileParams | Raw.bots.GetAdminedBots | Raw.bots.UpdateStarRefProgram | Raw.bots.SetCustomVerification | Raw.bots.GetBotRecommendations | Raw.payments.GetPaymentForm | Raw.payments.GetPaymentReceipt | Raw.payments.ValidateRequestedInfo | Raw.payments.SendPaymentForm | Raw.payments.GetSavedInfo | Raw.payments.ClearSavedInfo | Raw.payments.GetBankCardData | Raw.payments.ExportInvoice | Raw.payments.AssignAppStoreTransaction | Raw.payments.AssignPlayMarketTransaction | Raw.payments.GetPremiumGiftCodeOptions | Raw.payments.CheckGiftCode | Raw.payments.ApplyGiftCode | Raw.payments.GetGiveawayInfo | Raw.payments.LaunchPrepaidGiveaway | Raw.payments.GetStarsTopupOptions | Raw.payments.GetStarsStatus | Raw.payments.GetStarsTransactions | Raw.payments.SendStarsForm | Raw.payments.RefundStarsCharge | Raw.payments.GetStarsRevenueStats | Raw.payments.GetStarsRevenueWithdrawalUrl | Raw.payments.GetStarsRevenueAdsAccountUrl | Raw.payments.GetStarsTransactionsByID | Raw.payments.GetStarsGiftOptions | Raw.payments.GetStarsSubscriptions | Raw.payments.ChangeStarsSubscription | Raw.payments.FulfillStarsSubscription | Raw.payments.GetStarsGiveawayOptions | Raw.payments.GetStarGifts | Raw.payments.SaveStarGift | Raw.payments.ConvertStarGift | Raw.payments.BotCancelStarsSubscription | Raw.payments.GetConnectedStarRefBots | Raw.payments.GetConnectedStarRefBot | Raw.payments.GetSuggestedStarRefBots | Raw.payments.ConnectStarRefBot | Raw.payments.EditConnectedStarRefBot | Raw.payments.GetStarGiftUpgradePreview | Raw.payments.UpgradeStarGift | Raw.payments.TransferStarGift | Raw.payments.GetUniqueStarGift | Raw.payments.GetSavedStarGifts | Raw.payments.GetSavedStarGift | Raw.payments.GetStarGiftWithdrawalUrl | Raw.payments.ToggleChatStarGiftNotifications | Raw.payments.ToggleStarGiftsPinnedToTop | Raw.payments.CanPurchaseStore | Raw.payments.GetResaleStarGifts | Raw.payments.UpdateStarGiftPrice | Raw.payments.CreateStarGiftCollection | Raw.payments.UpdateStarGiftCollection | Raw.payments.ReorderStarGiftCollections | Raw.payments.DeleteStarGiftCollection | Raw.payments.GetStarGiftCollections | Raw.stickers.CreateStickerSet | Raw.stickers.RemoveStickerFromSet | Raw.stickers.ChangeStickerPosition | Raw.stickers.AddStickerToSet | Raw.stickers.SetStickerSetThumb | Raw.stickers.CheckShortName | Raw.stickers.SuggestShortName | Raw.stickers.ChangeSticker | Raw.stickers.RenameStickerSet | Raw.stickers.DeleteStickerSet | Raw.stickers.ReplaceSticker | Raw.phone.GetCallConfig | Raw.phone.RequestCall | Raw.phone.AcceptCall | Raw.phone.ConfirmCall | Raw.phone.ReceivedCall | Raw.phone.DiscardCall | Raw.phone.SetCallRating | Raw.phone.SaveCallDebug | Raw.phone.SendSignalingData | Raw.phone.CreateGroupCall | Raw.phone.JoinGroupCall | Raw.phone.LeaveGroupCall | Raw.phone.InviteToGroupCall | Raw.phone.DiscardGroupCall | Raw.phone.ToggleGroupCallSettings | Raw.phone.GetGroupCall | Raw.phone.GetGroupParticipants | Raw.phone.CheckGroupCall | Raw.phone.ToggleGroupCallRecord | Raw.phone.EditGroupCallParticipant | Raw.phone.EditGroupCallTitle | Raw.phone.GetGroupCallJoinAs | Raw.phone.ExportGroupCallInvite | Raw.phone.ToggleGroupCallStartSubscription | Raw.phone.StartScheduledGroupCall | Raw.phone.SaveDefaultGroupCallJoinAs | Raw.phone.JoinGroupCallPresentation | Raw.phone.LeaveGroupCallPresentation | Raw.phone.GetGroupCallStreamChannels | Raw.phone.GetGroupCallStreamRtmpUrl | Raw.phone.SaveCallLog | Raw.phone.CreateConferenceCall | Raw.phone.DeleteConferenceCallParticipants | Raw.phone.SendConferenceCallBroadcast | Raw.phone.InviteConferenceCallParticipant | Raw.phone.DeclineConferenceCallInvite | Raw.phone.GetGroupCallChainBlocks | Raw.langpack.GetLangPack | Raw.langpack.GetStrings | Raw.langpack.GetDifference | Raw.langpack.GetLanguages | Raw.langpack.GetLanguage | Raw.folders.EditPeerFolders | Raw.stats.GetBroadcastStats | Raw.stats.LoadAsyncGraph | Raw.stats.GetMegagroupStats | Raw.stats.GetMessagePublicForwards | Raw.stats.GetMessageStats | Raw.stats.GetStoryStats | Raw.stats.GetStoryPublicForwards | Raw.chatlists.ExportChatlistInvite | Raw.chatlists.DeleteExportedInvite | Raw.chatlists.EditExportedInvite | Raw.chatlists.GetExportedInvites | Raw.chatlists.CheckChatlistInvite | Raw.chatlists.JoinChatlistInvite | Raw.chatlists.GetChatlistUpdates | Raw.chatlists.JoinChatlistUpdates | Raw.chatlists.HideChatlistUpdates | Raw.chatlists.GetLeaveChatlistSuggestions | Raw.chatlists.LeaveChatlist | Raw.stories.CanSendStory | Raw.stories.SendStory | Raw.stories.EditStory | Raw.stories.DeleteStories | Raw.stories.TogglePinned | Raw.stories.GetAllStories | Raw.stories.GetPinnedStories | Raw.stories.GetStoriesArchive | Raw.stories.GetStoriesByID | Raw.stories.ToggleAllStoriesHidden | Raw.stories.ReadStories | Raw.stories.IncrementStoryViews | Raw.stories.GetStoryViewsList | Raw.stories.GetStoriesViews | Raw.stories.ExportStoryLink | Raw.stories.Report | Raw.stories.ActivateStealthMode | Raw.stories.SendReaction | Raw.stories.GetPeerStories | Raw.stories.GetAllReadPeerStories | Raw.stories.GetPeerMaxIDs | Raw.stories.GetChatsToSend | Raw.stories.TogglePeerStoriesHidden | Raw.stories.GetStoryReactionsList | Raw.stories.TogglePinnedToTop | Raw.stories.SearchPosts | Raw.premium.GetBoostsList | Raw.premium.GetMyBoosts | Raw.premium.ApplyBoost | Raw.premium.GetBoostsStatus | Raw.premium.GetUserBoosts | Raw.smsjobs.IsEligibleToJoin | Raw.smsjobs.Join | Raw.smsjobs.Leave | Raw.smsjobs.UpdateSettings | Raw.smsjobs.GetStatus | Raw.smsjobs.GetSmsJob | Raw.smsjobs.FinishJob | Raw.fragment.GetCollectibleInfo;
19
19
  type TypeFileLocation = Raw.FileLocationUnavailable23 | Raw.FileLocation23;
20
20
  type TypeDecryptedMessage = Raw.DecryptedMessage8 | Raw.DecryptedMessageService8 | Raw.DecryptedMessage17 | Raw.DecryptedMessageService17 | Raw.DecryptedMessage45 | Raw.DecryptedMessage73;
21
21
  type TypeDecryptedMessageAction = Raw.DecryptedMessageActionSetMessageTTL8 | Raw.DecryptedMessageActionReadMessages8 | Raw.DecryptedMessageActionDeleteMessages8 | Raw.DecryptedMessageActionScreenshotMessages8 | Raw.DecryptedMessageActionFlushHistory8 | Raw.DecryptedMessageActionResend17 | Raw.DecryptedMessageActionNotifyLayer17 | Raw.DecryptedMessageActionTyping17 | Raw.DecryptedMessageActionRequestKey20 | Raw.DecryptedMessageActionAcceptKey20 | Raw.DecryptedMessageActionAbortKey20 | Raw.DecryptedMessageActionCommitKey20 | Raw.DecryptedMessageActionNoop20;
@@ -98,6 +98,7 @@ export declare namespace Raw {
98
98
  type TypeEmailVerification = Raw.EmailVerificationCode | Raw.EmailVerificationGoogle | Raw.EmailVerificationApple;
99
99
  type TypeCodeSettings = Raw.CodeSettings;
100
100
  type TypeInputClientProxy = Raw.InputClientProxy;
101
+ type TypeStarGiftCollection = Raw.StarGiftCollection;
101
102
  type TypeStarGiftAttributeCounter = Raw.StarGiftAttributeCounter;
102
103
  type TypeStarGiftAttributeId = Raw.StarGiftAttributeIdModel | Raw.StarGiftAttributeIdPattern | Raw.StarGiftAttributeIdBackdrop;
103
104
  type TypeSponsoredPeer = Raw.SponsoredPeer;
@@ -282,6 +283,7 @@ export declare namespace Raw {
282
283
  type TypePopularContact = Raw.PopularContact;
283
284
  type TypeImportedContact = Raw.ImportedContact;
284
285
  type TypeContact = Raw.Contact;
286
+ type TypeStarsRating = Raw.StarsRating;
285
287
  type TypeDisallowedGiftsSettings = Raw.DisallowedGiftsSettings;
286
288
  type TypeStarRefProgram = Raw.StarRefProgram;
287
289
  type TypeBirthday = Raw.Birthday;
@@ -3654,6 +3656,7 @@ export declare namespace Raw {
3654
3656
  botVerification?: Raw.TypeBotVerification;
3655
3657
  sendPaidMessagesStars?: long;
3656
3658
  disallowedGifts?: Raw.TypeDisallowedGiftsSettings;
3659
+ starsRating?: Raw.TypeStarsRating;
3657
3660
  constructor(params: {
3658
3661
  blocked?: boolean;
3659
3662
  phoneCallsAvailable?: boolean;
@@ -3703,6 +3706,7 @@ export declare namespace Raw {
3703
3706
  botVerification?: Raw.TypeBotVerification;
3704
3707
  sendPaidMessagesStars?: long;
3705
3708
  disallowedGifts?: Raw.TypeDisallowedGiftsSettings;
3709
+ starsRating?: Raw.TypeStarsRating;
3706
3710
  });
3707
3711
  static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.UserFull>;
3708
3712
  write(): Buffer;
@@ -14151,6 +14155,8 @@ export declare namespace Raw {
14151
14155
  limited?: boolean;
14152
14156
  soldOut?: boolean;
14153
14157
  birthday?: boolean;
14158
+ requirePremium?: boolean;
14159
+ limitedPerUser?: boolean;
14154
14160
  id: long;
14155
14161
  sticker: Raw.TypeDocument;
14156
14162
  stars: long;
@@ -14164,10 +14170,14 @@ export declare namespace Raw {
14164
14170
  resellMinStars?: long;
14165
14171
  title?: string;
14166
14172
  releasedBy?: Raw.TypePeer;
14173
+ perUserTotal?: int;
14174
+ perUserRemains?: int;
14167
14175
  constructor(params: {
14168
14176
  limited?: boolean;
14169
14177
  soldOut?: boolean;
14170
14178
  birthday?: boolean;
14179
+ requirePremium?: boolean;
14180
+ limitedPerUser?: boolean;
14171
14181
  id: long;
14172
14182
  sticker: Raw.TypeDocument;
14173
14183
  stars: long;
@@ -14181,11 +14191,14 @@ export declare namespace Raw {
14181
14191
  resellMinStars?: long;
14182
14192
  title?: string;
14183
14193
  releasedBy?: Raw.TypePeer;
14194
+ perUserTotal?: int;
14195
+ perUserRemains?: int;
14184
14196
  });
14185
14197
  static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.StarGift>;
14186
14198
  write(): Buffer;
14187
14199
  }
14188
14200
  class StarGiftUnique extends TLObject {
14201
+ requirePremium?: boolean;
14189
14202
  id: long;
14190
14203
  title: string;
14191
14204
  slug: string;
@@ -14200,6 +14213,7 @@ export declare namespace Raw {
14200
14213
  resellStars?: long;
14201
14214
  releasedBy?: Raw.TypePeer;
14202
14215
  constructor(params: {
14216
+ requirePremium?: boolean;
14203
14217
  id: long;
14204
14218
  title: string;
14205
14219
  slug: string;
@@ -14426,6 +14440,7 @@ export declare namespace Raw {
14426
14440
  transferStars?: long;
14427
14441
  canTransferAt?: int;
14428
14442
  canResellAt?: int;
14443
+ collectionId?: Vector<int>;
14429
14444
  constructor(params: {
14430
14445
  nameHidden?: boolean;
14431
14446
  unsaved?: boolean;
@@ -14444,6 +14459,7 @@ export declare namespace Raw {
14444
14459
  transferStars?: long;
14445
14460
  canTransferAt?: int;
14446
14461
  canResellAt?: int;
14462
+ collectionId?: Vector<int>;
14447
14463
  });
14448
14464
  static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.SavedStarGift>;
14449
14465
  write(): Buffer;
@@ -14670,6 +14686,36 @@ export declare namespace Raw {
14670
14686
  static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.SuggestedPost>;
14671
14687
  write(): Buffer;
14672
14688
  }
14689
+ class StarsRating extends TLObject {
14690
+ level: int;
14691
+ currentLevelStars: long;
14692
+ stars: long;
14693
+ nextLevelStars?: long;
14694
+ constructor(params: {
14695
+ level: int;
14696
+ currentLevelStars: long;
14697
+ stars: long;
14698
+ nextLevelStars?: long;
14699
+ });
14700
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.StarsRating>;
14701
+ write(): Buffer;
14702
+ }
14703
+ class StarGiftCollection extends TLObject {
14704
+ collectionId: int;
14705
+ title: string;
14706
+ icon?: Raw.TypeDocument;
14707
+ giftsCount: int;
14708
+ hash: long;
14709
+ constructor(params: {
14710
+ collectionId: int;
14711
+ title: string;
14712
+ icon?: Raw.TypeDocument;
14713
+ giftsCount: int;
14714
+ hash: long;
14715
+ });
14716
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.StarGiftCollection>;
14717
+ write(): Buffer;
14718
+ }
14673
14719
  class InvokeAfterMsg extends TLObject {
14674
14720
  __response__: X;
14675
14721
  msgId: long;
@@ -23987,6 +24033,7 @@ export declare namespace Raw {
23987
24033
  }
23988
24034
  }
23989
24035
  namespace payments {
24036
+ type TypeStarGiftCollections = Raw.payments.StarGiftCollectionsNotModified | Raw.payments.StarGiftCollections;
23990
24037
  type TypeResaleStarGifts = Raw.payments.ResaleStarGifts;
23991
24038
  type TypeStarGiftWithdrawalUrl = Raw.payments.StarGiftWithdrawalUrl;
23992
24039
  type TypeSavedStarGifts = Raw.payments.SavedStarGifts;
@@ -24417,6 +24464,19 @@ export declare namespace Raw {
24417
24464
  static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.ResaleStarGifts>;
24418
24465
  write(): Buffer;
24419
24466
  }
24467
+ class StarGiftCollectionsNotModified extends TLObject {
24468
+ constructor();
24469
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.StarGiftCollectionsNotModified>;
24470
+ write(): Buffer;
24471
+ }
24472
+ class StarGiftCollections extends TLObject {
24473
+ collections: Vector<Raw.TypeStarGiftCollection>;
24474
+ constructor(params: {
24475
+ collections: Vector<Raw.TypeStarGiftCollection>;
24476
+ });
24477
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.StarGiftCollections>;
24478
+ write(): Buffer;
24479
+ }
24420
24480
  class GetPaymentForm extends TLObject {
24421
24481
  __response__: Raw.payments.TypePaymentForm;
24422
24482
  invoice: Raw.TypeInputInvoice;
@@ -24901,6 +24961,7 @@ export declare namespace Raw {
24901
24961
  excludeUnique?: boolean;
24902
24962
  sortByValue?: boolean;
24903
24963
  peer: Raw.TypeInputPeer;
24964
+ collectionId?: int;
24904
24965
  offset: string;
24905
24966
  limit: int;
24906
24967
  constructor(params: {
@@ -24911,6 +24972,7 @@ export declare namespace Raw {
24911
24972
  excludeUnique?: boolean;
24912
24973
  sortByValue?: boolean;
24913
24974
  peer: Raw.TypeInputPeer;
24975
+ collectionId?: int;
24914
24976
  offset: string;
24915
24977
  limit: int;
24916
24978
  });
@@ -25000,6 +25062,71 @@ export declare namespace Raw {
25000
25062
  static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.UpdateStarGiftPrice>;
25001
25063
  write(): Buffer;
25002
25064
  }
25065
+ class CreateStarGiftCollection extends TLObject {
25066
+ __response__: Raw.TypeStarGiftCollection;
25067
+ peer: Raw.TypeInputPeer;
25068
+ title: string;
25069
+ stargift: Vector<Raw.TypeInputSavedStarGift>;
25070
+ constructor(params: {
25071
+ peer: Raw.TypeInputPeer;
25072
+ title: string;
25073
+ stargift: Vector<Raw.TypeInputSavedStarGift>;
25074
+ });
25075
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.CreateStarGiftCollection>;
25076
+ write(): Buffer;
25077
+ }
25078
+ class UpdateStarGiftCollection extends TLObject {
25079
+ __response__: Raw.TypeStarGiftCollection;
25080
+ peer: Raw.TypeInputPeer;
25081
+ collectionId: int;
25082
+ title?: string;
25083
+ deleteStargift?: Vector<Raw.TypeInputSavedStarGift>;
25084
+ addStargift?: Vector<Raw.TypeInputSavedStarGift>;
25085
+ order?: Vector<Raw.TypeInputSavedStarGift>;
25086
+ constructor(params: {
25087
+ peer: Raw.TypeInputPeer;
25088
+ collectionId: int;
25089
+ title?: string;
25090
+ deleteStargift?: Vector<Raw.TypeInputSavedStarGift>;
25091
+ addStargift?: Vector<Raw.TypeInputSavedStarGift>;
25092
+ order?: Vector<Raw.TypeInputSavedStarGift>;
25093
+ });
25094
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.UpdateStarGiftCollection>;
25095
+ write(): Buffer;
25096
+ }
25097
+ class ReorderStarGiftCollections extends TLObject {
25098
+ __response__: Bool;
25099
+ peer: Raw.TypeInputPeer;
25100
+ order: Vector<int>;
25101
+ constructor(params: {
25102
+ peer: Raw.TypeInputPeer;
25103
+ order: Vector<int>;
25104
+ });
25105
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.ReorderStarGiftCollections>;
25106
+ write(): Buffer;
25107
+ }
25108
+ class DeleteStarGiftCollection extends TLObject {
25109
+ __response__: Bool;
25110
+ peer: Raw.TypeInputPeer;
25111
+ collectionId: int;
25112
+ constructor(params: {
25113
+ peer: Raw.TypeInputPeer;
25114
+ collectionId: int;
25115
+ });
25116
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.DeleteStarGiftCollection>;
25117
+ write(): Buffer;
25118
+ }
25119
+ class GetStarGiftCollections extends TLObject {
25120
+ __response__: Raw.payments.TypeStarGiftCollections;
25121
+ peer: Raw.TypeInputPeer;
25122
+ hash: long;
25123
+ constructor(params: {
25124
+ peer: Raw.TypeInputPeer;
25125
+ hash: long;
25126
+ });
25127
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<Raw.payments.GetStarGiftCollections>;
25128
+ write(): Buffer;
25129
+ }
25003
25130
  }
25004
25131
  namespace phone {
25005
25132
  type TypeGroupCallStreamRtmpUrl = Raw.phone.GroupCallStreamRtmpUrl;
package/dist/raw/Raw.js CHANGED
@@ -5,7 +5,7 @@ const index_js_1 = require("@/raw/core/index.js");
5
5
  const deps_js_1 = require("@/deps.js");
6
6
  var Raw;
7
7
  (function (Raw) {
8
- Raw.Layer = 209;
8
+ Raw.Layer = 210;
9
9
  Raw.HighestSCLayer = 144;
10
10
  class ResPQ extends index_js_1.TLObject {
11
11
  nonce;
@@ -11474,11 +11474,12 @@ var Raw;
11474
11474
  botVerification;
11475
11475
  sendPaidMessagesStars;
11476
11476
  disallowedGifts;
11477
+ starsRating;
11477
11478
  constructor(params) {
11478
11479
  super();
11479
11480
  this.classType = 'types';
11480
11481
  this.className = 'UserFull';
11481
- this.constructorId = 0x99e78045;
11482
+ this.constructorId = 0x29de80be;
11482
11483
  this.subclassOfId = 0x1f4661b9;
11483
11484
  this._slots = [
11484
11485
  'blocked',
@@ -11529,6 +11530,7 @@ var Raw;
11529
11530
  'botVerification',
11530
11531
  'sendPaidMessagesStars',
11531
11532
  'disallowedGifts',
11533
+ 'starsRating',
11532
11534
  ];
11533
11535
  this.blocked = params.blocked;
11534
11536
  this.phoneCallsAvailable = params.phoneCallsAvailable;
@@ -11578,6 +11580,7 @@ var Raw;
11578
11580
  this.botVerification = params.botVerification;
11579
11581
  this.sendPaidMessagesStars = params.sendPaidMessagesStars;
11580
11582
  this.disallowedGifts = params.disallowedGifts;
11583
+ this.starsRating = params.starsRating;
11581
11584
  }
11582
11585
  static async read(_data, ..._args) {
11583
11586
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -11630,6 +11633,7 @@ var Raw;
11630
11633
  let botVerification = flags2 & (1 << 12) ? await index_js_1.TLObject.read(_data) : undefined;
11631
11634
  let sendPaidMessagesStars = flags2 & (1 << 14) ? await index_js_1.Primitive.Long.read(_data) : undefined;
11632
11635
  let disallowedGifts = flags2 & (1 << 15) ? await index_js_1.TLObject.read(_data) : undefined;
11636
+ let starsRating = flags2 & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
11633
11637
  return new Raw.UserFull({
11634
11638
  blocked: blocked,
11635
11639
  phoneCallsAvailable: phoneCallsAvailable,
@@ -11679,6 +11683,7 @@ var Raw;
11679
11683
  botVerification: botVerification,
11680
11684
  sendPaidMessagesStars: sendPaidMessagesStars,
11681
11685
  disallowedGifts: disallowedGifts,
11686
+ starsRating: starsRating,
11682
11687
  });
11683
11688
  }
11684
11689
  write() {
@@ -11731,6 +11736,7 @@ var Raw;
11731
11736
  flags2 |= this.botVerification !== undefined ? 1 << 12 : 0;
11732
11737
  flags2 |= this.sendPaidMessagesStars !== undefined ? 1 << 14 : 0;
11733
11738
  flags2 |= this.disallowedGifts !== undefined ? 1 << 15 : 0;
11739
+ flags2 |= this.starsRating !== undefined ? 1 << 17 : 0;
11734
11740
  b.write(index_js_1.Primitive.Int.write(flags2));
11735
11741
  if (this.id !== undefined) {
11736
11742
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -11825,6 +11831,9 @@ var Raw;
11825
11831
  if (this.disallowedGifts !== undefined) {
11826
11832
  b.write(this.disallowedGifts.write());
11827
11833
  }
11834
+ if (this.starsRating !== undefined) {
11835
+ b.write(this.starsRating.write());
11836
+ }
11828
11837
  return deps_js_1.Buffer.from(b.buffer);
11829
11838
  }
11830
11839
  }
@@ -48143,6 +48152,8 @@ var Raw;
48143
48152
  limited;
48144
48153
  soldOut;
48145
48154
  birthday;
48155
+ requirePremium;
48156
+ limitedPerUser;
48146
48157
  id;
48147
48158
  sticker;
48148
48159
  stars;
@@ -48156,16 +48167,20 @@ var Raw;
48156
48167
  resellMinStars;
48157
48168
  title;
48158
48169
  releasedBy;
48170
+ perUserTotal;
48171
+ perUserRemains;
48159
48172
  constructor(params) {
48160
48173
  super();
48161
48174
  this.classType = 'types';
48162
48175
  this.className = 'StarGift';
48163
- this.constructorId = 0x7f853c12;
48176
+ this.constructorId = 0xbcff5b;
48164
48177
  this.subclassOfId = 0xc31c590b;
48165
48178
  this._slots = [
48166
48179
  'limited',
48167
48180
  'soldOut',
48168
48181
  'birthday',
48182
+ 'requirePremium',
48183
+ 'limitedPerUser',
48169
48184
  'id',
48170
48185
  'sticker',
48171
48186
  'stars',
@@ -48179,10 +48194,14 @@ var Raw;
48179
48194
  'resellMinStars',
48180
48195
  'title',
48181
48196
  'releasedBy',
48197
+ 'perUserTotal',
48198
+ 'perUserRemains',
48182
48199
  ];
48183
48200
  this.limited = params.limited;
48184
48201
  this.soldOut = params.soldOut;
48185
48202
  this.birthday = params.birthday;
48203
+ this.requirePremium = params.requirePremium;
48204
+ this.limitedPerUser = params.limitedPerUser;
48186
48205
  this.id = params.id;
48187
48206
  this.sticker = params.sticker;
48188
48207
  this.stars = params.stars;
@@ -48196,12 +48215,16 @@ var Raw;
48196
48215
  this.resellMinStars = params.resellMinStars;
48197
48216
  this.title = params.title;
48198
48217
  this.releasedBy = params.releasedBy;
48218
+ this.perUserTotal = params.perUserTotal;
48219
+ this.perUserRemains = params.perUserRemains;
48199
48220
  }
48200
48221
  static async read(_data, ..._args) {
48201
48222
  let flags = await index_js_1.Primitive.Int.read(_data);
48202
48223
  let limited = flags & (1 << 0) ? true : false;
48203
48224
  let soldOut = flags & (1 << 1) ? true : false;
48204
48225
  let birthday = flags & (1 << 2) ? true : false;
48226
+ let requirePremium = flags & (1 << 7) ? true : false;
48227
+ let limitedPerUser = flags & (1 << 8) ? true : false;
48205
48228
  let id = await index_js_1.Primitive.Long.read(_data);
48206
48229
  let sticker = await index_js_1.TLObject.read(_data);
48207
48230
  let stars = await index_js_1.Primitive.Long.read(_data);
@@ -48215,10 +48238,14 @@ var Raw;
48215
48238
  let resellMinStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
48216
48239
  let title = flags & (1 << 5) ? await index_js_1.Primitive.String.read(_data) : undefined;
48217
48240
  let releasedBy = flags & (1 << 6) ? await index_js_1.TLObject.read(_data) : undefined;
48241
+ let perUserTotal = flags & (1 << 8) ? await index_js_1.Primitive.Int.read(_data) : undefined;
48242
+ let perUserRemains = flags & (1 << 8) ? await index_js_1.Primitive.Int.read(_data) : undefined;
48218
48243
  return new Raw.StarGift({
48219
48244
  limited: limited,
48220
48245
  soldOut: soldOut,
48221
48246
  birthday: birthday,
48247
+ requirePremium: requirePremium,
48248
+ limitedPerUser: limitedPerUser,
48222
48249
  id: id,
48223
48250
  sticker: sticker,
48224
48251
  stars: stars,
@@ -48232,6 +48259,8 @@ var Raw;
48232
48259
  resellMinStars: resellMinStars,
48233
48260
  title: title,
48234
48261
  releasedBy: releasedBy,
48262
+ perUserTotal: perUserTotal,
48263
+ perUserRemains: perUserRemains,
48235
48264
  });
48236
48265
  }
48237
48266
  write() {
@@ -48241,6 +48270,8 @@ var Raw;
48241
48270
  flags |= this.limited ? 1 << 0 : 0;
48242
48271
  flags |= this.soldOut ? 1 << 1 : 0;
48243
48272
  flags |= this.birthday ? 1 << 2 : 0;
48273
+ flags |= this.requirePremium ? 1 << 7 : 0;
48274
+ flags |= this.limitedPerUser ? 1 << 8 : 0;
48244
48275
  flags |= this.availabilityRemains !== undefined ? 1 << 0 : 0;
48245
48276
  flags |= this.availabilityTotal !== undefined ? 1 << 0 : 0;
48246
48277
  flags |= this.availabilityResale !== undefined ? 1 << 4 : 0;
@@ -48250,6 +48281,8 @@ var Raw;
48250
48281
  flags |= this.resellMinStars !== undefined ? 1 << 4 : 0;
48251
48282
  flags |= this.title !== undefined ? 1 << 5 : 0;
48252
48283
  flags |= this.releasedBy !== undefined ? 1 << 6 : 0;
48284
+ flags |= this.perUserTotal !== undefined ? 1 << 8 : 0;
48285
+ flags |= this.perUserRemains !== undefined ? 1 << 8 : 0;
48253
48286
  b.write(index_js_1.Primitive.Int.write(flags));
48254
48287
  if (this.id !== undefined) {
48255
48288
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -48290,11 +48323,18 @@ var Raw;
48290
48323
  if (this.releasedBy !== undefined) {
48291
48324
  b.write(this.releasedBy.write());
48292
48325
  }
48326
+ if (this.perUserTotal !== undefined) {
48327
+ b.write(index_js_1.Primitive.Int.write(this.perUserTotal));
48328
+ }
48329
+ if (this.perUserRemains !== undefined) {
48330
+ b.write(index_js_1.Primitive.Int.write(this.perUserRemains));
48331
+ }
48293
48332
  return deps_js_1.Buffer.from(b.buffer);
48294
48333
  }
48295
48334
  }
48296
48335
  Raw.StarGift = StarGift;
48297
48336
  class StarGiftUnique extends index_js_1.TLObject {
48337
+ requirePremium;
48298
48338
  id;
48299
48339
  title;
48300
48340
  slug;
@@ -48315,6 +48355,7 @@ var Raw;
48315
48355
  this.constructorId = 0xf63778ae;
48316
48356
  this.subclassOfId = 0xc31c590b;
48317
48357
  this._slots = [
48358
+ 'requirePremium',
48318
48359
  'id',
48319
48360
  'title',
48320
48361
  'slug',
@@ -48329,6 +48370,7 @@ var Raw;
48329
48370
  'resellStars',
48330
48371
  'releasedBy',
48331
48372
  ];
48373
+ this.requirePremium = params.requirePremium;
48332
48374
  this.id = params.id;
48333
48375
  this.title = params.title;
48334
48376
  this.slug = params.slug;
@@ -48345,6 +48387,7 @@ var Raw;
48345
48387
  }
48346
48388
  static async read(_data, ..._args) {
48347
48389
  let flags = await index_js_1.Primitive.Int.read(_data);
48390
+ let requirePremium = flags & (1 << 6) ? true : false;
48348
48391
  let id = await index_js_1.Primitive.Long.read(_data);
48349
48392
  let title = await index_js_1.Primitive.String.read(_data);
48350
48393
  let slug = await index_js_1.Primitive.String.read(_data);
@@ -48359,6 +48402,7 @@ var Raw;
48359
48402
  let resellStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
48360
48403
  let releasedBy = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
48361
48404
  return new Raw.StarGiftUnique({
48405
+ requirePremium: requirePremium,
48362
48406
  id: id,
48363
48407
  title: title,
48364
48408
  slug: slug,
@@ -48378,6 +48422,7 @@ var Raw;
48378
48422
  const b = new deps_js_1.BytesIO();
48379
48423
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
48380
48424
  let flags = 0;
48425
+ flags |= this.requirePremium ? 1 << 6 : 0;
48381
48426
  flags |= this.ownerId !== undefined ? 1 << 0 : 0;
48382
48427
  flags |= this.ownerName !== undefined ? 1 << 1 : 0;
48383
48428
  flags |= this.ownerAddress !== undefined ? 1 << 2 : 0;
@@ -49137,11 +49182,12 @@ var Raw;
49137
49182
  transferStars;
49138
49183
  canTransferAt;
49139
49184
  canResellAt;
49185
+ collectionId;
49140
49186
  constructor(params) {
49141
49187
  super();
49142
49188
  this.classType = 'types';
49143
49189
  this.className = 'SavedStarGift';
49144
- this.constructorId = 0xdfda0499;
49190
+ this.constructorId = 0x1ea646df;
49145
49191
  this.subclassOfId = 0x8e2b3c14;
49146
49192
  this._slots = [
49147
49193
  'nameHidden',
@@ -49161,6 +49207,7 @@ var Raw;
49161
49207
  'transferStars',
49162
49208
  'canTransferAt',
49163
49209
  'canResellAt',
49210
+ 'collectionId',
49164
49211
  ];
49165
49212
  this.nameHidden = params.nameHidden;
49166
49213
  this.unsaved = params.unsaved;
@@ -49179,6 +49226,7 @@ var Raw;
49179
49226
  this.transferStars = params.transferStars;
49180
49227
  this.canTransferAt = params.canTransferAt;
49181
49228
  this.canResellAt = params.canResellAt;
49229
+ this.collectionId = params.collectionId;
49182
49230
  }
49183
49231
  static async read(_data, ..._args) {
49184
49232
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -49199,6 +49247,7 @@ var Raw;
49199
49247
  let transferStars = flags & (1 << 8) ? await index_js_1.Primitive.Long.read(_data) : undefined;
49200
49248
  let canTransferAt = flags & (1 << 13) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49201
49249
  let canResellAt = flags & (1 << 14) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49250
+ let collectionId = flags & (1 << 15) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
49202
49251
  return new Raw.SavedStarGift({
49203
49252
  nameHidden: nameHidden,
49204
49253
  unsaved: unsaved,
@@ -49217,6 +49266,7 @@ var Raw;
49217
49266
  transferStars: transferStars,
49218
49267
  canTransferAt: canTransferAt,
49219
49268
  canResellAt: canResellAt,
49269
+ collectionId: collectionId,
49220
49270
  });
49221
49271
  }
49222
49272
  write() {
@@ -49238,6 +49288,7 @@ var Raw;
49238
49288
  flags |= this.transferStars !== undefined ? 1 << 8 : 0;
49239
49289
  flags |= this.canTransferAt !== undefined ? 1 << 13 : 0;
49240
49290
  flags |= this.canResellAt !== undefined ? 1 << 14 : 0;
49291
+ flags |= this.collectionId ? 1 << 15 : 0;
49241
49292
  b.write(index_js_1.Primitive.Int.write(flags));
49242
49293
  if (this.fromId !== undefined) {
49243
49294
  b.write(this.fromId.write());
@@ -49275,6 +49326,9 @@ var Raw;
49275
49326
  if (this.canResellAt !== undefined) {
49276
49327
  b.write(index_js_1.Primitive.Int.write(this.canResellAt));
49277
49328
  }
49329
+ if (this.collectionId) {
49330
+ b.write(index_js_1.Primitive.Vector.write(this.collectionId, index_js_1.Primitive.Int));
49331
+ }
49278
49332
  return deps_js_1.Buffer.from(b.buffer);
49279
49333
  }
49280
49334
  }
@@ -50013,6 +50067,117 @@ var Raw;
50013
50067
  }
50014
50068
  }
50015
50069
  Raw.SuggestedPost = SuggestedPost;
50070
+ class StarsRating extends index_js_1.TLObject {
50071
+ level;
50072
+ currentLevelStars;
50073
+ stars;
50074
+ nextLevelStars;
50075
+ constructor(params) {
50076
+ super();
50077
+ this.classType = 'types';
50078
+ this.className = 'StarsRating';
50079
+ this.constructorId = 0x1b0e4f07;
50080
+ this.subclassOfId = 0x63736420;
50081
+ this._slots = ['level', 'currentLevelStars', 'stars', 'nextLevelStars'];
50082
+ this.level = params.level;
50083
+ this.currentLevelStars = params.currentLevelStars;
50084
+ this.stars = params.stars;
50085
+ this.nextLevelStars = params.nextLevelStars;
50086
+ }
50087
+ static async read(_data, ..._args) {
50088
+ let flags = await index_js_1.Primitive.Int.read(_data);
50089
+ let level = await index_js_1.Primitive.Int.read(_data);
50090
+ let currentLevelStars = await index_js_1.Primitive.Long.read(_data);
50091
+ let stars = await index_js_1.Primitive.Long.read(_data);
50092
+ let nextLevelStars = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
50093
+ return new Raw.StarsRating({
50094
+ level: level,
50095
+ currentLevelStars: currentLevelStars,
50096
+ stars: stars,
50097
+ nextLevelStars: nextLevelStars,
50098
+ });
50099
+ }
50100
+ write() {
50101
+ const b = new deps_js_1.BytesIO();
50102
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
50103
+ let flags = 0;
50104
+ flags |= this.nextLevelStars !== undefined ? 1 << 0 : 0;
50105
+ b.write(index_js_1.Primitive.Int.write(flags));
50106
+ if (this.level !== undefined) {
50107
+ b.write(index_js_1.Primitive.Int.write(this.level));
50108
+ }
50109
+ if (this.currentLevelStars !== undefined) {
50110
+ b.write(index_js_1.Primitive.Long.write(this.currentLevelStars));
50111
+ }
50112
+ if (this.stars !== undefined) {
50113
+ b.write(index_js_1.Primitive.Long.write(this.stars));
50114
+ }
50115
+ if (this.nextLevelStars !== undefined) {
50116
+ b.write(index_js_1.Primitive.Long.write(this.nextLevelStars));
50117
+ }
50118
+ return deps_js_1.Buffer.from(b.buffer);
50119
+ }
50120
+ }
50121
+ Raw.StarsRating = StarsRating;
50122
+ class StarGiftCollection extends index_js_1.TLObject {
50123
+ collectionId;
50124
+ title;
50125
+ icon;
50126
+ giftsCount;
50127
+ hash;
50128
+ constructor(params) {
50129
+ super();
50130
+ this.classType = 'types';
50131
+ this.className = 'StarGiftCollection';
50132
+ this.constructorId = 0x9d6b13b0;
50133
+ this.subclassOfId = 0x43e0cb4a;
50134
+ this._slots = ['collectionId', 'title', 'icon', 'giftsCount', 'hash'];
50135
+ this.collectionId = params.collectionId;
50136
+ this.title = params.title;
50137
+ this.icon = params.icon;
50138
+ this.giftsCount = params.giftsCount;
50139
+ this.hash = params.hash;
50140
+ }
50141
+ static async read(_data, ..._args) {
50142
+ let flags = await index_js_1.Primitive.Int.read(_data);
50143
+ let collectionId = await index_js_1.Primitive.Int.read(_data);
50144
+ let title = await index_js_1.Primitive.String.read(_data);
50145
+ let icon = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
50146
+ let giftsCount = await index_js_1.Primitive.Int.read(_data);
50147
+ let hash = await index_js_1.Primitive.Long.read(_data);
50148
+ return new Raw.StarGiftCollection({
50149
+ collectionId: collectionId,
50150
+ title: title,
50151
+ icon: icon,
50152
+ giftsCount: giftsCount,
50153
+ hash: hash,
50154
+ });
50155
+ }
50156
+ write() {
50157
+ const b = new deps_js_1.BytesIO();
50158
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
50159
+ let flags = 0;
50160
+ flags |= this.icon !== undefined ? 1 << 0 : 0;
50161
+ b.write(index_js_1.Primitive.Int.write(flags));
50162
+ if (this.collectionId !== undefined) {
50163
+ b.write(index_js_1.Primitive.Int.write(this.collectionId));
50164
+ }
50165
+ if (this.title !== undefined) {
50166
+ b.write(index_js_1.Primitive.String.write(this.title));
50167
+ }
50168
+ if (this.icon !== undefined) {
50169
+ b.write(this.icon.write());
50170
+ }
50171
+ if (this.giftsCount !== undefined) {
50172
+ b.write(index_js_1.Primitive.Int.write(this.giftsCount));
50173
+ }
50174
+ if (this.hash !== undefined) {
50175
+ b.write(index_js_1.Primitive.Long.write(this.hash));
50176
+ }
50177
+ return deps_js_1.Buffer.from(b.buffer);
50178
+ }
50179
+ }
50180
+ Raw.StarGiftCollection = StarGiftCollection;
50016
50181
  class InvokeAfterMsg extends index_js_1.TLObject {
50017
50182
  __response__;
50018
50183
  msgId;
@@ -81708,6 +81873,50 @@ var Raw;
81708
81873
  }
81709
81874
  }
81710
81875
  payments.ResaleStarGifts = ResaleStarGifts;
81876
+ class StarGiftCollectionsNotModified extends index_js_1.TLObject {
81877
+ constructor() {
81878
+ super();
81879
+ this.classType = 'types';
81880
+ this.className = 'payments.StarGiftCollectionsNotModified';
81881
+ this.constructorId = 0xa0ba4f17;
81882
+ this.subclassOfId = 0xf01721ec;
81883
+ this._slots = [];
81884
+ }
81885
+ static async read(_data, ..._args) {
81886
+ return new Raw.payments.StarGiftCollectionsNotModified();
81887
+ }
81888
+ write() {
81889
+ const b = new deps_js_1.BytesIO();
81890
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81891
+ return deps_js_1.Buffer.from(b.buffer);
81892
+ }
81893
+ }
81894
+ payments.StarGiftCollectionsNotModified = StarGiftCollectionsNotModified;
81895
+ class StarGiftCollections extends index_js_1.TLObject {
81896
+ collections;
81897
+ constructor(params) {
81898
+ super();
81899
+ this.classType = 'types';
81900
+ this.className = 'payments.StarGiftCollections';
81901
+ this.constructorId = 0x8a2932f3;
81902
+ this.subclassOfId = 0xf01721ec;
81903
+ this._slots = ['collections'];
81904
+ this.collections = params.collections;
81905
+ }
81906
+ static async read(_data, ..._args) {
81907
+ let collections = await index_js_1.TLObject.read(_data);
81908
+ return new Raw.payments.StarGiftCollections({ collections: collections });
81909
+ }
81910
+ write() {
81911
+ const b = new deps_js_1.BytesIO();
81912
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81913
+ if (this.collections) {
81914
+ b.write(index_js_1.Primitive.Vector.write(this.collections));
81915
+ }
81916
+ return deps_js_1.Buffer.from(b.buffer);
81917
+ }
81918
+ }
81919
+ payments.StarGiftCollections = StarGiftCollections;
81711
81920
  class GetPaymentForm extends index_js_1.TLObject {
81712
81921
  __response__;
81713
81922
  invoice;
@@ -83213,13 +83422,14 @@ var Raw;
83213
83422
  excludeUnique;
83214
83423
  sortByValue;
83215
83424
  peer;
83425
+ collectionId;
83216
83426
  offset;
83217
83427
  limit;
83218
83428
  constructor(params) {
83219
83429
  super();
83220
83430
  this.classType = 'functions';
83221
83431
  this.className = 'payments.GetSavedStarGifts';
83222
- this.constructorId = 0x23830de9;
83432
+ this.constructorId = 0xa319e569;
83223
83433
  this.subclassOfId = 0xd5112897;
83224
83434
  this._slots = [
83225
83435
  'excludeUnsaved',
@@ -83229,6 +83439,7 @@ var Raw;
83229
83439
  'excludeUnique',
83230
83440
  'sortByValue',
83231
83441
  'peer',
83442
+ 'collectionId',
83232
83443
  'offset',
83233
83444
  'limit',
83234
83445
  ];
@@ -83239,6 +83450,7 @@ var Raw;
83239
83450
  this.excludeUnique = params.excludeUnique;
83240
83451
  this.sortByValue = params.sortByValue;
83241
83452
  this.peer = params.peer;
83453
+ this.collectionId = params.collectionId;
83242
83454
  this.offset = params.offset;
83243
83455
  this.limit = params.limit;
83244
83456
  }
@@ -83251,6 +83463,7 @@ var Raw;
83251
83463
  let excludeUnique = flags & (1 << 4) ? true : false;
83252
83464
  let sortByValue = flags & (1 << 5) ? true : false;
83253
83465
  let peer = await index_js_1.TLObject.read(_data);
83466
+ let collectionId = flags & (1 << 6) ? await index_js_1.Primitive.Int.read(_data) : undefined;
83254
83467
  let offset = await index_js_1.Primitive.String.read(_data);
83255
83468
  let limit = await index_js_1.Primitive.Int.read(_data);
83256
83469
  return new Raw.payments.GetSavedStarGifts({
@@ -83261,6 +83474,7 @@ var Raw;
83261
83474
  excludeUnique: excludeUnique,
83262
83475
  sortByValue: sortByValue,
83263
83476
  peer: peer,
83477
+ collectionId: collectionId,
83264
83478
  offset: offset,
83265
83479
  limit: limit,
83266
83480
  });
@@ -83275,10 +83489,14 @@ var Raw;
83275
83489
  flags |= this.excludeLimited ? 1 << 3 : 0;
83276
83490
  flags |= this.excludeUnique ? 1 << 4 : 0;
83277
83491
  flags |= this.sortByValue ? 1 << 5 : 0;
83492
+ flags |= this.collectionId !== undefined ? 1 << 6 : 0;
83278
83493
  b.write(index_js_1.Primitive.Int.write(flags));
83279
83494
  if (this.peer !== undefined) {
83280
83495
  b.write(this.peer.write());
83281
83496
  }
83497
+ if (this.collectionId !== undefined) {
83498
+ b.write(index_js_1.Primitive.Int.write(this.collectionId));
83499
+ }
83282
83500
  if (this.offset !== undefined) {
83283
83501
  b.write(index_js_1.Primitive.String.write(this.offset));
83284
83502
  }
@@ -83555,6 +83773,217 @@ var Raw;
83555
83773
  }
83556
83774
  }
83557
83775
  payments.UpdateStarGiftPrice = UpdateStarGiftPrice;
83776
+ class CreateStarGiftCollection extends index_js_1.TLObject {
83777
+ __response__;
83778
+ peer;
83779
+ title;
83780
+ stargift;
83781
+ constructor(params) {
83782
+ super();
83783
+ this.classType = 'functions';
83784
+ this.className = 'payments.CreateStarGiftCollection';
83785
+ this.constructorId = 0x1f4a0e87;
83786
+ this.subclassOfId = 0x43e0cb4a;
83787
+ this._slots = ['peer', 'title', 'stargift'];
83788
+ this.peer = params.peer;
83789
+ this.title = params.title;
83790
+ this.stargift = params.stargift;
83791
+ }
83792
+ static async read(_data, ..._args) {
83793
+ let peer = await index_js_1.TLObject.read(_data);
83794
+ let title = await index_js_1.Primitive.String.read(_data);
83795
+ let stargift = await index_js_1.TLObject.read(_data);
83796
+ return new Raw.payments.CreateStarGiftCollection({
83797
+ peer: peer,
83798
+ title: title,
83799
+ stargift: stargift,
83800
+ });
83801
+ }
83802
+ write() {
83803
+ const b = new deps_js_1.BytesIO();
83804
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
83805
+ if (this.peer !== undefined) {
83806
+ b.write(this.peer.write());
83807
+ }
83808
+ if (this.title !== undefined) {
83809
+ b.write(index_js_1.Primitive.String.write(this.title));
83810
+ }
83811
+ if (this.stargift) {
83812
+ b.write(index_js_1.Primitive.Vector.write(this.stargift));
83813
+ }
83814
+ return deps_js_1.Buffer.from(b.buffer);
83815
+ }
83816
+ }
83817
+ payments.CreateStarGiftCollection = CreateStarGiftCollection;
83818
+ class UpdateStarGiftCollection extends index_js_1.TLObject {
83819
+ __response__;
83820
+ peer;
83821
+ collectionId;
83822
+ title;
83823
+ deleteStargift;
83824
+ addStargift;
83825
+ order;
83826
+ constructor(params) {
83827
+ super();
83828
+ this.classType = 'functions';
83829
+ this.className = 'payments.UpdateStarGiftCollection';
83830
+ this.constructorId = 0x4fddbee7;
83831
+ this.subclassOfId = 0x43e0cb4a;
83832
+ this._slots = ['peer', 'collectionId', 'title', 'deleteStargift', 'addStargift', 'order'];
83833
+ this.peer = params.peer;
83834
+ this.collectionId = params.collectionId;
83835
+ this.title = params.title;
83836
+ this.deleteStargift = params.deleteStargift;
83837
+ this.addStargift = params.addStargift;
83838
+ this.order = params.order;
83839
+ }
83840
+ static async read(_data, ..._args) {
83841
+ let flags = await index_js_1.Primitive.Int.read(_data);
83842
+ let peer = await index_js_1.TLObject.read(_data);
83843
+ let collectionId = await index_js_1.Primitive.Int.read(_data);
83844
+ let title = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
83845
+ let deleteStargift = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
83846
+ let addStargift = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : [];
83847
+ let order = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
83848
+ return new Raw.payments.UpdateStarGiftCollection({
83849
+ peer: peer,
83850
+ collectionId: collectionId,
83851
+ title: title,
83852
+ deleteStargift: deleteStargift,
83853
+ addStargift: addStargift,
83854
+ order: order,
83855
+ });
83856
+ }
83857
+ write() {
83858
+ const b = new deps_js_1.BytesIO();
83859
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
83860
+ let flags = 0;
83861
+ flags |= this.title !== undefined ? 1 << 0 : 0;
83862
+ flags |= this.deleteStargift ? 1 << 1 : 0;
83863
+ flags |= this.addStargift ? 1 << 2 : 0;
83864
+ flags |= this.order ? 1 << 3 : 0;
83865
+ b.write(index_js_1.Primitive.Int.write(flags));
83866
+ if (this.peer !== undefined) {
83867
+ b.write(this.peer.write());
83868
+ }
83869
+ if (this.collectionId !== undefined) {
83870
+ b.write(index_js_1.Primitive.Int.write(this.collectionId));
83871
+ }
83872
+ if (this.title !== undefined) {
83873
+ b.write(index_js_1.Primitive.String.write(this.title));
83874
+ }
83875
+ if (this.deleteStargift) {
83876
+ b.write(index_js_1.Primitive.Vector.write(this.deleteStargift));
83877
+ }
83878
+ if (this.addStargift) {
83879
+ b.write(index_js_1.Primitive.Vector.write(this.addStargift));
83880
+ }
83881
+ if (this.order) {
83882
+ b.write(index_js_1.Primitive.Vector.write(this.order));
83883
+ }
83884
+ return deps_js_1.Buffer.from(b.buffer);
83885
+ }
83886
+ }
83887
+ payments.UpdateStarGiftCollection = UpdateStarGiftCollection;
83888
+ class ReorderStarGiftCollections extends index_js_1.TLObject {
83889
+ __response__;
83890
+ peer;
83891
+ order;
83892
+ constructor(params) {
83893
+ super();
83894
+ this.classType = 'functions';
83895
+ this.className = 'payments.ReorderStarGiftCollections';
83896
+ this.constructorId = 0xc32af4cc;
83897
+ this.subclassOfId = 0xf5b399ac;
83898
+ this._slots = ['peer', 'order'];
83899
+ this.peer = params.peer;
83900
+ this.order = params.order;
83901
+ }
83902
+ static async read(_data, ..._args) {
83903
+ let peer = await index_js_1.TLObject.read(_data);
83904
+ let order = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
83905
+ return new Raw.payments.ReorderStarGiftCollections({ peer: peer, order: order });
83906
+ }
83907
+ write() {
83908
+ const b = new deps_js_1.BytesIO();
83909
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
83910
+ if (this.peer !== undefined) {
83911
+ b.write(this.peer.write());
83912
+ }
83913
+ if (this.order) {
83914
+ b.write(index_js_1.Primitive.Vector.write(this.order, index_js_1.Primitive.Int));
83915
+ }
83916
+ return deps_js_1.Buffer.from(b.buffer);
83917
+ }
83918
+ }
83919
+ payments.ReorderStarGiftCollections = ReorderStarGiftCollections;
83920
+ class DeleteStarGiftCollection extends index_js_1.TLObject {
83921
+ __response__;
83922
+ peer;
83923
+ collectionId;
83924
+ constructor(params) {
83925
+ super();
83926
+ this.classType = 'functions';
83927
+ this.className = 'payments.DeleteStarGiftCollection';
83928
+ this.constructorId = 0xad5648e8;
83929
+ this.subclassOfId = 0xf5b399ac;
83930
+ this._slots = ['peer', 'collectionId'];
83931
+ this.peer = params.peer;
83932
+ this.collectionId = params.collectionId;
83933
+ }
83934
+ static async read(_data, ..._args) {
83935
+ let peer = await index_js_1.TLObject.read(_data);
83936
+ let collectionId = await index_js_1.Primitive.Int.read(_data);
83937
+ return new Raw.payments.DeleteStarGiftCollection({
83938
+ peer: peer,
83939
+ collectionId: collectionId,
83940
+ });
83941
+ }
83942
+ write() {
83943
+ const b = new deps_js_1.BytesIO();
83944
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
83945
+ if (this.peer !== undefined) {
83946
+ b.write(this.peer.write());
83947
+ }
83948
+ if (this.collectionId !== undefined) {
83949
+ b.write(index_js_1.Primitive.Int.write(this.collectionId));
83950
+ }
83951
+ return deps_js_1.Buffer.from(b.buffer);
83952
+ }
83953
+ }
83954
+ payments.DeleteStarGiftCollection = DeleteStarGiftCollection;
83955
+ class GetStarGiftCollections extends index_js_1.TLObject {
83956
+ __response__;
83957
+ peer;
83958
+ hash;
83959
+ constructor(params) {
83960
+ super();
83961
+ this.classType = 'functions';
83962
+ this.className = 'payments.GetStarGiftCollections';
83963
+ this.constructorId = 0x981b91dd;
83964
+ this.subclassOfId = 0xf01721ec;
83965
+ this._slots = ['peer', 'hash'];
83966
+ this.peer = params.peer;
83967
+ this.hash = params.hash;
83968
+ }
83969
+ static async read(_data, ..._args) {
83970
+ let peer = await index_js_1.TLObject.read(_data);
83971
+ let hash = await index_js_1.Primitive.Long.read(_data);
83972
+ return new Raw.payments.GetStarGiftCollections({ peer: peer, hash: hash });
83973
+ }
83974
+ write() {
83975
+ const b = new deps_js_1.BytesIO();
83976
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
83977
+ if (this.peer !== undefined) {
83978
+ b.write(this.peer.write());
83979
+ }
83980
+ if (this.hash !== undefined) {
83981
+ b.write(index_js_1.Primitive.Long.write(this.hash));
83982
+ }
83983
+ return deps_js_1.Buffer.from(b.buffer);
83984
+ }
83985
+ }
83986
+ payments.GetStarGiftCollections = GetStarGiftCollections;
83558
83987
  })(payments = Raw.payments || (Raw.payments = {}));
83559
83988
  let phone;
83560
83989
  (function (phone) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tgsnake/skema",
3
- "version": "1.1.0",
3
+ "version": "1.2.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",