@mtcute/tl 211.0.0 → 214.0.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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import _Long from 'long';
2
2
  export declare namespace tl {
3
- const LAYER = 211;
3
+ const LAYER = 214;
4
4
 
5
5
  function $extendTypes(types: Record<string, string>): void
6
6
 
@@ -3154,6 +3154,7 @@ export class RpcError extends Error {
3154
3154
  botVerification?: tl.TypeBotVerification;
3155
3155
  stargiftsCount?: number;
3156
3156
  sendPaidMessagesStars?: Long;
3157
+ mainTab?: tl.TypeProfileTab;
3157
3158
  }
3158
3159
  /**
3159
3160
  * Group member.
@@ -4520,10 +4521,7 @@ export class RpcError extends Error {
4520
4521
  */
4521
4522
  interface RawMessageActionSetChatTheme {
4522
4523
  _: 'messageActionSetChatTheme';
4523
- /**
4524
- * The emoji that identifies a chat theme
4525
- */
4526
- emoticon: string;
4524
+ theme: tl.TypeChatTheme;
4527
4525
  }
4528
4526
  /**
4529
4527
  * A user was accepted into the group by an admin
@@ -5001,6 +4999,8 @@ export class RpcError extends Error {
5001
4999
  upgraded?: boolean;
5002
5000
  refunded?: boolean;
5003
5001
  canUpgrade?: boolean;
5002
+ prepaidUpgrade?: boolean;
5003
+ upgradeSeparate?: boolean;
5004
5004
  /**
5005
5005
  * Info about the gift
5006
5006
  */
@@ -5025,6 +5025,8 @@ export class RpcError extends Error {
5025
5025
  fromId?: tl.TypePeer;
5026
5026
  peer?: tl.TypePeer;
5027
5027
  savedId?: Long;
5028
+ prepaidUpgradeHash?: string;
5029
+ giftMsgId?: number;
5028
5030
  }
5029
5031
  interface RawMessageActionStarGiftUnique {
5030
5032
  _: 'messageActionStarGiftUnique';
@@ -5032,6 +5034,7 @@ export class RpcError extends Error {
5032
5034
  transferred?: boolean;
5033
5035
  saved?: boolean;
5034
5036
  refunded?: boolean;
5037
+ prepaidUpgrade?: boolean;
5035
5038
  gift: tl.TypeStarGift;
5036
5039
  canExportAt?: number;
5037
5040
  transferStars?: Long;
@@ -5070,6 +5073,30 @@ export class RpcError extends Error {
5070
5073
  _: 'messageActionTodoAppendTasks';
5071
5074
  list: tl.TypeTodoItem[];
5072
5075
  }
5076
+ interface RawMessageActionSuggestedPostApproval {
5077
+ _: 'messageActionSuggestedPostApproval';
5078
+ rejected?: boolean;
5079
+ balanceTooLow?: boolean;
5080
+ rejectComment?: string;
5081
+ scheduleDate?: number;
5082
+ price?: tl.TypeStarsAmount;
5083
+ }
5084
+ interface RawMessageActionSuggestedPostSuccess {
5085
+ _: 'messageActionSuggestedPostSuccess';
5086
+ price: tl.TypeStarsAmount;
5087
+ }
5088
+ interface RawMessageActionSuggestedPostRefund {
5089
+ _: 'messageActionSuggestedPostRefund';
5090
+ payerInitiated?: boolean;
5091
+ }
5092
+ interface RawMessageActionGiftTon {
5093
+ _: 'messageActionGiftTon';
5094
+ currency: string;
5095
+ amount: Long;
5096
+ cryptoCurrency: string;
5097
+ cryptoAmount: Long;
5098
+ transactionId?: string;
5099
+ }
5073
5100
  /**
5074
5101
  * Chat
5075
5102
  */
@@ -5941,10 +5968,7 @@ export class RpcError extends Error {
5941
5968
  * this many seconds old, it must be deleted.
5942
5969
  */
5943
5970
  ttlPeriod?: number;
5944
- /**
5945
- * Emoji associated with chat theme
5946
- */
5947
- themeEmoticon?: string;
5971
+ theme?: tl.TypeChatTheme;
5948
5972
  /**
5949
5973
  * Anonymized text to be shown instead of the user's name on
5950
5974
  * forwarded messages
@@ -6045,6 +6069,8 @@ export class RpcError extends Error {
6045
6069
  starsRating?: tl.TypeStarsRating;
6046
6070
  starsMyPendingRating?: tl.TypeStarsRating;
6047
6071
  starsMyPendingRatingDate?: number;
6072
+ mainTab?: tl.TypeProfileTab;
6073
+ savedMusic?: tl.TypeDocument;
6048
6074
  }
6049
6075
  /**
6050
6076
  * A contact of the current user that is registered in the
@@ -8836,17 +8862,6 @@ export class RpcError extends Error {
8836
8862
  */
8837
8863
  reaction: tl.TypeReaction;
8838
8864
  }
8839
- /**
8840
- * A new
8841
- * <a href="https://corefork.telegram.org/api/revenue#revenue-statistics">channel
8842
- * ad revenue transaction was made, see here »</a> for more
8843
- * info.
8844
- */
8845
- interface RawUpdateBroadcastRevenueTransactions {
8846
- _: 'updateBroadcastRevenueTransactions';
8847
- peer: tl.TypePeer;
8848
- balances: tl.TypeBroadcastRevenueBalances;
8849
- }
8850
8865
  /**
8851
8866
  * The current account's
8852
8867
  * <a href="https://corefork.telegram.org/api/stars">Telegram
@@ -11325,6 +11340,9 @@ export class RpcError extends Error {
11325
11340
  interface RawInputStickerSetEmojiChannelDefaultStatuses {
11326
11341
  _: 'inputStickerSetEmojiChannelDefaultStatuses';
11327
11342
  }
11343
+ interface RawInputStickerSetTonGifts {
11344
+ _: 'inputStickerSetTonGifts';
11345
+ }
11328
11346
  /**
11329
11347
  * Represents a stickerset (stickerpack)
11330
11348
  */
@@ -20851,6 +20869,7 @@ export class RpcError extends Error {
20851
20869
  * each currency (2 for the majority of currencies).
20852
20870
  */
20853
20871
  amount: Long;
20872
+ spendPurposePeer?: tl.TypeInputPeer;
20854
20873
  }
20855
20874
  /**
20856
20875
  * Used to gift
@@ -23772,44 +23791,6 @@ export class RpcError extends Error {
23772
23791
  */
23773
23792
  option: Uint8Array;
23774
23793
  }
23775
- /**
23776
- * Describes earnings from sponsored messages in a channel in
23777
- * some time frame, see
23778
- * <a href="https://corefork.telegram.org/api/revenue">here
23779
- * »</a> for more info.
23780
- */
23781
- interface RawBroadcastRevenueTransactionProceeds {
23782
- _: 'broadcastRevenueTransactionProceeds';
23783
- amount: Long;
23784
- fromDate: number;
23785
- toDate: number;
23786
- }
23787
- /**
23788
- * Describes a
23789
- * <a href="https://corefork.telegram.org/api/revenue#withdrawing-revenue">withdrawal
23790
- * of ad earnings »</a>
23791
- */
23792
- interface RawBroadcastRevenueTransactionWithdrawal {
23793
- _: 'broadcastRevenueTransactionWithdrawal';
23794
- pending?: boolean;
23795
- failed?: boolean;
23796
- amount: Long;
23797
- date: number;
23798
- provider: string;
23799
- transactionDate?: number;
23800
- transactionUrl?: string;
23801
- }
23802
- /**
23803
- * Describes a
23804
- * <a href="https://corefork.telegram.org/api/revenue#withdrawing-revenue">refund
23805
- * for failed withdrawal of ad earnings »</a>
23806
- */
23807
- interface RawBroadcastRevenueTransactionRefund {
23808
- _: 'broadcastRevenueTransactionRefund';
23809
- amount: Long;
23810
- date: number;
23811
- provider: string;
23812
- }
23813
23794
  /**
23814
23795
  * Receive notifications about reactions made only by our
23815
23796
  * contacts.
@@ -23857,24 +23838,6 @@ export class RpcError extends Error {
23857
23838
  */
23858
23839
  showPreviews: boolean;
23859
23840
  }
23860
- /**
23861
- * Describes
23862
- * <a href="https://corefork.telegram.org/api/revenue">channel
23863
- * ad revenue balances »</a>.
23864
- *
23865
- * Note that all balances are in the smallest unit of the
23866
- * chosen cryptocurrency (currently nanotons for TONs, so to
23867
- * obtain a value in USD divide the chosen amount by
23868
- * <code>10^9</code>, and then divide by
23869
- * <code>usd_rate</code>).
23870
- */
23871
- interface RawBroadcastRevenueBalances {
23872
- _: 'broadcastRevenueBalances';
23873
- withdrawalEnabled?: boolean;
23874
- currentBalance: Long;
23875
- availableBalance: Long;
23876
- overallRevenue: Long;
23877
- }
23878
23841
  /**
23879
23842
  * Represents a
23880
23843
  * <a href="https://corefork.telegram.org/api/effects">message
@@ -24113,6 +24076,8 @@ export class RpcError extends Error {
24113
24076
  stargiftUpgrade?: boolean;
24114
24077
  businessTransfer?: boolean;
24115
24078
  stargiftResale?: boolean;
24079
+ postsSearch?: boolean;
24080
+ stargiftPrepaidUpgrade?: boolean;
24116
24081
  /**
24117
24082
  * Transaction ID.
24118
24083
  */
@@ -24648,12 +24613,15 @@ export class RpcError extends Error {
24648
24613
  releasedBy?: tl.TypePeer;
24649
24614
  perUserTotal?: number;
24650
24615
  perUserRemains?: number;
24616
+ lockedUntilDate?: number;
24651
24617
  }
24652
24618
  interface RawStarGiftUnique {
24653
24619
  _: 'starGiftUnique';
24654
24620
  requirePremium?: boolean;
24655
24621
  resaleTonOnly?: boolean;
24622
+ themeAvailable?: boolean;
24656
24623
  id: Long;
24624
+ giftId: Long;
24657
24625
  title: string;
24658
24626
  slug: string;
24659
24627
  num: number;
@@ -24666,6 +24634,9 @@ export class RpcError extends Error {
24666
24634
  giftAddress?: string;
24667
24635
  resellAmount?: tl.TypeStarsAmount[];
24668
24636
  releasedBy?: tl.TypePeer;
24637
+ valueAmount?: Long;
24638
+ valueCurrency?: string;
24639
+ themePeer?: tl.TypePeer;
24669
24640
  }
24670
24641
  /**
24671
24642
  * Report menu option
@@ -24868,6 +24839,10 @@ export class RpcError extends Error {
24868
24839
  */
24869
24840
  nanos: number;
24870
24841
  }
24842
+ interface RawStarsTonAmount {
24843
+ _: 'starsTonAmount';
24844
+ amount: Long;
24845
+ }
24871
24846
  interface RawBotVerifierSettings {
24872
24847
  _: 'botVerifierSettings';
24873
24848
  canModifyCustomDescription?: boolean;
@@ -24917,6 +24892,7 @@ export class RpcError extends Error {
24917
24892
  refunded?: boolean;
24918
24893
  canUpgrade?: boolean;
24919
24894
  pinnedToTop?: boolean;
24895
+ upgradeSeparate?: boolean;
24920
24896
  fromId?: tl.TypePeer;
24921
24897
  date: number;
24922
24898
  gift: tl.TypeStarGift;
@@ -24930,6 +24906,7 @@ export class RpcError extends Error {
24930
24906
  canTransferAt?: number;
24931
24907
  canResellAt?: number;
24932
24908
  collectionId?: number[];
24909
+ prepaidUpgradeHash?: string;
24933
24910
  }
24934
24911
  interface RawInputSavedStarGiftUser {
24935
24912
  _: 'inputSavedStarGiftUser';
@@ -25037,47 +25014,30 @@ export class RpcError extends Error {
25037
25014
  completedBy: number;
25038
25015
  date: number;
25039
25016
  }
25040
- interface RawMessageActionSuggestedPostApproval {
25041
- _: 'messageActionSuggestedPostApproval';
25017
+ interface RawSuggestedPost {
25018
+ _: 'suggestedPost';
25019
+ accepted?: boolean;
25042
25020
  rejected?: boolean;
25043
- balanceTooLow?: boolean;
25044
- rejectComment?: string;
25045
- scheduleDate?: number;
25046
25021
  price?: tl.TypeStarsAmount;
25047
- }
25048
- interface RawMessageActionSuggestedPostSuccess {
25049
- _: 'messageActionSuggestedPostSuccess';
25050
- price: tl.TypeStarsAmount;
25051
- }
25052
- interface RawMessageActionSuggestedPostRefund {
25053
- _: 'messageActionSuggestedPostRefund';
25054
- payerInitiated?: boolean;
25055
- }
25056
- interface RawMessageActionGiftTon {
25057
- _: 'messageActionGiftTon';
25058
- currency: string;
25059
- amount: Long;
25060
- cryptoCurrency: string;
25061
- cryptoAmount: Long;
25062
- transactionId?: string;
25063
- }
25064
- interface RawInputStickerSetTonGifts {
25065
- _: 'inputStickerSetTonGifts';
25022
+ scheduleDate?: number;
25066
25023
  }
25067
25024
  interface RawWebPageAttributeStarGiftCollection {
25068
25025
  _: 'webPageAttributeStarGiftCollection';
25069
25026
  icons: tl.TypeDocument[];
25070
25027
  }
25071
- interface RawStarsTonAmount {
25072
- _: 'starsTonAmount';
25073
- amount: Long;
25028
+ interface RawChatTheme {
25029
+ _: 'chatTheme';
25030
+ emoticon: string;
25074
25031
  }
25075
- interface RawSuggestedPost {
25076
- _: 'suggestedPost';
25077
- accepted?: boolean;
25078
- rejected?: boolean;
25079
- price?: tl.TypeStarsAmount;
25080
- scheduleDate?: number;
25032
+ interface RawChatThemeUniqueGift {
25033
+ _: 'chatThemeUniqueGift';
25034
+ gift: tl.TypeStarGift;
25035
+ themeSettings: tl.TypeThemeSettings[];
25036
+ }
25037
+ interface RawInputInvoiceStarGiftPrepaidUpgrade {
25038
+ _: 'inputInvoiceStarGiftPrepaidUpgrade';
25039
+ peer: tl.TypeInputPeer;
25040
+ hash: string;
25081
25041
  }
25082
25042
  interface RawStarsRating {
25083
25043
  _: 'starsRating';
@@ -25109,6 +25069,52 @@ export class RpcError extends Error {
25109
25069
  waitTill?: number;
25110
25070
  starsAmount: Long;
25111
25071
  }
25072
+ interface RawProfileTabPosts {
25073
+ _: 'profileTabPosts';
25074
+ }
25075
+ interface RawProfileTabGifts {
25076
+ _: 'profileTabGifts';
25077
+ }
25078
+ interface RawProfileTabMedia {
25079
+ _: 'profileTabMedia';
25080
+ }
25081
+ interface RawProfileTabFiles {
25082
+ _: 'profileTabFiles';
25083
+ }
25084
+ interface RawProfileTabMusic {
25085
+ _: 'profileTabMusic';
25086
+ }
25087
+ interface RawProfileTabVoice {
25088
+ _: 'profileTabVoice';
25089
+ }
25090
+ interface RawProfileTabLinks {
25091
+ _: 'profileTabLinks';
25092
+ }
25093
+ interface RawProfileTabGifs {
25094
+ _: 'profileTabGifs';
25095
+ }
25096
+ interface RawInputChatThemeEmpty {
25097
+ _: 'inputChatThemeEmpty';
25098
+ }
25099
+ interface RawInputChatTheme {
25100
+ _: 'inputChatTheme';
25101
+ emoticon: string;
25102
+ }
25103
+ interface RawInputChatThemeUniqueGift {
25104
+ _: 'inputChatThemeUniqueGift';
25105
+ slug: string;
25106
+ }
25107
+ /**
25108
+ * A new
25109
+ * <a href="https://corefork.telegram.org/api/revenue#revenue-statistics">channel
25110
+ * ad revenue transaction was made, see here »</a> for more
25111
+ * info.
25112
+ */
25113
+ interface RawUpdateBroadcastRevenueTransactions {
25114
+ _: 'updateBroadcastRevenueTransactions';
25115
+ peer: tl.TypePeer;
25116
+ balances: tl.TypeBroadcastRevenueBalances;
25117
+ }
25112
25118
  /**
25113
25119
  * Telegram Premium gift option
25114
25120
  */
@@ -25130,6 +25136,62 @@ export class RpcError extends Error {
25130
25136
  documentId: Long;
25131
25137
  until: number;
25132
25138
  }
25139
+ /**
25140
+ * Describes earnings from sponsored messages in a channel in
25141
+ * some time frame, see
25142
+ * <a href="https://corefork.telegram.org/api/revenue">here
25143
+ * »</a> for more info.
25144
+ */
25145
+ interface RawBroadcastRevenueTransactionProceeds {
25146
+ _: 'broadcastRevenueTransactionProceeds';
25147
+ amount: Long;
25148
+ fromDate: number;
25149
+ toDate: number;
25150
+ }
25151
+ /**
25152
+ * Describes a
25153
+ * <a href="https://corefork.telegram.org/api/revenue#withdrawing-revenue">withdrawal
25154
+ * of ad earnings »</a>
25155
+ */
25156
+ interface RawBroadcastRevenueTransactionWithdrawal {
25157
+ _: 'broadcastRevenueTransactionWithdrawal';
25158
+ pending?: boolean;
25159
+ failed?: boolean;
25160
+ amount: Long;
25161
+ date: number;
25162
+ provider: string;
25163
+ transactionDate?: number;
25164
+ transactionUrl?: string;
25165
+ }
25166
+ /**
25167
+ * Describes a
25168
+ * <a href="https://corefork.telegram.org/api/revenue#withdrawing-revenue">refund
25169
+ * for failed withdrawal of ad earnings »</a>
25170
+ */
25171
+ interface RawBroadcastRevenueTransactionRefund {
25172
+ _: 'broadcastRevenueTransactionRefund';
25173
+ amount: Long;
25174
+ date: number;
25175
+ provider: string;
25176
+ }
25177
+ /**
25178
+ * Describes
25179
+ * <a href="https://corefork.telegram.org/api/revenue">channel
25180
+ * ad revenue balances »</a>.
25181
+ *
25182
+ * Note that all balances are in the smallest unit of the
25183
+ * chosen cryptocurrency (currently nanotons for TONs, so to
25184
+ * obtain a value in USD divide the chosen amount by
25185
+ * <code>10^9</code>, and then divide by
25186
+ * <code>usd_rate</code>).
25187
+ */
25188
+ interface RawBroadcastRevenueBalances {
25189
+ _: 'broadcastRevenueBalances';
25190
+ withdrawalEnabled?: boolean;
25191
+ currentBalance: Long;
25192
+ availableBalance: Long;
25193
+ overallRevenue: Long;
25194
+ }
25133
25195
  /**
25134
25196
  * Represents a
25135
25197
  * <a href="https://corefork.telegram.org/api/gifts">gift</a>,
@@ -25607,7 +25669,7 @@ export class RpcError extends Error {
25607
25669
  /**
25608
25670
  * Object contains info on events occurred.
25609
25671
  */
25610
- type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.mtcute.RawDummyUpdate
25672
+ type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateBroadcastRevenueTransactions | tl.mtcute.RawDummyUpdate
25611
25673
  function isAnyUpdate(o: object): o is TypeUpdate
25612
25674
  /**
25613
25675
  * Object which is perceived by the client without a call on
@@ -26699,7 +26761,7 @@ export class RpcError extends Error {
26699
26761
  /**
26700
26762
  * An invoice
26701
26763
  */
26702
- type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift | tl.RawInputInvoiceStarGiftUpgrade | tl.RawInputInvoiceStarGiftTransfer | tl.RawInputInvoicePremiumGiftStars | tl.RawInputInvoiceBusinessBotTransferStars | tl.RawInputInvoiceStarGiftResale
26764
+ type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift | tl.RawInputInvoiceStarGiftUpgrade | tl.RawInputInvoiceStarGiftTransfer | tl.RawInputInvoicePremiumGiftStars | tl.RawInputInvoiceBusinessBotTransferStars | tl.RawInputInvoiceStarGiftResale | tl.RawInputInvoiceStarGiftPrepaidUpgrade
26703
26765
  function isAnyInputInvoice(o: object): o is TypeInputInvoice
26704
26766
  /**
26705
26767
  * Info about a Telegram Premium purchase
@@ -27208,13 +27270,6 @@ export class RpcError extends Error {
27208
27270
  */
27209
27271
  type TypeSponsoredMessageReportOption = tl.RawSponsoredMessageReportOption
27210
27272
  function isAnySponsoredMessageReportOption(o: object): o is TypeSponsoredMessageReportOption
27211
- /**
27212
- * A
27213
- * <a href="https://corefork.telegram.org/api/revenue">channel
27214
- * ad revenue »</a> transaction.
27215
- */
27216
- type TypeBroadcastRevenueTransaction = tl.RawBroadcastRevenueTransactionProceeds | tl.RawBroadcastRevenueTransactionWithdrawal | tl.RawBroadcastRevenueTransactionRefund
27217
- function isAnyBroadcastRevenueTransaction(o: object): o is TypeBroadcastRevenueTransaction
27218
27273
  /**
27219
27274
  * Reaction notification settings
27220
27275
  */
@@ -27227,12 +27282,6 @@ export class RpcError extends Error {
27227
27282
  */
27228
27283
  type TypeReactionsNotifySettings = tl.RawReactionsNotifySettings
27229
27284
  function isAnyReactionsNotifySettings(o: object): o is TypeReactionsNotifySettings
27230
- /**
27231
- * <a href="https://corefork.telegram.org/api/revenue">Channel
27232
- * ad revenue balance »</a> information.
27233
- */
27234
- type TypeBroadcastRevenueBalances = tl.RawBroadcastRevenueBalances
27235
- function isAnyBroadcastRevenueBalances(o: object): o is TypeBroadcastRevenueBalances
27236
27285
  /**
27237
27286
  * Describes a
27238
27287
  * <a href="https://corefork.telegram.org/api/effects">message
@@ -27420,6 +27469,8 @@ export class RpcError extends Error {
27420
27469
  function isAnyTodoCompletion(o: object): o is TypeTodoCompletion
27421
27470
  type TypeSuggestedPost = tl.RawSuggestedPost
27422
27471
  function isAnySuggestedPost(o: object): o is TypeSuggestedPost
27472
+ type TypeChatTheme = tl.RawChatTheme | tl.RawChatThemeUniqueGift
27473
+ function isAnyChatTheme(o: object): o is TypeChatTheme
27423
27474
  type TypeStarsRating = tl.RawStarsRating
27424
27475
  function isAnyStarsRating(o: object): o is TypeStarsRating
27425
27476
  type TypeStarGiftCollection = tl.RawStarGiftCollection
@@ -27428,11 +27479,28 @@ export class RpcError extends Error {
27428
27479
  function isAnyStoryAlbum(o: object): o is TypeStoryAlbum
27429
27480
  type TypeSearchPostsFlood = tl.RawSearchPostsFlood
27430
27481
  function isAnySearchPostsFlood(o: object): o is TypeSearchPostsFlood
27482
+ type TypeProfileTab = tl.RawProfileTabPosts | tl.RawProfileTabGifts | tl.RawProfileTabMedia | tl.RawProfileTabFiles | tl.RawProfileTabMusic | tl.RawProfileTabVoice | tl.RawProfileTabLinks | tl.RawProfileTabGifs
27483
+ function isAnyProfileTab(o: object): o is TypeProfileTab
27484
+ type TypeInputChatTheme = tl.RawInputChatThemeEmpty | tl.RawInputChatTheme | tl.RawInputChatThemeUniqueGift
27485
+ function isAnyInputChatTheme(o: object): o is TypeInputChatTheme
27431
27486
  /**
27432
27487
  * Telegram Premium gift option
27433
27488
  */
27434
27489
  type TypePremiumGiftOption = tl.RawPremiumGiftOption
27435
27490
  function isAnyPremiumGiftOption(o: object): o is TypePremiumGiftOption
27491
+ /**
27492
+ * A
27493
+ * <a href="https://corefork.telegram.org/api/revenue">channel
27494
+ * ad revenue »</a> transaction.
27495
+ */
27496
+ type TypeBroadcastRevenueTransaction = tl.RawBroadcastRevenueTransactionProceeds | tl.RawBroadcastRevenueTransactionWithdrawal | tl.RawBroadcastRevenueTransactionRefund
27497
+ function isAnyBroadcastRevenueTransaction(o: object): o is TypeBroadcastRevenueTransaction
27498
+ /**
27499
+ * <a href="https://corefork.telegram.org/api/revenue">Channel
27500
+ * ad revenue balance »</a> information.
27501
+ */
27502
+ type TypeBroadcastRevenueBalances = tl.RawBroadcastRevenueBalances
27503
+ function isAnyBroadcastRevenueBalances(o: object): o is TypeBroadcastRevenueBalances
27436
27504
  /**
27437
27505
  * Represents a
27438
27506
  * <a href="https://corefork.telegram.org/api/gifts">gift</a>,
@@ -28604,6 +28672,8 @@ export class RpcError extends Error {
28604
28672
  _: 'auth.sentCodePaymentRequired';
28605
28673
  storeProduct: string;
28606
28674
  phoneCodeHash: string;
28675
+ supportEmailAddress: string;
28676
+ supportEmailSubject: string;
28607
28677
  }
28608
28678
  /**
28609
28679
  * Contains user authorization info.
@@ -31934,6 +32004,7 @@ export class RpcError extends Error {
31934
32004
  interface RawWebPagePreview {
31935
32005
  _: 'messages.webPagePreview';
31936
32006
  media: tl.TypeMessageMedia;
32007
+ chats: tl.TypeChat[];
31937
32008
  users: tl.TypeUser[];
31938
32009
  }
31939
32010
  /**
@@ -35446,12 +35517,7 @@ export class RpcError extends Error {
35446
35517
  * Private chat where to change theme
35447
35518
  */
35448
35519
  peer: tl.TypeInputPeer;
35449
- /**
35450
- * Emoji, identifying a specific chat theme; a list of chat
35451
- * themes can be fetched using
35452
- * {@link account.RawGetChatThemesRequest}
35453
- */
35454
- emoticon: string;
35520
+ theme: tl.TypeInputChatTheme;
35455
35521
  }
35456
35522
  /**
35457
35523
  * Get which users read a specific message: only available for
@@ -39653,6 +39719,24 @@ export class RpcError extends Error {
39653
39719
  _: 'account.paidMessagesRevenue';
39654
39720
  starsAmount: Long;
39655
39721
  }
39722
+ interface RawChatThemesNotModified {
39723
+ _: 'account.chatThemesNotModified';
39724
+ }
39725
+ interface RawChatThemes {
39726
+ _: 'account.chatThemes';
39727
+ hash: Long;
39728
+ themes: tl.TypeChatTheme[];
39729
+ chats: tl.TypeChat[];
39730
+ users: tl.TypeUser[];
39731
+ nextOffset?: number;
39732
+ }
39733
+ interface RawSavedMusicIdsNotModified {
39734
+ _: 'account.savedMusicIdsNotModified';
39735
+ }
39736
+ interface RawSavedMusicIds {
39737
+ _: 'account.savedMusicIds';
39738
+ ids: Long[];
39739
+ }
39656
39740
  /**
39657
39741
  * Register device to receive
39658
39742
  * <a href="https://corefork.telegram.org/api/push-updates">PUSH
@@ -41633,10 +41717,34 @@ export class RpcError extends Error {
41633
41717
  /**
41634
41718
  * RPC method returns boolean
41635
41719
  */
41636
- interface RawAddNoPaidMessagesExceptionRequest {
41637
- _: 'account.addNoPaidMessagesException';
41638
- refundCharged?: boolean;
41639
- userId: tl.TypeInputUser;
41720
+ interface RawSetMainProfileTabRequest {
41721
+ _: 'account.setMainProfileTab';
41722
+ tab: tl.TypeProfileTab;
41723
+ }
41724
+ /**
41725
+ * RPC method returns boolean
41726
+ */
41727
+ interface RawSaveMusicRequest {
41728
+ _: 'account.saveMusic';
41729
+ unsave?: boolean;
41730
+ id: tl.TypeInputDocument;
41731
+ afterId?: tl.TypeInputDocument;
41732
+ }
41733
+ /**
41734
+ * RPC method returns {@link tl.account.TypeSavedMusicIds}
41735
+ */
41736
+ interface RawGetSavedMusicIdsRequest {
41737
+ _: 'account.getSavedMusicIds';
41738
+ hash: Long;
41739
+ }
41740
+ /**
41741
+ * RPC method returns {@link tl.account.TypeChatThemes}
41742
+ */
41743
+ interface RawGetUniqueGiftChatThemesRequest {
41744
+ _: 'account.getUniqueGiftChatThemes';
41745
+ offset: number;
41746
+ limit: number;
41747
+ hash: Long;
41640
41748
  }
41641
41749
  interface RpcCallReturn {
41642
41750
  'account.registerDevice': boolean
@@ -41754,7 +41862,10 @@ export class RpcError extends Error {
41754
41862
  'account.getCollectibleEmojiStatuses': tl.account.TypeEmojiStatuses
41755
41863
  'account.getPaidMessagesRevenue': tl.account.TypePaidMessagesRevenue
41756
41864
  'account.toggleNoPaidMessagesException': boolean
41757
- 'account.addNoPaidMessagesException': boolean
41865
+ 'account.setMainProfileTab': boolean
41866
+ 'account.saveMusic': boolean
41867
+ 'account.getSavedMusicIds': tl.account.TypeSavedMusicIds
41868
+ 'account.getUniqueGiftChatThemes': tl.account.TypeChatThemes
41758
41869
  }
41759
41870
  /**
41760
41871
  * Privacy rules
@@ -41887,6 +41998,10 @@ export class RpcError extends Error {
41887
41998
  function isAnyResolvedBusinessChatLinks(o: object): o is TypeResolvedBusinessChatLinks
41888
41999
  type TypePaidMessagesRevenue = tl.account.RawPaidMessagesRevenue
41889
42000
  function isAnyPaidMessagesRevenue(o: object): o is TypePaidMessagesRevenue
42001
+ type TypeChatThemes = tl.account.RawChatThemesNotModified | tl.account.RawChatThemes
42002
+ function isAnyChatThemes(o: object): o is TypeChatThemes
42003
+ type TypeSavedMusicIds = tl.account.RawSavedMusicIdsNotModified | tl.account.RawSavedMusicIds
42004
+ function isAnySavedMusicIds(o: object): o is TypeSavedMusicIds
41890
42005
  }
41891
42006
 
41892
42007
  namespace channels {
@@ -43417,6 +43532,14 @@ export class RpcError extends Error {
43417
43532
  _: 'channels.checkSearchPostsFlood';
43418
43533
  query?: string;
43419
43534
  }
43535
+ /**
43536
+ * RPC method returns boolean
43537
+ */
43538
+ interface RawSetMainProfileTabRequest {
43539
+ _: 'channels.setMainProfileTab';
43540
+ channel: tl.TypeInputChannel;
43541
+ tab: tl.TypeProfileTab;
43542
+ }
43420
43543
  interface RpcCallReturn {
43421
43544
  'channels.readHistory': boolean
43422
43545
  'channels.deleteMessages': tl.messages.TypeAffectedMessages
@@ -43483,6 +43606,7 @@ export class RpcError extends Error {
43483
43606
  'channels.toggleAutotranslation': tl.TypeUpdates
43484
43607
  'channels.getMessageAuthor': tl.TypeUser
43485
43608
  'channels.checkSearchPostsFlood': tl.TypeSearchPostsFlood
43609
+ 'channels.setMainProfileTab': boolean
43486
43610
  }
43487
43611
  /**
43488
43612
  * Channel/supergroup participants
@@ -44193,6 +44317,7 @@ export class RpcError extends Error {
44193
44317
  interface RawUniqueStarGift {
44194
44318
  _: 'payments.uniqueStarGift';
44195
44319
  gift: tl.TypeStarGift;
44320
+ chats: tl.TypeChat[];
44196
44321
  users: tl.TypeUser[];
44197
44322
  }
44198
44323
  interface RawSavedStarGifts {
@@ -44226,6 +44351,30 @@ export class RpcError extends Error {
44226
44351
  _: 'payments.starGiftCollections';
44227
44352
  collections: tl.TypeStarGiftCollection[];
44228
44353
  }
44354
+ interface RawUniqueStarGiftValueInfo {
44355
+ _: 'payments.uniqueStarGiftValueInfo';
44356
+ lastSaleOnFragment?: boolean;
44357
+ valueIsAverage?: boolean;
44358
+ currency: string;
44359
+ value: Long;
44360
+ initialSaleDate: number;
44361
+ initialSaleStars: Long;
44362
+ initialSalePrice: Long;
44363
+ lastSaleDate?: number;
44364
+ lastSalePrice?: Long;
44365
+ floorPrice?: Long;
44366
+ averagePrice?: Long;
44367
+ listedCount?: number;
44368
+ fragmentListedCount?: number;
44369
+ fragmentListedUrl?: string;
44370
+ }
44371
+ interface RawCheckCanSendGiftResultOk {
44372
+ _: 'payments.checkCanSendGiftResultOk';
44373
+ }
44374
+ interface RawCheckCanSendGiftResultFail {
44375
+ _: 'payments.checkCanSendGiftResultFail';
44376
+ reason: tl.TypeTextWithEntities;
44377
+ }
44229
44378
  /**
44230
44379
  * <a href="https://corefork.telegram.org/api/gifts">Gifts</a>
44231
44380
  * displayed on a user's profile.
@@ -44552,13 +44701,13 @@ export class RpcError extends Error {
44552
44701
  * descending order by date).
44553
44702
  */
44554
44703
  ascending?: boolean;
44704
+ ton?: boolean;
44555
44705
  /**
44556
44706
  * If set, fetches only transactions for the specified
44557
44707
  * <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
44558
44708
  * Star subscription »</a>.
44559
44709
  */
44560
44710
  subscriptionId?: string;
44561
- ton?: boolean;
44562
44711
  /**
44563
44712
  * Fetch the transaction history of the peer
44564
44713
  * ({@link RawInputPeerSelf} or a bot we own).
@@ -45049,9 +45198,10 @@ export class RpcError extends Error {
45049
45198
  excludeUnsaved?: boolean;
45050
45199
  excludeSaved?: boolean;
45051
45200
  excludeUnlimited?: boolean;
45052
- excludeLimited?: boolean;
45053
45201
  excludeUnique?: boolean;
45054
45202
  sortByValue?: boolean;
45203
+ excludeUpgradable?: boolean;
45204
+ excludeUnupgradable?: boolean;
45055
45205
  peer: tl.TypeInputPeer;
45056
45206
  collectionId?: number;
45057
45207
  offset: string;
@@ -45173,6 +45323,22 @@ export class RpcError extends Error {
45173
45323
  peer: tl.TypeInputPeer;
45174
45324
  hash: Long;
45175
45325
  }
45326
+ /**
45327
+ * RPC method returns
45328
+ * {@link tl.payments.TypeUniqueStarGiftValueInfo}
45329
+ */
45330
+ interface RawGetUniqueStarGiftValueInfoRequest {
45331
+ _: 'payments.getUniqueStarGiftValueInfo';
45332
+ slug: string;
45333
+ }
45334
+ /**
45335
+ * RPC method returns
45336
+ * {@link tl.payments.TypeCheckCanSendGiftResult}
45337
+ */
45338
+ interface RawCheckCanSendGiftRequest {
45339
+ _: 'payments.checkCanSendGift';
45340
+ giftId: Long;
45341
+ }
45176
45342
  /**
45177
45343
  * Checks whether Telegram Premium purchase is possible. Must
45178
45344
  * be called before in-store Premium purchase, official apps
@@ -45256,6 +45422,8 @@ export class RpcError extends Error {
45256
45422
  'payments.reorderStarGiftCollections': boolean
45257
45423
  'payments.deleteStarGiftCollection': boolean
45258
45424
  'payments.getStarGiftCollections': tl.payments.TypeStarGiftCollections
45425
+ 'payments.getUniqueStarGiftValueInfo': tl.payments.TypeUniqueStarGiftValueInfo
45426
+ 'payments.checkCanSendGift': tl.payments.TypeCheckCanSendGiftResult
45259
45427
  'payments.canPurchasePremium': boolean
45260
45428
  'payments.getUserStarGifts': tl.payments.TypeUserStarGifts
45261
45429
  }
@@ -45373,6 +45541,10 @@ export class RpcError extends Error {
45373
45541
  function isAnyResaleStarGifts(o: object): o is TypeResaleStarGifts
45374
45542
  type TypeStarGiftCollections = tl.payments.RawStarGiftCollectionsNotModified | tl.payments.RawStarGiftCollections
45375
45543
  function isAnyStarGiftCollections(o: object): o is TypeStarGiftCollections
45544
+ type TypeUniqueStarGiftValueInfo = tl.payments.RawUniqueStarGiftValueInfo
45545
+ function isAnyUniqueStarGiftValueInfo(o: object): o is TypeUniqueStarGiftValueInfo
45546
+ type TypeCheckCanSendGiftResult = tl.payments.RawCheckCanSendGiftResultOk | tl.payments.RawCheckCanSendGiftResultFail
45547
+ function isAnyCheckCanSendGiftResult(o: object): o is TypeCheckCanSendGiftResult
45376
45548
  /**
45377
45549
  * <a href="https://corefork.telegram.org/api/gifts">Gifts</a>
45378
45550
  * displayed on a user's profile.
@@ -47192,6 +47364,15 @@ export class RpcError extends Error {
47192
47364
  count: number;
47193
47365
  users: tl.TypeUser[];
47194
47366
  }
47367
+ interface RawSavedMusicNotModified {
47368
+ _: 'users.savedMusicNotModified';
47369
+ count: number;
47370
+ }
47371
+ interface RawSavedMusic {
47372
+ _: 'users.savedMusic';
47373
+ count: number;
47374
+ documents: tl.TypeDocument[];
47375
+ }
47195
47376
  /**
47196
47377
  * Returns basic user info according to their identifiers.
47197
47378
  *
@@ -47251,6 +47432,24 @@ export class RpcError extends Error {
47251
47432
  _: 'users.getRequirementsToContact';
47252
47433
  id: tl.TypeInputUser[];
47253
47434
  }
47435
+ /**
47436
+ * RPC method returns {@link tl.users.TypeSavedMusic}
47437
+ */
47438
+ interface RawGetSavedMusicRequest {
47439
+ _: 'users.getSavedMusic';
47440
+ id: tl.TypeInputUser;
47441
+ offset: number;
47442
+ limit: number;
47443
+ hash: Long;
47444
+ }
47445
+ /**
47446
+ * RPC method returns {@link tl.users.TypeSavedMusic}
47447
+ */
47448
+ interface RawGetSavedMusicByIDRequest {
47449
+ _: 'users.getSavedMusicByID';
47450
+ id: tl.TypeInputUser;
47451
+ documents: tl.TypeInputDocument[];
47452
+ }
47254
47453
  /**
47255
47454
  * Check whether we can write to the specified user (this
47256
47455
  * method can only be called by
@@ -47270,6 +47469,8 @@ export class RpcError extends Error {
47270
47469
  'users.getFullUser': tl.users.TypeUserFull
47271
47470
  'users.setSecureValueErrors': boolean
47272
47471
  'users.getRequirementsToContact': tl.TypeRequirementToContact[]
47472
+ 'users.getSavedMusic': tl.users.TypeSavedMusic
47473
+ 'users.getSavedMusicByID': tl.users.TypeSavedMusic
47273
47474
  'users.getIsPremiumRequiredToContact': boolean[]
47274
47475
  }
47275
47476
  /**
@@ -47280,6 +47481,8 @@ export class RpcError extends Error {
47280
47481
  function isAnyUserFull(o: object): o is TypeUserFull
47281
47482
  type TypeUsers = tl.users.RawUsers | tl.users.RawUsersSlice
47282
47483
  function isAnyUsers(o: object): o is TypeUsers
47484
+ type TypeSavedMusic = tl.users.RawSavedMusicNotModified | tl.users.RawSavedMusic
47485
+ function isAnySavedMusic(o: object): o is TypeSavedMusic
47283
47486
  }
47284
47487
 
47285
47488
  namespace chatlists {
@@ -49934,7 +50137,7 @@ export class RpcError extends Error {
49934
50137
  /**
49935
50138
  * Object contains info on events occurred.
49936
50139
  */
49937
- type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.mtcute.RawDummyUpdate
50140
+ type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateBroadcastRevenueTransactions | tl.mtcute.RawDummyUpdate
49938
50141
  function isAnyUpdate(o: object): o is TypeUpdate
49939
50142
  /**
49940
50143
  * Peer
@@ -50508,6 +50711,7 @@ export class RpcError extends Error {
50508
50711
  | tl.messages.RawReadSavedHistoryRequest
50509
50712
  | tl.messages.RawToggleTodoCompletedRequest
50510
50713
  | tl.messages.RawAppendTodoListRequest
50714
+ | tl.messages.RawToggleSuggestedPostApprovalRequest
50511
50715
  | tl.updates.RawGetStateRequest
50512
50716
  | tl.updates.RawGetDifferenceRequest
50513
50717
  | tl.updates.RawGetChannelDifferenceRequest
@@ -50754,9 +50958,6 @@ export class RpcError extends Error {
50754
50958
  | tl.stats.RawGetMessageStatsRequest
50755
50959
  | tl.stats.RawGetStoryStatsRequest
50756
50960
  | tl.stats.RawGetStoryPublicForwardsRequest
50757
- | tl.stats.RawGetBroadcastRevenueStatsRequest
50758
- | tl.stats.RawGetBroadcastRevenueWithdrawalUrlRequest
50759
- | tl.stats.RawGetBroadcastRevenueTransactionsRequest
50760
50961
  | tl.chatlists.RawExportChatlistInviteRequest
50761
50962
  | tl.chatlists.RawDeleteExportedInviteRequest
50762
50963
  | tl.chatlists.RawEditExportedInviteRequest
@@ -50807,13 +51008,21 @@ export class RpcError extends Error {
50807
51008
  | tl.smsjobs.RawGetSmsJobRequest
50808
51009
  | tl.smsjobs.RawFinishJobRequest
50809
51010
  | tl.fragment.RawGetCollectibleInfoRequest
50810
- | tl.messages.RawToggleSuggestedPostApprovalRequest
51011
+ | tl.account.RawSetMainProfileTabRequest
51012
+ | tl.account.RawSaveMusicRequest
51013
+ | tl.account.RawGetSavedMusicIdsRequest
51014
+ | tl.account.RawGetUniqueGiftChatThemesRequest
51015
+ | tl.users.RawGetSavedMusicRequest
51016
+ | tl.users.RawGetSavedMusicByIDRequest
50811
51017
  | tl.channels.RawCheckSearchPostsFloodRequest
51018
+ | tl.channels.RawSetMainProfileTabRequest
50812
51019
  | tl.payments.RawCreateStarGiftCollectionRequest
50813
51020
  | tl.payments.RawUpdateStarGiftCollectionRequest
50814
51021
  | tl.payments.RawReorderStarGiftCollectionsRequest
50815
51022
  | tl.payments.RawDeleteStarGiftCollectionRequest
50816
51023
  | tl.payments.RawGetStarGiftCollectionsRequest
51024
+ | tl.payments.RawGetUniqueStarGiftValueInfoRequest
51025
+ | tl.payments.RawCheckCanSendGiftRequest
50817
51026
  | tl.stories.RawCreateAlbumRequest
50818
51027
  | tl.stories.RawUpdateAlbumRequest
50819
51028
  | tl.stories.RawReorderAlbumsRequest
@@ -50823,7 +51032,9 @@ export class RpcError extends Error {
50823
51032
  | tl.users.RawGetIsPremiumRequiredToContactRequest
50824
51033
  | tl.payments.RawCanPurchasePremiumRequest
50825
51034
  | tl.payments.RawGetUserStarGiftsRequest
50826
- | tl.account.RawAddNoPaidMessagesExceptionRequest
51035
+ | tl.stats.RawGetBroadcastRevenueStatsRequest
51036
+ | tl.stats.RawGetBroadcastRevenueWithdrawalUrlRequest
51037
+ | tl.stats.RawGetBroadcastRevenueTransactionsRequest
50827
51038
  | tl.mtcute.RawCustomMethodRequest
50828
51039
 
50829
51040
  type TlObject =
@@ -50996,6 +51207,10 @@ export class RpcError extends Error {
50996
51207
  | tl.RawMessageActionConferenceCall
50997
51208
  | tl.RawMessageActionTodoCompletions
50998
51209
  | tl.RawMessageActionTodoAppendTasks
51210
+ | tl.RawMessageActionSuggestedPostApproval
51211
+ | tl.RawMessageActionSuggestedPostSuccess
51212
+ | tl.RawMessageActionSuggestedPostRefund
51213
+ | tl.RawMessageActionGiftTon
50999
51214
  | tl.RawDialog
51000
51215
  | tl.RawDialogFolder
51001
51216
  | tl.RawPhotoEmpty
@@ -51206,7 +51421,6 @@ export class RpcError extends Error {
51206
51421
  | tl.RawUpdateBotEditBusinessMessage
51207
51422
  | tl.RawUpdateBotDeleteBusinessMessage
51208
51423
  | tl.RawUpdateNewStoryReaction
51209
- | tl.RawUpdateBroadcastRevenueTransactions
51210
51424
  | tl.RawUpdateStarsBalance
51211
51425
  | tl.RawUpdateBusinessBotCallbackQuery
51212
51426
  | tl.RawUpdateStarsRevenueStatus
@@ -51380,6 +51594,7 @@ export class RpcError extends Error {
51380
51594
  | tl.RawInputStickerSetEmojiDefaultStatuses
51381
51595
  | tl.RawInputStickerSetEmojiDefaultTopicIcons
51382
51596
  | tl.RawInputStickerSetEmojiChannelDefaultStatuses
51597
+ | tl.RawInputStickerSetTonGifts
51383
51598
  | tl.RawStickerSet
51384
51599
  | tl.messages.RawStickerSet
51385
51600
  | tl.messages.RawStickerSetNotModified
@@ -52177,16 +52392,9 @@ export class RpcError extends Error {
52177
52392
  | tl.channels.RawSponsoredMessageReportResultChooseOption
52178
52393
  | tl.channels.RawSponsoredMessageReportResultAdsHidden
52179
52394
  | tl.channels.RawSponsoredMessageReportResultReported
52180
- | tl.stats.RawBroadcastRevenueStats
52181
- | tl.stats.RawBroadcastRevenueWithdrawalUrl
52182
- | tl.RawBroadcastRevenueTransactionProceeds
52183
- | tl.RawBroadcastRevenueTransactionWithdrawal
52184
- | tl.RawBroadcastRevenueTransactionRefund
52185
- | tl.stats.RawBroadcastRevenueTransactions
52186
52395
  | tl.RawReactionNotificationsFromContacts
52187
52396
  | tl.RawReactionNotificationsFromAll
52188
52397
  | tl.RawReactionsNotifySettings
52189
- | tl.RawBroadcastRevenueBalances
52190
52398
  | tl.RawAvailableEffect
52191
52399
  | tl.messages.RawAvailableEffectsNotModified
52192
52400
  | tl.messages.RawAvailableEffects
@@ -52235,6 +52443,7 @@ export class RpcError extends Error {
52235
52443
  | tl.payments.RawConnectedStarRefBots
52236
52444
  | tl.payments.RawSuggestedStarRefBots
52237
52445
  | tl.RawStarsAmount
52446
+ | tl.RawStarsTonAmount
52238
52447
  | tl.messages.RawFoundStickersNotModified
52239
52448
  | tl.messages.RawFoundStickers
52240
52449
  | tl.RawBotVerifierSettings
@@ -52276,14 +52485,13 @@ export class RpcError extends Error {
52276
52485
  | tl.RawTodoItem
52277
52486
  | tl.RawTodoList
52278
52487
  | tl.RawTodoCompletion
52279
- | tl.RawMessageActionSuggestedPostApproval
52280
- | tl.RawMessageActionSuggestedPostSuccess
52281
- | tl.RawMessageActionSuggestedPostRefund
52282
- | tl.RawMessageActionGiftTon
52283
- | tl.RawInputStickerSetTonGifts
52284
- | tl.RawWebPageAttributeStarGiftCollection
52285
- | tl.RawStarsTonAmount
52286
52488
  | tl.RawSuggestedPost
52489
+ | tl.RawWebPageAttributeStarGiftCollection
52490
+ | tl.RawChatTheme
52491
+ | tl.RawChatThemeUniqueGift
52492
+ | tl.account.RawChatThemesNotModified
52493
+ | tl.account.RawChatThemes
52494
+ | tl.RawInputInvoiceStarGiftPrepaidUpgrade
52287
52495
  | tl.RawStarsRating
52288
52496
  | tl.RawStarGiftCollection
52289
52497
  | tl.payments.RawStarGiftCollectionsNotModified
@@ -52292,8 +52500,34 @@ export class RpcError extends Error {
52292
52500
  | tl.stories.RawAlbumsNotModified
52293
52501
  | tl.stories.RawAlbums
52294
52502
  | tl.RawSearchPostsFlood
52503
+ | tl.payments.RawUniqueStarGiftValueInfo
52504
+ | tl.RawProfileTabPosts
52505
+ | tl.RawProfileTabGifts
52506
+ | tl.RawProfileTabMedia
52507
+ | tl.RawProfileTabFiles
52508
+ | tl.RawProfileTabMusic
52509
+ | tl.RawProfileTabVoice
52510
+ | tl.RawProfileTabLinks
52511
+ | tl.RawProfileTabGifs
52512
+ | tl.users.RawSavedMusicNotModified
52513
+ | tl.users.RawSavedMusic
52514
+ | tl.account.RawSavedMusicIdsNotModified
52515
+ | tl.account.RawSavedMusicIds
52516
+ | tl.payments.RawCheckCanSendGiftResultOk
52517
+ | tl.payments.RawCheckCanSendGiftResultFail
52518
+ | tl.RawInputChatThemeEmpty
52519
+ | tl.RawInputChatTheme
52520
+ | tl.RawInputChatThemeUniqueGift
52521
+ | tl.RawUpdateBroadcastRevenueTransactions
52295
52522
  | tl.RawPremiumGiftOption
52296
52523
  | tl.RawEmojiStatusUntil
52524
+ | tl.stats.RawBroadcastRevenueStats
52525
+ | tl.stats.RawBroadcastRevenueWithdrawalUrl
52526
+ | tl.RawBroadcastRevenueTransactionProceeds
52527
+ | tl.RawBroadcastRevenueTransactionWithdrawal
52528
+ | tl.RawBroadcastRevenueTransactionRefund
52529
+ | tl.stats.RawBroadcastRevenueTransactions
52530
+ | tl.RawBroadcastRevenueBalances
52297
52531
  | tl.RawUserStarGift
52298
52532
  | tl.payments.RawUserStarGifts
52299
52533
  | tl.mtcute.RawDummyUpdate
@@ -52714,6 +52948,7 @@ export class RpcError extends Error {
52714
52948
  | tl.messages.RawReadSavedHistoryRequest
52715
52949
  | tl.messages.RawToggleTodoCompletedRequest
52716
52950
  | tl.messages.RawAppendTodoListRequest
52951
+ | tl.messages.RawToggleSuggestedPostApprovalRequest
52717
52952
  | tl.updates.RawGetStateRequest
52718
52953
  | tl.updates.RawGetDifferenceRequest
52719
52954
  | tl.updates.RawGetChannelDifferenceRequest
@@ -52960,9 +53195,6 @@ export class RpcError extends Error {
52960
53195
  | tl.stats.RawGetMessageStatsRequest
52961
53196
  | tl.stats.RawGetStoryStatsRequest
52962
53197
  | tl.stats.RawGetStoryPublicForwardsRequest
52963
- | tl.stats.RawGetBroadcastRevenueStatsRequest
52964
- | tl.stats.RawGetBroadcastRevenueWithdrawalUrlRequest
52965
- | tl.stats.RawGetBroadcastRevenueTransactionsRequest
52966
53198
  | tl.chatlists.RawExportChatlistInviteRequest
52967
53199
  | tl.chatlists.RawDeleteExportedInviteRequest
52968
53200
  | tl.chatlists.RawEditExportedInviteRequest
@@ -53013,13 +53245,21 @@ export class RpcError extends Error {
53013
53245
  | tl.smsjobs.RawGetSmsJobRequest
53014
53246
  | tl.smsjobs.RawFinishJobRequest
53015
53247
  | tl.fragment.RawGetCollectibleInfoRequest
53016
- | tl.messages.RawToggleSuggestedPostApprovalRequest
53248
+ | tl.account.RawSetMainProfileTabRequest
53249
+ | tl.account.RawSaveMusicRequest
53250
+ | tl.account.RawGetSavedMusicIdsRequest
53251
+ | tl.account.RawGetUniqueGiftChatThemesRequest
53252
+ | tl.users.RawGetSavedMusicRequest
53253
+ | tl.users.RawGetSavedMusicByIDRequest
53017
53254
  | tl.channels.RawCheckSearchPostsFloodRequest
53255
+ | tl.channels.RawSetMainProfileTabRequest
53018
53256
  | tl.payments.RawCreateStarGiftCollectionRequest
53019
53257
  | tl.payments.RawUpdateStarGiftCollectionRequest
53020
53258
  | tl.payments.RawReorderStarGiftCollectionsRequest
53021
53259
  | tl.payments.RawDeleteStarGiftCollectionRequest
53022
53260
  | tl.payments.RawGetStarGiftCollectionsRequest
53261
+ | tl.payments.RawGetUniqueStarGiftValueInfoRequest
53262
+ | tl.payments.RawCheckCanSendGiftRequest
53023
53263
  | tl.stories.RawCreateAlbumRequest
53024
53264
  | tl.stories.RawUpdateAlbumRequest
53025
53265
  | tl.stories.RawReorderAlbumsRequest
@@ -53029,7 +53269,9 @@ export class RpcError extends Error {
53029
53269
  | tl.users.RawGetIsPremiumRequiredToContactRequest
53030
53270
  | tl.payments.RawCanPurchasePremiumRequest
53031
53271
  | tl.payments.RawGetUserStarGiftsRequest
53032
- | tl.account.RawAddNoPaidMessagesExceptionRequest
53272
+ | tl.stats.RawGetBroadcastRevenueStatsRequest
53273
+ | tl.stats.RawGetBroadcastRevenueWithdrawalUrlRequest
53274
+ | tl.stats.RawGetBroadcastRevenueTransactionsRequest
53033
53275
  | tl.mtcute.RawCustomMethodRequest
53034
53276
  }
53035
53277