@mtcute/tl 218.0.0 → 220.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 = 218;
3
+ const LAYER = 220;
4
4
 
5
5
  function $extendTypes(types: Record<string, string>): void
6
6
 
@@ -4248,6 +4248,11 @@ export class RpcError extends Error {
4248
4248
  */
4249
4249
  completions?: tl.TypeTodoCompletion[];
4250
4250
  }
4251
+ interface RawMessageMediaVideoStream {
4252
+ _: 'messageMediaVideoStream';
4253
+ rtmpStream?: boolean;
4254
+ call: tl.TypeInputGroupCall;
4255
+ }
4251
4256
  /**
4252
4257
  * Empty constructor.
4253
4258
  */
@@ -5268,6 +5273,7 @@ export class RpcError extends Error {
5268
5273
  */
5269
5274
  giftMsgId?: number;
5270
5275
  toId?: tl.TypePeer;
5276
+ giftNum?: number;
5271
5277
  }
5272
5278
  /**
5273
5279
  * A <a href="https://core.telegram.org/api/gifts">gift »</a>
@@ -5311,6 +5317,7 @@ export class RpcError extends Error {
5311
5317
  */
5312
5318
  prepaidUpgrade?: boolean;
5313
5319
  assigned?: boolean;
5320
+ fromOffer?: boolean;
5314
5321
  /**
5315
5322
  * The collectible gift.
5316
5323
  */
@@ -9640,6 +9647,21 @@ export class RpcError extends Error {
9640
9647
  peer: tl.TypePeer;
9641
9648
  order?: number[];
9642
9649
  }
9650
+ interface RawUpdateDeleteGroupCallMessages {
9651
+ _: 'updateDeleteGroupCallMessages';
9652
+ call: tl.TypeInputGroupCall;
9653
+ messages: number[];
9654
+ }
9655
+ interface RawUpdateStarGiftAuctionState {
9656
+ _: 'updateStarGiftAuctionState';
9657
+ giftId: Long;
9658
+ state: tl.TypeStarGiftAuctionState;
9659
+ }
9660
+ interface RawUpdateStarGiftAuctionUserState {
9661
+ _: 'updateStarGiftAuctionUserState';
9662
+ giftId: Long;
9663
+ userState: tl.TypeStarGiftAuctionUserState;
9664
+ }
9643
9665
  /**
9644
9666
  * Too many updates, it is necessary to execute
9645
9667
  * {@link updates.RawGetDifferenceRequest}.
@@ -10916,6 +10938,9 @@ export class RpcError extends Error {
10916
10938
  interface RawInputPrivacyKeyNoPaidMessages {
10917
10939
  _: 'inputPrivacyKeyNoPaidMessages';
10918
10940
  }
10941
+ interface RawInputPrivacyKeySavedMusic {
10942
+ _: 'inputPrivacyKeySavedMusic';
10943
+ }
10919
10944
  /**
10920
10945
  * Whether we can see the last online timestamp of this user.
10921
10946
  *
@@ -11017,6 +11042,9 @@ export class RpcError extends Error {
11017
11042
  interface RawPrivacyKeyNoPaidMessages {
11018
11043
  _: 'privacyKeyNoPaidMessages';
11019
11044
  }
11045
+ interface RawPrivacyKeySavedMusic {
11046
+ _: 'privacyKeySavedMusic';
11047
+ }
11020
11048
  /**
11021
11049
  * Allow only contacts
11022
11050
  */
@@ -19543,6 +19571,11 @@ export class RpcError extends Error {
19543
19571
  */
19544
19572
  icons: tl.TypeDocument[];
19545
19573
  }
19574
+ interface RawWebPageAttributeStarGiftAuction {
19575
+ _: 'webPageAttributeStarGiftAuction';
19576
+ gift: tl.TypeStarGift;
19577
+ endDate: number;
19578
+ }
19546
19579
  /**
19547
19580
  * Credit card info URL provided by the bank
19548
19581
  */
@@ -21609,6 +21642,15 @@ export class RpcError extends Error {
21609
21642
  _: 'inputInvoiceStarGiftDropOriginalDetails';
21610
21643
  stargift: tl.TypeInputSavedStarGift;
21611
21644
  }
21645
+ interface RawInputInvoiceStarGiftAuctionBid {
21646
+ _: 'inputInvoiceStarGiftAuctionBid';
21647
+ hideName?: boolean;
21648
+ updateBid?: boolean;
21649
+ peer?: tl.TypeInputPeer;
21650
+ giftId: Long;
21651
+ bidAmount: Long;
21652
+ message?: tl.TypeTextWithEntities;
21653
+ }
21612
21654
  /**
21613
21655
  * Info about a Telegram Premium purchase
21614
21656
  */
@@ -25254,6 +25296,8 @@ export class RpcError extends Error {
25254
25296
  */
25255
25297
  stargiftPrepaidUpgrade?: boolean;
25256
25298
  stargiftDropOriginalDetails?: boolean;
25299
+ phonegroupMessage?: boolean;
25300
+ stargiftAuctionBid?: boolean;
25257
25301
  /**
25258
25302
  * Transaction ID.
25259
25303
  */
@@ -25401,8 +25445,7 @@ export class RpcError extends Error {
25401
25445
  * specified unixtime.
25402
25446
  */
25403
25447
  adsProceedsToDate?: number;
25404
- phonegroupMessage?: boolean;
25405
- stargiftAuctionBid?: boolean;
25448
+ offer?: boolean;
25406
25449
  }
25407
25450
  /**
25408
25451
  * A story found using
@@ -25865,6 +25908,9 @@ export class RpcError extends Error {
25865
25908
  lockedUntilDate?: number;
25866
25909
  auctionSlug?: string;
25867
25910
  giftsPerRound?: number;
25911
+ auctionStartDate?: number;
25912
+ upgradeVariants?: number;
25913
+ background?: tl.TypeStarGiftBackground;
25868
25914
  }
25869
25915
  /**
25870
25916
  * Represents a
@@ -25977,6 +26023,7 @@ export class RpcError extends Error {
25977
26023
  * Currency for the gift's price.
25978
26024
  */
25979
26025
  valueCurrency?: string;
26026
+ valueUsdAmount?: Long;
25980
26027
  /**
25981
26028
  * The current chat where the associated
25982
26029
  * <a href="https://core.telegram.org/api/themes#chat-themes">chat
@@ -25986,6 +26033,7 @@ export class RpcError extends Error {
25986
26033
  themePeer?: tl.TypePeer;
25987
26034
  peerColor?: tl.TypePeerColor;
25988
26035
  hostId?: tl.TypePeer;
26036
+ offerMinStars?: number;
25989
26037
  }
25990
26038
  /**
25991
26039
  * Report menu option
@@ -26482,6 +26530,7 @@ export class RpcError extends Error {
26482
26530
  */
26483
26531
  prepaidUpgradeHash?: string;
26484
26532
  dropOriginalDetailsStars?: Long;
26533
+ giftNum?: number;
26485
26534
  }
26486
26535
  /**
26487
26536
  * A gift received in a private chat with another user.
@@ -27087,49 +27136,6 @@ export class RpcError extends Error {
27087
27136
  date: number;
27088
27137
  upgradeStars: Long;
27089
27138
  }
27090
- interface RawMessageMediaVideoStream {
27091
- _: 'messageMediaVideoStream';
27092
- rtmpStream?: boolean;
27093
- call: tl.TypeInputGroupCall;
27094
- }
27095
- interface RawUpdateDeleteGroupCallMessages {
27096
- _: 'updateDeleteGroupCallMessages';
27097
- call: tl.TypeInputGroupCall;
27098
- messages: number[];
27099
- }
27100
- interface RawUpdateStarGiftAuctionState {
27101
- _: 'updateStarGiftAuctionState';
27102
- giftId: Long;
27103
- state: tl.TypeStarGiftAuctionState;
27104
- }
27105
- interface RawUpdateStarGiftAuctionUserState {
27106
- _: 'updateStarGiftAuctionUserState';
27107
- giftId: Long;
27108
- userState: tl.TypeStarGiftAuctionUserState;
27109
- }
27110
- interface RawInputPrivacyKeySavedMusic {
27111
- _: 'inputPrivacyKeySavedMusic';
27112
- }
27113
- interface RawPrivacyKeySavedMusic {
27114
- _: 'privacyKeySavedMusic';
27115
- }
27116
- interface RawWebPageAttributeStarGiftAuction {
27117
- _: 'webPageAttributeStarGiftAuction';
27118
- gift: tl.TypeStarGift;
27119
- endDate: number;
27120
- centerColor: number;
27121
- edgeColor: number;
27122
- textColor: number;
27123
- }
27124
- interface RawInputInvoiceStarGiftAuctionBid {
27125
- _: 'inputInvoiceStarGiftAuctionBid';
27126
- hideName?: boolean;
27127
- updateBid?: boolean;
27128
- peer?: tl.TypeInputPeer;
27129
- giftId: Long;
27130
- bidAmount: Long;
27131
- message?: tl.TypeTextWithEntities;
27132
- }
27133
27139
  interface RawGroupCallMessage {
27134
27140
  _: 'groupCallMessage';
27135
27141
  fromAdmin?: boolean;
@@ -27143,8 +27149,8 @@ export class RpcError extends Error {
27143
27149
  _: 'groupCallDonor';
27144
27150
  top?: boolean;
27145
27151
  my?: boolean;
27146
- anonymous?: boolean;
27147
27152
  peerId?: tl.TypePeer;
27153
+ anonymous?: boolean;
27148
27154
  stars: Long;
27149
27155
  }
27150
27156
  interface RawRecentStory {
@@ -27170,15 +27176,20 @@ export class RpcError extends Error {
27170
27176
  bidLevels: tl.TypeAuctionBidLevel[];
27171
27177
  topBidders: Long[];
27172
27178
  nextRoundAt: number;
27179
+ lastGiftNum: number;
27173
27180
  giftsLeft: number;
27174
27181
  currentRound: number;
27175
27182
  totalRounds: number;
27183
+ rounds: tl.TypeStarGiftAuctionRound[];
27176
27184
  }
27177
27185
  interface RawStarGiftAuctionStateFinished {
27178
27186
  _: 'starGiftAuctionStateFinished';
27179
27187
  startDate: number;
27180
27188
  endDate: number;
27181
27189
  averagePrice: Long;
27190
+ listedCount?: number;
27191
+ fragmentListedCount?: number;
27192
+ fragmentListedUrl?: string;
27182
27193
  }
27183
27194
  interface RawStarGiftAuctionUserState {
27184
27195
  _: 'starGiftAuctionUserState';
@@ -27198,6 +27209,7 @@ export class RpcError extends Error {
27198
27209
  round: number;
27199
27210
  pos: number;
27200
27211
  message?: tl.TypeTextWithEntities;
27212
+ giftNum?: number;
27201
27213
  }
27202
27214
  interface RawStarGiftActiveAuctionState {
27203
27215
  _: 'starGiftActiveAuctionState';
@@ -27213,6 +27225,64 @@ export class RpcError extends Error {
27213
27225
  _: 'inputStarGiftAuctionSlug';
27214
27226
  slug: string;
27215
27227
  }
27228
+ interface RawMessageActionStarGiftPurchaseOffer {
27229
+ _: 'messageActionStarGiftPurchaseOffer';
27230
+ accepted?: boolean;
27231
+ declined?: boolean;
27232
+ gift: tl.TypeStarGift;
27233
+ price: tl.TypeStarsAmount;
27234
+ expiresAt: number;
27235
+ }
27236
+ interface RawMessageActionStarGiftPurchaseOfferDeclined {
27237
+ _: 'messageActionStarGiftPurchaseOfferDeclined';
27238
+ expired?: boolean;
27239
+ gift: tl.TypeStarGift;
27240
+ price: tl.TypeStarsAmount;
27241
+ }
27242
+ interface RawPasskey {
27243
+ _: 'passkey';
27244
+ id: string;
27245
+ name: string;
27246
+ date: number;
27247
+ softwareEmojiId?: Long;
27248
+ lastUsageDate?: number;
27249
+ }
27250
+ interface RawInputPasskeyResponseRegister {
27251
+ _: 'inputPasskeyResponseRegister';
27252
+ clientData: tl.TypeDataJSON;
27253
+ attestationData: Uint8Array;
27254
+ }
27255
+ interface RawInputPasskeyResponseLogin {
27256
+ _: 'inputPasskeyResponseLogin';
27257
+ clientData: tl.TypeDataJSON;
27258
+ authenticatorData: Uint8Array;
27259
+ signature: Uint8Array;
27260
+ userHandle: string;
27261
+ }
27262
+ interface RawInputPasskeyCredentialPublicKey {
27263
+ _: 'inputPasskeyCredentialPublicKey';
27264
+ id: string;
27265
+ rawId: string;
27266
+ response: tl.TypeInputPasskeyResponse;
27267
+ }
27268
+ interface RawStarGiftBackground {
27269
+ _: 'starGiftBackground';
27270
+ centerColor: number;
27271
+ edgeColor: number;
27272
+ textColor: number;
27273
+ }
27274
+ interface RawStarGiftAuctionRound {
27275
+ _: 'starGiftAuctionRound';
27276
+ num: number;
27277
+ duration: number;
27278
+ }
27279
+ interface RawStarGiftAuctionRoundExtendable {
27280
+ _: 'starGiftAuctionRoundExtendable';
27281
+ num: number;
27282
+ duration: number;
27283
+ extendTop: number;
27284
+ extendWindow: number;
27285
+ }
27216
27286
  /**
27217
27287
  * A
27218
27288
  * <a href="https://core.telegram.org/api/forum#forum-topics">forum
@@ -27602,7 +27672,7 @@ export class RpcError extends Error {
27602
27672
  /**
27603
27673
  * Object describing actions connected to a service message.
27604
27674
  */
27605
- 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 | tl.RawMessageActionTodoCompletions | tl.RawMessageActionTodoAppendTasks | tl.RawMessageActionSuggestedPostApproval | tl.RawMessageActionSuggestedPostSuccess | tl.RawMessageActionSuggestedPostRefund | tl.RawMessageActionGiftTon | tl.RawMessageActionSuggestBirthday
27675
+ 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 | tl.RawMessageActionTodoCompletions | tl.RawMessageActionTodoAppendTasks | tl.RawMessageActionSuggestedPostApproval | tl.RawMessageActionSuggestedPostSuccess | tl.RawMessageActionSuggestedPostRefund | tl.RawMessageActionGiftTon | tl.RawMessageActionSuggestBirthday | tl.RawMessageActionStarGiftPurchaseOffer | tl.RawMessageActionStarGiftPurchaseOfferDeclined
27606
27676
  function isAnyMessageAction(o: object): o is TypeMessageAction
27607
27677
  /**
27608
27678
  * Chat info.
@@ -29630,6 +29700,16 @@ export class RpcError extends Error {
29630
29700
  function isAnyStarGiftActiveAuctionState(o: object): o is TypeStarGiftActiveAuctionState
29631
29701
  type TypeInputStarGiftAuction = tl.RawInputStarGiftAuction | tl.RawInputStarGiftAuctionSlug
29632
29702
  function isAnyInputStarGiftAuction(o: object): o is TypeInputStarGiftAuction
29703
+ type TypePasskey = tl.RawPasskey
29704
+ function isAnyPasskey(o: object): o is TypePasskey
29705
+ type TypeInputPasskeyResponse = tl.RawInputPasskeyResponseRegister | tl.RawInputPasskeyResponseLogin
29706
+ function isAnyInputPasskeyResponse(o: object): o is TypeInputPasskeyResponse
29707
+ type TypeInputPasskeyCredential = tl.RawInputPasskeyCredentialPublicKey
29708
+ function isAnyInputPasskeyCredential(o: object): o is TypeInputPasskeyCredential
29709
+ type TypeStarGiftBackground = tl.RawStarGiftBackground
29710
+ function isAnyStarGiftBackground(o: object): o is TypeStarGiftBackground
29711
+ type TypeStarGiftAuctionRound = tl.RawStarGiftAuctionRound | tl.RawStarGiftAuctionRoundExtendable
29712
+ function isAnyStarGiftAuctionRound(o: object): o is TypeStarGiftAuctionRound
29633
29713
 
29634
29714
  namespace storage {
29635
29715
  /**
@@ -30135,6 +30215,10 @@ export class RpcError extends Error {
30135
30215
  */
30136
30216
  futureAuthToken?: Uint8Array;
30137
30217
  }
30218
+ interface RawPasskeyLoginOptions {
30219
+ _: 'auth.passkeyLoginOptions';
30220
+ options: tl.TypeDataJSON;
30221
+ }
30138
30222
  /**
30139
30223
  * Send the verification code for login
30140
30224
  *
@@ -30636,6 +30720,23 @@ export class RpcError extends Error {
30636
30720
  phoneCodeHash: string;
30637
30721
  formId: Long;
30638
30722
  }
30723
+ /**
30724
+ * RPC method returns {@link tl.auth.TypePasskeyLoginOptions}
30725
+ */
30726
+ interface RawInitPasskeyLoginRequest {
30727
+ _: 'auth.initPasskeyLogin';
30728
+ apiId: number;
30729
+ apiHash: string;
30730
+ }
30731
+ /**
30732
+ * RPC method returns {@link tl.auth.TypeAuthorization}
30733
+ */
30734
+ interface RawFinishPasskeyLoginRequest {
30735
+ _: 'auth.finishPasskeyLogin';
30736
+ credential: tl.TypeInputPasskeyCredential;
30737
+ fromDcId?: number;
30738
+ fromAuthKeyId?: Long;
30739
+ }
30639
30740
  interface RpcCallReturn {
30640
30741
  'auth.sendCode': tl.auth.TypeSentCode
30641
30742
  'auth.signUp': tl.auth.TypeAuthorization
@@ -30661,6 +30762,8 @@ export class RpcError extends Error {
30661
30762
  'auth.resetLoginEmail': tl.auth.TypeSentCode
30662
30763
  'auth.reportMissingCode': boolean
30663
30764
  'auth.checkPaidAuth': tl.auth.TypeSentCode
30765
+ 'auth.initPasskeyLogin': tl.auth.TypePasskeyLoginOptions
30766
+ 'auth.finishPasskeyLogin': tl.auth.TypeAuthorization
30664
30767
  }
30665
30768
  /**
30666
30769
  * Contains info on a confirmation code message sent via SMS,
@@ -30709,6 +30812,8 @@ export class RpcError extends Error {
30709
30812
  */
30710
30813
  type TypeLoggedOut = tl.auth.RawLoggedOut
30711
30814
  function isAnyLoggedOut(o: object): o is TypeLoggedOut
30815
+ type TypePasskeyLoginOptions = tl.auth.RawPasskeyLoginOptions
30816
+ function isAnyPasskeyLoginOptions(o: object): o is TypePasskeyLoginOptions
30712
30817
  }
30713
30818
 
30714
30819
  namespace contacts {
@@ -33800,6 +33905,7 @@ export class RpcError extends Error {
33800
33905
  * reply shortcut »</a>, instead.
33801
33906
  */
33802
33907
  quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
33908
+ effect?: Long;
33803
33909
  /**
33804
33910
  * Start playing the video at the specified timestamp
33805
33911
  * (seconds).
@@ -42357,6 +42463,14 @@ export class RpcError extends Error {
42357
42463
  */
42358
42464
  ids: Long[];
42359
42465
  }
42466
+ interface RawPasskeys {
42467
+ _: 'account.passkeys';
42468
+ passkeys: tl.TypePasskey[];
42469
+ }
42470
+ interface RawPasskeyRegistrationOptions {
42471
+ _: 'account.passkeyRegistrationOptions';
42472
+ options: tl.TypeDataJSON;
42473
+ }
42360
42474
  /**
42361
42475
  * Register device to receive
42362
42476
  * <a href="https://core.telegram.org/api/push-updates">PUSH
@@ -44478,6 +44592,33 @@ export class RpcError extends Error {
44478
44592
  */
44479
44593
  hash: Long;
44480
44594
  }
44595
+ /**
44596
+ * RPC method returns
44597
+ * {@link tl.account.TypePasskeyRegistrationOptions}
44598
+ */
44599
+ interface RawInitPasskeyRegistrationRequest {
44600
+ _: 'account.initPasskeyRegistration';
44601
+ }
44602
+ /**
44603
+ * RPC method returns {@link tl.TypePasskey}
44604
+ */
44605
+ interface RawRegisterPasskeyRequest {
44606
+ _: 'account.registerPasskey';
44607
+ credential: tl.TypeInputPasskeyCredential;
44608
+ }
44609
+ /**
44610
+ * RPC method returns {@link tl.account.TypePasskeys}
44611
+ */
44612
+ interface RawGetPasskeysRequest {
44613
+ _: 'account.getPasskeys';
44614
+ }
44615
+ /**
44616
+ * RPC method returns boolean
44617
+ */
44618
+ interface RawDeletePasskeyRequest {
44619
+ _: 'account.deletePasskey';
44620
+ id: string;
44621
+ }
44481
44622
  interface RpcCallReturn {
44482
44623
  'account.registerDevice': boolean
44483
44624
  'account.unregisterDevice': boolean
@@ -44598,6 +44739,10 @@ export class RpcError extends Error {
44598
44739
  'account.saveMusic': boolean
44599
44740
  'account.getSavedMusicIds': tl.account.TypeSavedMusicIds
44600
44741
  'account.getUniqueGiftChatThemes': tl.account.TypeChatThemes
44742
+ 'account.initPasskeyRegistration': tl.account.TypePasskeyRegistrationOptions
44743
+ 'account.registerPasskey': tl.TypePasskey
44744
+ 'account.getPasskeys': tl.account.TypePasskeys
44745
+ 'account.deletePasskey': boolean
44601
44746
  }
44602
44747
  /**
44603
44748
  * Privacy rules
@@ -44751,6 +44896,10 @@ export class RpcError extends Error {
44751
44896
  */
44752
44897
  type TypeSavedMusicIds = tl.account.RawSavedMusicIdsNotModified | tl.account.RawSavedMusicIds
44753
44898
  function isAnySavedMusicIds(o: object): o is TypeSavedMusicIds
44899
+ type TypePasskeys = tl.account.RawPasskeys
44900
+ function isAnyPasskeys(o: object): o is TypePasskeys
44901
+ type TypePasskeyRegistrationOptions = tl.account.RawPasskeyRegistrationOptions
44902
+ function isAnyPasskeyRegistrationOptions(o: object): o is TypePasskeyRegistrationOptions
44754
44903
  }
44755
44904
 
44756
44905
  namespace channels {
@@ -47426,6 +47575,7 @@ export class RpcError extends Error {
47426
47575
  userState: tl.TypeStarGiftAuctionUserState;
47427
47576
  timeout: number;
47428
47577
  users: tl.TypeUser[];
47578
+ chats: tl.TypeChat[];
47429
47579
  }
47430
47580
  interface RawStarGiftAuctionAcquiredGifts {
47431
47581
  _: 'payments.starGiftAuctionAcquiredGifts';
@@ -47440,6 +47590,11 @@ export class RpcError extends Error {
47440
47590
  _: 'payments.starGiftActiveAuctions';
47441
47591
  auctions: tl.TypeStarGiftActiveAuctionState[];
47442
47592
  users: tl.TypeUser[];
47593
+ chats: tl.TypeChat[];
47594
+ }
47595
+ interface RawStarGiftUpgradeAttributes {
47596
+ _: 'payments.starGiftUpgradeAttributes';
47597
+ attributes: tl.TypeStarGiftAttribute[];
47443
47598
  }
47444
47599
  /**
47445
47600
  * Get a payment form
@@ -48759,6 +48914,34 @@ export class RpcError extends Error {
48759
48914
  _: 'payments.getStarGiftActiveAuctions';
48760
48915
  hash: Long;
48761
48916
  }
48917
+ /**
48918
+ * RPC method returns {@link tl.TypeUpdates}
48919
+ */
48920
+ interface RawResolveStarGiftOfferRequest {
48921
+ _: 'payments.resolveStarGiftOffer';
48922
+ decline?: boolean;
48923
+ offerMsgId: number;
48924
+ }
48925
+ /**
48926
+ * RPC method returns {@link tl.TypeUpdates}
48927
+ */
48928
+ interface RawSendStarGiftOfferRequest {
48929
+ _: 'payments.sendStarGiftOffer';
48930
+ peer: tl.TypeInputPeer;
48931
+ slug: string;
48932
+ price: tl.TypeStarsAmount;
48933
+ duration: number;
48934
+ randomId: Long;
48935
+ allowPaidStars?: Long;
48936
+ }
48937
+ /**
48938
+ * RPC method returns
48939
+ * {@link tl.payments.TypeStarGiftUpgradeAttributes}
48940
+ */
48941
+ interface RawGetStarGiftUpgradeAttributesRequest {
48942
+ _: 'payments.getStarGiftUpgradeAttributes';
48943
+ giftId: Long;
48944
+ }
48762
48945
  interface RpcCallReturn {
48763
48946
  'payments.getPaymentForm': tl.payments.TypePaymentForm
48764
48947
  'payments.getPaymentReceipt': tl.payments.TypePaymentReceipt
@@ -48820,6 +49003,9 @@ export class RpcError extends Error {
48820
49003
  'payments.getStarGiftAuctionState': tl.payments.TypeStarGiftAuctionState
48821
49004
  'payments.getStarGiftAuctionAcquiredGifts': tl.payments.TypeStarGiftAuctionAcquiredGifts
48822
49005
  'payments.getStarGiftActiveAuctions': tl.payments.TypeStarGiftActiveAuctions
49006
+ 'payments.resolveStarGiftOffer': tl.TypeUpdates
49007
+ 'payments.sendStarGiftOffer': tl.TypeUpdates
49008
+ 'payments.getStarGiftUpgradeAttributes': tl.payments.TypeStarGiftUpgradeAttributes
48823
49009
  }
48824
49010
  /**
48825
49011
  * Payment form
@@ -48984,6 +49170,8 @@ export class RpcError extends Error {
48984
49170
  function isAnyStarGiftAuctionAcquiredGifts(o: object): o is TypeStarGiftAuctionAcquiredGifts
48985
49171
  type TypeStarGiftActiveAuctions = tl.payments.RawStarGiftActiveAuctionsNotModified | tl.payments.RawStarGiftActiveAuctions
48986
49172
  function isAnyStarGiftActiveAuctions(o: object): o is TypeStarGiftActiveAuctions
49173
+ type TypeStarGiftUpgradeAttributes = tl.payments.RawStarGiftUpgradeAttributes
49174
+ function isAnyStarGiftUpgradeAttributes(o: object): o is TypeStarGiftUpgradeAttributes
48987
49175
  }
48988
49176
 
48989
49177
  namespace phone {
@@ -54681,6 +54869,9 @@ export class RpcError extends Error {
54681
54869
  | tl.payments.RawGetStarGiftCollectionsRequest
54682
54870
  | tl.payments.RawGetUniqueStarGiftValueInfoRequest
54683
54871
  | tl.payments.RawCheckCanSendGiftRequest
54872
+ | tl.payments.RawGetStarGiftAuctionStateRequest
54873
+ | tl.payments.RawGetStarGiftAuctionAcquiredGiftsRequest
54874
+ | tl.payments.RawGetStarGiftActiveAuctionsRequest
54684
54875
  | tl.stickers.RawCreateStickerSetRequest
54685
54876
  | tl.stickers.RawRemoveStickerFromSetRequest
54686
54877
  | tl.stickers.RawChangeStickerPositionRequest
@@ -54731,6 +54922,10 @@ export class RpcError extends Error {
54731
54922
  | tl.phone.RawGetGroupCallChainBlocksRequest
54732
54923
  | tl.phone.RawSendGroupCallMessageRequest
54733
54924
  | tl.phone.RawSendGroupCallEncryptedMessageRequest
54925
+ | tl.phone.RawDeleteGroupCallMessagesRequest
54926
+ | tl.phone.RawDeleteGroupCallParticipantMessagesRequest
54927
+ | tl.phone.RawGetGroupCallStarsRequest
54928
+ | tl.phone.RawSaveDefaultSendAsRequest
54734
54929
  | tl.langpack.RawGetLangPackRequest
54735
54930
  | tl.langpack.RawGetStringsRequest
54736
54931
  | tl.langpack.RawGetDifferenceRequest
@@ -54787,6 +54982,7 @@ export class RpcError extends Error {
54787
54982
  | tl.stories.RawDeleteAlbumRequest
54788
54983
  | tl.stories.RawGetAlbumsRequest
54789
54984
  | tl.stories.RawGetAlbumStoriesRequest
54985
+ | tl.stories.RawStartLiveRequest
54790
54986
  | tl.premium.RawGetBoostsListRequest
54791
54987
  | tl.premium.RawGetMyBoostsRequest
54792
54988
  | tl.premium.RawApplyBoostRequest
@@ -54800,14 +54996,15 @@ export class RpcError extends Error {
54800
54996
  | tl.smsjobs.RawGetSmsJobRequest
54801
54997
  | tl.smsjobs.RawFinishJobRequest
54802
54998
  | tl.fragment.RawGetCollectibleInfoRequest
54803
- | tl.payments.RawGetStarGiftAuctionStateRequest
54804
- | tl.payments.RawGetStarGiftAuctionAcquiredGiftsRequest
54805
- | tl.payments.RawGetStarGiftActiveAuctionsRequest
54806
- | tl.phone.RawDeleteGroupCallMessagesRequest
54807
- | tl.phone.RawDeleteGroupCallParticipantMessagesRequest
54808
- | tl.phone.RawGetGroupCallStarsRequest
54809
- | tl.phone.RawSaveDefaultSendAsRequest
54810
- | tl.stories.RawStartLiveRequest
54999
+ | tl.auth.RawInitPasskeyLoginRequest
55000
+ | tl.auth.RawFinishPasskeyLoginRequest
55001
+ | tl.account.RawInitPasskeyRegistrationRequest
55002
+ | tl.account.RawRegisterPasskeyRequest
55003
+ | tl.account.RawGetPasskeysRequest
55004
+ | tl.account.RawDeletePasskeyRequest
55005
+ | tl.payments.RawResolveStarGiftOfferRequest
55006
+ | tl.payments.RawSendStarGiftOfferRequest
55007
+ | tl.payments.RawGetStarGiftUpgradeAttributesRequest
54811
55008
  | tl.channels.RawCreateForumTopicRequest
54812
55009
  | tl.channels.RawGetForumTopicsRequest
54813
55010
  | tl.channels.RawGetForumTopicsByIDRequest
@@ -54930,6 +55127,7 @@ export class RpcError extends Error {
54930
55127
  | tl.RawMessageMediaGiveawayResults
54931
55128
  | tl.RawMessageMediaPaidMedia
54932
55129
  | tl.RawMessageMediaToDo
55130
+ | tl.RawMessageMediaVideoStream
54933
55131
  | tl.RawMessageActionEmpty
54934
55132
  | tl.RawMessageActionChatCreate
54935
55133
  | tl.RawMessageActionChatEditTitle
@@ -55210,6 +55408,9 @@ export class RpcError extends Error {
55210
55408
  | tl.RawUpdateGroupCallEncryptedMessage
55211
55409
  | tl.RawUpdatePinnedForumTopic
55212
55410
  | tl.RawUpdatePinnedForumTopics
55411
+ | tl.RawUpdateDeleteGroupCallMessages
55412
+ | tl.RawUpdateStarGiftAuctionState
55413
+ | tl.RawUpdateStarGiftAuctionUserState
55213
55414
  | tl.updates.RawState
55214
55415
  | tl.updates.RawDifferenceEmpty
55215
55416
  | tl.updates.RawDifference
@@ -55294,6 +55495,7 @@ export class RpcError extends Error {
55294
55495
  | tl.RawInputPrivacyKeyBirthday
55295
55496
  | tl.RawInputPrivacyKeyStarGiftsAutoSave
55296
55497
  | tl.RawInputPrivacyKeyNoPaidMessages
55498
+ | tl.RawInputPrivacyKeySavedMusic
55297
55499
  | tl.RawPrivacyKeyStatusTimestamp
55298
55500
  | tl.RawPrivacyKeyChatInvite
55299
55501
  | tl.RawPrivacyKeyPhoneCall
@@ -55307,6 +55509,7 @@ export class RpcError extends Error {
55307
55509
  | tl.RawPrivacyKeyBirthday
55308
55510
  | tl.RawPrivacyKeyStarGiftsAutoSave
55309
55511
  | tl.RawPrivacyKeyNoPaidMessages
55512
+ | tl.RawPrivacyKeySavedMusic
55310
55513
  | tl.RawInputPrivacyValueAllowContacts
55311
55514
  | tl.RawInputPrivacyValueAllowAll
55312
55515
  | tl.RawInputPrivacyValueAllowUsers
@@ -55842,6 +56045,7 @@ export class RpcError extends Error {
55842
56045
  | tl.RawWebPageAttributeStickerSet
55843
56046
  | tl.RawWebPageAttributeUniqueStarGift
55844
56047
  | tl.RawWebPageAttributeStarGiftCollection
56048
+ | tl.RawWebPageAttributeStarGiftAuction
55845
56049
  | tl.messages.RawVotesList
55846
56050
  | tl.RawBankCardOpenUrl
55847
56051
  | tl.payments.RawBankCardData
@@ -55981,6 +56185,7 @@ export class RpcError extends Error {
55981
56185
  | tl.RawInputInvoiceStarGiftPrepaidUpgrade
55982
56186
  | tl.RawInputInvoicePremiumAuthCode
55983
56187
  | tl.RawInputInvoiceStarGiftDropOriginalDetails
56188
+ | tl.RawInputInvoiceStarGiftAuctionBid
55984
56189
  | tl.payments.RawExportedInvoice
55985
56190
  | tl.messages.RawTranscribedAudio
55986
56191
  | tl.help.RawPremiumPromo
@@ -56303,14 +56508,6 @@ export class RpcError extends Error {
56303
56508
  | tl.RawInputChatTheme
56304
56509
  | tl.RawInputChatThemeUniqueGift
56305
56510
  | tl.RawStarGiftUpgradePrice
56306
- | tl.RawMessageMediaVideoStream
56307
- | tl.RawUpdateDeleteGroupCallMessages
56308
- | tl.RawUpdateStarGiftAuctionState
56309
- | tl.RawUpdateStarGiftAuctionUserState
56310
- | tl.RawInputPrivacyKeySavedMusic
56311
- | tl.RawPrivacyKeySavedMusic
56312
- | tl.RawWebPageAttributeStarGiftAuction
56313
- | tl.RawInputInvoiceStarGiftAuctionBid
56314
56511
  | tl.RawGroupCallMessage
56315
56512
  | tl.RawGroupCallDonor
56316
56513
  | tl.phone.RawGroupCallStars
@@ -56328,6 +56525,19 @@ export class RpcError extends Error {
56328
56525
  | tl.payments.RawStarGiftActiveAuctions
56329
56526
  | tl.RawInputStarGiftAuction
56330
56527
  | tl.RawInputStarGiftAuctionSlug
56528
+ | tl.RawMessageActionStarGiftPurchaseOffer
56529
+ | tl.RawMessageActionStarGiftPurchaseOfferDeclined
56530
+ | tl.RawPasskey
56531
+ | tl.account.RawPasskeys
56532
+ | tl.account.RawPasskeyRegistrationOptions
56533
+ | tl.auth.RawPasskeyLoginOptions
56534
+ | tl.RawInputPasskeyResponseRegister
56535
+ | tl.RawInputPasskeyResponseLogin
56536
+ | tl.RawInputPasskeyCredentialPublicKey
56537
+ | tl.RawStarGiftBackground
56538
+ | tl.RawStarGiftAuctionRound
56539
+ | tl.RawStarGiftAuctionRoundExtendable
56540
+ | tl.payments.RawStarGiftUpgradeAttributes
56331
56541
  | tl.RawUpdateChannelPinnedTopic
56332
56542
  | tl.RawUpdateChannelPinnedTopics
56333
56543
  | tl.mtcute.RawDummyUpdate
@@ -56946,6 +57156,9 @@ export class RpcError extends Error {
56946
57156
  | tl.payments.RawGetStarGiftCollectionsRequest
56947
57157
  | tl.payments.RawGetUniqueStarGiftValueInfoRequest
56948
57158
  | tl.payments.RawCheckCanSendGiftRequest
57159
+ | tl.payments.RawGetStarGiftAuctionStateRequest
57160
+ | tl.payments.RawGetStarGiftAuctionAcquiredGiftsRequest
57161
+ | tl.payments.RawGetStarGiftActiveAuctionsRequest
56949
57162
  | tl.stickers.RawCreateStickerSetRequest
56950
57163
  | tl.stickers.RawRemoveStickerFromSetRequest
56951
57164
  | tl.stickers.RawChangeStickerPositionRequest
@@ -56996,6 +57209,10 @@ export class RpcError extends Error {
56996
57209
  | tl.phone.RawGetGroupCallChainBlocksRequest
56997
57210
  | tl.phone.RawSendGroupCallMessageRequest
56998
57211
  | tl.phone.RawSendGroupCallEncryptedMessageRequest
57212
+ | tl.phone.RawDeleteGroupCallMessagesRequest
57213
+ | tl.phone.RawDeleteGroupCallParticipantMessagesRequest
57214
+ | tl.phone.RawGetGroupCallStarsRequest
57215
+ | tl.phone.RawSaveDefaultSendAsRequest
56999
57216
  | tl.langpack.RawGetLangPackRequest
57000
57217
  | tl.langpack.RawGetStringsRequest
57001
57218
  | tl.langpack.RawGetDifferenceRequest
@@ -57052,6 +57269,7 @@ export class RpcError extends Error {
57052
57269
  | tl.stories.RawDeleteAlbumRequest
57053
57270
  | tl.stories.RawGetAlbumsRequest
57054
57271
  | tl.stories.RawGetAlbumStoriesRequest
57272
+ | tl.stories.RawStartLiveRequest
57055
57273
  | tl.premium.RawGetBoostsListRequest
57056
57274
  | tl.premium.RawGetMyBoostsRequest
57057
57275
  | tl.premium.RawApplyBoostRequest
@@ -57065,14 +57283,15 @@ export class RpcError extends Error {
57065
57283
  | tl.smsjobs.RawGetSmsJobRequest
57066
57284
  | tl.smsjobs.RawFinishJobRequest
57067
57285
  | tl.fragment.RawGetCollectibleInfoRequest
57068
- | tl.payments.RawGetStarGiftAuctionStateRequest
57069
- | tl.payments.RawGetStarGiftAuctionAcquiredGiftsRequest
57070
- | tl.payments.RawGetStarGiftActiveAuctionsRequest
57071
- | tl.phone.RawDeleteGroupCallMessagesRequest
57072
- | tl.phone.RawDeleteGroupCallParticipantMessagesRequest
57073
- | tl.phone.RawGetGroupCallStarsRequest
57074
- | tl.phone.RawSaveDefaultSendAsRequest
57075
- | tl.stories.RawStartLiveRequest
57286
+ | tl.auth.RawInitPasskeyLoginRequest
57287
+ | tl.auth.RawFinishPasskeyLoginRequest
57288
+ | tl.account.RawInitPasskeyRegistrationRequest
57289
+ | tl.account.RawRegisterPasskeyRequest
57290
+ | tl.account.RawGetPasskeysRequest
57291
+ | tl.account.RawDeletePasskeyRequest
57292
+ | tl.payments.RawResolveStarGiftOfferRequest
57293
+ | tl.payments.RawSendStarGiftOfferRequest
57294
+ | tl.payments.RawGetStarGiftUpgradeAttributesRequest
57076
57295
  | tl.channels.RawCreateForumTopicRequest
57077
57296
  | tl.channels.RawGetForumTopicsRequest
57078
57297
  | tl.channels.RawGetForumTopicsByIDRequest