@mtcute/tl 195.0.0 → 196.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import _Long from 'long';
3
3
 
4
4
  export declare namespace tl {
5
- const LAYER = 195;
5
+ const LAYER = 196;
6
6
 
7
7
  function $extendTypes(types: Record<string, string>): void
8
8
 
@@ -2121,6 +2121,7 @@ export class RpcError extends Error {
2121
2121
  * small bots).
2122
2122
  */
2123
2123
  botActiveUsers?: number;
2124
+ botVerificationIcon?: Long;
2124
2125
  }
2125
2126
  /**
2126
2127
  * Profile photo has not been set, or was hidden.
@@ -2653,6 +2654,7 @@ export class RpcError extends Error {
2653
2654
  * access to this channel.
2654
2655
  */
2655
2656
  subscriptionUntilDate?: number;
2657
+ botVerificationIcon?: Long;
2656
2658
  }
2657
2659
  /**
2658
2660
  * Indicates a channel/supergroup we can't access because we
@@ -3130,6 +3132,7 @@ export class RpcError extends Error {
3130
3132
  * »</a> for more info.
3131
3133
  */
3132
3134
  emojiset?: tl.TypeStickerSet;
3135
+ botVerification?: tl.TypeBotVerification;
3133
3136
  }
3134
3137
  /**
3135
3138
  * Group member.
@@ -3488,6 +3491,7 @@ export class RpcError extends Error {
3488
3491
  * »</a>.
3489
3492
  */
3490
3493
  factcheck?: tl.TypeFactCheck;
3494
+ reportDeliveryUntilDate?: number;
3491
3495
  }
3492
3496
  /**
3493
3497
  * Indicates a service message
@@ -3506,6 +3510,7 @@ export class RpcError extends Error {
3506
3510
  * Whether the message contains unread media
3507
3511
  */
3508
3512
  mediaUnread?: boolean;
3513
+ reactionsArePossible?: boolean;
3509
3514
  /**
3510
3515
  * Whether the message is silent
3511
3516
  */
@@ -3543,6 +3548,7 @@ export class RpcError extends Error {
3543
3548
  * Event connected with the service message
3544
3549
  */
3545
3550
  action: tl.TypeMessageAction;
3551
+ reactions?: tl.TypeMessageReactions;
3546
3552
  /**
3547
3553
  * Time To Live of the message, once
3548
3554
  * message.date+message.ttl_period === time(), the message will
@@ -4959,6 +4965,9 @@ export class RpcError extends Error {
4959
4965
  * Stars</a> and cannot be displayed on the profile anymore.
4960
4966
  */
4961
4967
  converted?: boolean;
4968
+ upgraded?: boolean;
4969
+ refunded?: boolean;
4970
+ canUpgrade?: boolean;
4962
4971
  /**
4963
4972
  * Info about the gift
4964
4973
  */
@@ -4978,6 +4987,18 @@ export class RpcError extends Error {
4978
4987
  * than <code>stars</code>.
4979
4988
  */
4980
4989
  convertStars?: Long;
4990
+ upgradeMsgId?: number;
4991
+ upgradeStars?: Long;
4992
+ }
4993
+ interface RawMessageActionStarGiftUnique {
4994
+ _: 'messageActionStarGiftUnique';
4995
+ upgrade?: boolean;
4996
+ transferred?: boolean;
4997
+ saved?: boolean;
4998
+ refunded?: boolean;
4999
+ gift: tl.TypeStarGift;
5000
+ canExportAt?: number;
5001
+ transferStars?: Long;
4981
5002
  }
4982
5003
  /**
4983
5004
  * Chat
@@ -5946,6 +5967,7 @@ export class RpcError extends Error {
5946
5967
  * program »</a>
5947
5968
  */
5948
5969
  starrefProgram?: tl.TypeStarRefProgram;
5970
+ botVerification?: tl.TypeBotVerification;
5949
5971
  }
5950
5972
  /**
5951
5973
  * A contact of the current user that is registered in the
@@ -7786,7 +7808,7 @@ export class RpcError extends Error {
7786
7808
  * <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a>
7787
7809
  * where this group call or livestream takes place
7788
7810
  */
7789
- chatId: number;
7811
+ chatId?: number;
7790
7812
  /**
7791
7813
  * Info about the group call or livestream
7792
7814
  */
@@ -11064,6 +11086,7 @@ export class RpcError extends Error {
11064
11086
  * subscription.
11065
11087
  */
11066
11088
  subscriptionFormId?: Long;
11089
+ botVerification?: tl.TypeBotVerification;
11067
11090
  }
11068
11091
  /**
11069
11092
  * A chat invitation that also allows peeking into the group to
@@ -11343,6 +11366,7 @@ export class RpcError extends Error {
11343
11366
  *
11344
11367
  */
11345
11368
  appSettings?: tl.TypeBotAppSettings;
11369
+ verifierSettings?: tl.TypeBotVerifierSettings;
11346
11370
  }
11347
11371
  /**
11348
11372
  * Bot keyboard button
@@ -14452,6 +14476,10 @@ export class RpcError extends Error {
14452
14476
  interface RawPhoneCallDiscardReasonBusy {
14453
14477
  _: 'phoneCallDiscardReasonBusy';
14454
14478
  }
14479
+ interface RawPhoneCallDiscardReasonAllowGroupCall {
14480
+ _: 'phoneCallDiscardReasonAllowGroupCall';
14481
+ encryptedKey: Uint8Array;
14482
+ }
14455
14483
  /**
14456
14484
  * Represents a json-encoded object
14457
14485
  */
@@ -14958,6 +14986,7 @@ export class RpcError extends Error {
14958
14986
  * When was the phone call received
14959
14987
  */
14960
14988
  receiveDate?: number;
14989
+ conferenceCall?: tl.TypeInputGroupCall;
14961
14990
  }
14962
14991
  /**
14963
14992
  * Requested phone call
@@ -14997,6 +15026,7 @@ export class RpcError extends Error {
14997
15026
  * Call protocol info to be passed to libtgvoip
14998
15027
  */
14999
15028
  protocol: tl.TypePhoneCallProtocol;
15029
+ conferenceCall?: tl.TypeInputGroupCall;
15000
15030
  }
15001
15031
  /**
15002
15032
  * An accepted phone call
@@ -15037,6 +15067,7 @@ export class RpcError extends Error {
15037
15067
  * Protocol to use for phone call
15038
15068
  */
15039
15069
  protocol: tl.TypePhoneCallProtocol;
15070
+ conferenceCall?: tl.TypeInputGroupCall;
15040
15071
  }
15041
15072
  /**
15042
15073
  * Phone call
@@ -15097,6 +15128,7 @@ export class RpcError extends Error {
15097
15128
  * Custom JSON-encoded call parameters to be passed to tgcalls.
15098
15129
  */
15099
15130
  customParameters?: tl.TypeDataJSON;
15131
+ conferenceCall?: tl.TypeInputGroupCall;
15100
15132
  }
15101
15133
  /**
15102
15134
  * Indicates a discarded phone call
@@ -15130,6 +15162,7 @@ export class RpcError extends Error {
15130
15162
  * Duration of the phone call in seconds
15131
15163
  */
15132
15164
  duration?: number;
15165
+ conferenceCall?: tl.TypeInputGroupCall;
15133
15166
  }
15134
15167
  /**
15135
15168
  * Identifies an endpoint that can be used to connect to the
@@ -18679,6 +18712,7 @@ export class RpcError extends Error {
18679
18712
  * <a href="https://corefork.telegram.org/api/folders">folder</a>
18680
18713
  */
18681
18714
  excludeArchived?: boolean;
18715
+ titleNoanimate?: boolean;
18682
18716
  /**
18683
18717
  * <a href="https://corefork.telegram.org/api/folders">Folder</a>
18684
18718
  * ID
@@ -18688,7 +18722,7 @@ export class RpcError extends Error {
18688
18722
  * <a href="https://corefork.telegram.org/api/folders">Folder</a>
18689
18723
  * name (max 12 UTF-8 chars)
18690
18724
  */
18691
- title: string;
18725
+ title: tl.TypeTextWithEntities;
18692
18726
  /**
18693
18727
  * Emoji to use as icon for the folder.
18694
18728
  */
@@ -18736,6 +18770,7 @@ export class RpcError extends Error {
18736
18770
  * folder deep links »</a> to share the folder as well.
18737
18771
  */
18738
18772
  hasMyInvites?: boolean;
18773
+ titleNoanimate?: boolean;
18739
18774
  /**
18740
18775
  * ID of the folder
18741
18776
  */
@@ -18743,7 +18778,7 @@ export class RpcError extends Error {
18743
18778
  /**
18744
18779
  * Name of the folder (max 12 UTF-8 chars)
18745
18780
  */
18746
- title: string;
18781
+ title: tl.TypeTextWithEntities;
18747
18782
  /**
18748
18783
  * Emoji to use as icon for the folder.
18749
18784
  */
@@ -19351,6 +19386,7 @@ export class RpcError extends Error {
19351
19386
  * Version
19352
19387
  */
19353
19388
  version: number;
19389
+ conferenceFromCall?: Long;
19354
19390
  }
19355
19391
  /**
19356
19392
  * Points to a specific group call
@@ -20426,6 +20462,7 @@ export class RpcError extends Error {
20426
20462
  * still see that you sent the gift)
20427
20463
  */
20428
20464
  hideName?: boolean;
20465
+ includeUpgrade?: boolean;
20429
20466
  /**
20430
20467
  * Identifier of the user that will receive the gift
20431
20468
  */
@@ -20444,6 +20481,16 @@ export class RpcError extends Error {
20444
20481
  */
20445
20482
  message?: tl.TypeTextWithEntities;
20446
20483
  }
20484
+ interface RawInputInvoiceStarGiftUpgrade {
20485
+ _: 'inputInvoiceStarGiftUpgrade';
20486
+ keepOriginalDetails?: boolean;
20487
+ msgId: number;
20488
+ }
20489
+ interface RawInputInvoiceStarGiftTransfer {
20490
+ _: 'inputInvoiceStarGiftTransfer';
20491
+ msgId: number;
20492
+ toId: tl.TypeInputUser;
20493
+ }
20447
20494
  /**
20448
20495
  * Info about a Telegram Premium purchase
20449
20496
  */
@@ -23971,6 +24018,7 @@ export class RpcError extends Error {
23971
24018
  * reaction »</a>.
23972
24019
  */
23973
24020
  reaction?: boolean;
24021
+ stargiftUpgrade?: boolean;
23974
24022
  /**
23975
24023
  * Transaction ID.
23976
24024
  */
@@ -24496,6 +24544,17 @@ export class RpcError extends Error {
24496
24544
  * For sold out gifts only: when was the gift last bought.
24497
24545
  */
24498
24546
  lastSaleDate?: number;
24547
+ upgradeStars?: Long;
24548
+ }
24549
+ interface RawStarGiftUnique {
24550
+ _: 'starGiftUnique';
24551
+ id: Long;
24552
+ title: string;
24553
+ num: number;
24554
+ ownerId: number;
24555
+ attributes: tl.TypeStarGiftAttribute[];
24556
+ availabilityIssued: number;
24557
+ availabilityTotal: number;
24499
24558
  }
24500
24559
  /**
24501
24560
  * Represents a
@@ -24515,6 +24574,8 @@ export class RpcError extends Error {
24515
24574
  * currently hidden from our profile page.
24516
24575
  */
24517
24576
  unsaved?: boolean;
24577
+ refunded?: boolean;
24578
+ canUpgrade?: boolean;
24518
24579
  /**
24519
24580
  * Sender of the gift (may be empty for anonymous senders; will
24520
24581
  * always be set if this gift was sent to us).
@@ -24550,6 +24611,9 @@ export class RpcError extends Error {
24550
24611
  * <code>stars</code>.
24551
24612
  */
24552
24613
  convertStars?: Long;
24614
+ upgradeStars?: Long;
24615
+ canExportAt?: number;
24616
+ transferStars?: Long;
24553
24617
  }
24554
24618
  /**
24555
24619
  * Report menu option
@@ -24748,6 +24812,47 @@ export class RpcError extends Error {
24748
24812
  */
24749
24813
  nanos: number;
24750
24814
  }
24815
+ interface RawBotVerifierSettings {
24816
+ _: 'botVerifierSettings';
24817
+ canModifyCustomDescription?: boolean;
24818
+ icon: Long;
24819
+ company: string;
24820
+ customDescription?: string;
24821
+ }
24822
+ interface RawBotVerification {
24823
+ _: 'botVerification';
24824
+ botId: number;
24825
+ icon: Long;
24826
+ description: string;
24827
+ }
24828
+ interface RawStarGiftAttributeModel {
24829
+ _: 'starGiftAttributeModel';
24830
+ name: string;
24831
+ document: tl.TypeDocument;
24832
+ rarityPermille: number;
24833
+ }
24834
+ interface RawStarGiftAttributePattern {
24835
+ _: 'starGiftAttributePattern';
24836
+ name: string;
24837
+ document: tl.TypeDocument;
24838
+ rarityPermille: number;
24839
+ }
24840
+ interface RawStarGiftAttributeBackdrop {
24841
+ _: 'starGiftAttributeBackdrop';
24842
+ name: string;
24843
+ centerColor: number;
24844
+ edgeColor: number;
24845
+ patternColor: number;
24846
+ textColor: number;
24847
+ rarityPermille: number;
24848
+ }
24849
+ interface RawStarGiftAttributeOriginalDetails {
24850
+ _: 'starGiftAttributeOriginalDetails';
24851
+ senderId?: number;
24852
+ recipientId: number;
24853
+ date: number;
24854
+ message?: tl.TypeTextWithEntities;
24855
+ }
24751
24856
  /**
24752
24857
  * RPC method returns {@link tl.TypeError}
24753
24858
  */
@@ -25112,7 +25217,7 @@ export class RpcError extends Error {
25112
25217
  /**
25113
25218
  * Object describing actions connected to a service message.
25114
25219
  */
25115
- 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
25220
+ 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
25116
25221
  function isAnyMessageAction(o: object): o is TypeMessageAction
25117
25222
  /**
25118
25223
  * Chat info.
@@ -25541,7 +25646,7 @@ export class RpcError extends Error {
25541
25646
  /**
25542
25647
  * Why was the phone call discarded?
25543
25648
  */
25544
- type TypePhoneCallDiscardReason = tl.RawPhoneCallDiscardReasonMissed | tl.RawPhoneCallDiscardReasonDisconnect | tl.RawPhoneCallDiscardReasonHangup | tl.RawPhoneCallDiscardReasonBusy
25649
+ type TypePhoneCallDiscardReason = tl.RawPhoneCallDiscardReasonMissed | tl.RawPhoneCallDiscardReasonDisconnect | tl.RawPhoneCallDiscardReasonHangup | tl.RawPhoneCallDiscardReasonBusy | tl.RawPhoneCallDiscardReasonAllowGroupCall
25545
25650
  function isAnyPhoneCallDiscardReason(o: object): o is TypePhoneCallDiscardReason
25546
25651
  /**
25547
25652
  * Represent a JSON-encoded object
@@ -26287,7 +26392,7 @@ export class RpcError extends Error {
26287
26392
  /**
26288
26393
  * An invoice
26289
26394
  */
26290
- type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift
26395
+ type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift | tl.RawInputInvoiceStarGiftUpgrade | tl.RawInputInvoiceStarGiftTransfer
26291
26396
  function isAnyInputInvoice(o: object): o is TypeInputInvoice
26292
26397
  /**
26293
26398
  * Info about a Telegram Premium purchase
@@ -26940,7 +27045,7 @@ export class RpcError extends Error {
26940
27045
  * <a href="https://corefork.telegram.org/api/gifts">star gift,
26941
27046
  * see here »</a> for more info.
26942
27047
  */
26943
- type TypeStarGift = tl.RawStarGift
27048
+ type TypeStarGift = tl.RawStarGift | tl.RawStarGiftUnique
26944
27049
  function isAnyStarGift(o: object): o is TypeStarGift
26945
27050
  /**
26946
27051
  * Represents a
@@ -26986,6 +27091,12 @@ export class RpcError extends Error {
26986
27091
  */
26987
27092
  type TypeStarsAmount = tl.RawStarsAmount
26988
27093
  function isAnyStarsAmount(o: object): o is TypeStarsAmount
27094
+ type TypeBotVerifierSettings = tl.RawBotVerifierSettings
27095
+ function isAnyBotVerifierSettings(o: object): o is TypeBotVerifierSettings
27096
+ type TypeBotVerification = tl.RawBotVerification
27097
+ function isAnyBotVerification(o: object): o is TypeBotVerification
27098
+ type TypeStarGiftAttribute = tl.RawStarGiftAttributeModel | tl.RawStarGiftAttributePattern | tl.RawStarGiftAttributeBackdrop | tl.RawStarGiftAttributeOriginalDetails
27099
+ function isAnyStarGiftAttribute(o: object): o is TypeStarGiftAttribute
26989
27100
 
26990
27101
  namespace help {
26991
27102
  interface RawConfigSimple {
@@ -32715,11 +32826,6 @@ export class RpcError extends Error {
32715
32826
  * channel search tab »</a>).
32716
32827
  */
32717
32828
  broadcastsOnly?: boolean;
32718
- /**
32719
- * <a href="https://corefork.telegram.org/api/folders#peer-folders">Peer
32720
- * folder ID, for more info click here</a>
32721
- */
32722
- folderId?: number;
32723
32829
  /**
32724
32830
  * Whether to search only in groups
32725
32831
  */
@@ -32728,6 +32834,11 @@ export class RpcError extends Error {
32728
32834
  * Whether to search only in private chats
32729
32835
  */
32730
32836
  usersOnly?: boolean;
32837
+ /**
32838
+ * <a href="https://corefork.telegram.org/api/folders#peer-folders">Peer
32839
+ * folder ID, for more info click here</a>
32840
+ */
32841
+ folderId?: number;
32731
32842
  /**
32732
32843
  * Query
32733
32844
  */
@@ -37099,6 +37210,15 @@ export class RpcError extends Error {
37099
37210
  */
37100
37211
  hash: Long;
37101
37212
  }
37213
+ /**
37214
+ * RPC method returns boolean
37215
+ */
37216
+ interface RawReportMessagesDeliveryRequest {
37217
+ _: 'messages.reportMessagesDelivery';
37218
+ push?: boolean;
37219
+ peer: tl.TypeInputPeer;
37220
+ id: number[];
37221
+ }
37102
37222
  interface RpcCallReturn {
37103
37223
  'messages.getMessages': tl.messages.TypeMessages
37104
37224
  'messages.getDialogs': tl.messages.TypeDialogs
@@ -37324,6 +37444,7 @@ export class RpcError extends Error {
37324
37444
  'messages.savePreparedInlineMessage': tl.messages.TypeBotPreparedInlineMessage
37325
37445
  'messages.getPreparedInlineMessage': tl.messages.TypePreparedInlineMessage
37326
37446
  'messages.searchStickers': tl.messages.TypeFoundStickers
37447
+ 'messages.reportMessagesDelivery': boolean
37327
37448
  }
37328
37449
  /**
37329
37450
  * Object contains a list of chats with messages and auxiliary
@@ -43626,6 +43747,10 @@ export class RpcError extends Error {
43626
43747
  */
43627
43748
  nextOffset?: string;
43628
43749
  }
43750
+ interface RawStarGiftUpgradePreview {
43751
+ _: 'payments.starGiftUpgradePreview';
43752
+ sampleAttributes: tl.TypeStarGiftAttribute[];
43753
+ }
43629
43754
  /**
43630
43755
  * Get a payment form
43631
43756
  *
@@ -44248,10 +44373,6 @@ export class RpcError extends Error {
44248
44373
  * If set, hides the gift from our profile.
44249
44374
  */
44250
44375
  unsave?: boolean;
44251
- /**
44252
- * ID of the user that sent us the gift.
44253
- */
44254
- userId: tl.TypeInputUser;
44255
44376
  /**
44256
44377
  * The ID of the {@link RawMessageService} with the
44257
44378
  * {@link RawMessageActionStarGift}.
@@ -44277,10 +44398,6 @@ export class RpcError extends Error {
44277
44398
  */
44278
44399
  interface RawConvertStarGiftRequest {
44279
44400
  _: 'payments.convertStarGift';
44280
- /**
44281
- * ID of the user that sent us the gift.
44282
- */
44283
- userId: tl.TypeInputUser;
44284
44401
  /**
44285
44402
  * The ID of the {@link RawMessageService} with the
44286
44403
  * {@link RawMessageActionStarGift}.
@@ -44458,6 +44575,37 @@ export class RpcError extends Error {
44458
44575
  */
44459
44576
  link: string;
44460
44577
  }
44578
+ /**
44579
+ * RPC method returns
44580
+ * {@link tl.payments.TypeStarGiftUpgradePreview}
44581
+ */
44582
+ interface RawGetStarGiftUpgradePreviewRequest {
44583
+ _: 'payments.getStarGiftUpgradePreview';
44584
+ giftId: Long;
44585
+ }
44586
+ /**
44587
+ * RPC method returns {@link tl.TypeUpdates}
44588
+ */
44589
+ interface RawUpgradeStarGiftRequest {
44590
+ _: 'payments.upgradeStarGift';
44591
+ keepOriginalDetails?: boolean;
44592
+ msgId: number;
44593
+ }
44594
+ /**
44595
+ * RPC method returns {@link tl.TypeUpdates}
44596
+ */
44597
+ interface RawTransferStarGiftRequest {
44598
+ _: 'payments.transferStarGift';
44599
+ msgId: number;
44600
+ toId: tl.TypeInputUser;
44601
+ }
44602
+ /**
44603
+ * RPC method returns {@link tl.payments.TypeUserStarGifts}
44604
+ */
44605
+ interface RawGetUserStarGiftRequest {
44606
+ _: 'payments.getUserStarGift';
44607
+ msgId: number[];
44608
+ }
44461
44609
  interface RpcCallReturn {
44462
44610
  'payments.getPaymentForm': tl.payments.TypePaymentForm
44463
44611
  'payments.getPaymentReceipt': tl.payments.TypePaymentReceipt
@@ -44499,6 +44647,10 @@ export class RpcError extends Error {
44499
44647
  'payments.getSuggestedStarRefBots': tl.payments.TypeSuggestedStarRefBots
44500
44648
  'payments.connectStarRefBot': tl.payments.TypeConnectedStarRefBots
44501
44649
  'payments.editConnectedStarRefBot': tl.payments.TypeConnectedStarRefBots
44650
+ 'payments.getStarGiftUpgradePreview': tl.payments.TypeStarGiftUpgradePreview
44651
+ 'payments.upgradeStarGift': tl.TypeUpdates
44652
+ 'payments.transferStarGift': tl.TypeUpdates
44653
+ 'payments.getUserStarGift': tl.payments.TypeUserStarGifts
44502
44654
  }
44503
44655
  /**
44504
44656
  * Payment form
@@ -44608,6 +44760,8 @@ export class RpcError extends Error {
44608
44760
  */
44609
44761
  type TypeSuggestedStarRefBots = tl.payments.RawSuggestedStarRefBots
44610
44762
  function isAnySuggestedStarRefBots(o: object): o is TypeSuggestedStarRefBots
44763
+ type TypeStarGiftUpgradePreview = tl.payments.RawStarGiftUpgradePreview
44764
+ function isAnyStarGiftUpgradePreview(o: object): o is TypeStarGiftUpgradePreview
44611
44765
  }
44612
44766
 
44613
44767
  namespace phone {
@@ -44763,6 +44917,7 @@ export class RpcError extends Error {
44763
44917
  * Destination of the phone call
44764
44918
  */
44765
44919
  userId: tl.TypeInputUser;
44920
+ conferenceCall?: tl.TypeInputGroupCall;
44766
44921
  /**
44767
44922
  * Random ID to avoid resending the same object
44768
44923
  */
@@ -44989,6 +45144,7 @@ export class RpcError extends Error {
44989
45144
  * muted group chat.
44990
45145
  */
44991
45146
  inviteHash?: string;
45147
+ keyFingerprint?: Long;
44992
45148
  /**
44993
45149
  * WebRTC parameters
44994
45150
  */
@@ -45400,6 +45556,14 @@ export class RpcError extends Error {
45400
45556
  */
45401
45557
  file: tl.TypeInputFile;
45402
45558
  }
45559
+ /**
45560
+ * RPC method returns {@link tl.phone.TypePhoneCall}
45561
+ */
45562
+ interface RawCreateConferenceCallRequest {
45563
+ _: 'phone.createConferenceCall';
45564
+ peer: tl.TypeInputPhoneCall;
45565
+ keyFingerprint: Long;
45566
+ }
45403
45567
  interface RpcCallReturn {
45404
45568
  'phone.getCallConfig': tl.TypeDataJSON
45405
45569
  'phone.requestCall': tl.phone.TypePhoneCall
@@ -45432,6 +45596,7 @@ export class RpcError extends Error {
45432
45596
  'phone.getGroupCallStreamChannels': tl.phone.TypeGroupCallStreamChannels
45433
45597
  'phone.getGroupCallStreamRtmpUrl': tl.phone.TypeGroupCallStreamRtmpUrl
45434
45598
  'phone.saveCallLog': boolean
45599
+ 'phone.createConferenceCall': tl.phone.TypePhoneCall
45435
45600
  }
45436
45601
  /**
45437
45602
  * Phone call
@@ -46554,10 +46719,11 @@ export class RpcError extends Error {
46554
46719
  */
46555
46720
  interface RawChatlistInvite {
46556
46721
  _: 'chatlists.chatlistInvite';
46722
+ titleNoanimate?: boolean;
46557
46723
  /**
46558
46724
  * Name of the link
46559
46725
  */
46560
- title: string;
46726
+ title: tl.TypeTextWithEntities;
46561
46727
  /**
46562
46728
  * Emoji to use as icon for the folder.
46563
46729
  */
@@ -47522,6 +47688,16 @@ export class RpcError extends Error {
47522
47688
  */
47523
47689
  durationMonths?: number;
47524
47690
  }
47691
+ /**
47692
+ * RPC method returns boolean
47693
+ */
47694
+ interface RawSetCustomVerificationRequest {
47695
+ _: 'bots.setCustomVerification';
47696
+ enabled?: boolean;
47697
+ bot?: tl.TypeInputUser;
47698
+ peer: tl.TypeInputPeer;
47699
+ customDescription?: string;
47700
+ }
47525
47701
  interface RpcCallReturn {
47526
47702
  'bots.sendCustomRequest': tl.TypeDataJSON
47527
47703
  'bots.answerWebhookJSONQuery': boolean
@@ -47551,6 +47727,7 @@ export class RpcError extends Error {
47551
47727
  'bots.checkDownloadFileParams': boolean
47552
47728
  'bots.getAdminedBots': tl.TypeUser[]
47553
47729
  'bots.updateStarRefProgram': tl.TypeStarRefProgram
47730
+ 'bots.setCustomVerification': boolean
47554
47731
  }
47555
47732
  /**
47556
47733
  * Localized name, about text and description of a bot.
@@ -49595,6 +49772,7 @@ export class RpcError extends Error {
49595
49772
  | tl.messages.RawSavePreparedInlineMessageRequest
49596
49773
  | tl.messages.RawGetPreparedInlineMessageRequest
49597
49774
  | tl.messages.RawSearchStickersRequest
49775
+ | tl.messages.RawReportMessagesDeliveryRequest
49598
49776
  | tl.updates.RawGetStateRequest
49599
49777
  | tl.updates.RawGetDifferenceRequest
49600
49778
  | tl.updates.RawGetChannelDifferenceRequest
@@ -49725,6 +49903,7 @@ export class RpcError extends Error {
49725
49903
  | tl.bots.RawCheckDownloadFileParamsRequest
49726
49904
  | tl.bots.RawGetAdminedBotsRequest
49727
49905
  | tl.bots.RawUpdateStarRefProgramRequest
49906
+ | tl.bots.RawSetCustomVerificationRequest
49728
49907
  | tl.payments.RawGetPaymentFormRequest
49729
49908
  | tl.payments.RawGetPaymentReceiptRequest
49730
49909
  | tl.payments.RawValidateRequestedInfoRequest
@@ -49765,6 +49944,10 @@ export class RpcError extends Error {
49765
49944
  | tl.payments.RawGetSuggestedStarRefBotsRequest
49766
49945
  | tl.payments.RawConnectStarRefBotRequest
49767
49946
  | tl.payments.RawEditConnectedStarRefBotRequest
49947
+ | tl.payments.RawGetStarGiftUpgradePreviewRequest
49948
+ | tl.payments.RawUpgradeStarGiftRequest
49949
+ | tl.payments.RawTransferStarGiftRequest
49950
+ | tl.payments.RawGetUserStarGiftRequest
49768
49951
  | tl.stickers.RawCreateStickerSetRequest
49769
49952
  | tl.stickers.RawRemoveStickerFromSetRequest
49770
49953
  | tl.stickers.RawChangeStickerPositionRequest
@@ -49807,6 +49990,7 @@ export class RpcError extends Error {
49807
49990
  | tl.phone.RawGetGroupCallStreamChannelsRequest
49808
49991
  | tl.phone.RawGetGroupCallStreamRtmpUrlRequest
49809
49992
  | tl.phone.RawSaveCallLogRequest
49993
+ | tl.phone.RawCreateConferenceCallRequest
49810
49994
  | tl.langpack.RawGetLangPackRequest
49811
49995
  | tl.langpack.RawGetStringsRequest
49812
49996
  | tl.langpack.RawGetDifferenceRequest
@@ -50041,6 +50225,7 @@ export class RpcError extends Error {
50041
50225
  | tl.RawMessageActionGiftStars
50042
50226
  | tl.RawMessageActionPrizeStars
50043
50227
  | tl.RawMessageActionStarGift
50228
+ | tl.RawMessageActionStarGiftUnique
50044
50229
  | tl.RawDialog
50045
50230
  | tl.RawDialogFolder
50046
50231
  | tl.RawPhotoEmpty
@@ -50626,6 +50811,7 @@ export class RpcError extends Error {
50626
50811
  | tl.RawPhoneCallDiscardReasonDisconnect
50627
50812
  | tl.RawPhoneCallDiscardReasonHangup
50628
50813
  | tl.RawPhoneCallDiscardReasonBusy
50814
+ | tl.RawPhoneCallDiscardReasonAllowGroupCall
50629
50815
  | tl.RawDataJSON
50630
50816
  | tl.RawLabeledPrice
50631
50817
  | tl.RawInvoice
@@ -51005,6 +51191,8 @@ export class RpcError extends Error {
51005
51191
  | tl.RawInputInvoiceStars
51006
51192
  | tl.RawInputInvoiceChatInviteSubscription
51007
51193
  | tl.RawInputInvoiceStarGift
51194
+ | tl.RawInputInvoiceStarGiftUpgrade
51195
+ | tl.RawInputInvoiceStarGiftTransfer
51008
51196
  | tl.payments.RawExportedInvoice
51009
51197
  | tl.messages.RawTranscribedAudio
51010
51198
  | tl.help.RawPremiumPromo
@@ -51243,6 +51431,7 @@ export class RpcError extends Error {
51243
51431
  | tl.RawStarsGiveawayOption
51244
51432
  | tl.RawStarsGiveawayWinnersOption
51245
51433
  | tl.RawStarGift
51434
+ | tl.RawStarGiftUnique
51246
51435
  | tl.payments.RawStarGiftsNotModified
51247
51436
  | tl.payments.RawStarGifts
51248
51437
  | tl.RawUserStarGift
@@ -51261,6 +51450,13 @@ export class RpcError extends Error {
51261
51450
  | tl.RawStarsAmount
51262
51451
  | tl.messages.RawFoundStickersNotModified
51263
51452
  | tl.messages.RawFoundStickers
51453
+ | tl.RawBotVerifierSettings
51454
+ | tl.RawBotVerification
51455
+ | tl.RawStarGiftAttributeModel
51456
+ | tl.RawStarGiftAttributePattern
51457
+ | tl.RawStarGiftAttributeBackdrop
51458
+ | tl.RawStarGiftAttributeOriginalDetails
51459
+ | tl.payments.RawStarGiftUpgradePreview
51264
51460
  | tl.mtcute.RawDummyUpdate
51265
51461
  | tl.mtcute.RawDummyInputPeerMinUser
51266
51462
  | tl.mtcute.RawDummyInputPeerMinChannel
@@ -51668,6 +51864,7 @@ export class RpcError extends Error {
51668
51864
  | tl.messages.RawSavePreparedInlineMessageRequest
51669
51865
  | tl.messages.RawGetPreparedInlineMessageRequest
51670
51866
  | tl.messages.RawSearchStickersRequest
51867
+ | tl.messages.RawReportMessagesDeliveryRequest
51671
51868
  | tl.updates.RawGetStateRequest
51672
51869
  | tl.updates.RawGetDifferenceRequest
51673
51870
  | tl.updates.RawGetChannelDifferenceRequest
@@ -51798,6 +51995,7 @@ export class RpcError extends Error {
51798
51995
  | tl.bots.RawCheckDownloadFileParamsRequest
51799
51996
  | tl.bots.RawGetAdminedBotsRequest
51800
51997
  | tl.bots.RawUpdateStarRefProgramRequest
51998
+ | tl.bots.RawSetCustomVerificationRequest
51801
51999
  | tl.payments.RawGetPaymentFormRequest
51802
52000
  | tl.payments.RawGetPaymentReceiptRequest
51803
52001
  | tl.payments.RawValidateRequestedInfoRequest
@@ -51838,6 +52036,10 @@ export class RpcError extends Error {
51838
52036
  | tl.payments.RawGetSuggestedStarRefBotsRequest
51839
52037
  | tl.payments.RawConnectStarRefBotRequest
51840
52038
  | tl.payments.RawEditConnectedStarRefBotRequest
52039
+ | tl.payments.RawGetStarGiftUpgradePreviewRequest
52040
+ | tl.payments.RawUpgradeStarGiftRequest
52041
+ | tl.payments.RawTransferStarGiftRequest
52042
+ | tl.payments.RawGetUserStarGiftRequest
51841
52043
  | tl.stickers.RawCreateStickerSetRequest
51842
52044
  | tl.stickers.RawRemoveStickerFromSetRequest
51843
52045
  | tl.stickers.RawChangeStickerPositionRequest
@@ -51880,6 +52082,7 @@ export class RpcError extends Error {
51880
52082
  | tl.phone.RawGetGroupCallStreamChannelsRequest
51881
52083
  | tl.phone.RawGetGroupCallStreamRtmpUrlRequest
51882
52084
  | tl.phone.RawSaveCallLogRequest
52085
+ | tl.phone.RawCreateConferenceCallRequest
51883
52086
  | tl.langpack.RawGetLangPackRequest
51884
52087
  | tl.langpack.RawGetStringsRequest
51885
52088
  | tl.langpack.RawGetDifferenceRequest