@mtcute/tl 185.1.0 → 187.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
@@ -2,7 +2,7 @@
2
2
  import _Long from 'long';
3
3
 
4
4
  export declare namespace tl {
5
- const LAYER = 185;
5
+ const LAYER = 187;
6
6
 
7
7
  function $extendTypes(types: Record<string, string>): void
8
8
 
@@ -1307,6 +1307,7 @@ export class RpcError extends Error {
1307
1307
  * Photos or videos.
1308
1308
  */
1309
1309
  extendedMedia: tl.TypeInputMedia[];
1310
+ payload?: string;
1310
1311
  }
1311
1312
  /**
1312
1313
  * Empty constructor, remove group photo.
@@ -2537,6 +2538,7 @@ export class RpcError extends Error {
2537
2538
  * No stories from the channel are visible.
2538
2539
  */
2539
2540
  storiesUnavailable?: boolean;
2541
+ signatureProfiles?: boolean;
2540
2542
  /**
2541
2543
  * ID of the channel, see
2542
2544
  * <a href="https://corefork.telegram.org/api/peers#peer-id">here
@@ -2633,6 +2635,7 @@ export class RpcError extends Error {
2633
2635
  * »</a> for more info.
2634
2636
  */
2635
2637
  level?: number;
2638
+ subscriptionUntilDate?: number;
2636
2639
  }
2637
2640
  /**
2638
2641
  * Indicates a channel/supergroup we can't access because we
@@ -2895,6 +2898,7 @@ export class RpcError extends Error {
2895
2898
  * Star revenue statistics »</a> for this channel.
2896
2899
  */
2897
2900
  canViewStarsRevenue?: boolean;
2901
+ paidReactionsAvailable?: boolean;
2898
2902
  /**
2899
2903
  * ID of the channel
2900
2904
  */
@@ -3895,7 +3899,8 @@ export class RpcError extends Error {
3895
3899
  * <a href="https://corefork.telegram.org/api/premium">Telegram
3896
3900
  * Premium</a> subscription in the giveaway.
3897
3901
  */
3898
- months: number;
3902
+ months?: number;
3903
+ stars?: Long;
3899
3904
  /**
3900
3905
  * The end date of the giveaway.
3901
3906
  */
@@ -3951,7 +3956,8 @@ export class RpcError extends Error {
3951
3956
  * <a href="https://corefork.telegram.org/api/premium">Telegram
3952
3957
  * Premium</a> subscription in the giveaway.
3953
3958
  */
3954
- months: number;
3959
+ months?: number;
3960
+ stars?: Long;
3955
3961
  /**
3956
3962
  * Can contain a textual description of additional giveaway
3957
3963
  * prizes.
@@ -4686,6 +4692,7 @@ export class RpcError extends Error {
4686
4692
  */
4687
4693
  interface RawMessageActionGiveawayLaunch {
4688
4694
  _: 'messageActionGiveawayLaunch';
4695
+ stars?: Long;
4689
4696
  }
4690
4697
  /**
4691
4698
  * A
@@ -4694,6 +4701,7 @@ export class RpcError extends Error {
4694
4701
  */
4695
4702
  interface RawMessageActionGiveawayResults {
4696
4703
  _: 'messageActionGiveawayResults';
4704
+ stars?: boolean;
4697
4705
  /**
4698
4706
  * Number of winners in the giveaway
4699
4707
  */
@@ -4810,6 +4818,14 @@ export class RpcError extends Error {
4810
4818
  */
4811
4819
  transactionId?: string;
4812
4820
  }
4821
+ interface RawMessageActionPrizeStars {
4822
+ _: 'messageActionPrizeStars';
4823
+ unclaimed?: boolean;
4824
+ stars: Long;
4825
+ transactionId: string;
4826
+ boostPeer: tl.TypePeer;
4827
+ giveawayMsgId: number;
4828
+ }
4813
4829
  /**
4814
4830
  * Chat
4815
4831
  */
@@ -8614,6 +8630,16 @@ export class RpcError extends Error {
8614
8630
  */
8615
8631
  status: tl.TypeStarsRevenueStatus;
8616
8632
  }
8633
+ interface RawUpdateBotPurchasedPaidMedia {
8634
+ _: 'updateBotPurchasedPaidMedia';
8635
+ userId: number;
8636
+ payload: string;
8637
+ qts: number;
8638
+ }
8639
+ interface RawUpdatePaidReactionPrivacy {
8640
+ _: 'updatePaidReactionPrivacy';
8641
+ private: boolean;
8642
+ }
8617
8643
  /**
8618
8644
  * Too many updates, it is necessary to execute
8619
8645
  * {@link updates.RawGetDifferenceRequest}.
@@ -10581,11 +10607,13 @@ export class RpcError extends Error {
10581
10607
  * Number of users that have already used this link to join
10582
10608
  */
10583
10609
  requested?: number;
10610
+ subscriptionExpired?: number;
10584
10611
  /**
10585
10612
  * Custom description for the invite link, visible only to
10586
10613
  * admins
10587
10614
  */
10588
10615
  title?: string;
10616
+ subscriptionPricing?: tl.TypeStarsSubscriptionPricing;
10589
10617
  }
10590
10618
  /**
10591
10619
  * Used in updates and in the channel log to indicate when a
@@ -10653,6 +10681,7 @@ export class RpcError extends Error {
10653
10681
  * scam: be careful when interacting with it.
10654
10682
  */
10655
10683
  fake?: boolean;
10684
+ canRefulfillSubscription?: boolean;
10656
10685
  /**
10657
10686
  * Chat/supergroup/channel title
10658
10687
  */
@@ -10678,6 +10707,8 @@ export class RpcError extends Error {
10678
10707
  * color palette ID</a>
10679
10708
  */
10680
10709
  color: number;
10710
+ subscriptionPricing?: tl.TypeStarsSubscriptionPricing;
10711
+ subscriptionFormId?: Long;
10681
10712
  }
10682
10713
  /**
10683
10714
  * A chat invitation that also allows peeking into the group to
@@ -10943,6 +10974,7 @@ export class RpcError extends Error {
10943
10974
  * button for bots
10944
10975
  */
10945
10976
  menuButton?: tl.TypeBotMenuButton;
10977
+ privacyPolicyUrl?: string;
10946
10978
  }
10947
10979
  /**
10948
10980
  * Bot keyboard button
@@ -11979,6 +12011,7 @@ export class RpcError extends Error {
11979
12011
  * Date joined
11980
12012
  */
11981
12013
  date: number;
12014
+ subscriptionUntilDate?: number;
11982
12015
  }
11983
12016
  /**
11984
12017
  * Myself
@@ -12001,6 +12034,7 @@ export class RpcError extends Error {
12001
12034
  * When did I join the channel/supergroup
12002
12035
  */
12003
12036
  date: number;
12037
+ subscriptionUntilDate?: number;
12004
12038
  }
12005
12039
  /**
12006
12040
  * Channel/supergroup creator
@@ -15585,6 +15619,15 @@ export class RpcError extends Error {
15585
15619
  */
15586
15620
  newStickerset: tl.TypeInputStickerSet;
15587
15621
  }
15622
+ interface RawChannelAdminLogEventActionToggleSignatureProfiles {
15623
+ _: 'channelAdminLogEventActionToggleSignatureProfiles';
15624
+ newValue: boolean;
15625
+ }
15626
+ interface RawChannelAdminLogEventActionParticipantSubExtend {
15627
+ _: 'channelAdminLogEventActionParticipantSubExtend';
15628
+ prevParticipant: tl.TypeChannelParticipant;
15629
+ newParticipant: tl.TypeChannelParticipant;
15630
+ }
15588
15631
  /**
15589
15632
  * Admin log event
15590
15633
  */
@@ -15704,6 +15747,7 @@ export class RpcError extends Error {
15704
15747
  * events
15705
15748
  */
15706
15749
  forums?: boolean;
15750
+ subExtend?: boolean;
15707
15751
  }
15708
15752
  /**
15709
15753
  * Popular contact
@@ -19244,6 +19288,7 @@ export class RpcError extends Error {
19244
19288
  * sent in groups.
19245
19289
  */
19246
19290
  photo?: tl.TypePhoto;
19291
+ media?: tl.TypeMessageMedia;
19247
19292
  /**
19248
19293
  * If set, the sponsored message should use the
19249
19294
  * <a href="https://corefork.telegram.org/api/colors">message
@@ -19375,6 +19420,7 @@ export class RpcError extends Error {
19375
19420
  * List of recent peers and their reactions
19376
19421
  */
19377
19422
  recentReactions?: tl.TypeMessagePeerReaction[];
19423
+ topReactors?: tl.TypeMessageReactor[];
19378
19424
  }
19379
19425
  /**
19380
19426
  * Animations associated with a message reaction
@@ -19917,6 +19963,10 @@ export class RpcError extends Error {
19917
19963
  */
19918
19964
  purpose: tl.TypeInputStorePaymentPurpose;
19919
19965
  }
19966
+ interface RawInputInvoiceChatInviteSubscription {
19967
+ _: 'inputInvoiceChatInviteSubscription';
19968
+ hash: string;
19969
+ }
19920
19970
  /**
19921
19971
  * Info about a Telegram Premium purchase
19922
19972
  */
@@ -20140,6 +20190,21 @@ export class RpcError extends Error {
20140
20190
  */
20141
20191
  amount: Long;
20142
20192
  }
20193
+ interface RawInputStorePaymentStarsGiveaway {
20194
+ _: 'inputStorePaymentStarsGiveaway';
20195
+ onlyNewSubscribers?: boolean;
20196
+ winnersAreVisible?: boolean;
20197
+ stars: Long;
20198
+ boostPeer: tl.TypeInputPeer;
20199
+ additionalPeers?: tl.TypeInputPeer[];
20200
+ countriesIso2?: string[];
20201
+ prizeDescription?: string;
20202
+ randomId: Long;
20203
+ untilDate: number;
20204
+ currency: string;
20205
+ amount: Long;
20206
+ users: number;
20207
+ }
20143
20208
  /**
20144
20209
  * Telegram Premium gift option
20145
20210
  */
@@ -20257,6 +20322,9 @@ export class RpcError extends Error {
20257
20322
  */
20258
20323
  documentId: Long;
20259
20324
  }
20325
+ interface RawReactionPaid {
20326
+ _: 'reactionPaid';
20327
+ }
20260
20328
  /**
20261
20329
  * No reactions are allowed
20262
20330
  */
@@ -21741,6 +21809,14 @@ export class RpcError extends Error {
21741
21809
  */
21742
21810
  date: number;
21743
21811
  }
21812
+ interface RawPrepaidStarsGiveaway {
21813
+ _: 'prepaidStarsGiveaway';
21814
+ id: Long;
21815
+ stars: Long;
21816
+ quantity: number;
21817
+ boosts: number;
21818
+ date: number;
21819
+ }
21744
21820
  /**
21745
21821
  * Info about one or more
21746
21822
  * <a href="https://corefork.telegram.org/api/boost">boosts</a>
@@ -21803,6 +21879,7 @@ export class RpcError extends Error {
21803
21879
  * otherwise it counts as a single boost.
21804
21880
  */
21805
21881
  multiplier?: number;
21882
+ stars?: Long;
21806
21883
  }
21807
21884
  /**
21808
21885
  * Contains information about a single
@@ -23057,6 +23134,7 @@ export class RpcError extends Error {
23057
23134
  */
23058
23135
  interface RawBroadcastRevenueBalances {
23059
23136
  _: 'broadcastRevenueBalances';
23137
+ withdrawalEnabled?: boolean;
23060
23138
  /**
23061
23139
  * Amount of not-yet-withdrawn cryptocurrency.
23062
23140
  */
@@ -23291,6 +23369,7 @@ export class RpcError extends Error {
23291
23369
  * <code>peer.peer</code>.
23292
23370
  */
23293
23371
  gift?: boolean;
23372
+ reaction?: boolean;
23294
23373
  /**
23295
23374
  * Transaction ID.
23296
23375
  */
@@ -23357,6 +23436,8 @@ export class RpcError extends Error {
23357
23436
  * media »</a>.
23358
23437
  */
23359
23438
  extendedMedia?: tl.TypeMessageMedia[];
23439
+ subscriptionPeriod?: number;
23440
+ giveawayPostId?: number;
23360
23441
  }
23361
23442
  /**
23362
23443
  * A story found using
@@ -23497,6 +23578,47 @@ export class RpcError extends Error {
23497
23578
  */
23498
23579
  media: tl.TypeMessageMedia;
23499
23580
  }
23581
+ interface RawStarsSubscriptionPricing {
23582
+ _: 'starsSubscriptionPricing';
23583
+ period: number;
23584
+ amount: Long;
23585
+ }
23586
+ interface RawStarsSubscription {
23587
+ _: 'starsSubscription';
23588
+ canceled?: boolean;
23589
+ canRefulfill?: boolean;
23590
+ missingBalance?: boolean;
23591
+ id: string;
23592
+ peer: tl.TypePeer;
23593
+ untilDate: number;
23594
+ pricing: tl.TypeStarsSubscriptionPricing;
23595
+ chatInviteHash?: string;
23596
+ }
23597
+ interface RawMessageReactor {
23598
+ _: 'messageReactor';
23599
+ top?: boolean;
23600
+ my?: boolean;
23601
+ anonymous?: boolean;
23602
+ peerId?: tl.TypePeer;
23603
+ count: number;
23604
+ }
23605
+ interface RawStarsGiveawayOption {
23606
+ _: 'starsGiveawayOption';
23607
+ extended?: boolean;
23608
+ default?: boolean;
23609
+ stars: Long;
23610
+ yearlyBoosts: number;
23611
+ storeProduct?: string;
23612
+ currency: string;
23613
+ amount: Long;
23614
+ winners: tl.TypeStarsGiveawayWinnersOption[];
23615
+ }
23616
+ interface RawStarsGiveawayWinnersOption {
23617
+ _: 'starsGiveawayWinnersOption';
23618
+ default?: boolean;
23619
+ users: number;
23620
+ perUserStars: Long;
23621
+ }
23500
23622
  /**
23501
23623
  * 0-N updates of this type may be returned only when invoking
23502
23624
  * {@link messages.RawAddChatUserRequest},
@@ -23555,35 +23677,6 @@ export class RpcError extends Error {
23555
23677
  */
23556
23678
  photo?: tl.TypePhoto;
23557
23679
  }
23558
- /**
23559
- * Used to top up the
23560
- * <a href="https://corefork.telegram.org/api/stars">Telegram
23561
- * Stars balance</a> using the Play Store/App Store flow
23562
- * (official apps only).
23563
- */
23564
- interface RawInputStorePaymentStars {
23565
- _: 'inputStorePaymentStars';
23566
- /**
23567
- * Amount of stars to topup
23568
- */
23569
- stars: Long;
23570
- /**
23571
- * Three-letter ISO 4217
23572
- * <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
23573
- * code
23574
- */
23575
- currency: string;
23576
- /**
23577
- * Total price in the smallest units of the currency (integer,
23578
- * not float/double). For example, for a price of <code>US$
23579
- * 1.45</code> pass <code>amount = 145</code>. See the exp
23580
- * parameter in
23581
- * <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>,
23582
- * it shows the number of digits past the decimal point for
23583
- * each currency (2 for the majority of currencies).
23584
- */
23585
- amount: Long;
23586
- }
23587
23680
  /**
23588
23681
  * RPC method returns {@link tl.TypeError}
23589
23682
  */
@@ -23948,7 +24041,7 @@ export class RpcError extends Error {
23948
24041
  /**
23949
24042
  * Object describing actions connected to a service message.
23950
24043
  */
23951
- type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe | tl.RawMessageActionPaymentRefunded | tl.RawMessageActionGiftStars
24044
+ type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe | tl.RawMessageActionPaymentRefunded | tl.RawMessageActionGiftStars | tl.RawMessageActionPrizeStars
23952
24045
  function isAnyMessageAction(o: object): o is TypeMessageAction
23953
24046
  /**
23954
24047
  * Chat info.
@@ -24031,7 +24124,7 @@ export class RpcError extends Error {
24031
24124
  /**
24032
24125
  * Object contains info on events occurred.
24033
24126
  */
24034
- 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.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
24127
+ 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.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
24035
24128
  function isAnyUpdate(o: object): o is TypeUpdate
24036
24129
  /**
24037
24130
  * Object which is perceived by the client without a call on
@@ -24496,7 +24589,7 @@ export class RpcError extends Error {
24496
24589
  /**
24497
24590
  * Channel admin log event
24498
24591
  */
24499
- type TypeChannelAdminLogEventAction = tl.RawChannelAdminLogEventActionChangeTitle | tl.RawChannelAdminLogEventActionChangeAbout | tl.RawChannelAdminLogEventActionChangeUsername | tl.RawChannelAdminLogEventActionChangePhoto | tl.RawChannelAdminLogEventActionToggleInvites | tl.RawChannelAdminLogEventActionToggleSignatures | tl.RawChannelAdminLogEventActionUpdatePinned | tl.RawChannelAdminLogEventActionEditMessage | tl.RawChannelAdminLogEventActionDeleteMessage | tl.RawChannelAdminLogEventActionParticipantJoin | tl.RawChannelAdminLogEventActionParticipantLeave | tl.RawChannelAdminLogEventActionParticipantInvite | tl.RawChannelAdminLogEventActionParticipantToggleBan | tl.RawChannelAdminLogEventActionParticipantToggleAdmin | tl.RawChannelAdminLogEventActionChangeStickerSet | tl.RawChannelAdminLogEventActionTogglePreHistoryHidden | tl.RawChannelAdminLogEventActionDefaultBannedRights | tl.RawChannelAdminLogEventActionStopPoll | tl.RawChannelAdminLogEventActionChangeLinkedChat | tl.RawChannelAdminLogEventActionChangeLocation | tl.RawChannelAdminLogEventActionToggleSlowMode | tl.RawChannelAdminLogEventActionStartGroupCall | tl.RawChannelAdminLogEventActionDiscardGroupCall | tl.RawChannelAdminLogEventActionParticipantMute | tl.RawChannelAdminLogEventActionParticipantUnmute | tl.RawChannelAdminLogEventActionToggleGroupCallSetting | tl.RawChannelAdminLogEventActionParticipantJoinByInvite | tl.RawChannelAdminLogEventActionExportedInviteDelete | tl.RawChannelAdminLogEventActionExportedInviteRevoke | tl.RawChannelAdminLogEventActionExportedInviteEdit | tl.RawChannelAdminLogEventActionParticipantVolume | tl.RawChannelAdminLogEventActionChangeHistoryTTL | tl.RawChannelAdminLogEventActionParticipantJoinByRequest | tl.RawChannelAdminLogEventActionToggleNoForwards | tl.RawChannelAdminLogEventActionSendMessage | tl.RawChannelAdminLogEventActionChangeAvailableReactions | tl.RawChannelAdminLogEventActionChangeUsernames | tl.RawChannelAdminLogEventActionToggleForum | tl.RawChannelAdminLogEventActionCreateTopic | tl.RawChannelAdminLogEventActionEditTopic | tl.RawChannelAdminLogEventActionDeleteTopic | tl.RawChannelAdminLogEventActionPinTopic | tl.RawChannelAdminLogEventActionToggleAntiSpam | tl.RawChannelAdminLogEventActionChangePeerColor | tl.RawChannelAdminLogEventActionChangeProfilePeerColor | tl.RawChannelAdminLogEventActionChangeWallpaper | tl.RawChannelAdminLogEventActionChangeEmojiStatus | tl.RawChannelAdminLogEventActionChangeEmojiStickerSet
24592
+ type TypeChannelAdminLogEventAction = tl.RawChannelAdminLogEventActionChangeTitle | tl.RawChannelAdminLogEventActionChangeAbout | tl.RawChannelAdminLogEventActionChangeUsername | tl.RawChannelAdminLogEventActionChangePhoto | tl.RawChannelAdminLogEventActionToggleInvites | tl.RawChannelAdminLogEventActionToggleSignatures | tl.RawChannelAdminLogEventActionUpdatePinned | tl.RawChannelAdminLogEventActionEditMessage | tl.RawChannelAdminLogEventActionDeleteMessage | tl.RawChannelAdminLogEventActionParticipantJoin | tl.RawChannelAdminLogEventActionParticipantLeave | tl.RawChannelAdminLogEventActionParticipantInvite | tl.RawChannelAdminLogEventActionParticipantToggleBan | tl.RawChannelAdminLogEventActionParticipantToggleAdmin | tl.RawChannelAdminLogEventActionChangeStickerSet | tl.RawChannelAdminLogEventActionTogglePreHistoryHidden | tl.RawChannelAdminLogEventActionDefaultBannedRights | tl.RawChannelAdminLogEventActionStopPoll | tl.RawChannelAdminLogEventActionChangeLinkedChat | tl.RawChannelAdminLogEventActionChangeLocation | tl.RawChannelAdminLogEventActionToggleSlowMode | tl.RawChannelAdminLogEventActionStartGroupCall | tl.RawChannelAdminLogEventActionDiscardGroupCall | tl.RawChannelAdminLogEventActionParticipantMute | tl.RawChannelAdminLogEventActionParticipantUnmute | tl.RawChannelAdminLogEventActionToggleGroupCallSetting | tl.RawChannelAdminLogEventActionParticipantJoinByInvite | tl.RawChannelAdminLogEventActionExportedInviteDelete | tl.RawChannelAdminLogEventActionExportedInviteRevoke | tl.RawChannelAdminLogEventActionExportedInviteEdit | tl.RawChannelAdminLogEventActionParticipantVolume | tl.RawChannelAdminLogEventActionChangeHistoryTTL | tl.RawChannelAdminLogEventActionParticipantJoinByRequest | tl.RawChannelAdminLogEventActionToggleNoForwards | tl.RawChannelAdminLogEventActionSendMessage | tl.RawChannelAdminLogEventActionChangeAvailableReactions | tl.RawChannelAdminLogEventActionChangeUsernames | tl.RawChannelAdminLogEventActionToggleForum | tl.RawChannelAdminLogEventActionCreateTopic | tl.RawChannelAdminLogEventActionEditTopic | tl.RawChannelAdminLogEventActionDeleteTopic | tl.RawChannelAdminLogEventActionPinTopic | tl.RawChannelAdminLogEventActionToggleAntiSpam | tl.RawChannelAdminLogEventActionChangePeerColor | tl.RawChannelAdminLogEventActionChangeProfilePeerColor | tl.RawChannelAdminLogEventActionChangeWallpaper | tl.RawChannelAdminLogEventActionChangeEmojiStatus | tl.RawChannelAdminLogEventActionChangeEmojiStickerSet | tl.RawChannelAdminLogEventActionToggleSignatureProfiles | tl.RawChannelAdminLogEventActionParticipantSubExtend
24500
24593
  function isAnyChannelAdminLogEventAction(o: object): o is TypeChannelAdminLogEventAction
24501
24594
  /**
24502
24595
  * An event in a channel admin log
@@ -25123,12 +25216,12 @@ export class RpcError extends Error {
25123
25216
  /**
25124
25217
  * An invoice
25125
25218
  */
25126
- type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars
25219
+ type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription
25127
25220
  function isAnyInputInvoice(o: object): o is TypeInputInvoice
25128
25221
  /**
25129
25222
  * Info about a Telegram Premium purchase
25130
25223
  */
25131
- type TypeInputStorePaymentPurpose = tl.RawInputStorePaymentPremiumSubscription | tl.RawInputStorePaymentGiftPremium | tl.RawInputStorePaymentPremiumGiftCode | tl.RawInputStorePaymentPremiumGiveaway | tl.RawInputStorePaymentStarsTopup | tl.RawInputStorePaymentStarsGift | tl.RawInputStorePaymentStars
25224
+ type TypeInputStorePaymentPurpose = tl.RawInputStorePaymentPremiumSubscription | tl.RawInputStorePaymentGiftPremium | tl.RawInputStorePaymentPremiumGiftCode | tl.RawInputStorePaymentPremiumGiveaway | tl.RawInputStorePaymentStarsTopup | tl.RawInputStorePaymentStarsGift | tl.RawInputStorePaymentStarsGiveaway
25132
25225
  function isAnyInputStorePaymentPurpose(o: object): o is TypeInputStorePaymentPurpose
25133
25226
  /**
25134
25227
  * Telegram Premium gift option
@@ -25150,7 +25243,7 @@ export class RpcError extends Error {
25150
25243
  * <a href="https://corefork.telegram.org/api/reactions">Message
25151
25244
  * reaction</a>
25152
25245
  */
25153
- type TypeReaction = tl.RawReactionEmpty | tl.RawReactionEmoji | tl.RawReactionCustomEmoji
25246
+ type TypeReaction = tl.RawReactionEmpty | tl.RawReactionEmoji | tl.RawReactionCustomEmoji | tl.RawReactionPaid
25154
25247
  function isAnyReaction(o: object): o is TypeReaction
25155
25248
  /**
25156
25249
  * Available chat reactions
@@ -25362,7 +25455,7 @@ export class RpcError extends Error {
25362
25455
  * <a href="https://corefork.telegram.org/api/giveaways">prepaid
25363
25456
  * giveaway »</a>.
25364
25457
  */
25365
- type TypePrepaidGiveaway = tl.RawPrepaidGiveaway
25458
+ type TypePrepaidGiveaway = tl.RawPrepaidGiveaway | tl.RawPrepaidStarsGiveaway
25366
25459
  function isAnyPrepaidGiveaway(o: object): o is TypePrepaidGiveaway
25367
25460
  /**
25368
25461
  * Info about one or more
@@ -25737,6 +25830,16 @@ export class RpcError extends Error {
25737
25830
  */
25738
25831
  type TypeBotPreviewMedia = tl.RawBotPreviewMedia
25739
25832
  function isAnyBotPreviewMedia(o: object): o is TypeBotPreviewMedia
25833
+ type TypeStarsSubscriptionPricing = tl.RawStarsSubscriptionPricing
25834
+ function isAnyStarsSubscriptionPricing(o: object): o is TypeStarsSubscriptionPricing
25835
+ type TypeStarsSubscription = tl.RawStarsSubscription
25836
+ function isAnyStarsSubscription(o: object): o is TypeStarsSubscription
25837
+ type TypeMessageReactor = tl.RawMessageReactor
25838
+ function isAnyMessageReactor(o: object): o is TypeMessageReactor
25839
+ type TypeStarsGiveawayOption = tl.RawStarsGiveawayOption
25840
+ function isAnyStarsGiveawayOption(o: object): o is TypeStarsGiveawayOption
25841
+ type TypeStarsGiveawayWinnersOption = tl.RawStarsGiveawayWinnersOption
25842
+ function isAnyStarsGiveawayWinnersOption(o: object): o is TypeStarsGiveawayWinnersOption
25740
25843
  /**
25741
25844
  * Contains the webview URL with appropriate theme parameters
25742
25845
  * added
@@ -31187,6 +31290,7 @@ export class RpcError extends Error {
31187
31290
  * administrators
31188
31291
  */
31189
31292
  title?: string;
31293
+ subscriptionPricing?: tl.TypeStarsSubscriptionPricing;
31190
31294
  }
31191
31295
  /**
31192
31296
  * Check the validity of a chat invite link and get basic info
@@ -33483,6 +33587,7 @@ export class RpcError extends Error {
33483
33587
  * requests »</a>
33484
33588
  */
33485
33589
  requested?: boolean;
33590
+ subscriptionExpired?: boolean;
33486
33591
  /**
33487
33592
  * Chat
33488
33593
  */
@@ -33885,6 +33990,7 @@ export class RpcError extends Error {
33885
33990
  * {@link RawChatFull}.
33886
33991
  */
33887
33992
  reactionsLimit?: number;
33993
+ paidEnabled?: boolean;
33888
33994
  }
33889
33995
  /**
33890
33996
  * Obtain available
@@ -35409,6 +35515,32 @@ export class RpcError extends Error {
35409
35515
  */
35410
35516
  platform: string;
35411
35517
  }
35518
+ /**
35519
+ * RPC method returns {@link tl.TypeUpdates}
35520
+ */
35521
+ interface RawSendPaidReactionRequest {
35522
+ _: 'messages.sendPaidReaction';
35523
+ peer: tl.TypeInputPeer;
35524
+ msgId: number;
35525
+ count: number;
35526
+ randomId: Long;
35527
+ private?: boolean;
35528
+ }
35529
+ /**
35530
+ * RPC method returns boolean
35531
+ */
35532
+ interface RawTogglePaidReactionPrivacyRequest {
35533
+ _: 'messages.togglePaidReactionPrivacy';
35534
+ peer: tl.TypeInputPeer;
35535
+ msgId: number;
35536
+ private: boolean;
35537
+ }
35538
+ /**
35539
+ * RPC method returns {@link tl.TypeUpdates}
35540
+ */
35541
+ interface RawGetPaidReactionPrivacyRequest {
35542
+ _: 'messages.getPaidReactionPrivacy';
35543
+ }
35412
35544
  interface RpcCallReturn {
35413
35545
  'messages.getMessages': tl.messages.TypeMessages
35414
35546
  'messages.getDialogs': tl.messages.TypeDialogs
@@ -35624,6 +35756,9 @@ export class RpcError extends Error {
35624
35756
  'messages.deleteFactCheck': tl.TypeUpdates
35625
35757
  'messages.getFactCheck': tl.TypeFactCheck[]
35626
35758
  'messages.requestMainWebView': tl.TypeWebViewResult
35759
+ 'messages.sendPaidReaction': tl.TypeUpdates
35760
+ 'messages.togglePaidReactionPrivacy': boolean
35761
+ 'messages.getPaidReactionPrivacy': tl.TypeUpdates
35627
35762
  }
35628
35763
  /**
35629
35764
  * Object contains a list of chats with messages and auxiliary
@@ -40085,14 +40220,12 @@ export class RpcError extends Error {
40085
40220
  */
40086
40221
  interface RawToggleSignaturesRequest {
40087
40222
  _: 'channels.toggleSignatures';
40223
+ signaturesEnabled?: boolean;
40224
+ profilesEnabled?: boolean;
40088
40225
  /**
40089
40226
  * Channel
40090
40227
  */
40091
40228
  channel: tl.TypeInputChannel;
40092
- /**
40093
- * Value
40094
- */
40095
- enabled: boolean;
40096
40229
  }
40097
40230
  /**
40098
40231
  * Get
@@ -41679,6 +41812,7 @@ export class RpcError extends Error {
41679
41812
  * »</a> for more info on the full giveaway flow.
41680
41813
  */
41681
41814
  giftCodeSlug?: string;
41815
+ starsPrize?: Long;
41682
41816
  /**
41683
41817
  * End date of the giveaway. May be bigger than the end date
41684
41818
  * specified in parameters of the giveaway.
@@ -41693,7 +41827,7 @@ export class RpcError extends Error {
41693
41827
  * <a href="https://corefork.telegram.org/api/links#premium-giftcode-links">gift
41694
41828
  * codes</a>.
41695
41829
  */
41696
- activatedCount: number;
41830
+ activatedCount?: number;
41697
41831
  }
41698
41832
  /**
41699
41833
  * Info about the current
@@ -41706,11 +41840,14 @@ export class RpcError extends Error {
41706
41840
  * Current Telegram Star balance.
41707
41841
  */
41708
41842
  balance: Long;
41843
+ subscriptions?: tl.TypeStarsSubscription[];
41844
+ subscriptionsNextOffset?: string;
41845
+ subscriptionsMissingBalance?: Long;
41709
41846
  /**
41710
41847
  * List of Telegram Star transactions (partial if
41711
41848
  * <code>next_offset</code> is set).
41712
41849
  */
41713
- history: tl.TypeStarsTransaction[];
41850
+ history?: tl.TypeStarsTransaction[];
41714
41851
  /**
41715
41852
  * Offset to use to fetch more transactions from the
41716
41853
  * transaction history using
@@ -42117,6 +42254,7 @@ export class RpcError extends Error {
42117
42254
  * descending order by date).
42118
42255
  */
42119
42256
  ascending?: boolean;
42257
+ subscriptionId?: string;
42120
42258
  /**
42121
42259
  * Fetch the transaction history of the peer
42122
42260
  * ({@link RawInputPeerSelf} or a bot we own).
@@ -42268,6 +42406,38 @@ export class RpcError extends Error {
42268
42406
  */
42269
42407
  userId?: tl.TypeInputUser;
42270
42408
  }
42409
+ /**
42410
+ * RPC method returns {@link tl.payments.TypeStarsStatus}
42411
+ */
42412
+ interface RawGetStarsSubscriptionsRequest {
42413
+ _: 'payments.getStarsSubscriptions';
42414
+ missingBalance?: boolean;
42415
+ peer: tl.TypeInputPeer;
42416
+ offset: string;
42417
+ }
42418
+ /**
42419
+ * RPC method returns boolean
42420
+ */
42421
+ interface RawChangeStarsSubscriptionRequest {
42422
+ _: 'payments.changeStarsSubscription';
42423
+ peer: tl.TypeInputPeer;
42424
+ subscriptionId: string;
42425
+ canceled?: boolean;
42426
+ }
42427
+ /**
42428
+ * RPC method returns boolean
42429
+ */
42430
+ interface RawFulfillStarsSubscriptionRequest {
42431
+ _: 'payments.fulfillStarsSubscription';
42432
+ peer: tl.TypeInputPeer;
42433
+ subscriptionId: string;
42434
+ }
42435
+ /**
42436
+ * RPC method returns {@link tl.TypeStarsGiveawayOption} array
42437
+ */
42438
+ interface RawGetStarsGiveawayOptionsRequest {
42439
+ _: 'payments.getStarsGiveawayOptions';
42440
+ }
42271
42441
  interface RpcCallReturn {
42272
42442
  'payments.getPaymentForm': tl.payments.TypePaymentForm
42273
42443
  'payments.getPaymentReceipt': tl.payments.TypePaymentReceipt
@@ -42295,6 +42465,10 @@ export class RpcError extends Error {
42295
42465
  'payments.getStarsRevenueAdsAccountUrl': tl.payments.TypeStarsRevenueAdsAccountUrl
42296
42466
  'payments.getStarsTransactionsByID': tl.payments.TypeStarsStatus
42297
42467
  'payments.getStarsGiftOptions': tl.TypeStarsGiftOption[]
42468
+ 'payments.getStarsSubscriptions': tl.payments.TypeStarsStatus
42469
+ 'payments.changeStarsSubscription': boolean
42470
+ 'payments.fulfillStarsSubscription': boolean
42471
+ 'payments.getStarsGiveawayOptions': tl.TypeStarsGiveawayOption[]
42298
42472
  }
42299
42473
  /**
42300
42474
  * Payment form
@@ -46678,7 +46852,7 @@ export class RpcError extends Error {
46678
46852
  /**
46679
46853
  * Object contains info on events occurred.
46680
46854
  */
46681
- 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.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
46855
+ 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.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
46682
46856
  function isAnyUpdate(o: object): o is TypeUpdate
46683
46857
  /**
46684
46858
  * Peer
@@ -47231,6 +47405,9 @@ export class RpcError extends Error {
47231
47405
  | tl.messages.RawDeleteFactCheckRequest
47232
47406
  | tl.messages.RawGetFactCheckRequest
47233
47407
  | tl.messages.RawRequestMainWebViewRequest
47408
+ | tl.messages.RawSendPaidReactionRequest
47409
+ | tl.messages.RawTogglePaidReactionPrivacyRequest
47410
+ | tl.messages.RawGetPaidReactionPrivacyRequest
47234
47411
  | tl.updates.RawGetStateRequest
47235
47412
  | tl.updates.RawGetDifferenceRequest
47236
47413
  | tl.updates.RawGetChannelDifferenceRequest
@@ -47386,6 +47563,10 @@ export class RpcError extends Error {
47386
47563
  | tl.payments.RawGetStarsRevenueAdsAccountUrlRequest
47387
47564
  | tl.payments.RawGetStarsTransactionsByIDRequest
47388
47565
  | tl.payments.RawGetStarsGiftOptionsRequest
47566
+ | tl.payments.RawGetStarsSubscriptionsRequest
47567
+ | tl.payments.RawChangeStarsSubscriptionRequest
47568
+ | tl.payments.RawFulfillStarsSubscriptionRequest
47569
+ | tl.payments.RawGetStarsGiveawayOptionsRequest
47389
47570
  | tl.stickers.RawCreateStickerSetRequest
47390
47571
  | tl.stickers.RawRemoveStickerFromSetRequest
47391
47572
  | tl.stickers.RawChangeStickerPositionRequest
@@ -47656,6 +47837,7 @@ export class RpcError extends Error {
47656
47837
  | tl.RawMessageActionRequestedPeerSentMe
47657
47838
  | tl.RawMessageActionPaymentRefunded
47658
47839
  | tl.RawMessageActionGiftStars
47840
+ | tl.RawMessageActionPrizeStars
47659
47841
  | tl.RawDialog
47660
47842
  | tl.RawDialogFolder
47661
47843
  | tl.RawPhotoEmpty
@@ -47869,6 +48051,8 @@ export class RpcError extends Error {
47869
48051
  | tl.RawUpdateStarsBalance
47870
48052
  | tl.RawUpdateBusinessBotCallbackQuery
47871
48053
  | tl.RawUpdateStarsRevenueStatus
48054
+ | tl.RawUpdateBotPurchasedPaidMedia
48055
+ | tl.RawUpdatePaidReactionPrivacy
47872
48056
  | tl.updates.RawState
47873
48057
  | tl.updates.RawDifferenceEmpty
47874
48058
  | tl.updates.RawDifference
@@ -48329,6 +48513,8 @@ export class RpcError extends Error {
48329
48513
  | tl.RawChannelAdminLogEventActionChangeWallpaper
48330
48514
  | tl.RawChannelAdminLogEventActionChangeEmojiStatus
48331
48515
  | tl.RawChannelAdminLogEventActionChangeEmojiStickerSet
48516
+ | tl.RawChannelAdminLogEventActionToggleSignatureProfiles
48517
+ | tl.RawChannelAdminLogEventActionParticipantSubExtend
48332
48518
  | tl.RawChannelAdminLogEvent
48333
48519
  | tl.channels.RawAdminLogResults
48334
48520
  | tl.RawChannelAdminLogEventsFilter
@@ -48606,6 +48792,7 @@ export class RpcError extends Error {
48606
48792
  | tl.RawInputInvoiceSlug
48607
48793
  | tl.RawInputInvoicePremiumGiftCode
48608
48794
  | tl.RawInputInvoiceStars
48795
+ | tl.RawInputInvoiceChatInviteSubscription
48609
48796
  | tl.payments.RawExportedInvoice
48610
48797
  | tl.messages.RawTranscribedAudio
48611
48798
  | tl.help.RawPremiumPromo
@@ -48615,6 +48802,7 @@ export class RpcError extends Error {
48615
48802
  | tl.RawInputStorePaymentPremiumGiveaway
48616
48803
  | tl.RawInputStorePaymentStarsTopup
48617
48804
  | tl.RawInputStorePaymentStarsGift
48805
+ | tl.RawInputStorePaymentStarsGiveaway
48618
48806
  | tl.RawPremiumGiftOption
48619
48807
  | tl.RawPaymentFormMethod
48620
48808
  | tl.RawEmojiStatusEmpty
@@ -48625,6 +48813,7 @@ export class RpcError extends Error {
48625
48813
  | tl.RawReactionEmpty
48626
48814
  | tl.RawReactionEmoji
48627
48815
  | tl.RawReactionCustomEmoji
48816
+ | tl.RawReactionPaid
48628
48817
  | tl.RawChatReactionsNone
48629
48818
  | tl.RawChatReactionsAll
48630
48819
  | tl.RawChatReactionsSome
@@ -48717,6 +48906,7 @@ export class RpcError extends Error {
48717
48906
  | tl.payments.RawGiveawayInfo
48718
48907
  | tl.payments.RawGiveawayInfoResults
48719
48908
  | tl.RawPrepaidGiveaway
48909
+ | tl.RawPrepaidStarsGiveaway
48720
48910
  | tl.RawBoost
48721
48911
  | tl.premium.RawBoostsList
48722
48912
  | tl.RawMyBoost
@@ -48834,11 +49024,15 @@ export class RpcError extends Error {
48834
49024
  | tl.bots.RawPopularAppBots
48835
49025
  | tl.RawBotPreviewMedia
48836
49026
  | tl.bots.RawPreviewInfo
49027
+ | tl.RawStarsSubscriptionPricing
49028
+ | tl.RawStarsSubscription
49029
+ | tl.RawMessageReactor
49030
+ | tl.RawStarsGiveawayOption
49031
+ | tl.RawStarsGiveawayWinnersOption
48837
49032
  | tl.RawUpdateGroupInvitePrivacyForbidden
48838
49033
  | tl.RawSimpleWebViewResultUrl
48839
49034
  | tl.RawAppWebViewResultUrl
48840
49035
  | tl.RawSponsoredWebPage
48841
- | tl.RawInputStorePaymentStars
48842
49036
  | tl.mtcute.RawDummyUpdate
48843
49037
  | tl.mtcute.RawDummyInputPeerMinUser
48844
49038
  | tl.mtcute.RawDummyInputPeerMinChannel
@@ -49236,6 +49430,9 @@ export class RpcError extends Error {
49236
49430
  | tl.messages.RawDeleteFactCheckRequest
49237
49431
  | tl.messages.RawGetFactCheckRequest
49238
49432
  | tl.messages.RawRequestMainWebViewRequest
49433
+ | tl.messages.RawSendPaidReactionRequest
49434
+ | tl.messages.RawTogglePaidReactionPrivacyRequest
49435
+ | tl.messages.RawGetPaidReactionPrivacyRequest
49239
49436
  | tl.updates.RawGetStateRequest
49240
49437
  | tl.updates.RawGetDifferenceRequest
49241
49438
  | tl.updates.RawGetChannelDifferenceRequest
@@ -49391,6 +49588,10 @@ export class RpcError extends Error {
49391
49588
  | tl.payments.RawGetStarsRevenueAdsAccountUrlRequest
49392
49589
  | tl.payments.RawGetStarsTransactionsByIDRequest
49393
49590
  | tl.payments.RawGetStarsGiftOptionsRequest
49591
+ | tl.payments.RawGetStarsSubscriptionsRequest
49592
+ | tl.payments.RawChangeStarsSubscriptionRequest
49593
+ | tl.payments.RawFulfillStarsSubscriptionRequest
49594
+ | tl.payments.RawGetStarsGiveawayOptionsRequest
49394
49595
  | tl.stickers.RawCreateStickerSetRequest
49395
49596
  | tl.stickers.RawRemoveStickerFromSetRequest
49396
49597
  | tl.stickers.RawChangeStickerPositionRequest