@mtcute/tl 195.0.0 → 197.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 = 197;
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,19 @@ 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
+ slug: string;
24554
+ num: number;
24555
+ ownerId?: number;
24556
+ ownerName?: string;
24557
+ attributes: tl.TypeStarGiftAttribute[];
24558
+ availabilityIssued: number;
24559
+ availabilityTotal: number;
24499
24560
  }
24500
24561
  /**
24501
24562
  * Represents a
@@ -24515,6 +24576,8 @@ export class RpcError extends Error {
24515
24576
  * currently hidden from our profile page.
24516
24577
  */
24517
24578
  unsaved?: boolean;
24579
+ refunded?: boolean;
24580
+ canUpgrade?: boolean;
24518
24581
  /**
24519
24582
  * Sender of the gift (may be empty for anonymous senders; will
24520
24583
  * always be set if this gift was sent to us).
@@ -24550,6 +24613,9 @@ export class RpcError extends Error {
24550
24613
  * <code>stars</code>.
24551
24614
  */
24552
24615
  convertStars?: Long;
24616
+ upgradeStars?: Long;
24617
+ canExportAt?: number;
24618
+ transferStars?: Long;
24553
24619
  }
24554
24620
  /**
24555
24621
  * Report menu option
@@ -24748,6 +24814,56 @@ export class RpcError extends Error {
24748
24814
  */
24749
24815
  nanos: number;
24750
24816
  }
24817
+ interface RawBotVerifierSettings {
24818
+ _: 'botVerifierSettings';
24819
+ canModifyCustomDescription?: boolean;
24820
+ icon: Long;
24821
+ company: string;
24822
+ customDescription?: string;
24823
+ }
24824
+ interface RawBotVerification {
24825
+ _: 'botVerification';
24826
+ botId: number;
24827
+ icon: Long;
24828
+ description: string;
24829
+ }
24830
+ interface RawStarGiftAttributeModel {
24831
+ _: 'starGiftAttributeModel';
24832
+ name: string;
24833
+ document: tl.TypeDocument;
24834
+ rarityPermille: number;
24835
+ }
24836
+ interface RawStarGiftAttributePattern {
24837
+ _: 'starGiftAttributePattern';
24838
+ name: string;
24839
+ document: tl.TypeDocument;
24840
+ rarityPermille: number;
24841
+ }
24842
+ interface RawStarGiftAttributeBackdrop {
24843
+ _: 'starGiftAttributeBackdrop';
24844
+ name: string;
24845
+ centerColor: number;
24846
+ edgeColor: number;
24847
+ patternColor: number;
24848
+ textColor: number;
24849
+ rarityPermille: number;
24850
+ }
24851
+ interface RawStarGiftAttributeOriginalDetails {
24852
+ _: 'starGiftAttributeOriginalDetails';
24853
+ senderId?: number;
24854
+ recipientId: number;
24855
+ date: number;
24856
+ message?: tl.TypeTextWithEntities;
24857
+ }
24858
+ interface RawWebPageAttributeUniqueStarGift {
24859
+ _: 'webPageAttributeUniqueStarGift';
24860
+ gift: tl.TypeStarGift;
24861
+ }
24862
+ interface RawMediaAreaStarGift {
24863
+ _: 'mediaAreaStarGift';
24864
+ coordinates: tl.TypeMediaAreaCoordinates;
24865
+ slug: string;
24866
+ }
24751
24867
  /**
24752
24868
  * RPC method returns {@link tl.TypeError}
24753
24869
  */
@@ -25112,7 +25228,7 @@ export class RpcError extends Error {
25112
25228
  /**
25113
25229
  * Object describing actions connected to a service message.
25114
25230
  */
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
25231
+ 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
25232
  function isAnyMessageAction(o: object): o is TypeMessageAction
25117
25233
  /**
25118
25234
  * Chat info.
@@ -25541,7 +25657,7 @@ export class RpcError extends Error {
25541
25657
  /**
25542
25658
  * Why was the phone call discarded?
25543
25659
  */
25544
- type TypePhoneCallDiscardReason = tl.RawPhoneCallDiscardReasonMissed | tl.RawPhoneCallDiscardReasonDisconnect | tl.RawPhoneCallDiscardReasonHangup | tl.RawPhoneCallDiscardReasonBusy
25660
+ type TypePhoneCallDiscardReason = tl.RawPhoneCallDiscardReasonMissed | tl.RawPhoneCallDiscardReasonDisconnect | tl.RawPhoneCallDiscardReasonHangup | tl.RawPhoneCallDiscardReasonBusy | tl.RawPhoneCallDiscardReasonAllowGroupCall
25545
25661
  function isAnyPhoneCallDiscardReason(o: object): o is TypePhoneCallDiscardReason
25546
25662
  /**
25547
25663
  * Represent a JSON-encoded object
@@ -26034,7 +26150,7 @@ export class RpcError extends Error {
26034
26150
  /**
26035
26151
  * Webpage attributes
26036
26152
  */
26037
- type TypeWebPageAttribute = tl.RawWebPageAttributeTheme | tl.RawWebPageAttributeStory | tl.RawWebPageAttributeStickerSet
26153
+ type TypeWebPageAttribute = tl.RawWebPageAttributeTheme | tl.RawWebPageAttributeStory | tl.RawWebPageAttributeStickerSet | tl.RawWebPageAttributeUniqueStarGift
26038
26154
  function isAnyWebPageAttribute(o: object): o is TypeWebPageAttribute
26039
26155
  /**
26040
26156
  * Credit card info URL provided by the bank
@@ -26287,7 +26403,7 @@ export class RpcError extends Error {
26287
26403
  /**
26288
26404
  * An invoice
26289
26405
  */
26290
- type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift
26406
+ type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift | tl.RawInputInvoiceStarGiftUpgrade | tl.RawInputInvoiceStarGiftTransfer
26291
26407
  function isAnyInputInvoice(o: object): o is TypeInputInvoice
26292
26408
  /**
26293
26409
  * Info about a Telegram Premium purchase
@@ -26507,7 +26623,7 @@ export class RpcError extends Error {
26507
26623
  * <a href="https://corefork.telegram.org/api/stories#media-areas">story
26508
26624
  * media area »</a>
26509
26625
  */
26510
- type TypeMediaArea = tl.RawMediaAreaVenue | tl.RawInputMediaAreaVenue | tl.RawMediaAreaGeoPoint | tl.RawMediaAreaSuggestedReaction | tl.RawMediaAreaChannelPost | tl.RawInputMediaAreaChannelPost | tl.RawMediaAreaUrl | tl.RawMediaAreaWeather
26626
+ type TypeMediaArea = tl.RawMediaAreaVenue | tl.RawInputMediaAreaVenue | tl.RawMediaAreaGeoPoint | tl.RawMediaAreaSuggestedReaction | tl.RawMediaAreaChannelPost | tl.RawInputMediaAreaChannelPost | tl.RawMediaAreaUrl | tl.RawMediaAreaWeather | tl.RawMediaAreaStarGift
26511
26627
  function isAnyMediaArea(o: object): o is TypeMediaArea
26512
26628
  /**
26513
26629
  * <a href="https://corefork.telegram.org/api/stories">Stories</a>
@@ -26940,7 +27056,7 @@ export class RpcError extends Error {
26940
27056
  * <a href="https://corefork.telegram.org/api/gifts">star gift,
26941
27057
  * see here »</a> for more info.
26942
27058
  */
26943
- type TypeStarGift = tl.RawStarGift
27059
+ type TypeStarGift = tl.RawStarGift | tl.RawStarGiftUnique
26944
27060
  function isAnyStarGift(o: object): o is TypeStarGift
26945
27061
  /**
26946
27062
  * Represents a
@@ -26986,6 +27102,12 @@ export class RpcError extends Error {
26986
27102
  */
26987
27103
  type TypeStarsAmount = tl.RawStarsAmount
26988
27104
  function isAnyStarsAmount(o: object): o is TypeStarsAmount
27105
+ type TypeBotVerifierSettings = tl.RawBotVerifierSettings
27106
+ function isAnyBotVerifierSettings(o: object): o is TypeBotVerifierSettings
27107
+ type TypeBotVerification = tl.RawBotVerification
27108
+ function isAnyBotVerification(o: object): o is TypeBotVerification
27109
+ type TypeStarGiftAttribute = tl.RawStarGiftAttributeModel | tl.RawStarGiftAttributePattern | tl.RawStarGiftAttributeBackdrop | tl.RawStarGiftAttributeOriginalDetails
27110
+ function isAnyStarGiftAttribute(o: object): o is TypeStarGiftAttribute
26989
27111
 
26990
27112
  namespace help {
26991
27113
  interface RawConfigSimple {
@@ -31447,6 +31569,11 @@ export class RpcError extends Error {
31447
31569
  */
31448
31570
  stickers: tl.TypeDocument[];
31449
31571
  }
31572
+ interface RawWebPagePreview {
31573
+ _: 'messages.webPagePreview';
31574
+ media: tl.TypeMessageMedia;
31575
+ users: tl.TypeUser[];
31576
+ }
31450
31577
  /**
31451
31578
  * Returns the list of messages by their IDs.
31452
31579
  *
@@ -32480,7 +32607,7 @@ export class RpcError extends Error {
32480
32607
  /**
32481
32608
  * Get preview of webpage
32482
32609
  *
32483
- * RPC method returns {@link tl.TypeMessageMedia}
32610
+ * RPC method returns {@link tl.messages.TypeWebPagePreview}
32484
32611
  */
32485
32612
  interface RawGetWebPagePreviewRequest {
32486
32613
  _: 'messages.getWebPagePreview';
@@ -32715,11 +32842,6 @@ export class RpcError extends Error {
32715
32842
  * channel search tab »</a>).
32716
32843
  */
32717
32844
  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
32845
  /**
32724
32846
  * Whether to search only in groups
32725
32847
  */
@@ -32728,6 +32850,11 @@ export class RpcError extends Error {
32728
32850
  * Whether to search only in private chats
32729
32851
  */
32730
32852
  usersOnly?: boolean;
32853
+ /**
32854
+ * <a href="https://corefork.telegram.org/api/folders#peer-folders">Peer
32855
+ * folder ID, for more info click here</a>
32856
+ */
32857
+ folderId?: number;
32731
32858
  /**
32732
32859
  * Query
32733
32860
  */
@@ -37099,6 +37226,15 @@ export class RpcError extends Error {
37099
37226
  */
37100
37227
  hash: Long;
37101
37228
  }
37229
+ /**
37230
+ * RPC method returns boolean
37231
+ */
37232
+ interface RawReportMessagesDeliveryRequest {
37233
+ _: 'messages.reportMessagesDelivery';
37234
+ push?: boolean;
37235
+ peer: tl.TypeInputPeer;
37236
+ id: number[];
37237
+ }
37102
37238
  interface RpcCallReturn {
37103
37239
  'messages.getMessages': tl.messages.TypeMessages
37104
37240
  'messages.getDialogs': tl.messages.TypeDialogs
@@ -37136,7 +37272,7 @@ export class RpcError extends Error {
37136
37272
  'messages.readMessageContents': tl.messages.TypeAffectedMessages
37137
37273
  'messages.getStickers': tl.messages.TypeStickers
37138
37274
  'messages.getAllStickers': tl.messages.TypeAllStickers
37139
- 'messages.getWebPagePreview': tl.TypeMessageMedia
37275
+ 'messages.getWebPagePreview': tl.messages.TypeWebPagePreview
37140
37276
  'messages.exportChatInvite': tl.TypeExportedChatInvite
37141
37277
  'messages.checkChatInvite': tl.TypeChatInvite
37142
37278
  'messages.importChatInvite': tl.TypeUpdates
@@ -37324,6 +37460,7 @@ export class RpcError extends Error {
37324
37460
  'messages.savePreparedInlineMessage': tl.messages.TypeBotPreparedInlineMessage
37325
37461
  'messages.getPreparedInlineMessage': tl.messages.TypePreparedInlineMessage
37326
37462
  'messages.searchStickers': tl.messages.TypeFoundStickers
37463
+ 'messages.reportMessagesDelivery': boolean
37327
37464
  }
37328
37465
  /**
37329
37466
  * Object contains a list of chats with messages and auxiliary
@@ -37669,6 +37806,8 @@ export class RpcError extends Error {
37669
37806
  */
37670
37807
  type TypeFoundStickers = tl.messages.RawFoundStickersNotModified | tl.messages.RawFoundStickers
37671
37808
  function isAnyFoundStickers(o: object): o is TypeFoundStickers
37809
+ type TypeWebPagePreview = tl.messages.RawWebPagePreview
37810
+ function isAnyWebPagePreview(o: object): o is TypeWebPagePreview
37672
37811
  }
37673
37812
 
37674
37813
  namespace updates {
@@ -43626,6 +43765,15 @@ export class RpcError extends Error {
43626
43765
  */
43627
43766
  nextOffset?: string;
43628
43767
  }
43768
+ interface RawStarGiftUpgradePreview {
43769
+ _: 'payments.starGiftUpgradePreview';
43770
+ sampleAttributes: tl.TypeStarGiftAttribute[];
43771
+ }
43772
+ interface RawUniqueStarGift {
43773
+ _: 'payments.uniqueStarGift';
43774
+ gift: tl.TypeStarGift;
43775
+ users: tl.TypeUser[];
43776
+ }
43629
43777
  /**
43630
43778
  * Get a payment form
43631
43779
  *
@@ -44248,10 +44396,6 @@ export class RpcError extends Error {
44248
44396
  * If set, hides the gift from our profile.
44249
44397
  */
44250
44398
  unsave?: boolean;
44251
- /**
44252
- * ID of the user that sent us the gift.
44253
- */
44254
- userId: tl.TypeInputUser;
44255
44399
  /**
44256
44400
  * The ID of the {@link RawMessageService} with the
44257
44401
  * {@link RawMessageActionStarGift}.
@@ -44277,10 +44421,6 @@ export class RpcError extends Error {
44277
44421
  */
44278
44422
  interface RawConvertStarGiftRequest {
44279
44423
  _: 'payments.convertStarGift';
44280
- /**
44281
- * ID of the user that sent us the gift.
44282
- */
44283
- userId: tl.TypeInputUser;
44284
44424
  /**
44285
44425
  * The ID of the {@link RawMessageService} with the
44286
44426
  * {@link RawMessageActionStarGift}.
@@ -44458,6 +44598,44 @@ export class RpcError extends Error {
44458
44598
  */
44459
44599
  link: string;
44460
44600
  }
44601
+ /**
44602
+ * RPC method returns
44603
+ * {@link tl.payments.TypeStarGiftUpgradePreview}
44604
+ */
44605
+ interface RawGetStarGiftUpgradePreviewRequest {
44606
+ _: 'payments.getStarGiftUpgradePreview';
44607
+ giftId: Long;
44608
+ }
44609
+ /**
44610
+ * RPC method returns {@link tl.TypeUpdates}
44611
+ */
44612
+ interface RawUpgradeStarGiftRequest {
44613
+ _: 'payments.upgradeStarGift';
44614
+ keepOriginalDetails?: boolean;
44615
+ msgId: number;
44616
+ }
44617
+ /**
44618
+ * RPC method returns {@link tl.TypeUpdates}
44619
+ */
44620
+ interface RawTransferStarGiftRequest {
44621
+ _: 'payments.transferStarGift';
44622
+ msgId: number;
44623
+ toId: tl.TypeInputUser;
44624
+ }
44625
+ /**
44626
+ * RPC method returns {@link tl.payments.TypeUserStarGifts}
44627
+ */
44628
+ interface RawGetUserStarGiftRequest {
44629
+ _: 'payments.getUserStarGift';
44630
+ msgId: number[];
44631
+ }
44632
+ /**
44633
+ * RPC method returns {@link tl.payments.TypeUniqueStarGift}
44634
+ */
44635
+ interface RawGetUniqueStarGiftRequest {
44636
+ _: 'payments.getUniqueStarGift';
44637
+ slug: string;
44638
+ }
44461
44639
  interface RpcCallReturn {
44462
44640
  'payments.getPaymentForm': tl.payments.TypePaymentForm
44463
44641
  'payments.getPaymentReceipt': tl.payments.TypePaymentReceipt
@@ -44499,6 +44677,11 @@ export class RpcError extends Error {
44499
44677
  'payments.getSuggestedStarRefBots': tl.payments.TypeSuggestedStarRefBots
44500
44678
  'payments.connectStarRefBot': tl.payments.TypeConnectedStarRefBots
44501
44679
  'payments.editConnectedStarRefBot': tl.payments.TypeConnectedStarRefBots
44680
+ 'payments.getStarGiftUpgradePreview': tl.payments.TypeStarGiftUpgradePreview
44681
+ 'payments.upgradeStarGift': tl.TypeUpdates
44682
+ 'payments.transferStarGift': tl.TypeUpdates
44683
+ 'payments.getUserStarGift': tl.payments.TypeUserStarGifts
44684
+ 'payments.getUniqueStarGift': tl.payments.TypeUniqueStarGift
44502
44685
  }
44503
44686
  /**
44504
44687
  * Payment form
@@ -44608,6 +44791,10 @@ export class RpcError extends Error {
44608
44791
  */
44609
44792
  type TypeSuggestedStarRefBots = tl.payments.RawSuggestedStarRefBots
44610
44793
  function isAnySuggestedStarRefBots(o: object): o is TypeSuggestedStarRefBots
44794
+ type TypeStarGiftUpgradePreview = tl.payments.RawStarGiftUpgradePreview
44795
+ function isAnyStarGiftUpgradePreview(o: object): o is TypeStarGiftUpgradePreview
44796
+ type TypeUniqueStarGift = tl.payments.RawUniqueStarGift
44797
+ function isAnyUniqueStarGift(o: object): o is TypeUniqueStarGift
44611
44798
  }
44612
44799
 
44613
44800
  namespace phone {
@@ -44763,6 +44950,7 @@ export class RpcError extends Error {
44763
44950
  * Destination of the phone call
44764
44951
  */
44765
44952
  userId: tl.TypeInputUser;
44953
+ conferenceCall?: tl.TypeInputGroupCall;
44766
44954
  /**
44767
44955
  * Random ID to avoid resending the same object
44768
44956
  */
@@ -44989,6 +45177,7 @@ export class RpcError extends Error {
44989
45177
  * muted group chat.
44990
45178
  */
44991
45179
  inviteHash?: string;
45180
+ keyFingerprint?: Long;
44992
45181
  /**
44993
45182
  * WebRTC parameters
44994
45183
  */
@@ -45400,6 +45589,14 @@ export class RpcError extends Error {
45400
45589
  */
45401
45590
  file: tl.TypeInputFile;
45402
45591
  }
45592
+ /**
45593
+ * RPC method returns {@link tl.phone.TypePhoneCall}
45594
+ */
45595
+ interface RawCreateConferenceCallRequest {
45596
+ _: 'phone.createConferenceCall';
45597
+ peer: tl.TypeInputPhoneCall;
45598
+ keyFingerprint: Long;
45599
+ }
45403
45600
  interface RpcCallReturn {
45404
45601
  'phone.getCallConfig': tl.TypeDataJSON
45405
45602
  'phone.requestCall': tl.phone.TypePhoneCall
@@ -45432,6 +45629,7 @@ export class RpcError extends Error {
45432
45629
  'phone.getGroupCallStreamChannels': tl.phone.TypeGroupCallStreamChannels
45433
45630
  'phone.getGroupCallStreamRtmpUrl': tl.phone.TypeGroupCallStreamRtmpUrl
45434
45631
  'phone.saveCallLog': boolean
45632
+ 'phone.createConferenceCall': tl.phone.TypePhoneCall
45435
45633
  }
45436
45634
  /**
45437
45635
  * Phone call
@@ -46395,6 +46593,15 @@ export class RpcError extends Error {
46395
46593
  */
46396
46594
  users: tl.TypeUser[];
46397
46595
  }
46596
+ interface RawUsers {
46597
+ _: 'users.users';
46598
+ users: tl.TypeUser[];
46599
+ }
46600
+ interface RawUsersSlice {
46601
+ _: 'users.usersSlice';
46602
+ count: number;
46603
+ users: tl.TypeUser[];
46604
+ }
46398
46605
  /**
46399
46606
  * Returns basic user info according to their identifiers.
46400
46607
  *
@@ -46476,6 +46683,8 @@ export class RpcError extends Error {
46476
46683
  */
46477
46684
  type TypeUserFull = tl.users.RawUserFull
46478
46685
  function isAnyUserFull(o: object): o is TypeUserFull
46686
+ type TypeUsers = tl.users.RawUsers | tl.users.RawUsersSlice
46687
+ function isAnyUsers(o: object): o is TypeUsers
46479
46688
  }
46480
46689
 
46481
46690
  namespace chatlists {
@@ -46554,10 +46763,11 @@ export class RpcError extends Error {
46554
46763
  */
46555
46764
  interface RawChatlistInvite {
46556
46765
  _: 'chatlists.chatlistInvite';
46766
+ titleNoanimate?: boolean;
46557
46767
  /**
46558
46768
  * Name of the link
46559
46769
  */
46560
- title: string;
46770
+ title: tl.TypeTextWithEntities;
46561
46771
  /**
46562
46772
  * Emoji to use as icon for the folder.
46563
46773
  */
@@ -47522,6 +47732,23 @@ export class RpcError extends Error {
47522
47732
  */
47523
47733
  durationMonths?: number;
47524
47734
  }
47735
+ /**
47736
+ * RPC method returns boolean
47737
+ */
47738
+ interface RawSetCustomVerificationRequest {
47739
+ _: 'bots.setCustomVerification';
47740
+ enabled?: boolean;
47741
+ bot?: tl.TypeInputUser;
47742
+ peer: tl.TypeInputPeer;
47743
+ customDescription?: string;
47744
+ }
47745
+ /**
47746
+ * RPC method returns {@link tl.users.TypeUsers}
47747
+ */
47748
+ interface RawGetBotRecommendationsRequest {
47749
+ _: 'bots.getBotRecommendations';
47750
+ bot: tl.TypeInputUser;
47751
+ }
47525
47752
  interface RpcCallReturn {
47526
47753
  'bots.sendCustomRequest': tl.TypeDataJSON
47527
47754
  'bots.answerWebhookJSONQuery': boolean
@@ -47551,6 +47778,8 @@ export class RpcError extends Error {
47551
47778
  'bots.checkDownloadFileParams': boolean
47552
47779
  'bots.getAdminedBots': tl.TypeUser[]
47553
47780
  'bots.updateStarRefProgram': tl.TypeStarRefProgram
47781
+ 'bots.setCustomVerification': boolean
47782
+ 'bots.getBotRecommendations': tl.users.TypeUsers
47554
47783
  }
47555
47784
  /**
47556
47785
  * Localized name, about text and description of a bot.
@@ -49595,6 +49824,7 @@ export class RpcError extends Error {
49595
49824
  | tl.messages.RawSavePreparedInlineMessageRequest
49596
49825
  | tl.messages.RawGetPreparedInlineMessageRequest
49597
49826
  | tl.messages.RawSearchStickersRequest
49827
+ | tl.messages.RawReportMessagesDeliveryRequest
49598
49828
  | tl.updates.RawGetStateRequest
49599
49829
  | tl.updates.RawGetDifferenceRequest
49600
49830
  | tl.updates.RawGetChannelDifferenceRequest
@@ -49725,6 +49955,7 @@ export class RpcError extends Error {
49725
49955
  | tl.bots.RawCheckDownloadFileParamsRequest
49726
49956
  | tl.bots.RawGetAdminedBotsRequest
49727
49957
  | tl.bots.RawUpdateStarRefProgramRequest
49958
+ | tl.bots.RawSetCustomVerificationRequest
49728
49959
  | tl.payments.RawGetPaymentFormRequest
49729
49960
  | tl.payments.RawGetPaymentReceiptRequest
49730
49961
  | tl.payments.RawValidateRequestedInfoRequest
@@ -49765,6 +49996,10 @@ export class RpcError extends Error {
49765
49996
  | tl.payments.RawGetSuggestedStarRefBotsRequest
49766
49997
  | tl.payments.RawConnectStarRefBotRequest
49767
49998
  | tl.payments.RawEditConnectedStarRefBotRequest
49999
+ | tl.payments.RawGetStarGiftUpgradePreviewRequest
50000
+ | tl.payments.RawUpgradeStarGiftRequest
50001
+ | tl.payments.RawTransferStarGiftRequest
50002
+ | tl.payments.RawGetUserStarGiftRequest
49768
50003
  | tl.stickers.RawCreateStickerSetRequest
49769
50004
  | tl.stickers.RawRemoveStickerFromSetRequest
49770
50005
  | tl.stickers.RawChangeStickerPositionRequest
@@ -49807,6 +50042,7 @@ export class RpcError extends Error {
49807
50042
  | tl.phone.RawGetGroupCallStreamChannelsRequest
49808
50043
  | tl.phone.RawGetGroupCallStreamRtmpUrlRequest
49809
50044
  | tl.phone.RawSaveCallLogRequest
50045
+ | tl.phone.RawCreateConferenceCallRequest
49810
50046
  | tl.langpack.RawGetLangPackRequest
49811
50047
  | tl.langpack.RawGetStringsRequest
49812
50048
  | tl.langpack.RawGetDifferenceRequest
@@ -49873,10 +50109,12 @@ export class RpcError extends Error {
49873
50109
  | tl.smsjobs.RawGetSmsJobRequest
49874
50110
  | tl.smsjobs.RawFinishJobRequest
49875
50111
  | tl.fragment.RawGetCollectibleInfoRequest
50112
+ | tl.bots.RawGetBotRecommendationsRequest
49876
50113
  | tl.channels.RawViewSponsoredMessageRequest
49877
50114
  | tl.channels.RawGetSponsoredMessagesRequest
49878
50115
  | tl.channels.RawClickSponsoredMessageRequest
49879
50116
  | tl.channels.RawReportSponsoredMessageRequest
50117
+ | tl.payments.RawGetUniqueStarGiftRequest
49880
50118
  | tl.mtcute.RawCustomMethodRequest
49881
50119
 
49882
50120
  type TlObject =
@@ -50041,6 +50279,7 @@ export class RpcError extends Error {
50041
50279
  | tl.RawMessageActionGiftStars
50042
50280
  | tl.RawMessageActionPrizeStars
50043
50281
  | tl.RawMessageActionStarGift
50282
+ | tl.RawMessageActionStarGiftUnique
50044
50283
  | tl.RawDialog
50045
50284
  | tl.RawDialogFolder
50046
50285
  | tl.RawPhotoEmpty
@@ -50626,6 +50865,7 @@ export class RpcError extends Error {
50626
50865
  | tl.RawPhoneCallDiscardReasonDisconnect
50627
50866
  | tl.RawPhoneCallDiscardReasonHangup
50628
50867
  | tl.RawPhoneCallDiscardReasonBusy
50868
+ | tl.RawPhoneCallDiscardReasonAllowGroupCall
50629
50869
  | tl.RawDataJSON
50630
50870
  | tl.RawLabeledPrice
50631
50871
  | tl.RawInvoice
@@ -51005,6 +51245,8 @@ export class RpcError extends Error {
51005
51245
  | tl.RawInputInvoiceStars
51006
51246
  | tl.RawInputInvoiceChatInviteSubscription
51007
51247
  | tl.RawInputInvoiceStarGift
51248
+ | tl.RawInputInvoiceStarGiftUpgrade
51249
+ | tl.RawInputInvoiceStarGiftTransfer
51008
51250
  | tl.payments.RawExportedInvoice
51009
51251
  | tl.messages.RawTranscribedAudio
51010
51252
  | tl.help.RawPremiumPromo
@@ -51243,6 +51485,7 @@ export class RpcError extends Error {
51243
51485
  | tl.RawStarsGiveawayOption
51244
51486
  | tl.RawStarsGiveawayWinnersOption
51245
51487
  | tl.RawStarGift
51488
+ | tl.RawStarGiftUnique
51246
51489
  | tl.payments.RawStarGiftsNotModified
51247
51490
  | tl.payments.RawStarGifts
51248
51491
  | tl.RawUserStarGift
@@ -51261,6 +51504,19 @@ export class RpcError extends Error {
51261
51504
  | tl.RawStarsAmount
51262
51505
  | tl.messages.RawFoundStickersNotModified
51263
51506
  | tl.messages.RawFoundStickers
51507
+ | tl.RawBotVerifierSettings
51508
+ | tl.RawBotVerification
51509
+ | tl.RawStarGiftAttributeModel
51510
+ | tl.RawStarGiftAttributePattern
51511
+ | tl.RawStarGiftAttributeBackdrop
51512
+ | tl.RawStarGiftAttributeOriginalDetails
51513
+ | tl.payments.RawStarGiftUpgradePreview
51514
+ | tl.users.RawUsers
51515
+ | tl.users.RawUsersSlice
51516
+ | tl.RawWebPageAttributeUniqueStarGift
51517
+ | tl.RawMediaAreaStarGift
51518
+ | tl.payments.RawUniqueStarGift
51519
+ | tl.messages.RawWebPagePreview
51264
51520
  | tl.mtcute.RawDummyUpdate
51265
51521
  | tl.mtcute.RawDummyInputPeerMinUser
51266
51522
  | tl.mtcute.RawDummyInputPeerMinChannel
@@ -51668,6 +51924,7 @@ export class RpcError extends Error {
51668
51924
  | tl.messages.RawSavePreparedInlineMessageRequest
51669
51925
  | tl.messages.RawGetPreparedInlineMessageRequest
51670
51926
  | tl.messages.RawSearchStickersRequest
51927
+ | tl.messages.RawReportMessagesDeliveryRequest
51671
51928
  | tl.updates.RawGetStateRequest
51672
51929
  | tl.updates.RawGetDifferenceRequest
51673
51930
  | tl.updates.RawGetChannelDifferenceRequest
@@ -51798,6 +52055,7 @@ export class RpcError extends Error {
51798
52055
  | tl.bots.RawCheckDownloadFileParamsRequest
51799
52056
  | tl.bots.RawGetAdminedBotsRequest
51800
52057
  | tl.bots.RawUpdateStarRefProgramRequest
52058
+ | tl.bots.RawSetCustomVerificationRequest
51801
52059
  | tl.payments.RawGetPaymentFormRequest
51802
52060
  | tl.payments.RawGetPaymentReceiptRequest
51803
52061
  | tl.payments.RawValidateRequestedInfoRequest
@@ -51838,6 +52096,10 @@ export class RpcError extends Error {
51838
52096
  | tl.payments.RawGetSuggestedStarRefBotsRequest
51839
52097
  | tl.payments.RawConnectStarRefBotRequest
51840
52098
  | tl.payments.RawEditConnectedStarRefBotRequest
52099
+ | tl.payments.RawGetStarGiftUpgradePreviewRequest
52100
+ | tl.payments.RawUpgradeStarGiftRequest
52101
+ | tl.payments.RawTransferStarGiftRequest
52102
+ | tl.payments.RawGetUserStarGiftRequest
51841
52103
  | tl.stickers.RawCreateStickerSetRequest
51842
52104
  | tl.stickers.RawRemoveStickerFromSetRequest
51843
52105
  | tl.stickers.RawChangeStickerPositionRequest
@@ -51880,6 +52142,7 @@ export class RpcError extends Error {
51880
52142
  | tl.phone.RawGetGroupCallStreamChannelsRequest
51881
52143
  | tl.phone.RawGetGroupCallStreamRtmpUrlRequest
51882
52144
  | tl.phone.RawSaveCallLogRequest
52145
+ | tl.phone.RawCreateConferenceCallRequest
51883
52146
  | tl.langpack.RawGetLangPackRequest
51884
52147
  | tl.langpack.RawGetStringsRequest
51885
52148
  | tl.langpack.RawGetDifferenceRequest
@@ -51946,10 +52209,12 @@ export class RpcError extends Error {
51946
52209
  | tl.smsjobs.RawGetSmsJobRequest
51947
52210
  | tl.smsjobs.RawFinishJobRequest
51948
52211
  | tl.fragment.RawGetCollectibleInfoRequest
52212
+ | tl.bots.RawGetBotRecommendationsRequest
51949
52213
  | tl.channels.RawViewSponsoredMessageRequest
51950
52214
  | tl.channels.RawGetSponsoredMessagesRequest
51951
52215
  | tl.channels.RawClickSponsoredMessageRequest
51952
52216
  | tl.channels.RawReportSponsoredMessageRequest
52217
+ | tl.payments.RawGetUniqueStarGiftRequest
51953
52218
  | tl.mtcute.RawCustomMethodRequest
51954
52219
  }
51955
52220