@mtcute/tl 200.0.0 → 202.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 = 200;
3
+ const LAYER = 202;
4
4
 
5
5
  function $extendTypes(types: Record<string, string>): void
6
6
 
@@ -5018,6 +5018,24 @@ export class RpcError extends Error {
5018
5018
  peer?: tl.TypePeer;
5019
5019
  savedId?: Long;
5020
5020
  }
5021
+ interface RawMessageActionPaidMessagesRefunded {
5022
+ _: 'messageActionPaidMessagesRefunded';
5023
+ count: number;
5024
+ stars: Long;
5025
+ }
5026
+ interface RawMessageActionPaidMessagesPrice {
5027
+ _: 'messageActionPaidMessagesPrice';
5028
+ stars: Long;
5029
+ }
5030
+ interface RawMessageActionConferenceCall {
5031
+ _: 'messageActionConferenceCall';
5032
+ missed?: boolean;
5033
+ active?: boolean;
5034
+ video?: boolean;
5035
+ callId: Long;
5036
+ duration?: number;
5037
+ otherParticipants?: tl.TypePeer[];
5038
+ }
5021
5039
  /**
5022
5040
  * Chat
5023
5041
  */
@@ -5833,6 +5851,7 @@ export class RpcError extends Error {
5833
5851
  * our emoji status »</a>
5834
5852
  */
5835
5853
  botCanManageEmojiStatus?: boolean;
5854
+ displayGiftsButton?: boolean;
5836
5855
  /**
5837
5856
  * User ID
5838
5857
  */
@@ -5988,6 +6007,7 @@ export class RpcError extends Error {
5988
6007
  starrefProgram?: tl.TypeStarRefProgram;
5989
6008
  botVerification?: tl.TypeBotVerification;
5990
6009
  sendPaidMessagesStars?: Long;
6010
+ disallowedGifts?: tl.TypeDisallowedGiftsSettings;
5991
6011
  }
5992
6012
  /**
5993
6013
  * A contact of the current user that is registered in the
@@ -8902,6 +8922,17 @@ export class RpcError extends Error {
8902
8922
  */
8903
8923
  private: tl.TypePaidReactionPrivacy;
8904
8924
  }
8925
+ interface RawUpdateSentPhoneCode {
8926
+ _: 'updateSentPhoneCode';
8927
+ sentCode: tl.auth.TypeSentCode;
8928
+ }
8929
+ interface RawUpdateGroupCallChainBlocks {
8930
+ _: 'updateGroupCallChainBlocks';
8931
+ call: tl.TypeInputGroupCall;
8932
+ subChainId: number;
8933
+ blocks: Uint8Array[];
8934
+ nextOffset: number;
8935
+ }
8905
8936
  /**
8906
8937
  * Too many updates, it is necessary to execute
8907
8938
  * {@link updates.RawGetDifferenceRequest}.
@@ -14503,9 +14534,9 @@ export class RpcError extends Error {
14503
14534
  interface RawPhoneCallDiscardReasonBusy {
14504
14535
  _: 'phoneCallDiscardReasonBusy';
14505
14536
  }
14506
- interface RawPhoneCallDiscardReasonAllowGroupCall {
14507
- _: 'phoneCallDiscardReasonAllowGroupCall';
14508
- encryptedKey: Uint8Array;
14537
+ interface RawPhoneCallDiscardReasonMigrateConferenceCall {
14538
+ _: 'phoneCallDiscardReasonMigrateConferenceCall';
14539
+ slug: string;
14509
14540
  }
14510
14541
  /**
14511
14542
  * Represents a json-encoded object
@@ -15013,7 +15044,6 @@ export class RpcError extends Error {
15013
15044
  * When was the phone call received
15014
15045
  */
15015
15046
  receiveDate?: number;
15016
- conferenceCall?: tl.TypeInputGroupCall;
15017
15047
  }
15018
15048
  /**
15019
15049
  * Requested phone call
@@ -15053,7 +15083,6 @@ export class RpcError extends Error {
15053
15083
  * Call protocol info to be passed to libtgvoip
15054
15084
  */
15055
15085
  protocol: tl.TypePhoneCallProtocol;
15056
- conferenceCall?: tl.TypeInputGroupCall;
15057
15086
  }
15058
15087
  /**
15059
15088
  * An accepted phone call
@@ -15094,7 +15123,6 @@ export class RpcError extends Error {
15094
15123
  * Protocol to use for phone call
15095
15124
  */
15096
15125
  protocol: tl.TypePhoneCallProtocol;
15097
- conferenceCall?: tl.TypeInputGroupCall;
15098
15126
  }
15099
15127
  /**
15100
15128
  * Phone call
@@ -15109,6 +15137,7 @@ export class RpcError extends Error {
15109
15137
  * Whether this is a video call
15110
15138
  */
15111
15139
  video?: boolean;
15140
+ conferenceSupported?: boolean;
15112
15141
  /**
15113
15142
  * Call ID
15114
15143
  */
@@ -15155,7 +15184,6 @@ export class RpcError extends Error {
15155
15184
  * Custom JSON-encoded call parameters to be passed to tgcalls.
15156
15185
  */
15157
15186
  customParameters?: tl.TypeDataJSON;
15158
- conferenceCall?: tl.TypeInputGroupCall;
15159
15187
  }
15160
15188
  /**
15161
15189
  * Indicates a discarded phone call
@@ -15189,7 +15217,6 @@ export class RpcError extends Error {
15189
15217
  * Duration of the phone call in seconds
15190
15218
  */
15191
15219
  duration?: number;
15192
- conferenceCall?: tl.TypeInputGroupCall;
15193
15220
  }
15194
15221
  /**
15195
15222
  * Identifies an endpoint that can be used to connect to the
@@ -19149,7 +19176,9 @@ export class RpcError extends Error {
19149
19176
  * enable this flag.
19150
19177
  */
19151
19178
  newNoncontactPeersRequirePremium?: boolean;
19179
+ displayGiftsButton?: boolean;
19152
19180
  noncontactPeersPaidStars?: Long;
19181
+ disallowedGifts?: tl.TypeDisallowedGiftsSettings;
19153
19182
  }
19154
19183
  /**
19155
19184
  * View, forward counter + info about replies of a specific
@@ -19377,6 +19406,8 @@ export class RpcError extends Error {
19377
19406
  * still include listeners.
19378
19407
  */
19379
19408
  listenersHidden?: boolean;
19409
+ conference?: boolean;
19410
+ creator?: boolean;
19380
19411
  /**
19381
19412
  * Group call ID
19382
19413
  */
@@ -19418,7 +19449,7 @@ export class RpcError extends Error {
19418
19449
  * Version
19419
19450
  */
19420
19451
  version: number;
19421
- conferenceFromCall?: Long;
19452
+ inviteLink?: string;
19422
19453
  }
19423
19454
  /**
19424
19455
  * Points to a specific group call
@@ -19434,6 +19465,14 @@ export class RpcError extends Error {
19434
19465
  */
19435
19466
  accessHash: Long;
19436
19467
  }
19468
+ interface RawInputGroupCallSlug {
19469
+ _: 'inputGroupCallSlug';
19470
+ slug: string;
19471
+ }
19472
+ interface RawInputGroupCallInviteMessage {
19473
+ _: 'inputGroupCallInviteMessage';
19474
+ msgId: number;
19475
+ }
19437
19476
  /**
19438
19477
  * Info about a group call participant
19439
19478
  */
@@ -20526,6 +20565,11 @@ export class RpcError extends Error {
20526
20565
  months: number;
20527
20566
  message?: tl.TypeTextWithEntities;
20528
20567
  }
20568
+ interface RawInputInvoiceBusinessBotTransferStars {
20569
+ _: 'inputInvoiceBusinessBotTransferStars';
20570
+ bot: tl.TypeInputUser;
20571
+ stars: Long;
20572
+ }
20529
20573
  /**
20530
20574
  * Info about a Telegram Premium purchase
20531
20575
  */
@@ -20836,6 +20880,14 @@ export class RpcError extends Error {
20836
20880
  */
20837
20881
  users: number;
20838
20882
  }
20883
+ interface RawInputStorePaymentAuthCode {
20884
+ _: 'inputStorePaymentAuthCode';
20885
+ restore?: boolean;
20886
+ phoneNumber: string;
20887
+ phoneCodeHash: string;
20888
+ currency: string;
20889
+ amount: Long;
20890
+ }
20839
20891
  /**
20840
20892
  * Represents an additional payment method
20841
20893
  */
@@ -23179,11 +23231,6 @@ export class RpcError extends Error {
23179
23231
  */
23180
23232
  interface RawConnectedBot {
23181
23233
  _: 'connectedBot';
23182
- /**
23183
- * Whether the the bot can reply to messages it receives
23184
- * through the connection
23185
- */
23186
- canReply?: boolean;
23187
23234
  /**
23188
23235
  * ID of the connected bot
23189
23236
  */
@@ -23196,6 +23243,7 @@ export class RpcError extends Error {
23196
23243
  *
23197
23244
  */
23198
23245
  recipients: tl.TypeBusinessBotRecipients;
23246
+ rights: tl.TypeBusinessBotRights;
23199
23247
  }
23200
23248
  /**
23201
23249
  * <a href="https://corefork.telegram.org/api/profile#birthday">Birthday</a>
@@ -23228,11 +23276,6 @@ export class RpcError extends Error {
23228
23276
  */
23229
23277
  interface RawBotBusinessConnection {
23230
23278
  _: 'botBusinessConnection';
23231
- /**
23232
- * Whether the bot can reply on behalf of the user to messages
23233
- * it receives through the business connection
23234
- */
23235
- canReply?: boolean;
23236
23279
  /**
23237
23280
  * Whether this business connection is currently disabled
23238
23281
  */
@@ -23260,6 +23303,7 @@ export class RpcError extends Error {
23260
23303
  * When was the connection created.
23261
23304
  */
23262
23305
  date: number;
23306
+ rights?: tl.TypeBusinessBotRights;
23263
23307
  }
23264
23308
  /**
23265
23309
  * <a href="https://corefork.telegram.org/api/business#business-introduction">Telegram
@@ -24022,6 +24066,7 @@ export class RpcError extends Error {
24022
24066
  */
24023
24067
  reaction?: boolean;
24024
24068
  stargiftUpgrade?: boolean;
24069
+ businessTransfer?: boolean;
24025
24070
  /**
24026
24071
  * Transaction ID.
24027
24072
  */
@@ -24850,6 +24895,41 @@ export class RpcError extends Error {
24850
24895
  _: 'requirementToContactPaidMessages';
24851
24896
  starsAmount: Long;
24852
24897
  }
24898
+ interface RawBusinessBotRights {
24899
+ _: 'businessBotRights';
24900
+ reply?: boolean;
24901
+ readMessages?: boolean;
24902
+ deleteSentMessages?: boolean;
24903
+ deleteReceivedMessages?: boolean;
24904
+ editName?: boolean;
24905
+ editBio?: boolean;
24906
+ editProfilePhoto?: boolean;
24907
+ editUsername?: boolean;
24908
+ viewGifts?: boolean;
24909
+ sellGifts?: boolean;
24910
+ changeGiftSettings?: boolean;
24911
+ transferAndUpgradeGifts?: boolean;
24912
+ transferStars?: boolean;
24913
+ manageStories?: boolean;
24914
+ }
24915
+ interface RawDisallowedGiftsSettings {
24916
+ _: 'disallowedGiftsSettings';
24917
+ disallowUnlimitedStargifts?: boolean;
24918
+ disallowLimitedStargifts?: boolean;
24919
+ disallowUniqueStargifts?: boolean;
24920
+ disallowPremiumGifts?: boolean;
24921
+ }
24922
+ interface RawSponsoredPeer {
24923
+ _: 'sponsoredPeer';
24924
+ randomId: Uint8Array;
24925
+ peer: tl.TypePeer;
24926
+ sponsorInfo?: string;
24927
+ additionalInfo?: string;
24928
+ }
24929
+ interface RawPhoneCallDiscardReasonAllowGroupCall {
24930
+ _: 'phoneCallDiscardReasonAllowGroupCall';
24931
+ encryptedKey: Uint8Array;
24932
+ }
24853
24933
  /**
24854
24934
  * Telegram Premium gift option
24855
24935
  */
@@ -25338,7 +25418,7 @@ export class RpcError extends Error {
25338
25418
  /**
25339
25419
  * Object describing actions connected to a service message.
25340
25420
  */
25341
- 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 | tl.RawMessageActionStarGift | tl.RawMessageActionStarGiftUnique
25421
+ 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 | tl.RawMessageActionStarGift | tl.RawMessageActionStarGiftUnique | tl.RawMessageActionPaidMessagesRefunded | tl.RawMessageActionPaidMessagesPrice | tl.RawMessageActionConferenceCall
25342
25422
  function isAnyMessageAction(o: object): o is TypeMessageAction
25343
25423
  /**
25344
25424
  * Chat info.
@@ -25421,7 +25501,7 @@ export class RpcError extends Error {
25421
25501
  /**
25422
25502
  * Object contains info on events occurred.
25423
25503
  */
25424
- 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.mtcute.RawDummyUpdate
25504
+ 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.mtcute.RawDummyUpdate
25425
25505
  function isAnyUpdate(o: object): o is TypeUpdate
25426
25506
  /**
25427
25507
  * Object which is perceived by the client without a call on
@@ -25767,7 +25847,7 @@ export class RpcError extends Error {
25767
25847
  /**
25768
25848
  * Why was the phone call discarded?
25769
25849
  */
25770
- type TypePhoneCallDiscardReason = tl.RawPhoneCallDiscardReasonMissed | tl.RawPhoneCallDiscardReasonDisconnect | tl.RawPhoneCallDiscardReasonHangup | tl.RawPhoneCallDiscardReasonBusy | tl.RawPhoneCallDiscardReasonAllowGroupCall
25850
+ type TypePhoneCallDiscardReason = tl.RawPhoneCallDiscardReasonMissed | tl.RawPhoneCallDiscardReasonDisconnect | tl.RawPhoneCallDiscardReasonHangup | tl.RawPhoneCallDiscardReasonBusy | tl.RawPhoneCallDiscardReasonMigrateConferenceCall | tl.RawPhoneCallDiscardReasonAllowGroupCall
25771
25851
  function isAnyPhoneCallDiscardReason(o: object): o is TypePhoneCallDiscardReason
25772
25852
  /**
25773
25853
  * Represent a JSON-encoded object
@@ -26360,7 +26440,7 @@ export class RpcError extends Error {
26360
26440
  /**
26361
26441
  * Indicates a group call
26362
26442
  */
26363
- type TypeInputGroupCall = tl.RawInputGroupCall
26443
+ type TypeInputGroupCall = tl.RawInputGroupCall | tl.RawInputGroupCallSlug | tl.RawInputGroupCallInviteMessage
26364
26444
  function isAnyInputGroupCall(o: object): o is TypeInputGroupCall
26365
26445
  /**
26366
26446
  * Info about a group call participant
@@ -26513,12 +26593,12 @@ export class RpcError extends Error {
26513
26593
  /**
26514
26594
  * An invoice
26515
26595
  */
26516
- type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift | tl.RawInputInvoiceStarGiftUpgrade | tl.RawInputInvoiceStarGiftTransfer | tl.RawInputInvoicePremiumGiftStars
26596
+ type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift | tl.RawInputInvoiceStarGiftUpgrade | tl.RawInputInvoiceStarGiftTransfer | tl.RawInputInvoicePremiumGiftStars | tl.RawInputInvoiceBusinessBotTransferStars
26517
26597
  function isAnyInputInvoice(o: object): o is TypeInputInvoice
26518
26598
  /**
26519
26599
  * Info about a Telegram Premium purchase
26520
26600
  */
26521
- type TypeInputStorePaymentPurpose = tl.RawInputStorePaymentPremiumSubscription | tl.RawInputStorePaymentGiftPremium | tl.RawInputStorePaymentPremiumGiftCode | tl.RawInputStorePaymentPremiumGiveaway | tl.RawInputStorePaymentStarsTopup | tl.RawInputStorePaymentStarsGift | tl.RawInputStorePaymentStarsGiveaway
26601
+ type TypeInputStorePaymentPurpose = tl.RawInputStorePaymentPremiumSubscription | tl.RawInputStorePaymentGiftPremium | tl.RawInputStorePaymentPremiumGiftCode | tl.RawInputStorePaymentPremiumGiveaway | tl.RawInputStorePaymentStarsTopup | tl.RawInputStorePaymentStarsGift | tl.RawInputStorePaymentStarsGiveaway | tl.RawInputStorePaymentAuthCode
26522
26602
  function isAnyInputStorePaymentPurpose(o: object): o is TypeInputStorePaymentPurpose
26523
26603
  /**
26524
26604
  * Represents a payment method
@@ -27214,6 +27294,12 @@ export class RpcError extends Error {
27214
27294
  function isAnyPaidReactionPrivacy(o: object): o is TypePaidReactionPrivacy
27215
27295
  type TypeRequirementToContact = tl.RawRequirementToContactEmpty | tl.RawRequirementToContactPremium | tl.RawRequirementToContactPaidMessages
27216
27296
  function isAnyRequirementToContact(o: object): o is TypeRequirementToContact
27297
+ type TypeBusinessBotRights = tl.RawBusinessBotRights
27298
+ function isAnyBusinessBotRights(o: object): o is TypeBusinessBotRights
27299
+ type TypeDisallowedGiftsSettings = tl.RawDisallowedGiftsSettings
27300
+ function isAnyDisallowedGiftsSettings(o: object): o is TypeDisallowedGiftsSettings
27301
+ type TypeSponsoredPeer = tl.RawSponsoredPeer
27302
+ function isAnySponsoredPeer(o: object): o is TypeSponsoredPeer
27217
27303
  /**
27218
27304
  * Telegram Premium gift option
27219
27305
  */
@@ -28383,6 +28469,11 @@ export class RpcError extends Error {
28383
28469
  */
28384
28470
  authorization: tl.auth.TypeAuthorization;
28385
28471
  }
28472
+ interface RawSentCodePaymentRequired {
28473
+ _: 'auth.sentCodePaymentRequired';
28474
+ storeProduct: string;
28475
+ phoneCodeHash: string;
28476
+ }
28386
28477
  /**
28387
28478
  * Contains user authorization info.
28388
28479
  */
@@ -29271,7 +29362,7 @@ export class RpcError extends Error {
29271
29362
  * Contains info on a confirmation code message sent via SMS,
29272
29363
  * phone call or Telegram.
29273
29364
  */
29274
- type TypeSentCode = tl.auth.RawSentCode | tl.auth.RawSentCodeSuccess
29365
+ type TypeSentCode = tl.auth.RawSentCode | tl.auth.RawSentCodeSuccess | tl.auth.RawSentCodePaymentRequired
29275
29366
  function isAnySentCode(o: object): o is TypeSentCode
29276
29367
  /**
29277
29368
  * Object contains info on user authorization.
@@ -29489,6 +29580,15 @@ export class RpcError extends Error {
29489
29580
  */
29490
29581
  users: tl.TypeUser[];
29491
29582
  }
29583
+ interface RawSponsoredPeersEmpty {
29584
+ _: 'contacts.sponsoredPeersEmpty';
29585
+ }
29586
+ interface RawSponsoredPeers {
29587
+ _: 'contacts.sponsoredPeers';
29588
+ peers: tl.TypeSponsoredPeer[];
29589
+ chats: tl.TypeChat[];
29590
+ users: tl.TypeUser[];
29591
+ }
29492
29592
  /**
29493
29593
  * Get the telegram IDs of all contacts.
29494
29594
  *
@@ -30000,6 +30100,13 @@ export class RpcError extends Error {
30000
30100
  interface RawGetBirthdaysRequest {
30001
30101
  _: 'contacts.getBirthdays';
30002
30102
  }
30103
+ /**
30104
+ * RPC method returns {@link tl.contacts.TypeSponsoredPeers}
30105
+ */
30106
+ interface RawGetSponsoredPeersRequest {
30107
+ _: 'contacts.getSponsoredPeers';
30108
+ q: string;
30109
+ }
30003
30110
  interface RpcCallReturn {
30004
30111
  'contacts.getContactIDs': number[]
30005
30112
  'contacts.getStatuses': tl.TypeContactStatus[]
@@ -30027,6 +30134,7 @@ export class RpcError extends Error {
30027
30134
  'contacts.editCloseFriends': boolean
30028
30135
  'contacts.setBlocked': boolean
30029
30136
  'contacts.getBirthdays': tl.contacts.TypeContactBirthdays
30137
+ 'contacts.getSponsoredPeers': tl.contacts.TypeSponsoredPeers
30030
30138
  }
30031
30139
  /**
30032
30140
  * Info on the current user's contact list.
@@ -30064,6 +30172,8 @@ export class RpcError extends Error {
30064
30172
  */
30065
30173
  type TypeContactBirthdays = tl.contacts.RawContactBirthdays
30066
30174
  function isAnyContactBirthdays(o: object): o is TypeContactBirthdays
30175
+ type TypeSponsoredPeers = tl.contacts.RawSponsoredPeersEmpty | tl.contacts.RawSponsoredPeers
30176
+ function isAnySponsoredPeers(o: object): o is TypeSponsoredPeers
30067
30177
  }
30068
30178
 
30069
30179
  namespace messages {
@@ -37170,10 +37280,6 @@ export class RpcError extends Error {
37170
37280
  */
37171
37281
  interface RawViewSponsoredMessageRequest {
37172
37282
  _: 'messages.viewSponsoredMessage';
37173
- /**
37174
- * The channel/bot where the ad is located
37175
- */
37176
- peer: tl.TypeInputPeer;
37177
37283
  /**
37178
37284
  * The ad's unique ID.
37179
37285
  */
@@ -37198,10 +37304,6 @@ export class RpcError extends Error {
37198
37304
  * on it.
37199
37305
  */
37200
37306
  fullscreen?: boolean;
37201
- /**
37202
- * The channel/bot where the ad is located
37203
- */
37204
- peer: tl.TypeInputPeer;
37205
37307
  /**
37206
37308
  * The ad's unique ID.
37207
37309
  */
@@ -37219,10 +37321,6 @@ export class RpcError extends Error {
37219
37321
  */
37220
37322
  interface RawReportSponsoredMessageRequest {
37221
37323
  _: 'messages.reportSponsoredMessage';
37222
- /**
37223
- * The channel/bot where the ad is located
37224
- */
37225
- peer: tl.TypeInputPeer;
37226
37324
  /**
37227
37325
  * The ad's unique ID.
37228
37326
  */
@@ -41033,18 +41131,12 @@ export class RpcError extends Error {
41033
41131
  */
41034
41132
  interface RawUpdateConnectedBotRequest {
41035
41133
  _: 'account.updateConnectedBot';
41036
- /**
41037
- * Whether the bot can reply to messages it receives from us,
41038
- * on behalf of us using the
41039
- * <a href="https://corefork.telegram.org/api/business#connected-bots">business
41040
- * connection</a>.
41041
- */
41042
- canReply?: boolean;
41043
41134
  /**
41044
41135
  * Whether to fully disconnect the bot from the current
41045
41136
  * account.
41046
41137
  */
41047
41138
  deleted?: boolean;
41139
+ rights?: tl.TypeBusinessBotRights;
41048
41140
  /**
41049
41141
  * The bot to connect or disconnect
41050
41142
  */
@@ -43086,62 +43178,6 @@ export class RpcError extends Error {
43086
43178
  channel: tl.TypeInputChannel;
43087
43179
  sendPaidMessagesStars: Long;
43088
43180
  }
43089
- /**
43090
- * Mark a specific sponsored message as read
43091
- *
43092
- * RPC method returns boolean
43093
- */
43094
- interface RawViewSponsoredMessageRequest {
43095
- _: 'channels.viewSponsoredMessage';
43096
- /**
43097
- * Peer
43098
- */
43099
- channel: tl.TypeInputChannel;
43100
- /**
43101
- * Message ID
43102
- */
43103
- randomId: Uint8Array;
43104
- }
43105
- /**
43106
- * Get a list of sponsored messages
43107
- *
43108
- * RPC method returns {@link tl.messages.TypeSponsoredMessages}
43109
- */
43110
- interface RawGetSponsoredMessagesRequest {
43111
- _: 'channels.getSponsoredMessages';
43112
- /**
43113
- * Peer
43114
- */
43115
- channel: tl.TypeInputChannel;
43116
- }
43117
- /**
43118
- * Informs the server that the user has either:
43119
- *
43120
- * RPC method returns boolean
43121
- */
43122
- interface RawClickSponsoredMessageRequest {
43123
- _: 'channels.clickSponsoredMessage';
43124
- media?: boolean;
43125
- fullscreen?: boolean;
43126
- channel: tl.TypeInputChannel;
43127
- randomId: Uint8Array;
43128
- }
43129
- /**
43130
- * Report a
43131
- * <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored
43132
- * message »</a>, see
43133
- * <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here
43134
- * »</a> for more info on the full flow.
43135
- *
43136
- * RPC method returns
43137
- * {@link tl.channels.TypeSponsoredMessageReportResult}
43138
- */
43139
- interface RawReportSponsoredMessageRequest {
43140
- _: 'channels.reportSponsoredMessage';
43141
- channel: tl.TypeInputChannel;
43142
- randomId: Uint8Array;
43143
- option: Uint8Array;
43144
- }
43145
43181
  interface RpcCallReturn {
43146
43182
  'channels.readHistory': boolean
43147
43183
  'channels.deleteMessages': tl.messages.TypeAffectedMessages
@@ -43205,10 +43241,6 @@ export class RpcError extends Error {
43205
43241
  'channels.restrictSponsoredMessages': tl.TypeUpdates
43206
43242
  'channels.searchPosts': tl.messages.TypeMessages
43207
43243
  'channels.updatePaidMessagesPrice': tl.TypeUpdates
43208
- 'channels.viewSponsoredMessage': boolean
43209
- 'channels.getSponsoredMessages': tl.messages.TypeSponsoredMessages
43210
- 'channels.clickSponsoredMessage': boolean
43211
- 'channels.reportSponsoredMessage': tl.channels.TypeSponsoredMessageReportResult
43212
43244
  }
43213
43245
  /**
43214
43246
  * Channel/supergroup participants
@@ -44132,20 +44164,6 @@ export class RpcError extends Error {
44132
44164
  */
44133
44165
  purpose: tl.TypeInputStorePaymentPurpose;
44134
44166
  }
44135
- /**
44136
- * Checks whether Telegram Premium purchase is possible. Must
44137
- * be called before in-store Premium purchase, official apps
44138
- * only.
44139
- *
44140
- * RPC method returns boolean
44141
- */
44142
- interface RawCanPurchasePremiumRequest {
44143
- _: 'payments.canPurchasePremium';
44144
- /**
44145
- * Payment purpose
44146
- */
44147
- purpose: tl.TypeInputStorePaymentPurpose;
44148
- }
44149
44167
  /**
44150
44168
  * Obtain a list of Telegram Premium
44151
44169
  * <a href="https://corefork.telegram.org/api/giveaways">giveaway/gift
@@ -44818,6 +44836,27 @@ export class RpcError extends Error {
44818
44836
  peer: tl.TypeInputPeer;
44819
44837
  stargift: tl.TypeInputSavedStarGift[];
44820
44838
  }
44839
+ /**
44840
+ * RPC method returns boolean
44841
+ */
44842
+ interface RawCanPurchaseStoreRequest {
44843
+ _: 'payments.canPurchaseStore';
44844
+ purpose: tl.TypeInputStorePaymentPurpose;
44845
+ }
44846
+ /**
44847
+ * Checks whether Telegram Premium purchase is possible. Must
44848
+ * be called before in-store Premium purchase, official apps
44849
+ * only.
44850
+ *
44851
+ * RPC method returns boolean
44852
+ */
44853
+ interface RawCanPurchasePremiumRequest {
44854
+ _: 'payments.canPurchasePremium';
44855
+ /**
44856
+ * Payment purpose
44857
+ */
44858
+ purpose: tl.TypeInputStorePaymentPurpose;
44859
+ }
44821
44860
  /**
44822
44861
  * Get the
44823
44862
  * <a href="https://corefork.telegram.org/api/gifts">gifts
@@ -44860,7 +44899,6 @@ export class RpcError extends Error {
44860
44899
  'payments.exportInvoice': tl.payments.TypeExportedInvoice
44861
44900
  'payments.assignAppStoreTransaction': tl.TypeUpdates
44862
44901
  'payments.assignPlayMarketTransaction': tl.TypeUpdates
44863
- 'payments.canPurchasePremium': boolean
44864
44902
  'payments.getPremiumGiftCodeOptions': tl.TypePremiumGiftCodeOption[]
44865
44903
  'payments.checkGiftCode': tl.payments.TypeCheckedGiftCode
44866
44904
  'payments.applyGiftCode': tl.TypeUpdates
@@ -44898,6 +44936,8 @@ export class RpcError extends Error {
44898
44936
  'payments.getStarGiftWithdrawalUrl': tl.payments.TypeStarGiftWithdrawalUrl
44899
44937
  'payments.toggleChatStarGiftNotifications': boolean
44900
44938
  'payments.toggleStarGiftsPinnedToTop': boolean
44939
+ 'payments.canPurchaseStore': boolean
44940
+ 'payments.canPurchasePremium': boolean
44901
44941
  'payments.getUserStarGifts': tl.payments.TypeUserStarGifts
44902
44942
  }
44903
44943
  /**
@@ -45171,7 +45211,6 @@ export class RpcError extends Error {
45171
45211
  * Destination of the phone call
45172
45212
  */
45173
45213
  userId: tl.TypeInputUser;
45174
- conferenceCall?: tl.TypeInputGroupCall;
45175
45214
  /**
45176
45215
  * Random ID to avoid resending the same object
45177
45216
  */
@@ -45398,7 +45437,8 @@ export class RpcError extends Error {
45398
45437
  * muted group chat.
45399
45438
  */
45400
45439
  inviteHash?: string;
45401
- keyFingerprint?: Long;
45440
+ publicKey?: Int256;
45441
+ block?: Uint8Array;
45402
45442
  /**
45403
45443
  * WebRTC parameters
45404
45444
  */
@@ -45811,12 +45851,62 @@ export class RpcError extends Error {
45811
45851
  file: tl.TypeInputFile;
45812
45852
  }
45813
45853
  /**
45814
- * RPC method returns {@link tl.phone.TypePhoneCall}
45854
+ * RPC method returns {@link tl.TypeUpdates}
45815
45855
  */
45816
45856
  interface RawCreateConferenceCallRequest {
45817
45857
  _: 'phone.createConferenceCall';
45818
- peer: tl.TypeInputPhoneCall;
45819
- keyFingerprint: Long;
45858
+ muted?: boolean;
45859
+ videoStopped?: boolean;
45860
+ join?: boolean;
45861
+ randomId: number;
45862
+ publicKey?: Int256;
45863
+ block?: Uint8Array;
45864
+ params?: tl.TypeDataJSON;
45865
+ }
45866
+ /**
45867
+ * RPC method returns {@link tl.TypeUpdates}
45868
+ */
45869
+ interface RawDeleteConferenceCallParticipantsRequest {
45870
+ _: 'phone.deleteConferenceCallParticipants';
45871
+ onlyLeft?: boolean;
45872
+ kick?: boolean;
45873
+ call: tl.TypeInputGroupCall;
45874
+ ids: Long[];
45875
+ block: Uint8Array;
45876
+ }
45877
+ /**
45878
+ * RPC method returns {@link tl.TypeUpdates}
45879
+ */
45880
+ interface RawSendConferenceCallBroadcastRequest {
45881
+ _: 'phone.sendConferenceCallBroadcast';
45882
+ call: tl.TypeInputGroupCall;
45883
+ block: Uint8Array;
45884
+ }
45885
+ /**
45886
+ * RPC method returns {@link tl.TypeUpdates}
45887
+ */
45888
+ interface RawInviteConferenceCallParticipantRequest {
45889
+ _: 'phone.inviteConferenceCallParticipant';
45890
+ video?: boolean;
45891
+ call: tl.TypeInputGroupCall;
45892
+ userId: tl.TypeInputUser;
45893
+ }
45894
+ /**
45895
+ * RPC method returns {@link tl.TypeUpdates}
45896
+ */
45897
+ interface RawDeclineConferenceCallInviteRequest {
45898
+ _: 'phone.declineConferenceCallInvite';
45899
+ msgId: number;
45900
+ }
45901
+ /**
45902
+ * RPC method returns {@link tl.TypeUpdates}
45903
+ */
45904
+ interface RawGetGroupCallChainBlocksRequest {
45905
+ _: 'phone.getGroupCallChainBlocks';
45906
+ call: tl.TypeInputGroupCall;
45907
+ subChainId: number;
45908
+ offset: number;
45909
+ limit: number;
45820
45910
  }
45821
45911
  interface RpcCallReturn {
45822
45912
  'phone.getCallConfig': tl.TypeDataJSON
@@ -45850,7 +45940,12 @@ export class RpcError extends Error {
45850
45940
  'phone.getGroupCallStreamChannels': tl.phone.TypeGroupCallStreamChannels
45851
45941
  'phone.getGroupCallStreamRtmpUrl': tl.phone.TypeGroupCallStreamRtmpUrl
45852
45942
  'phone.saveCallLog': boolean
45853
- 'phone.createConferenceCall': tl.phone.TypePhoneCall
45943
+ 'phone.createConferenceCall': tl.TypeUpdates
45944
+ 'phone.deleteConferenceCallParticipants': tl.TypeUpdates
45945
+ 'phone.sendConferenceCallBroadcast': tl.TypeUpdates
45946
+ 'phone.inviteConferenceCallParticipant': tl.TypeUpdates
45947
+ 'phone.declineConferenceCallInvite': tl.TypeUpdates
45948
+ 'phone.getGroupCallChainBlocks': tl.TypeUpdates
45854
45949
  }
45855
45950
  /**
45856
45951
  * Phone call
@@ -49490,7 +49585,7 @@ export class RpcError extends Error {
49490
49585
  /**
49491
49586
  * Object contains info on events occurred.
49492
49587
  */
49493
- 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.mtcute.RawDummyUpdate
49588
+ 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.mtcute.RawDummyUpdate
49494
49589
  function isAnyUpdate(o: object): o is TypeUpdate
49495
49590
  /**
49496
49591
  * Peer
@@ -49834,6 +49929,7 @@ export class RpcError extends Error {
49834
49929
  | tl.contacts.RawEditCloseFriendsRequest
49835
49930
  | tl.contacts.RawSetBlockedRequest
49836
49931
  | tl.contacts.RawGetBirthdaysRequest
49932
+ | tl.contacts.RawGetSponsoredPeersRequest
49837
49933
  | tl.messages.RawGetMessagesRequest
49838
49934
  | tl.messages.RawGetDialogsRequest
49839
49935
  | tl.messages.RawGetHistoryRequest
@@ -50202,7 +50298,6 @@ export class RpcError extends Error {
50202
50298
  | tl.payments.RawExportInvoiceRequest
50203
50299
  | tl.payments.RawAssignAppStoreTransactionRequest
50204
50300
  | tl.payments.RawAssignPlayMarketTransactionRequest
50205
- | tl.payments.RawCanPurchasePremiumRequest
50206
50301
  | tl.payments.RawGetPremiumGiftCodeOptionsRequest
50207
50302
  | tl.payments.RawCheckGiftCodeRequest
50208
50303
  | tl.payments.RawApplyGiftCodeRequest
@@ -50240,6 +50335,7 @@ export class RpcError extends Error {
50240
50335
  | tl.payments.RawGetStarGiftWithdrawalUrlRequest
50241
50336
  | tl.payments.RawToggleChatStarGiftNotificationsRequest
50242
50337
  | tl.payments.RawToggleStarGiftsPinnedToTopRequest
50338
+ | tl.payments.RawCanPurchaseStoreRequest
50243
50339
  | tl.stickers.RawCreateStickerSetRequest
50244
50340
  | tl.stickers.RawRemoveStickerFromSetRequest
50245
50341
  | tl.stickers.RawChangeStickerPositionRequest
@@ -50283,6 +50379,11 @@ export class RpcError extends Error {
50283
50379
  | tl.phone.RawGetGroupCallStreamRtmpUrlRequest
50284
50380
  | tl.phone.RawSaveCallLogRequest
50285
50381
  | tl.phone.RawCreateConferenceCallRequest
50382
+ | tl.phone.RawDeleteConferenceCallParticipantsRequest
50383
+ | tl.phone.RawSendConferenceCallBroadcastRequest
50384
+ | tl.phone.RawInviteConferenceCallParticipantRequest
50385
+ | tl.phone.RawDeclineConferenceCallInviteRequest
50386
+ | tl.phone.RawGetGroupCallChainBlocksRequest
50286
50387
  | tl.langpack.RawGetLangPackRequest
50287
50388
  | tl.langpack.RawGetStringsRequest
50288
50389
  | tl.langpack.RawGetDifferenceRequest
@@ -50350,11 +50451,8 @@ export class RpcError extends Error {
50350
50451
  | tl.smsjobs.RawFinishJobRequest
50351
50452
  | tl.fragment.RawGetCollectibleInfoRequest
50352
50453
  | tl.users.RawGetIsPremiumRequiredToContactRequest
50454
+ | tl.payments.RawCanPurchasePremiumRequest
50353
50455
  | tl.payments.RawGetUserStarGiftsRequest
50354
- | tl.channels.RawViewSponsoredMessageRequest
50355
- | tl.channels.RawGetSponsoredMessagesRequest
50356
- | tl.channels.RawClickSponsoredMessageRequest
50357
- | tl.channels.RawReportSponsoredMessageRequest
50358
50456
  | tl.mtcute.RawCustomMethodRequest
50359
50457
 
50360
50458
  type TlObject =
@@ -50520,6 +50618,9 @@ export class RpcError extends Error {
50520
50618
  | tl.RawMessageActionPrizeStars
50521
50619
  | tl.RawMessageActionStarGift
50522
50620
  | tl.RawMessageActionStarGiftUnique
50621
+ | tl.RawMessageActionPaidMessagesRefunded
50622
+ | tl.RawMessageActionPaidMessagesPrice
50623
+ | tl.RawMessageActionConferenceCall
50523
50624
  | tl.RawDialog
50524
50625
  | tl.RawDialogFolder
50525
50626
  | tl.RawPhotoEmpty
@@ -50534,6 +50635,7 @@ export class RpcError extends Error {
50534
50635
  | tl.RawGeoPoint
50535
50636
  | tl.auth.RawSentCode
50536
50637
  | tl.auth.RawSentCodeSuccess
50638
+ | tl.auth.RawSentCodePaymentRequired
50537
50639
  | tl.auth.RawAuthorization
50538
50640
  | tl.auth.RawAuthorizationSignUpRequired
50539
50641
  | tl.auth.RawExportedAuthorization
@@ -50735,6 +50837,8 @@ export class RpcError extends Error {
50735
50837
  | tl.RawUpdateStarsRevenueStatus
50736
50838
  | tl.RawUpdateBotPurchasedPaidMedia
50737
50839
  | tl.RawUpdatePaidReactionPrivacy
50840
+ | tl.RawUpdateSentPhoneCode
50841
+ | tl.RawUpdateGroupCallChainBlocks
50738
50842
  | tl.updates.RawState
50739
50843
  | tl.updates.RawDifferenceEmpty
50740
50844
  | tl.updates.RawDifference
@@ -51107,7 +51211,7 @@ export class RpcError extends Error {
51107
51211
  | tl.RawPhoneCallDiscardReasonDisconnect
51108
51212
  | tl.RawPhoneCallDiscardReasonHangup
51109
51213
  | tl.RawPhoneCallDiscardReasonBusy
51110
- | tl.RawPhoneCallDiscardReasonAllowGroupCall
51214
+ | tl.RawPhoneCallDiscardReasonMigrateConferenceCall
51111
51215
  | tl.RawDataJSON
51112
51216
  | tl.RawLabeledPrice
51113
51217
  | tl.RawInvoice
@@ -51402,6 +51506,8 @@ export class RpcError extends Error {
51402
51506
  | tl.RawGroupCallDiscarded
51403
51507
  | tl.RawGroupCall
51404
51508
  | tl.RawInputGroupCall
51509
+ | tl.RawInputGroupCallSlug
51510
+ | tl.RawInputGroupCallInviteMessage
51405
51511
  | tl.RawGroupCallParticipant
51406
51512
  | tl.phone.RawGroupCall
51407
51513
  | tl.phone.RawGroupParticipants
@@ -51491,6 +51597,7 @@ export class RpcError extends Error {
51491
51597
  | tl.RawInputInvoiceStarGiftUpgrade
51492
51598
  | tl.RawInputInvoiceStarGiftTransfer
51493
51599
  | tl.RawInputInvoicePremiumGiftStars
51600
+ | tl.RawInputInvoiceBusinessBotTransferStars
51494
51601
  | tl.payments.RawExportedInvoice
51495
51602
  | tl.messages.RawTranscribedAudio
51496
51603
  | tl.help.RawPremiumPromo
@@ -51501,6 +51608,7 @@ export class RpcError extends Error {
51501
51608
  | tl.RawInputStorePaymentStarsTopup
51502
51609
  | tl.RawInputStorePaymentStarsGift
51503
51610
  | tl.RawInputStorePaymentStarsGiveaway
51611
+ | tl.RawInputStorePaymentAuthCode
51504
51612
  | tl.RawPaymentFormMethod
51505
51613
  | tl.RawEmojiStatusEmpty
51506
51614
  | tl.RawEmojiStatus
@@ -51770,6 +51878,12 @@ export class RpcError extends Error {
51770
51878
  | tl.RawRequirementToContactEmpty
51771
51879
  | tl.RawRequirementToContactPremium
51772
51880
  | tl.RawRequirementToContactPaidMessages
51881
+ | tl.RawBusinessBotRights
51882
+ | tl.RawDisallowedGiftsSettings
51883
+ | tl.RawSponsoredPeer
51884
+ | tl.contacts.RawSponsoredPeersEmpty
51885
+ | tl.contacts.RawSponsoredPeers
51886
+ | tl.RawPhoneCallDiscardReasonAllowGroupCall
51773
51887
  | tl.RawPremiumGiftOption
51774
51888
  | tl.RawEmojiStatusUntil
51775
51889
  | tl.RawUserStarGift
@@ -51962,6 +52076,7 @@ export class RpcError extends Error {
51962
52076
  | tl.contacts.RawEditCloseFriendsRequest
51963
52077
  | tl.contacts.RawSetBlockedRequest
51964
52078
  | tl.contacts.RawGetBirthdaysRequest
52079
+ | tl.contacts.RawGetSponsoredPeersRequest
51965
52080
  | tl.messages.RawGetMessagesRequest
51966
52081
  | tl.messages.RawGetDialogsRequest
51967
52082
  | tl.messages.RawGetHistoryRequest
@@ -52330,7 +52445,6 @@ export class RpcError extends Error {
52330
52445
  | tl.payments.RawExportInvoiceRequest
52331
52446
  | tl.payments.RawAssignAppStoreTransactionRequest
52332
52447
  | tl.payments.RawAssignPlayMarketTransactionRequest
52333
- | tl.payments.RawCanPurchasePremiumRequest
52334
52448
  | tl.payments.RawGetPremiumGiftCodeOptionsRequest
52335
52449
  | tl.payments.RawCheckGiftCodeRequest
52336
52450
  | tl.payments.RawApplyGiftCodeRequest
@@ -52368,6 +52482,7 @@ export class RpcError extends Error {
52368
52482
  | tl.payments.RawGetStarGiftWithdrawalUrlRequest
52369
52483
  | tl.payments.RawToggleChatStarGiftNotificationsRequest
52370
52484
  | tl.payments.RawToggleStarGiftsPinnedToTopRequest
52485
+ | tl.payments.RawCanPurchaseStoreRequest
52371
52486
  | tl.stickers.RawCreateStickerSetRequest
52372
52487
  | tl.stickers.RawRemoveStickerFromSetRequest
52373
52488
  | tl.stickers.RawChangeStickerPositionRequest
@@ -52411,6 +52526,11 @@ export class RpcError extends Error {
52411
52526
  | tl.phone.RawGetGroupCallStreamRtmpUrlRequest
52412
52527
  | tl.phone.RawSaveCallLogRequest
52413
52528
  | tl.phone.RawCreateConferenceCallRequest
52529
+ | tl.phone.RawDeleteConferenceCallParticipantsRequest
52530
+ | tl.phone.RawSendConferenceCallBroadcastRequest
52531
+ | tl.phone.RawInviteConferenceCallParticipantRequest
52532
+ | tl.phone.RawDeclineConferenceCallInviteRequest
52533
+ | tl.phone.RawGetGroupCallChainBlocksRequest
52414
52534
  | tl.langpack.RawGetLangPackRequest
52415
52535
  | tl.langpack.RawGetStringsRequest
52416
52536
  | tl.langpack.RawGetDifferenceRequest
@@ -52478,11 +52598,8 @@ export class RpcError extends Error {
52478
52598
  | tl.smsjobs.RawFinishJobRequest
52479
52599
  | tl.fragment.RawGetCollectibleInfoRequest
52480
52600
  | tl.users.RawGetIsPremiumRequiredToContactRequest
52601
+ | tl.payments.RawCanPurchasePremiumRequest
52481
52602
  | tl.payments.RawGetUserStarGiftsRequest
52482
- | tl.channels.RawViewSponsoredMessageRequest
52483
- | tl.channels.RawGetSponsoredMessagesRequest
52484
- | tl.channels.RawClickSponsoredMessageRequest
52485
- | tl.channels.RawReportSponsoredMessageRequest
52486
52603
  | tl.mtcute.RawCustomMethodRequest
52487
52604
  }
52488
52605