@mtcute/tl 181.0.0 → 183.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 = 181;
5
+ const LAYER = 183;
6
6
 
7
7
  function $extendTypes(types: Record<string, string>): void
8
8
 
@@ -2418,6 +2418,7 @@ export class RpcError extends Error {
2418
2418
  viewForumAsMessages?: boolean;
2419
2419
  restrictedSponsored?: boolean;
2420
2420
  canViewRevenue?: boolean;
2421
+ paidMediaAllowed?: boolean;
2421
2422
  /**
2422
2423
  * ID of the channel
2423
2424
  */
@@ -2595,8 +2596,23 @@ export class RpcError extends Error {
2595
2596
  * <a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a>
2596
2597
  */
2597
2598
  wallpaper?: tl.TypeWallPaper;
2599
+ /**
2600
+ * The number of
2601
+ * <a href="https://corefork.telegram.org/api/boost">boosts</a>
2602
+ * the current user has applied to the current
2603
+ * <em>supergroup</em>.
2604
+ */
2598
2605
  boostsApplied?: number;
2599
2606
  boostsUnrestrict?: number;
2607
+ /**
2608
+ * <a href="https://corefork.telegram.org/api/custom-emoji">Custom
2609
+ * emoji stickerset</a> associated to the current
2610
+ * <em>supergroup</em>, set using
2611
+ * {@link channels.RawSetEmojiStickersRequest} after reaching
2612
+ * the appropriate boost level, see
2613
+ * <a href="https://corefork.telegram.org/api/boost#setting-a-custom-emoji-stickerset-for-supergroups">here
2614
+ * »</a> for more info.
2615
+ */
2600
2616
  emojiset?: tl.TypeStickerSet;
2601
2617
  }
2602
2618
  /**
@@ -2790,6 +2806,25 @@ export class RpcError extends Error {
2790
2806
  * ID of the sender of the message
2791
2807
  */
2792
2808
  fromId?: tl.TypePeer;
2809
+ /**
2810
+ * Supergroups only, contains the number of
2811
+ * <a href="https://corefork.telegram.org/api/boost">boosts</a>
2812
+ * this user has given the current supergroup, and should be
2813
+ * shown in the UI in the header of the message.
2814
+ *
2815
+ * Only present for incoming messages from non-anonymous
2816
+ * supergroup members that have boosted the supergroup.
2817
+ *
2818
+ * Note that this counter should be locally overridden for
2819
+ * non-anonymous <em>outgoing</em> messages, according to the
2820
+ * current value of
2821
+ * {@link RawChannelFull}.<code>boosts_applied</code>, to
2822
+ * ensure the value is correct even for messages sent by the
2823
+ * current user before a supergroup was boosted (or after a
2824
+ * boost has expired or the number of boosts has changed); do
2825
+ * not update this value for incoming messages from other
2826
+ * users, even if their boosts have changed.
2827
+ */
2793
2828
  fromBoostsApplied?: number;
2794
2829
  /**
2795
2830
  * Peer ID, the chat where this message was sent
@@ -3364,7 +3399,7 @@ export class RpcError extends Error {
3364
3399
  */
3365
3400
  refunded?: boolean;
3366
3401
  /**
3367
- * ID of the channel that was automatically
3402
+ * ID of the channel/supergroup that was automatically
3368
3403
  * <a href="https://corefork.telegram.org/api/boost">boosted</a>
3369
3404
  * by the winners of the giveaway for duration of the Premium
3370
3405
  * subscription.
@@ -4041,7 +4076,7 @@ export class RpcError extends Error {
4041
4076
  /**
4042
4077
  * If set, this gift code was received from a
4043
4078
  * <a href="https://corefork.telegram.org/api/giveaways">giveaway
4044
- * »</a> started by a channel we're subscribed to.
4079
+ * »</a> started by a channel/supergroup we're subscribed to.
4045
4080
  */
4046
4081
  viaGiveaway?: boolean;
4047
4082
  /**
@@ -4051,12 +4086,13 @@ export class RpcError extends Error {
4051
4086
  */
4052
4087
  unclaimed?: boolean;
4053
4088
  /**
4054
- * Identifier of the channel that created the gift code
4089
+ * Identifier of the channel/supergroup that created the gift
4090
+ * code
4055
4091
  * <a href="https://corefork.telegram.org/api/giveaways">either
4056
4092
  * directly or through a giveaway</a>: if we import this
4057
4093
  * giftcode link, we will also automatically
4058
4094
  * <a href="https://corefork.telegram.org/api/boost">boost</a>
4059
- * this channel.
4095
+ * this channel/supergroup.
4060
4096
  */
4061
4097
  boostPeer?: tl.TypePeer;
4062
4098
  /**
@@ -4857,7 +4893,46 @@ export class RpcError extends Error {
4857
4893
  * »</a> for more info.
4858
4894
  */
4859
4895
  wallpaperOverridden?: boolean;
4896
+ /**
4897
+ * If set, we can only write to this user if they have already
4898
+ * sent some messages to us, if we are subscribed to
4899
+ * <a href="https://corefork.telegram.org/api/premium">Telegram
4900
+ * Premium</a>, or if they're a mutual contact
4901
+ * ({@link RawUser}.<code>mutual_contact</code>).
4902
+ *
4903
+ * All the secondary conditions listed above must be checked
4904
+ * separately to verify whether we can still write to the user,
4905
+ * even if this flag is set (i.e. a mutual contact will have
4906
+ * this flag set even if we can still write to them, and so
4907
+ * on...); to avoid doing these extra checks if we haven't yet
4908
+ * cached all the required information (for example while
4909
+ * displaying the chat list in the sharing UI) the
4910
+ * {@link users.RawGetIsPremiumRequiredToContactRequest} method
4911
+ * may be invoked instead, passing the list of users currently
4912
+ * visible in the UI, returning a list of booleans that
4913
+ * directly specify whether we can or cannot write to each
4914
+ * user.
4915
+ *
4916
+ * To set this flag for ourselves invoke
4917
+ * {@link account.RawSetGlobalPrivacySettingsRequest}, setting
4918
+ * the
4919
+ * <code>settings.new_noncontact_peers_require_premium</code>
4920
+ * flag.
4921
+ */
4860
4922
  contactRequirePremium?: boolean;
4923
+ /**
4924
+ * If set, we cannot fetch the exact read date of messages we
4925
+ * send to this user using
4926
+ * {@link messages.RawGetOutboxReadDateRequest}.
4927
+ *
4928
+ * The exact read date of messages might still be unavailable
4929
+ * for other reasons, see {@link RawGlobalPrivacySettings} for
4930
+ * more info.
4931
+ *
4932
+ * To set this flag for ourselves invoke
4933
+ * {@link account.RawSetGlobalPrivacySettingsRequest}, setting
4934
+ * the <code>settings.hide_read_marks</code> flag.
4935
+ */
4861
4936
  readDatesPrivate?: boolean;
4862
4937
  sponsoredEnabled?: boolean;
4863
4938
  /**
@@ -7176,7 +7251,7 @@ export class RpcError extends Error {
7176
7251
  /**
7177
7252
  * Extended media
7178
7253
  */
7179
- extendedMedia: tl.TypeMessageExtendedMedia;
7254
+ extendedMedia: tl.TypeMessageExtendedMedia[];
7180
7255
  }
7181
7256
  /**
7182
7257
  * A
@@ -7320,7 +7395,8 @@ export class RpcError extends Error {
7320
7395
  reaction: tl.TypeReaction;
7321
7396
  }
7322
7397
  /**
7323
- * A <a href="https://corefork.telegram.org/api/boost">channel
7398
+ * A
7399
+ * <a href="https://corefork.telegram.org/api/boost">channel/supergroup
7324
7400
  * boost</a> has changed (bots only)
7325
7401
  */
7326
7402
  interface RawUpdateBotChatBoost {
@@ -7549,6 +7625,21 @@ export class RpcError extends Error {
7549
7625
  _: 'updateStarsBalance';
7550
7626
  balance: Long;
7551
7627
  }
7628
+ interface RawUpdateBusinessBotCallbackQuery {
7629
+ _: 'updateBusinessBotCallbackQuery';
7630
+ queryId: Long;
7631
+ userId: number;
7632
+ connectionId: string;
7633
+ message: tl.TypeMessage;
7634
+ replyToMessage?: tl.TypeMessage;
7635
+ chatInstance: Long;
7636
+ data?: Uint8Array;
7637
+ }
7638
+ interface RawUpdateStarsRevenueStatus {
7639
+ _: 'updateStarsRevenueStatus';
7640
+ peer: tl.TypePeer;
7641
+ status: tl.TypeStarsRevenueStatus;
7642
+ }
7552
7643
  /**
7553
7644
  * Too many updates, it is necessary to execute
7554
7645
  * {@link updates.RawGetDifferenceRequest}.
@@ -8719,8 +8810,16 @@ export class RpcError extends Error {
8719
8810
  emoticon: string;
8720
8811
  }
8721
8812
  /**
8722
- * Whether people will be able to see your exact last online
8723
- * timestamp
8813
+ * Whether people will be able to see our exact last online
8814
+ * timestamp.
8815
+ *
8816
+ * Note that if <em>we</em> decide to hide our exact last
8817
+ * online timestamp to someone <strong>and</strong> we do not
8818
+ * have a
8819
+ * <a href="https://corefork.telegram.org/api/premium">Premium</a>
8820
+ * subscription, we won't be able to see the exact last online
8821
+ * timestamp of <em>any</em> user, including those that do
8822
+ * share it with us.
8724
8823
  */
8725
8824
  interface RawInputPrivacyKeyStatusTimestamp {
8726
8825
  _: 'inputPrivacyKeyStatusTimestamp';
@@ -8785,7 +8884,15 @@ export class RpcError extends Error {
8785
8884
  _: 'inputPrivacyKeyBirthday';
8786
8885
  }
8787
8886
  /**
8788
- * Whether we can see the last online timestamp of this user
8887
+ * Whether we can see the last online timestamp of this user.
8888
+ *
8889
+ * Note that if <em>we</em> decide to hide our exact last
8890
+ * online timestamp to someone <strong>and</strong> we do not
8891
+ * have a
8892
+ * <a href="https://corefork.telegram.org/api/premium">Premium</a>
8893
+ * subscription, we won't be able to see the exact last online
8894
+ * timestamp of <em>any</em> user, including those that do
8895
+ * share it with us.
8789
8896
  */
8790
8897
  interface RawPrivacyKeyStatusTimestamp {
8791
8898
  _: 'privacyKeyStatusTimestamp';
@@ -9711,7 +9818,7 @@ export class RpcError extends Error {
9711
9818
  textColor?: boolean;
9712
9819
  /**
9713
9820
  * If set, this custom emoji stickerset can be used in
9714
- * <a href="https://corefork.telegram.org/api/emoji-status">channel
9821
+ * <a href="https://corefork.telegram.org/api/emoji-status">channel/supergroup
9715
9822
  * emoji statuses</a>.
9716
9823
  */
9717
9824
  channelEmojiStatus?: boolean;
@@ -9755,13 +9862,7 @@ export class RpcError extends Error {
9755
9862
  * using {@link messages.RawGetCustomEmojiDocumentsRequest}
9756
9863
  */
9757
9864
  thumbDocumentId?: Long;
9758
- /**
9759
- * Is this an animated stickerpack
9760
- */
9761
9865
  animated?: boolean;
9762
- /**
9763
- * Is this a video stickerpack
9764
- */
9765
9866
  videos?: boolean;
9766
9867
  /**
9767
9868
  * Number of stickers in pack
@@ -11775,19 +11876,21 @@ export class RpcError extends Error {
11775
11876
  * messages »</a>, contains the sender of the original message
11776
11877
  * (i.e. if user A sends a message, then user B forwards it
11777
11878
  * somewhere, then user C saves it to saved messages, this
11778
- * field will contain the ID of user A and <code>from_id</code>
11779
- * will contain the ID of user B).
11879
+ * field will contain the ID of user B and <code>from_id</code>
11880
+ * will contain the ID of user A).
11780
11881
  */
11781
11882
  savedFromId?: tl.TypePeer;
11782
11883
  /**
11783
11884
  * Only for forwarded messages from users with forward privacy
11784
- * enabled reforwarded to
11885
+ * enabled, sent by users with forward privacy enabled,
11886
+ * reforwarded to
11785
11887
  * <a href="https://corefork.telegram.org/api/saved-messages">saved
11786
11888
  * messages »</a>, contains the sender of the original message
11787
11889
  * (i.e. if user A (fwd privacy enabled) sends a message, then
11788
- * user B forwards it somewhere, then user C saves it to saved
11789
- * messages, this field will contain the name of user A and
11790
- * <code>from_id</code> will contain the ID of user B).
11890
+ * user B (fwd privacy enabled) forwards it somewhere, then
11891
+ * user C saves it to saved messages, this field will contain
11892
+ * the name of user B and <code>from_name</code> will contain
11893
+ * the name of user A).
11791
11894
  */
11792
11895
  savedFromName?: string;
11793
11896
  /**
@@ -11796,8 +11899,8 @@ export class RpcError extends Error {
11796
11899
  * messages »</a>, indicates when was the original message sent
11797
11900
  * (i.e. if user A sends a message @ unixtime 1, then user B
11798
11901
  * forwards it somewhere @ unixtime 2, then user C saves it to
11799
- * saved messages @ unixtime 3, this field will contain 1,
11800
- * <code>date</code> will contain 2 and the <code>date</code>
11902
+ * saved messages @ unixtime 3, this field will contain 2,
11903
+ * <code>date</code> will contain 1 and the <code>date</code>
11801
11904
  * of the containing {@link RawMessage} will contain 3).
11802
11905
  */
11803
11906
  savedDate?: number;
@@ -11996,6 +12099,7 @@ export class RpcError extends Error {
11996
12099
  * Date of last update of the draft.
11997
12100
  */
11998
12101
  date: number;
12102
+ effect?: Long;
11999
12103
  }
12000
12104
  /**
12001
12105
  * Stickerset with a single sticker as preview
@@ -16987,7 +17091,7 @@ export class RpcError extends Error {
16987
17091
  id: number;
16988
17092
  /**
16989
17093
  * <a href="https://corefork.telegram.org/api/folders">Folder</a>
16990
- * name
17094
+ * name (max 12 UTF-8 chars)
16991
17095
  */
16992
17096
  title: string;
16993
17097
  /**
@@ -17037,7 +17141,7 @@ export class RpcError extends Error {
17037
17141
  */
17038
17142
  id: number;
17039
17143
  /**
17040
- * Name of the folder
17144
+ * Name of the folder (max 12 UTF-8 chars)
17041
17145
  */
17042
17146
  title: string;
17043
17147
  /**
@@ -17331,7 +17435,42 @@ export class RpcError extends Error {
17331
17435
  * set.
17332
17436
  */
17333
17437
  keepArchivedFolders?: boolean;
17438
+ /**
17439
+ * If set, (only) users that cannot see <em>our</em> exact last
17440
+ * online date due to the current value of the
17441
+ * {@link RawInputPrivacyKeyStatusTimestamp} key will receive a
17442
+ * <code>403 USER_PRIVACY_RESTRICTED</code> error when invoking
17443
+ * {@link messages.RawGetOutboxReadDateRequest} to fetch the
17444
+ * exact read date of one of their messages.
17445
+ *
17446
+ * The {@link RawUserFull}.<code>read_dates_private</code> flag
17447
+ * will be set for users that have this flag enabled.
17448
+ */
17334
17449
  hideReadMarks?: boolean;
17450
+ /**
17451
+ * If set, only users that have a premium account, are in our
17452
+ * contact list, or already have a private chat with us can
17453
+ * write to us; a <code>403 PRIVACY_PREMIUM_REQUIRED</code>
17454
+ * error will be emitted otherwise.
17455
+ *
17456
+ * The {@link RawUserFull}.<code>contact_require_premium</code>
17457
+ * flag will be set for users that have this flag enabled.
17458
+ *
17459
+ * To check whether we can write to a user with this flag
17460
+ * enabled, if we haven't yet cached all the required
17461
+ * information (for example we don't have the
17462
+ * {@link RawUserFull} or history of all users while displaying
17463
+ * the chat list in the sharing UI) the
17464
+ * {@link users.RawGetIsPremiumRequiredToContactRequest} method
17465
+ * may be invoked, passing the list of users currently visible
17466
+ * in the UI, returning a list of booleans that directly
17467
+ * specify whether we can or cannot write to each user.
17468
+ *
17469
+ * <a href="https://corefork.telegram.org/api/premium">Premium</a>
17470
+ * users only, non-Premium users will receive a
17471
+ * <code>PREMIUM_ACCOUNT_REQUIRED</code> error when trying to
17472
+ * enable this flag.
17473
+ */
17335
17474
  newNoncontactPeersRequirePremium?: boolean;
17336
17475
  }
17337
17476
  /**
@@ -18387,10 +18526,11 @@ export class RpcError extends Error {
18387
18526
  */
18388
18527
  interface RawWebViewResultUrl {
18389
18528
  _: 'webViewResultUrl';
18529
+ fullsize?: boolean;
18390
18530
  /**
18391
18531
  * Webview session ID
18392
18532
  */
18393
- queryId: Long;
18533
+ queryId?: Long;
18394
18534
  /**
18395
18535
  * Webview URL to open
18396
18536
  */
@@ -18559,11 +18699,11 @@ export class RpcError extends Error {
18559
18699
  slug: string;
18560
18700
  }
18561
18701
  /**
18562
- * Used if the user wishes to start a channel
18702
+ * Used if the user wishes to start a channel/supergroup
18563
18703
  * <a href="https://corefork.telegram.org/api/giveaways">giveaway</a>
18564
18704
  * or send some
18565
18705
  * <a href="https://corefork.telegram.org/api/giveaways">giftcodes</a>
18566
- * to members of a channel, in exchange for
18706
+ * to members of a channel/supergroup, in exchange for
18567
18707
  * <a href="https://corefork.telegram.org/api/boost">boosts</a>.
18568
18708
  */
18569
18709
  interface RawInputInvoicePremiumGiftCode {
@@ -18637,7 +18777,7 @@ export class RpcError extends Error {
18637
18777
  * Used to gift
18638
18778
  * <a href="https://corefork.telegram.org/api/premium">Telegram
18639
18779
  * Premium</a> subscriptions only to some specific subscribers
18640
- * of a channel or to some of our contacts, see
18780
+ * of a channel/supergroup or to some of our contacts, see
18641
18781
  * <a href="https://corefork.telegram.org/api/giveaways">here
18642
18782
  * »</a> for more info on giveaways and gifts.
18643
18783
  */
@@ -18650,11 +18790,12 @@ export class RpcError extends Error {
18650
18790
  */
18651
18791
  users: tl.TypeInputUser[];
18652
18792
  /**
18653
- * If set, the gifts will be sent on behalf of a channel we are
18654
- * an admin of, which will also assign some
18793
+ * If set, the gifts will be sent on behalf of a
18794
+ * channel/supergroup we are an admin of, which will also
18795
+ * assign some
18655
18796
  * <a href="https://corefork.telegram.org/api/boost">boosts</a>
18656
18797
  * to it. Otherwise, the gift will be sent directly from the
18657
- * currently logged in users, and we will gain some extra
18798
+ * currently logged in user, and we will gain some extra
18658
18799
  * <a href="https://corefork.telegram.org/api/boost">boost
18659
18800
  * slots</a>. See
18660
18801
  * <a href="https://corefork.telegram.org/api/giveaways">here
@@ -18697,8 +18838,8 @@ export class RpcError extends Error {
18697
18838
  */
18698
18839
  winnersAreVisible?: boolean;
18699
18840
  /**
18700
- * The channel starting the giveaway, that the user must join
18701
- * to participate, that will receive the giveaway
18841
+ * The channel/supergroup starting the giveaway, that the user
18842
+ * must join to participate, that will receive the giveaway
18702
18843
  * <a href="https://corefork.telegram.org/api/boost">boosts</a>;
18703
18844
  * see
18704
18845
  * <a href="https://corefork.telegram.org/api/giveaways">here
@@ -19438,14 +19579,14 @@ export class RpcError extends Error {
19438
19579
  }
19439
19580
  /**
19440
19581
  * Used to fetch information about a
19441
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19442
- * Mini App</a> by its ID
19582
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
19583
+ * link Mini App</a> by its ID
19443
19584
  */
19444
19585
  interface RawInputBotAppID {
19445
19586
  _: 'inputBotAppID';
19446
19587
  /**
19447
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19448
- * Mini App</a> ID.
19588
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
19589
+ * link Mini App</a> ID.
19449
19590
  */
19450
19591
  id: Long;
19451
19592
  /**
@@ -19456,8 +19597,8 @@ export class RpcError extends Error {
19456
19597
  }
19457
19598
  /**
19458
19599
  * Used to fetch information about a
19459
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19460
- * Mini App</a> by its short name
19600
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
19601
+ * link Mini App</a> by its short name
19461
19602
  */
19462
19603
  interface RawInputBotAppShortName {
19463
19604
  _: 'inputBotAppShortName';
@@ -19467,7 +19608,7 @@ export class RpcError extends Error {
19467
19608
  botId: tl.TypeInputUser;
19468
19609
  /**
19469
19610
  * Short name, obtained from a
19470
- * <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named
19611
+ * <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">Direct
19471
19612
  * Mini App deep link</a>
19472
19613
  */
19473
19614
  shortName: string;
@@ -19480,8 +19621,8 @@ export class RpcError extends Error {
19480
19621
  }
19481
19622
  /**
19482
19623
  * Contains information about a
19483
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19484
- * Mini App</a>.
19624
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
19625
+ * link Mini App</a>.
19485
19626
  */
19486
19627
  interface RawBotApp {
19487
19628
  _: 'botApp';
@@ -19495,7 +19636,7 @@ export class RpcError extends Error {
19495
19636
  accessHash: Long;
19496
19637
  /**
19497
19638
  * bot mini app short name, used to generate
19498
- * <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named
19639
+ * <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">Direct
19499
19640
  * Mini App deep links</a>.
19500
19641
  */
19501
19642
  shortName: string;
@@ -19523,8 +19664,8 @@ export class RpcError extends Error {
19523
19664
  }
19524
19665
  /**
19525
19666
  * Contains the link that must be used to open a
19526
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19527
- * Mini App</a>.
19667
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
19668
+ * link Mini App</a>.
19528
19669
  */
19529
19670
  interface RawAppWebViewResultUrl {
19530
19671
  _: 'appWebViewResultUrl';
@@ -20033,6 +20174,7 @@ export class RpcError extends Error {
20033
20174
  * (0-360).
20034
20175
  */
20035
20176
  rotation: Double;
20177
+ radius?: Double;
20036
20178
  }
20037
20179
  /**
20038
20180
  * Represents a location tag attached to a
@@ -20115,6 +20257,7 @@ export class RpcError extends Error {
20115
20257
  * Coordinates of the geolocation tag.
20116
20258
  */
20117
20259
  geo: tl.TypeGeoPoint;
20260
+ address?: tl.TypeGeoPointAddress;
20118
20261
  }
20119
20262
  /**
20120
20263
  * Represents a reaction bubble.
@@ -20179,6 +20322,11 @@ export class RpcError extends Error {
20179
20322
  */
20180
20323
  msgId: number;
20181
20324
  }
20325
+ interface RawMediaAreaUrl {
20326
+ _: 'mediaAreaUrl';
20327
+ coordinates: tl.TypeMediaAreaCoordinates;
20328
+ url: string;
20329
+ }
20182
20330
  /**
20183
20331
  * <a href="https://corefork.telegram.org/api/stories">Stories</a>
20184
20332
  * associated to a peer
@@ -20278,7 +20426,8 @@ export class RpcError extends Error {
20278
20426
  interface RawBoost {
20279
20427
  _: 'boost';
20280
20428
  /**
20281
- * Whether this boost was applied because the channel
20429
+ * Whether this boost was applied because the
20430
+ * channel/supergroup
20282
20431
  * <a href="https://corefork.telegram.org/api/giveaways">directly
20283
20432
  * gifted a subscription to the user</a>.
20284
20433
  */
@@ -20287,7 +20436,7 @@ export class RpcError extends Error {
20287
20436
  * Whether this boost was applied because the user was chosen
20288
20437
  * in a
20289
20438
  * <a href="https://corefork.telegram.org/api/giveaways">giveaway
20290
- * started by the channel</a>.
20439
+ * started by the channel/supergroup</a>.
20291
20440
  */
20292
20441
  giveaway?: boolean;
20293
20442
  /**
@@ -20570,15 +20719,71 @@ export class RpcError extends Error {
20570
20719
  phoneNumber: string;
20571
20720
  text: string;
20572
20721
  }
20722
+ /**
20723
+ * A time interval, indicating the opening hours of a business.
20724
+ *
20725
+ * Note that opening hours specified by the user must be
20726
+ * appropriately validated and transformed before uploading
20727
+ * them to the server, as specified
20728
+ * <a href="https://corefork.telegram.org/api/business#opening-hours">here
20729
+ * »</a>.
20730
+ */
20573
20731
  interface RawBusinessWeeklyOpen {
20574
20732
  _: 'businessWeeklyOpen';
20733
+ /**
20734
+ * Start minute in minutes of the week, <code>0</code> to
20735
+ * <code>7*24*60</code> inclusively.
20736
+ */
20575
20737
  startMinute: number;
20738
+ /**
20739
+ * End minute in minutes of the week, <code>1</code> to
20740
+ * <code>8*24*60</code> inclusively (<code>8</code> and not
20741
+ * <code>7</code> because this allows to specify intervals
20742
+ * that, for example, start on <code>Sunday 21:00</code> and
20743
+ * end on <code>Monday 04:00</code> (<code>6*24*60+21*60</code>
20744
+ * to <code>7*24*60+4*60</code>) without passing an invalid
20745
+ * <code>end_minute < start_minute</code>). See
20746
+ * <a href="https://corefork.telegram.org/api/business#opening-hours">here
20747
+ * »</a> for more info.
20748
+ */
20576
20749
  endMinute: number;
20577
20750
  }
20751
+ /**
20752
+ * Specifies a set of
20753
+ * <a href="https://corefork.telegram.org/api/business#opening-hours">Telegram
20754
+ * Business opening hours</a>.
20755
+ */
20578
20756
  interface RawBusinessWorkHours {
20579
20757
  _: 'businessWorkHours';
20758
+ /**
20759
+ * Ignored if set while invoking
20760
+ * {@link account.RawUpdateBusinessWorkHoursRequest}, only
20761
+ * returned by the server in
20762
+ * {@link RawUserFull}.<code>business_work_hours</code>,
20763
+ * indicating whether the business is currently open according
20764
+ * to the current time and the values in
20765
+ * <code>weekly_open</code> and <code>timezone</code>.
20766
+ */
20580
20767
  openNow?: boolean;
20768
+ /**
20769
+ * An ID of one of the timezones returned by
20770
+ * {@link help.RawGetTimezonesListRequest}.
20771
+ *
20772
+ * The timezone ID is contained
20773
+ * {@link RawTimezone}.<code>id</code>, a human-readable,
20774
+ * localized name of the timezone is available in
20775
+ * {@link RawTimezone}.<code>name</code> and the
20776
+ * {@link RawTimezone}.<code>utc_offset</code> field contains
20777
+ * the UTC offset in seconds, which may be displayed in hh:mm
20778
+ * format by the client together with the human-readable name
20779
+ * (i.e. <code>$name UTC -01:00</code>).
20780
+ */
20581
20781
  timezoneId: string;
20782
+ /**
20783
+ * A list of time intervals (max 28) represented by
20784
+ * {@link RawBusinessWeeklyOpen}, indicating the opening hours
20785
+ * of their business.
20786
+ */
20582
20787
  weeklyOpen: tl.TypeBusinessWeeklyOpen[];
20583
20788
  }
20584
20789
  interface RawBusinessLocation {
@@ -20586,59 +20791,241 @@ export class RpcError extends Error {
20586
20791
  geoPoint?: tl.TypeGeoPoint;
20587
20792
  address: string;
20588
20793
  }
20794
+ /**
20795
+ * Specifies the chats that <strong>can</strong> receive
20796
+ * Telegram Business
20797
+ * <a href="https://corefork.telegram.org/api/business#away-message">away
20798
+ * »</a> and
20799
+ * <a href="https://corefork.telegram.org/api/business#greeting-message">greeting
20800
+ * »</a> messages.
20801
+ *
20802
+ * If <code>exclude_selected</code> is set, specifies all chats
20803
+ * that <strong>cannot</strong> receive Telegram Business
20804
+ * <a href="https://corefork.telegram.org/api/business#away-message">away
20805
+ * »</a> and
20806
+ * <a href="https://corefork.telegram.org/api/business#greeting-message">greeting
20807
+ * »</a> messages.
20808
+ */
20589
20809
  interface RawInputBusinessRecipients {
20590
20810
  _: 'inputBusinessRecipients';
20811
+ /**
20812
+ * All existing private chats.
20813
+ */
20591
20814
  existingChats?: boolean;
20815
+ /**
20816
+ * All new private chats.
20817
+ */
20592
20818
  newChats?: boolean;
20819
+ /**
20820
+ * All private chats with contacts.
20821
+ */
20593
20822
  contacts?: boolean;
20823
+ /**
20824
+ * All private chats with non-contacts.
20825
+ */
20594
20826
  nonContacts?: boolean;
20827
+ /**
20828
+ * If set, inverts the selection.
20829
+ */
20595
20830
  excludeSelected?: boolean;
20831
+ /**
20832
+ * Only private chats with the specified users.
20833
+ */
20596
20834
  users?: tl.TypeInputUser[];
20597
20835
  }
20836
+ /**
20837
+ * Specifies the chats that <strong>can</strong> receive
20838
+ * Telegram Business
20839
+ * <a href="https://corefork.telegram.org/api/business#away-message">away
20840
+ * »</a> and
20841
+ * <a href="https://corefork.telegram.org/api/business#greeting-message">greeting
20842
+ * »</a> messages.
20843
+ *
20844
+ * If <code>exclude_selected</code> is set, specifies all chats
20845
+ * that <strong>cannot</strong> receive Telegram Business
20846
+ * <a href="https://corefork.telegram.org/api/business#away-message">away
20847
+ * »</a> and
20848
+ * <a href="https://corefork.telegram.org/api/business#greeting-message">greeting
20849
+ * »</a> messages.
20850
+ */
20598
20851
  interface RawBusinessRecipients {
20599
20852
  _: 'businessRecipients';
20853
+ /**
20854
+ * All existing private chats.
20855
+ */
20600
20856
  existingChats?: boolean;
20857
+ /**
20858
+ * All new private chats.
20859
+ */
20601
20860
  newChats?: boolean;
20861
+ /**
20862
+ * All private chats with contacts.
20863
+ */
20602
20864
  contacts?: boolean;
20865
+ /**
20866
+ * All private chats with non-contacts.
20867
+ */
20603
20868
  nonContacts?: boolean;
20869
+ /**
20870
+ * If set, inverts the selection.
20871
+ */
20604
20872
  excludeSelected?: boolean;
20873
+ /**
20874
+ * Only private chats with the specified users.
20875
+ */
20605
20876
  users?: number[];
20606
20877
  }
20878
+ /**
20879
+ * Always send
20880
+ * <a href="https://corefork.telegram.org/api/business#away-messages">Telegram
20881
+ * Business away messages</a> to users writing to us in
20882
+ * private.
20883
+ */
20607
20884
  interface RawBusinessAwayMessageScheduleAlways {
20608
20885
  _: 'businessAwayMessageScheduleAlways';
20609
20886
  }
20887
+ /**
20888
+ * Send
20889
+ * <a href="https://corefork.telegram.org/api/business#away-messages">Telegram
20890
+ * Business away messages</a> to users writing to us in private
20891
+ * outside of the configured
20892
+ * <a href="https://corefork.telegram.org/api/business#opening-hours">Telegram
20893
+ * Business working hours</a>.
20894
+ */
20610
20895
  interface RawBusinessAwayMessageScheduleOutsideWorkHours {
20611
20896
  _: 'businessAwayMessageScheduleOutsideWorkHours';
20612
20897
  }
20898
+ /**
20899
+ * Send
20900
+ * <a href="https://corefork.telegram.org/api/business#away-messages">Telegram
20901
+ * Business away messages</a> to users writing to us in private
20902
+ * in the specified time span.
20903
+ */
20613
20904
  interface RawBusinessAwayMessageScheduleCustom {
20614
20905
  _: 'businessAwayMessageScheduleCustom';
20906
+ /**
20907
+ * Start date (UNIX timestamp).
20908
+ */
20615
20909
  startDate: number;
20910
+ /**
20911
+ * End date (UNIX timestamp).
20912
+ */
20616
20913
  endDate: number;
20617
20914
  }
20915
+ /**
20916
+ * Describes a
20917
+ * <a href="https://corefork.telegram.org/api/business#greeting-messages">Telegram
20918
+ * Business greeting</a>, automatically sent to new users
20919
+ * writing to us in private for the first time, or after a
20920
+ * certain inactivity period.
20921
+ */
20618
20922
  interface RawInputBusinessGreetingMessage {
20619
20923
  _: 'inputBusinessGreetingMessage';
20924
+ /**
20925
+ * ID of a
20926
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
20927
+ * reply shorcut, containing the greeting messages to send, see
20928
+ * here » for more info</a>.
20929
+ */
20620
20930
  shortcutId: number;
20931
+ /**
20932
+ * Allowed recipients for the greeting messages.
20933
+ */
20621
20934
  recipients: tl.TypeInputBusinessRecipients;
20935
+ /**
20936
+ * The number of days after which a private chat will be
20937
+ * considered as inactive; currently, must be one of 7, 14, 21,
20938
+ * or 28.
20939
+ */
20622
20940
  noActivityDays: number;
20623
20941
  }
20942
+ /**
20943
+ * Describes a
20944
+ * <a href="https://corefork.telegram.org/api/business#greeting-messages">Telegram
20945
+ * Business greeting</a>, automatically sent to new users
20946
+ * writing to us in private for the first time, or after a
20947
+ * certain inactivity period.
20948
+ */
20624
20949
  interface RawBusinessGreetingMessage {
20625
20950
  _: 'businessGreetingMessage';
20951
+ /**
20952
+ * ID of a
20953
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
20954
+ * reply shorcut, containing the greeting messages to send, see
20955
+ * here » for more info</a>.
20956
+ */
20626
20957
  shortcutId: number;
20958
+ /**
20959
+ * Allowed recipients for the greeting messages.
20960
+ */
20627
20961
  recipients: tl.TypeBusinessRecipients;
20962
+ /**
20963
+ * The number of days after which a private chat will be
20964
+ * considered as inactive; currently, must be one of 7, 14, 21,
20965
+ * or 28.
20966
+ */
20628
20967
  noActivityDays: number;
20629
20968
  }
20969
+ /**
20970
+ * Describes a
20971
+ * <a href="https://corefork.telegram.org/api/business#away-messages">Telegram
20972
+ * Business away message</a>, automatically sent to users
20973
+ * writing to us when we're offline, during closing hours,
20974
+ * while we're on vacation, or in some other custom time period
20975
+ * when we cannot immediately answer to the user.
20976
+ */
20630
20977
  interface RawInputBusinessAwayMessage {
20631
20978
  _: 'inputBusinessAwayMessage';
20979
+ /**
20980
+ * If set, the messages will not be sent if the account was
20981
+ * online in the last 10 minutes.
20982
+ */
20632
20983
  offlineOnly?: boolean;
20984
+ /**
20985
+ * ID of a
20986
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
20987
+ * reply shorcut, containing the away messages to send, see
20988
+ * here » for more info</a>.
20989
+ */
20633
20990
  shortcutId: number;
20991
+ /**
20992
+ * Specifies when should the away messages be sent.
20993
+ */
20634
20994
  schedule: tl.TypeBusinessAwayMessageSchedule;
20995
+ /**
20996
+ * Allowed recipients for the away messages.
20997
+ */
20635
20998
  recipients: tl.TypeInputBusinessRecipients;
20636
20999
  }
21000
+ /**
21001
+ * Describes a
21002
+ * <a href="https://corefork.telegram.org/api/business#away-messages">Telegram
21003
+ * Business away message</a>, automatically sent to users
21004
+ * writing to us when we're offline, during closing hours,
21005
+ * while we're on vacation, or in some other custom time period
21006
+ * when we cannot immediately answer to the user.
21007
+ */
20637
21008
  interface RawBusinessAwayMessage {
20638
21009
  _: 'businessAwayMessage';
21010
+ /**
21011
+ * If set, the messages will not be sent if the account was
21012
+ * online in the last 10 minutes.
21013
+ */
20639
21014
  offlineOnly?: boolean;
21015
+ /**
21016
+ * ID of a
21017
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
21018
+ * reply shorcut, containing the away messages to send, see
21019
+ * here » for more info</a>.
21020
+ */
20640
21021
  shortcutId: number;
21022
+ /**
21023
+ * Specifies when should the away messages be sent.
21024
+ */
20641
21025
  schedule: tl.TypeBusinessAwayMessageSchedule;
21026
+ /**
21027
+ * Allowed recipients for the away messages.
21028
+ */
20642
21029
  recipients: tl.TypeBusinessRecipients;
20643
21030
  }
20644
21031
  interface RawTimezone {
@@ -20737,6 +21124,10 @@ export class RpcError extends Error {
20737
21124
  interface RawInputBusinessChatLink {
20738
21125
  _: 'inputBusinessChatLink';
20739
21126
  message: string;
21127
+ /**
21128
+ * <a href="https://corefork.telegram.org/api/entities">Message
21129
+ * entities for styled text</a>
21130
+ */
20740
21131
  entities?: tl.TypeMessageEntity[];
20741
21132
  title?: string;
20742
21133
  }
@@ -20744,6 +21135,10 @@ export class RpcError extends Error {
20744
21135
  _: 'businessChatLink';
20745
21136
  link: string;
20746
21137
  message: string;
21138
+ /**
21139
+ * <a href="https://corefork.telegram.org/api/entities">Message
21140
+ * entities for styled text</a>
21141
+ */
20747
21142
  entities?: tl.TypeMessageEntity[];
20748
21143
  title?: string;
20749
21144
  views: number;
@@ -20829,6 +21224,10 @@ export class RpcError extends Error {
20829
21224
  needCheck?: boolean;
20830
21225
  country?: string;
20831
21226
  text?: tl.TypeTextWithEntities;
21227
+ /**
21228
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
21229
+ * for pagination, for more info click here</a>
21230
+ */
20832
21231
  hash: Long;
20833
21232
  }
20834
21233
  interface RawStarsTransactionPeerUnsupported {
@@ -20861,6 +21260,8 @@ export class RpcError extends Error {
20861
21260
  interface RawStarsTransaction {
20862
21261
  _: 'starsTransaction';
20863
21262
  refund?: boolean;
21263
+ pending?: boolean;
21264
+ failed?: boolean;
20864
21265
  id: string;
20865
21266
  stars: Long;
20866
21267
  date: number;
@@ -20868,6 +21269,49 @@ export class RpcError extends Error {
20868
21269
  title?: string;
20869
21270
  description?: string;
20870
21271
  photo?: tl.TypeWebDocument;
21272
+ transactionDate?: number;
21273
+ transactionUrl?: string;
21274
+ botPayload?: Uint8Array;
21275
+ msgId?: number;
21276
+ extendedMedia?: tl.TypeMessageMedia[];
21277
+ }
21278
+ interface RawFoundStory {
21279
+ _: 'foundStory';
21280
+ peer: tl.TypePeer;
21281
+ story: tl.TypeStoryItem;
21282
+ }
21283
+ interface RawGeoPointAddress {
21284
+ _: 'geoPointAddress';
21285
+ countryIso2: string;
21286
+ state?: string;
21287
+ city?: string;
21288
+ street?: string;
21289
+ }
21290
+ interface RawStarsRevenueStatus {
21291
+ _: 'starsRevenueStatus';
21292
+ withdrawalEnabled?: boolean;
21293
+ currentBalance: Long;
21294
+ availableBalance: Long;
21295
+ overallRevenue: Long;
21296
+ nextWithdrawalAt?: number;
21297
+ }
21298
+ interface RawInputMediaPaidMedia {
21299
+ _: 'inputMediaPaidMedia';
21300
+ starsAmount: Long;
21301
+ extendedMedia: tl.TypeInputMedia[];
21302
+ }
21303
+ interface RawMessageMediaPaidMedia {
21304
+ _: 'messageMediaPaidMedia';
21305
+ starsAmount: Long;
21306
+ extendedMedia: tl.TypeMessageExtendedMedia[];
21307
+ }
21308
+ interface RawStarsTransactionPeerAds {
21309
+ _: 'starsTransactionPeerAds';
21310
+ }
21311
+ interface RawInputStarsTransaction {
21312
+ _: 'inputStarsTransaction';
21313
+ refund?: boolean;
21314
+ id: string;
20871
21315
  }
20872
21316
  /**
20873
21317
  * 0-N updates of this type may be returned only when invoking
@@ -21138,7 +21582,7 @@ export class RpcError extends Error {
21138
21582
  /**
21139
21583
  * Defines media content of a message.
21140
21584
  */
21141
- type TypeInputMedia = tl.RawInputMediaEmpty | tl.RawInputMediaUploadedPhoto | tl.RawInputMediaPhoto | tl.RawInputMediaGeoPoint | tl.RawInputMediaContact | tl.RawInputMediaUploadedDocument | tl.RawInputMediaDocument | tl.RawInputMediaVenue | tl.RawInputMediaPhotoExternal | tl.RawInputMediaDocumentExternal | tl.RawInputMediaGame | tl.RawInputMediaInvoice | tl.RawInputMediaGeoLive | tl.RawInputMediaPoll | tl.RawInputMediaDice | tl.RawInputMediaStory | tl.RawInputMediaWebPage
21585
+ type TypeInputMedia = tl.RawInputMediaEmpty | tl.RawInputMediaUploadedPhoto | tl.RawInputMediaPhoto | tl.RawInputMediaGeoPoint | tl.RawInputMediaContact | tl.RawInputMediaUploadedDocument | tl.RawInputMediaDocument | tl.RawInputMediaVenue | tl.RawInputMediaPhotoExternal | tl.RawInputMediaDocumentExternal | tl.RawInputMediaGame | tl.RawInputMediaInvoice | tl.RawInputMediaGeoLive | tl.RawInputMediaPoll | tl.RawInputMediaDice | tl.RawInputMediaStory | tl.RawInputMediaWebPage | tl.RawInputMediaPaidMedia
21142
21586
  function isAnyInputMedia(o: object): o is TypeInputMedia
21143
21587
  /**
21144
21588
  * Defines a new group profile photo.
@@ -21214,7 +21658,7 @@ export class RpcError extends Error {
21214
21658
  /**
21215
21659
  * Media
21216
21660
  */
21217
- type TypeMessageMedia = tl.RawMessageMediaEmpty | tl.RawMessageMediaPhoto | tl.RawMessageMediaGeo | tl.RawMessageMediaContact | tl.RawMessageMediaUnsupported | tl.RawMessageMediaDocument | tl.RawMessageMediaWebPage | tl.RawMessageMediaVenue | tl.RawMessageMediaGame | tl.RawMessageMediaInvoice | tl.RawMessageMediaGeoLive | tl.RawMessageMediaPoll | tl.RawMessageMediaDice | tl.RawMessageMediaStory | tl.RawMessageMediaGiveaway | tl.RawMessageMediaGiveawayResults
21661
+ type TypeMessageMedia = tl.RawMessageMediaEmpty | tl.RawMessageMediaPhoto | tl.RawMessageMediaGeo | tl.RawMessageMediaContact | tl.RawMessageMediaUnsupported | tl.RawMessageMediaDocument | tl.RawMessageMediaWebPage | tl.RawMessageMediaVenue | tl.RawMessageMediaGame | tl.RawMessageMediaInvoice | tl.RawMessageMediaGeoLive | tl.RawMessageMediaPoll | tl.RawMessageMediaDice | tl.RawMessageMediaStory | tl.RawMessageMediaGiveaway | tl.RawMessageMediaGiveawayResults | tl.RawMessageMediaPaidMedia
21218
21662
  function isAnyMessageMedia(o: object): o is TypeMessageMedia
21219
21663
  /**
21220
21664
  * Object describing actions connected to a service message.
@@ -21302,7 +21746,7 @@ export class RpcError extends Error {
21302
21746
  /**
21303
21747
  * Object contains info on events occurred.
21304
21748
  */
21305
- type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
21749
+ type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
21306
21750
  function isAnyUpdate(o: object): o is TypeUpdate
21307
21751
  /**
21308
21752
  * Object which is perceived by the client without a call on
@@ -22523,22 +22967,22 @@ export class RpcError extends Error {
22523
22967
  function isAnyAutoSaveException(o: object): o is TypeAutoSaveException
22524
22968
  /**
22525
22969
  * Used to fetch information about a
22526
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
22527
- * Mini App</a>
22970
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
22971
+ * link Mini App</a>
22528
22972
  */
22529
22973
  type TypeInputBotApp = tl.RawInputBotAppID | tl.RawInputBotAppShortName
22530
22974
  function isAnyInputBotApp(o: object): o is TypeInputBotApp
22531
22975
  /**
22532
22976
  * Contains information about a
22533
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
22534
- * Mini App</a>.
22977
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
22978
+ * link Mini App</a>.
22535
22979
  */
22536
22980
  type TypeBotApp = tl.RawBotAppNotModified | tl.RawBotApp
22537
22981
  function isAnyBotApp(o: object): o is TypeBotApp
22538
22982
  /**
22539
22983
  * Contains the link that must be used to open a
22540
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
22541
- * Mini App</a>.
22984
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
22985
+ * link Mini App</a>.
22542
22986
  */
22543
22987
  type TypeAppWebViewResult = tl.RawAppWebViewResultUrl
22544
22988
  function isAnyAppWebViewResult(o: object): o is TypeAppWebViewResult
@@ -22621,7 +23065,7 @@ export class RpcError extends Error {
22621
23065
  * <a href="https://corefork.telegram.org/api/stories#media-areas">story
22622
23066
  * media area »</a>
22623
23067
  */
22624
- type TypeMediaArea = tl.RawMediaAreaVenue | tl.RawInputMediaAreaVenue | tl.RawMediaAreaGeoPoint | tl.RawMediaAreaSuggestedReaction | tl.RawMediaAreaChannelPost | tl.RawInputMediaAreaChannelPost
23068
+ type TypeMediaArea = tl.RawMediaAreaVenue | tl.RawInputMediaAreaVenue | tl.RawMediaAreaGeoPoint | tl.RawMediaAreaSuggestedReaction | tl.RawMediaAreaChannelPost | tl.RawInputMediaAreaChannelPost | tl.RawMediaAreaUrl
22625
23069
  function isAnyMediaArea(o: object): o is TypeMediaArea
22626
23070
  /**
22627
23071
  * <a href="https://corefork.telegram.org/api/stories">Stories</a>
@@ -22764,12 +23208,20 @@ export class RpcError extends Error {
22764
23208
  function isAnyAvailableEffect(o: object): o is TypeAvailableEffect
22765
23209
  type TypeFactCheck = tl.RawFactCheck
22766
23210
  function isAnyFactCheck(o: object): o is TypeFactCheck
22767
- type TypeStarsTransactionPeer = tl.RawStarsTransactionPeerUnsupported | tl.RawStarsTransactionPeerAppStore | tl.RawStarsTransactionPeerPlayMarket | tl.RawStarsTransactionPeerPremiumBot | tl.RawStarsTransactionPeerFragment | tl.RawStarsTransactionPeer
23211
+ type TypeStarsTransactionPeer = tl.RawStarsTransactionPeerUnsupported | tl.RawStarsTransactionPeerAppStore | tl.RawStarsTransactionPeerPlayMarket | tl.RawStarsTransactionPeerPremiumBot | tl.RawStarsTransactionPeerFragment | tl.RawStarsTransactionPeer | tl.RawStarsTransactionPeerAds
22768
23212
  function isAnyStarsTransactionPeer(o: object): o is TypeStarsTransactionPeer
22769
23213
  type TypeStarsTopupOption = tl.RawStarsTopupOption
22770
23214
  function isAnyStarsTopupOption(o: object): o is TypeStarsTopupOption
22771
23215
  type TypeStarsTransaction = tl.RawStarsTransaction
22772
23216
  function isAnyStarsTransaction(o: object): o is TypeStarsTransaction
23217
+ type TypeFoundStory = tl.RawFoundStory
23218
+ function isAnyFoundStory(o: object): o is TypeFoundStory
23219
+ type TypeGeoPointAddress = tl.RawGeoPointAddress
23220
+ function isAnyGeoPointAddress(o: object): o is TypeGeoPointAddress
23221
+ type TypeStarsRevenueStatus = tl.RawStarsRevenueStatus
23222
+ function isAnyStarsRevenueStatus(o: object): o is TypeStarsRevenueStatus
23223
+ type TypeInputStarsTransaction = tl.RawInputStarsTransaction
23224
+ function isAnyInputStarsTransaction(o: object): o is TypeInputStarsTransaction
22773
23225
  /**
22774
23226
  * Represents a sponsored website.
22775
23227
  */
@@ -23285,6 +23737,12 @@ export class RpcError extends Error {
23285
23737
  * level</a> specified in this field.
23286
23738
  */
23287
23739
  channelMinLevel?: number;
23740
+ /**
23741
+ * Supergroups can use this palette only after reaching at
23742
+ * least the
23743
+ * <a href="https://corefork.telegram.org/api/boost">boost
23744
+ * level</a> specified in this field.
23745
+ */
23288
23746
  groupMinLevel?: number;
23289
23747
  }
23290
23748
  /**
@@ -23318,6 +23776,10 @@ export class RpcError extends Error {
23318
23776
  interface RawTimezonesList {
23319
23777
  _: 'help.timezonesList';
23320
23778
  timezones: tl.TypeTimezone[];
23779
+ /**
23780
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23781
+ * for pagination, for more info click here</a>
23782
+ */
23321
23783
  hash: number;
23322
23784
  }
23323
23785
  /**
@@ -23463,7 +23925,13 @@ export class RpcError extends Error {
23463
23925
  _: 'help.getAppConfig';
23464
23926
  /**
23465
23927
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23466
- * for pagination, for more info click here</a>
23928
+ * for pagination, for more info click here</a>.
23929
+ *
23930
+ * <strong>Note</strong>: the usual hash generation algorithm
23931
+ * cannot be used in this case, please re-use the
23932
+ * {@link help.RawAppConfig}.<code>hash</code> field returned
23933
+ * by a previous call to the method, or pass 0 if this is the
23934
+ * first call.
23467
23935
  */
23468
23936
  hash: number;
23469
23937
  }
@@ -23490,7 +23958,13 @@ export class RpcError extends Error {
23490
23958
  _: 'help.getPassportConfig';
23491
23959
  /**
23492
23960
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23493
- * for pagination, for more info click here</a>
23961
+ * for pagination, for more info click here</a>.
23962
+ *
23963
+ * <strong>Note</strong>: the usual hash generation algorithm
23964
+ * cannot be used in this case, please re-use the
23965
+ * {@link help.RawPassportConfig}.<code>hash</code> field
23966
+ * returned by a previous call to the method, or pass 0 if this
23967
+ * is the first call.
23494
23968
  */
23495
23969
  hash: number;
23496
23970
  }
@@ -23590,7 +24064,13 @@ export class RpcError extends Error {
23590
24064
  langCode: string;
23591
24065
  /**
23592
24066
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23593
- * for pagination, for more info click here</a>
24067
+ * for pagination, for more info click here</a>.
24068
+ *
24069
+ * <strong>Note</strong>: the usual hash generation algorithm
24070
+ * cannot be used in this case, please re-use the
24071
+ * {@link help.RawCountriesList}.<code>hash</code> field
24072
+ * returned by a previous call to the method, or pass 0 if this
24073
+ * is the first call.
23594
24074
  */
23595
24075
  hash: number;
23596
24076
  }
@@ -23613,7 +24093,13 @@ export class RpcError extends Error {
23613
24093
  _: 'help.getPeerColors';
23614
24094
  /**
23615
24095
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23616
- * for pagination, for more info click here</a>
24096
+ * for pagination, for more info click here</a>.
24097
+ *
24098
+ * <strong>Note</strong>: the usual hash generation algorithm
24099
+ * cannot be used in this case, please re-use the
24100
+ * {@link help.RawPeerColors}.<code>hash</code> field returned
24101
+ * by a previous call to the method, or pass 0 if this is the
24102
+ * first call.
23617
24103
  */
23618
24104
  hash: number;
23619
24105
  }
@@ -23629,7 +24115,13 @@ export class RpcError extends Error {
23629
24115
  _: 'help.getPeerProfileColors';
23630
24116
  /**
23631
24117
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23632
- * for pagination, for more info click here</a>
24118
+ * for pagination, for more info click here</a>.
24119
+ *
24120
+ * <strong>Note</strong>: the usual hash generation algorithm
24121
+ * cannot be used in this case, please re-use the
24122
+ * {@link help.RawPeerColors}.<code>hash</code> field returned
24123
+ * by a previous call to the method, or pass 0 if this is the
24124
+ * first call.
23633
24125
  */
23634
24126
  hash: number;
23635
24127
  }
@@ -23638,6 +24130,16 @@ export class RpcError extends Error {
23638
24130
  */
23639
24131
  interface RawGetTimezonesListRequest {
23640
24132
  _: 'help.getTimezonesList';
24133
+ /**
24134
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
24135
+ * for pagination, for more info click here</a>.
24136
+ *
24137
+ * <strong>Note</strong>: the usual hash generation algorithm
24138
+ * cannot be used in this case, please re-use the
24139
+ * {@link help.RawTimezonesList}.<code>hash</code> field
24140
+ * returned by a previous call to the method, or pass 0 if this
24141
+ * is the first call.
24142
+ */
23641
24143
  hash: number;
23642
24144
  }
23643
24145
  interface RpcCallReturn {
@@ -24155,6 +24657,7 @@ export class RpcError extends Error {
24155
24657
  * documentation »</a>
24156
24658
  */
24157
24659
  nonce?: Uint8Array;
24660
+ playIntegrityProjectId?: Long;
24158
24661
  playIntegrityNonce?: Uint8Array;
24159
24662
  /**
24160
24663
  * On iOS, must be compared with the <code>receipt</code>
@@ -24955,7 +25458,7 @@ export class RpcError extends Error {
24955
25458
  }
24956
25459
  /**
24957
25460
  * Use this method to obtain the online statuses of all
24958
- * contacts with an accessible associated Telegram account.
25461
+ * contacts with an accessible Telegram account.
24959
25462
  *
24960
25463
  * RPC method returns {@link tl.TypeContactStatus} array
24961
25464
  */
@@ -24970,12 +25473,21 @@ export class RpcError extends Error {
24970
25473
  interface RawGetContactsRequest {
24971
25474
  _: 'contacts.getContacts';
24972
25475
  /**
24973
- * If there already is a full contact list on the client, a
24974
- * <a href="https://corefork.telegram.org/api/offsets#hash-generation">hash</a>
24975
- * of a the list of contact IDs in ascending order may be
24976
- * passed in this parameter. If the contact set was not
24977
- * changed, {@link contacts.RawContactsNotModified} will be
24978
- * returned.
25476
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
25477
+ * for pagination, for more info click here</a>.
25478
+ *
25479
+ * Note that the hash is computed
25480
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">using
25481
+ * the usual algorithm</a>, passing to the algorithm first the
25482
+ * previously returned
25483
+ * {@link contacts.RawContacts}.<code>saved_count</code> field,
25484
+ * then max <code>100000</code> sorted user IDs from the
25485
+ * contact list, including the ID of the currently logged in
25486
+ * user if it is saved as a contact.
25487
+ *
25488
+ * Example:
25489
+ * <a href="https://github.com/tdlib/td/blob/63c7d0301825b78c30dc7307f1f1466be049eb79/td/telegram/UserManager.cpp#L5754">tdlib
25490
+ * implementation</a>.
24979
25491
  */
24980
25492
  hash: Long;
24981
25493
  }
@@ -26773,8 +27285,8 @@ export class RpcError extends Error {
26773
27285
  }
26774
27286
  /**
26775
27287
  * Contains information about a
26776
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
26777
- * Mini App</a>
27288
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
27289
+ * link Mini App</a>
26778
27290
  */
26779
27291
  interface RawBotApp {
26780
27292
  _: 'messages.botApp';
@@ -26887,6 +27399,10 @@ export class RpcError extends Error {
26887
27399
  interface RawSavedReactionTags {
26888
27400
  _: 'messages.savedReactionTags';
26889
27401
  tags: tl.TypeSavedReactionTag[];
27402
+ /**
27403
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
27404
+ * for pagination, for more info click here</a>
27405
+ */
26890
27406
  hash: Long;
26891
27407
  }
26892
27408
  interface RawQuickReplies {
@@ -26919,6 +27435,10 @@ export class RpcError extends Error {
26919
27435
  }
26920
27436
  interface RawAvailableEffects {
26921
27437
  _: 'messages.availableEffects';
27438
+ /**
27439
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
27440
+ * for pagination, for more info click here</a>
27441
+ */
26922
27442
  hash: number;
26923
27443
  effects: tl.TypeAvailableEffect[];
26924
27444
  documents: tl.TypeDocument[];
@@ -27256,7 +27776,9 @@ export class RpcError extends Error {
27256
27776
  peer: tl.TypeInputPeer;
27257
27777
  /**
27258
27778
  * If set, indicates that the message should be sent in reply
27259
- * to the specified message or story.
27779
+ * to the specified message or story.
27780
+ *
27781
+ * Also used to quote other messages.
27260
27782
  */
27261
27783
  replyTo?: tl.TypeInputReplyTo;
27262
27784
  /**
@@ -27892,7 +28414,13 @@ export class RpcError extends Error {
27892
28414
  emoticon: string;
27893
28415
  /**
27894
28416
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
27895
- * for pagination, for more info click here</a>
28417
+ * for pagination, for more info click here</a>.
28418
+ *
28419
+ * <strong>Note</strong>: the usual hash generation algorithm
28420
+ * cannot be used in this case, please re-use the
28421
+ * {@link messages.RawStickers}.<code>hash</code> field
28422
+ * returned by a previous call to the method, or pass 0 if this
28423
+ * is the first call.
27896
28424
  */
27897
28425
  hash: Long;
27898
28426
  }
@@ -27905,7 +28433,13 @@ export class RpcError extends Error {
27905
28433
  _: 'messages.getAllStickers';
27906
28434
  /**
27907
28435
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
27908
- * for pagination, for more info click here</a>
28436
+ * for pagination, for more info click here</a>.
28437
+ *
28438
+ * <strong>Note</strong>: the usual hash generation algorithm
28439
+ * cannot be used in this case, please re-use the
28440
+ * {@link messages.RawAllStickers}.<code>hash</code> field
28441
+ * returned by a previous call to the method, or pass 0 if this
28442
+ * is the first call.
27909
28443
  */
27910
28444
  hash: Long;
27911
28445
  }
@@ -28221,7 +28755,7 @@ export class RpcError extends Error {
28221
28755
  mimeType: string;
28222
28756
  }
28223
28757
  /**
28224
- * Get saved GIFs
28758
+ * Get saved GIFs.
28225
28759
  *
28226
28760
  * RPC method returns {@link tl.messages.TypeSavedGifs}
28227
28761
  */
@@ -28229,7 +28763,13 @@ export class RpcError extends Error {
28229
28763
  _: 'messages.getSavedGifs';
28230
28764
  /**
28231
28765
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
28232
- * for pagination, for more info click here</a>
28766
+ * for pagination, for more info click here</a>.
28767
+ *
28768
+ * <strong>Note</strong>: the usual hash generation algorithm
28769
+ * cannot be used in this case, please re-use the
28770
+ * {@link messages.RawSavedGifs}.<code>hash</code> field
28771
+ * returned by a previous call to the method, or pass 0 if this
28772
+ * is the first call.
28233
28773
  */
28234
28774
  hash: Long;
28235
28775
  }
@@ -28607,6 +29147,7 @@ export class RpcError extends Error {
28607
29147
  * Attached media
28608
29148
  */
28609
29149
  media?: tl.TypeInputMedia;
29150
+ effect?: Long;
28610
29151
  }
28611
29152
  /**
28612
29153
  * Return all message
@@ -28630,7 +29171,13 @@ export class RpcError extends Error {
28630
29171
  _: 'messages.getFeaturedStickers';
28631
29172
  /**
28632
29173
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
28633
- * for pagination, for more info click here</a>
29174
+ * for pagination, for more info click here</a>.
29175
+ *
29176
+ * <strong>Note</strong>: the usual hash generation algorithm
29177
+ * cannot be used in this case, please re-use the
29178
+ * {@link messages.RawFeaturedStickers}.<code>hash</code> field
29179
+ * returned by a previous call to the method, or pass 0 if this
29180
+ * is the first call.
28634
29181
  */
28635
29182
  hash: Long;
28636
29183
  }
@@ -28659,7 +29206,13 @@ export class RpcError extends Error {
28659
29206
  attached?: boolean;
28660
29207
  /**
28661
29208
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
28662
- * for pagination, for more info click here</a>
29209
+ * for pagination, for more info click here</a>.
29210
+ *
29211
+ * <strong>Note</strong>: the usual hash generation algorithm
29212
+ * cannot be used in this case, please re-use the
29213
+ * {@link messages.RawRecentStickers}.<code>hash</code> field
29214
+ * returned by a previous call to the method, or pass 0 if this
29215
+ * is the first call.
28663
29216
  */
28664
29217
  hash: Long;
28665
29218
  }
@@ -28737,7 +29290,13 @@ export class RpcError extends Error {
28737
29290
  _: 'messages.getMaskStickers';
28738
29291
  /**
28739
29292
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
28740
- * for pagination, for more info click here</a>
29293
+ * for pagination, for more info click here</a>.
29294
+ *
29295
+ * <strong>Note</strong>: the usual hash generation algorithm
29296
+ * cannot be used in this case, please re-use the
29297
+ * {@link messages.RawAllStickers}.<code>hash</code> field
29298
+ * returned by a previous call to the method, or pass 0 if this
29299
+ * is the first call.
28741
29300
  */
28742
29301
  hash: Long;
28743
29302
  }
@@ -29064,7 +29623,13 @@ export class RpcError extends Error {
29064
29623
  _: 'messages.getFavedStickers';
29065
29624
  /**
29066
29625
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
29067
- * for pagination, for more info click here</a>
29626
+ * for pagination, for more info click here</a>.
29627
+ *
29628
+ * <strong>Note</strong>: the usual hash generation algorithm
29629
+ * cannot be used in this case, please re-use the
29630
+ * {@link messages.RawFavedStickers}.<code>hash</code> field
29631
+ * returned by a previous call to the method, or pass 0 if this
29632
+ * is the first call.
29068
29633
  */
29069
29634
  hash: Long;
29070
29635
  }
@@ -29272,7 +29837,13 @@ export class RpcError extends Error {
29272
29837
  q: string;
29273
29838
  /**
29274
29839
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
29275
- * for pagination, for more info click here</a>
29840
+ * for pagination, for more info click here</a>.
29841
+ *
29842
+ * <strong>Note</strong>: the usual hash generation algorithm
29843
+ * cannot be used in this case, please re-use the
29844
+ * {@link messages.RawFoundStickerSets}.<code>hash</code> field
29845
+ * returned by a previous call to the method, or pass 0 if this
29846
+ * is the first call.
29276
29847
  */
29277
29848
  hash: Long;
29278
29849
  }
@@ -29810,7 +30381,13 @@ export class RpcError extends Error {
29810
30381
  limit: number;
29811
30382
  /**
29812
30383
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
29813
- * for pagination, for more info click here</a>
30384
+ * for pagination, for more info click here</a>.
30385
+ *
30386
+ * <strong>Note</strong>: the usual hash generation algorithm
30387
+ * cannot be used in this case, please re-use the
30388
+ * {@link messages.RawFeaturedStickers}.<code>hash</code> field
30389
+ * returned by a previous call to the method, or pass 0 if this
30390
+ * is the first call.
29814
30391
  */
29815
30392
  hash: Long;
29816
30393
  }
@@ -30615,7 +31192,13 @@ export class RpcError extends Error {
30615
31192
  _: 'messages.getAvailableReactions';
30616
31193
  /**
30617
31194
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
30618
- * for pagination, for more info click here</a>
31195
+ * for pagination, for more info click here</a>.
31196
+ *
31197
+ * <strong>Note</strong>: the usual hash generation algorithm
31198
+ * cannot be used in this case, please re-use the
31199
+ * {@link messages.RawAvailableReactions}.<code>hash</code>
31200
+ * field returned by a previous call to the method, or pass 0
31201
+ * if this is the first call.
30619
31202
  */
30620
31203
  hash: number;
30621
31204
  }
@@ -30761,7 +31344,13 @@ export class RpcError extends Error {
30761
31344
  _: 'messages.getAttachMenuBots';
30762
31345
  /**
30763
31346
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
30764
- * for pagination, for more info click here</a>
31347
+ * for pagination, for more info click here</a>.
31348
+ *
31349
+ * <strong>Note</strong>: the usual hash generation algorithm
31350
+ * cannot be used in this case, please re-use the
31351
+ * {@link RawAttachMenuBots}.<code>hash</code> field returned
31352
+ * by a previous call to the method, or pass 0 if this is the
31353
+ * first call.
30765
31354
  */
30766
31355
  hash: Long;
30767
31356
  }
@@ -30879,6 +31468,7 @@ export class RpcError extends Error {
30879
31468
  * resulting the message as the specified peer.
30880
31469
  */
30881
31470
  sendAs?: tl.TypeInputPeer;
31471
+ compact?: boolean;
30882
31472
  }
30883
31473
  /**
30884
31474
  * Indicate to the server (from the user side) that the user is
@@ -30931,7 +31521,7 @@ export class RpcError extends Error {
30931
31521
  * <a href="https://corefork.telegram.org/api/bots/webapps">bot
30932
31522
  * mini app</a>.
30933
31523
  *
30934
- * RPC method returns {@link tl.TypeSimpleWebViewResult}
31524
+ * RPC method returns {@link tl.TypeWebViewResult}
30935
31525
  */
30936
31526
  interface RawRequestSimpleWebViewRequest {
30937
31527
  _: 'messages.requestSimpleWebView';
@@ -30950,6 +31540,7 @@ export class RpcError extends Error {
30950
31540
  * App link »</a>.
30951
31541
  */
30952
31542
  fromSideMenu?: boolean;
31543
+ compact?: boolean;
30953
31544
  /**
30954
31545
  * Bot that owns the mini app
30955
31546
  */
@@ -31100,7 +31691,13 @@ export class RpcError extends Error {
31100
31691
  _: 'messages.getEmojiStickers';
31101
31692
  /**
31102
31693
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31103
- * for pagination, for more info click here</a>
31694
+ * for pagination, for more info click here</a>.
31695
+ *
31696
+ * <strong>Note</strong>: the usual hash generation algorithm
31697
+ * cannot be used in this case, please re-use the
31698
+ * {@link messages.RawAllStickers}.<code>hash</code> field
31699
+ * returned by a previous call to the method, or pass 0 if this
31700
+ * is the first call.
31104
31701
  */
31105
31702
  hash: Long;
31106
31703
  }
@@ -31113,7 +31710,13 @@ export class RpcError extends Error {
31113
31710
  _: 'messages.getFeaturedEmojiStickers';
31114
31711
  /**
31115
31712
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31116
- * for pagination, for more info click here</a>
31713
+ * for pagination, for more info click here</a>.
31714
+ *
31715
+ * <strong>Note</strong>: the usual hash generation algorithm
31716
+ * cannot be used in this case, please re-use the
31717
+ * {@link messages.RawFeaturedStickers}.<code>hash</code> field
31718
+ * returned by a previous call to the method, or pass 0 if this
31719
+ * is the first call.
31117
31720
  */
31118
31721
  hash: Long;
31119
31722
  }
@@ -31156,7 +31759,13 @@ export class RpcError extends Error {
31156
31759
  limit: number;
31157
31760
  /**
31158
31761
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31159
- * for pagination, for more info click here</a>
31762
+ * for pagination, for more info click here</a>.
31763
+ *
31764
+ * <strong>Note</strong>: the usual hash generation algorithm
31765
+ * cannot be used in this case, please re-use the
31766
+ * {@link messages.RawReactions}.<code>hash</code> field
31767
+ * returned by a previous call to the method, or pass 0 if this
31768
+ * is the first call.
31160
31769
  */
31161
31770
  hash: Long;
31162
31771
  }
@@ -31177,7 +31786,13 @@ export class RpcError extends Error {
31177
31786
  limit: number;
31178
31787
  /**
31179
31788
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31180
- * for pagination, for more info click here</a>
31789
+ * for pagination, for more info click here</a>.
31790
+ *
31791
+ * <strong>Note</strong>: the usual hash generation algorithm
31792
+ * cannot be used in this case, please re-use the
31793
+ * {@link messages.RawReactions}.<code>hash</code> field
31794
+ * returned by a previous call to the method, or pass 0 if this
31795
+ * is the first call.
31181
31796
  */
31182
31797
  hash: Long;
31183
31798
  }
@@ -31271,7 +31886,13 @@ export class RpcError extends Error {
31271
31886
  _: 'messages.getEmojiGroups';
31272
31887
  /**
31273
31888
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31274
- * for pagination, for more info click here</a>
31889
+ * for pagination, for more info click here</a>.
31890
+ *
31891
+ * <strong>Note</strong>: the usual hash generation algorithm
31892
+ * cannot be used in this case, please re-use the
31893
+ * {@link messages.RawEmojiGroups}.<code>hash</code> field
31894
+ * returned by a previous call to the method, or pass 0 if this
31895
+ * is the first call.
31275
31896
  */
31276
31897
  hash: number;
31277
31898
  }
@@ -31288,7 +31909,13 @@ export class RpcError extends Error {
31288
31909
  _: 'messages.getEmojiStatusGroups';
31289
31910
  /**
31290
31911
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31291
- * for pagination, for more info click here</a>
31912
+ * for pagination, for more info click here</a>.
31913
+ *
31914
+ * <strong>Note</strong>: the usual hash generation algorithm
31915
+ * cannot be used in this case, please re-use the
31916
+ * {@link messages.RawEmojiGroups}.<code>hash</code> field
31917
+ * returned by a previous call to the method, or pass 0 if this
31918
+ * is the first call.
31292
31919
  */
31293
31920
  hash: number;
31294
31921
  }
@@ -31306,7 +31933,13 @@ export class RpcError extends Error {
31306
31933
  _: 'messages.getEmojiProfilePhotoGroups';
31307
31934
  /**
31308
31935
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31309
- * for pagination, for more info click here</a>
31936
+ * for pagination, for more info click here</a>.
31937
+ *
31938
+ * <strong>Note</strong>: the usual hash generation algorithm
31939
+ * cannot be used in this case, please re-use the
31940
+ * {@link messages.RawEmojiGroups}.<code>hash</code> field
31941
+ * returned by a previous call to the method, or pass 0 if this
31942
+ * is the first call.
31310
31943
  */
31311
31944
  hash: number;
31312
31945
  }
@@ -31325,7 +31958,13 @@ export class RpcError extends Error {
31325
31958
  emoticon: string;
31326
31959
  /**
31327
31960
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31328
- * for pagination, for more info click here</a>
31961
+ * for pagination, for more info click here</a>.
31962
+ *
31963
+ * <strong>Note</strong>: the usual hash generation algorithm
31964
+ * cannot be used in this case, please re-use the
31965
+ * {@link RawEmojiList}.<code>hash</code> field returned by a
31966
+ * previous call to the method, or pass 0 if this is the first
31967
+ * call.
31329
31968
  */
31330
31969
  hash: Long;
31331
31970
  }
@@ -31350,8 +31989,8 @@ export class RpcError extends Error {
31350
31989
  }
31351
31990
  /**
31352
31991
  * Obtain information about a
31353
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
31354
- * Mini App</a>
31992
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
31993
+ * link Mini App</a>
31355
31994
  *
31356
31995
  * RPC method returns {@link tl.messages.TypeBotApp}
31357
31996
  */
@@ -31359,7 +31998,7 @@ export class RpcError extends Error {
31359
31998
  _: 'messages.getBotApp';
31360
31999
  /**
31361
32000
  * Bot app information obtained from a
31362
- * <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named
32001
+ * <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">Direct
31363
32002
  * Mini App deep link »</a>.
31364
32003
  */
31365
32004
  app: tl.TypeInputBotApp;
@@ -31373,7 +32012,7 @@ export class RpcError extends Error {
31373
32012
  * Open a
31374
32013
  * <a href="https://corefork.telegram.org/bots/webapps">bot
31375
32014
  * mini app</a> from a
31376
- * <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named
32015
+ * <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct
31377
32016
  * Mini App deep link</a>, sending over user information after
31378
32017
  * user confirmation.
31379
32018
  *
@@ -31381,17 +32020,18 @@ export class RpcError extends Error {
31381
32020
  * webview, {@link messages.RawProlongWebViewRequest} must be
31382
32021
  * called every 60 seconds.
31383
32022
  *
31384
- * RPC method returns {@link tl.TypeAppWebViewResult}
32023
+ * RPC method returns {@link tl.TypeWebViewResult}
31385
32024
  */
31386
32025
  interface RawRequestAppWebViewRequest {
31387
32026
  _: 'messages.requestAppWebView';
31388
32027
  /**
31389
32028
  * Set this flag if the bot is asking permission to send
31390
32029
  * messages to the user as specified in the
31391
- * <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named
32030
+ * <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct
31392
32031
  * Mini App deep link</a> docs, and the user agreed.
31393
32032
  */
31394
32033
  writeAllowed?: boolean;
32034
+ compact?: boolean;
31395
32035
  /**
31396
32036
  * If the client has clicked on the link in a Telegram chat,
31397
32037
  * pass the chat's peer information; otherwise pass the bot's
@@ -31401,14 +32041,14 @@ export class RpcError extends Error {
31401
32041
  /**
31402
32042
  * The app obtained by invoking
31403
32043
  * {@link messages.RawGetBotAppRequest} as specified in the
31404
- * <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named
32044
+ * <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct
31405
32045
  * Mini App deep link</a> docs.
31406
32046
  */
31407
32047
  app: tl.TypeInputBotApp;
31408
32048
  /**
31409
32049
  * If the <code>startapp</code> query string parameter is
31410
32050
  * present in the
31411
- * <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named
32051
+ * <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct
31412
32052
  * Mini App deep link</a>, pass it to <code>start_param</code>.
31413
32053
  */
31414
32054
  startParam?: string;
@@ -31494,7 +32134,13 @@ export class RpcError extends Error {
31494
32134
  q: string;
31495
32135
  /**
31496
32136
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31497
- * for pagination, for more info click here</a>
32137
+ * for pagination, for more info click here</a>.
32138
+ *
32139
+ * <strong>Note</strong>: the usual hash generation algorithm
32140
+ * cannot be used in this case, please re-use the
32141
+ * {@link messages.RawFoundStickerSets}.<code>hash</code> field
32142
+ * returned by a previous call to the method, or pass 0 if this
32143
+ * is the first call.
31498
32144
  */
31499
32145
  hash: Long;
31500
32146
  }
@@ -31659,26 +32305,71 @@ export class RpcError extends Error {
31659
32305
  order: tl.TypeInputDialogPeer[];
31660
32306
  }
31661
32307
  /**
32308
+ * Fetch the full list of
32309
+ * <a href="https://corefork.telegram.org/api/saved-messages#tags">saved
32310
+ * message tags</a> created by the user.
32311
+ *
31662
32312
  * RPC method returns {@link tl.messages.TypeSavedReactionTags}
31663
32313
  */
31664
32314
  interface RawGetSavedReactionTagsRequest {
31665
32315
  _: 'messages.getSavedReactionTags';
32316
+ /**
32317
+ * If set, returns tags only used in the specified
32318
+ * <a href="https://corefork.telegram.org/api/saved-messages#saved-message-dialogs">saved
32319
+ * message dialog</a>.
32320
+ */
31666
32321
  peer?: tl.TypeInputPeer;
32322
+ /**
32323
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
32324
+ * for pagination, for more info click here</a>.
32325
+ *
32326
+ * <strong>Note</strong>: the usual hash generation algorithm
32327
+ * cannot be used in this case, please re-use the
32328
+ * {@link messages.RawSavedReactionTags}.<code>hash</code>
32329
+ * field returned by a previous call to the method, or pass 0
32330
+ * if this is the first call.
32331
+ */
31667
32332
  hash: Long;
31668
32333
  }
31669
32334
  /**
32335
+ * Update the
32336
+ * <a href="https://corefork.telegram.org/api/saved-messages#tags">description
32337
+ * of a saved message tag »</a>.
32338
+ *
31670
32339
  * RPC method returns boolean
31671
32340
  */
31672
32341
  interface RawUpdateSavedReactionTagRequest {
31673
32342
  _: 'messages.updateSavedReactionTag';
32343
+ /**
32344
+ * <a href="https://corefork.telegram.org/api/reactions">Reaction</a>
32345
+ * associated to the tag
32346
+ */
31674
32347
  reaction: tl.TypeReaction;
32348
+ /**
32349
+ * Tag description, max 12 UTF-8 characters; to remove the
32350
+ * description call the method without setting this flag.
32351
+ */
31675
32352
  title?: string;
31676
32353
  }
31677
32354
  /**
32355
+ * Fetch a default recommended list of
32356
+ * <a href="https://corefork.telegram.org/api/saved-messages#tags">saved
32357
+ * message tag reactions</a>.
32358
+ *
31678
32359
  * RPC method returns {@link tl.messages.TypeReactions}
31679
32360
  */
31680
32361
  interface RawGetDefaultTagReactionsRequest {
31681
32362
  _: 'messages.getDefaultTagReactions';
32363
+ /**
32364
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
32365
+ * for pagination, for more info click here</a>.
32366
+ *
32367
+ * <strong>Note</strong>: the usual hash generation algorithm
32368
+ * cannot be used in this case, please re-use the
32369
+ * {@link messages.RawReactions}.<code>hash</code> field
32370
+ * returned by a previous call to the method, or pass 0 if this
32371
+ * is the first call.
32372
+ */
31682
32373
  hash: Long;
31683
32374
  }
31684
32375
  /**
@@ -31690,39 +32381,100 @@ export class RpcError extends Error {
31690
32381
  msgId: number;
31691
32382
  }
31692
32383
  /**
32384
+ * Fetch basic info about all existing
32385
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
32386
+ * reply shortcuts</a>.
32387
+ *
31693
32388
  * RPC method returns {@link tl.messages.TypeQuickReplies}
31694
32389
  */
31695
32390
  interface RawGetQuickRepliesRequest {
31696
32391
  _: 'messages.getQuickReplies';
32392
+ /**
32393
+ * Hash for pagination, generated as specified
32394
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">here
32395
+ * »</a> (not the usual algorithm used for hash generation.)
32396
+ */
31697
32397
  hash: Long;
31698
32398
  }
31699
32399
  /**
32400
+ * Reorder
32401
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
32402
+ * reply shortcuts</a>.
32403
+ *
32404
+ * This will emit an {@link RawUpdateQuickReplies} update to
32405
+ * other logged-in sessions.
32406
+ *
31700
32407
  * RPC method returns boolean
31701
32408
  */
31702
32409
  interface RawReorderQuickRepliesRequest {
31703
32410
  _: 'messages.reorderQuickReplies';
32411
+ /**
32412
+ * IDs of all created
32413
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
32414
+ * reply shortcuts</a>, in the desired order.
32415
+ */
31704
32416
  order: number[];
31705
32417
  }
31706
32418
  /**
32419
+ * Before offering the user the choice to add a message to a
32420
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
32421
+ * reply shortcut</a>, to make sure that none of the limits
32422
+ * specified
32423
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">here
32424
+ * »</a> were reached.
32425
+ *
31707
32426
  * RPC method returns boolean
31708
32427
  */
31709
32428
  interface RawCheckQuickReplyShortcutRequest {
31710
32429
  _: 'messages.checkQuickReplyShortcut';
32430
+ /**
32431
+ * Shorcut name (not ID!).
32432
+ */
31711
32433
  shortcut: string;
31712
32434
  }
31713
32435
  /**
32436
+ * Rename a
32437
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
32438
+ * reply shortcut</a>.
32439
+ *
32440
+ *
32441
+ * This will emit an {@link RawUpdateQuickReplies} update to
32442
+ * other logged-in sessions.
32443
+ *
31714
32444
  * RPC method returns boolean
31715
32445
  */
31716
32446
  interface RawEditQuickReplyShortcutRequest {
31717
32447
  _: 'messages.editQuickReplyShortcut';
32448
+ /**
32449
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">Shortcut
32450
+ * ID</a>.
32451
+ */
31718
32452
  shortcutId: number;
32453
+ /**
32454
+ * New shortcut name.
32455
+ */
31719
32456
  shortcut: string;
31720
32457
  }
31721
32458
  /**
32459
+ * Completely delete a
32460
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
32461
+ * reply shortcut</a>.
32462
+ *
32463
+ *
32464
+ * This will also emit an {@link RawUpdateDeleteQuickReply}
32465
+ * update to other logged-in sessions (and <em>no</em>
32466
+ * {@link RawUpdateDeleteQuickReplyMessages} updates, even if
32467
+ * all the messages in the shortcuts are also deleted by this
32468
+ * method).
32469
+ *
31722
32470
  * RPC method returns boolean
31723
32471
  */
31724
32472
  interface RawDeleteQuickReplyShortcutRequest {
31725
32473
  _: 'messages.deleteQuickReplyShortcut';
32474
+ /**
32475
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">Shortcut
32476
+ * ID</a>
32477
+ */
31726
32478
  shortcutId: number;
31727
32479
  }
31728
32480
  /**
@@ -31732,6 +32484,10 @@ export class RpcError extends Error {
31732
32484
  _: 'messages.getQuickReplyMessages';
31733
32485
  shortcutId: number;
31734
32486
  id?: number[];
32487
+ /**
32488
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
32489
+ * for pagination, for more info click here</a>
32490
+ */
31735
32491
  hash: Long;
31736
32492
  }
31737
32493
  /**
@@ -31745,11 +32501,23 @@ export class RpcError extends Error {
31745
32501
  randomId: Long[];
31746
32502
  }
31747
32503
  /**
32504
+ * Delete one or more messages from a
32505
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick
32506
+ * reply shortcut</a>. This will also emit an
32507
+ * {@link RawUpdateDeleteQuickReplyMessages} update.
32508
+ *
31748
32509
  * RPC method returns {@link tl.TypeUpdates}
31749
32510
  */
31750
32511
  interface RawDeleteQuickReplyMessagesRequest {
31751
32512
  _: 'messages.deleteQuickReplyMessages';
32513
+ /**
32514
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">Shortcut
32515
+ * ID</a>.
32516
+ */
31752
32517
  shortcutId: number;
32518
+ /**
32519
+ * IDs of shortcut messages to delete.
32520
+ */
31753
32521
  id: number[];
31754
32522
  }
31755
32523
  /**
@@ -31764,7 +32532,16 @@ export class RpcError extends Error {
31764
32532
  */
31765
32533
  interface RawGetMyStickersRequest {
31766
32534
  _: 'messages.getMyStickers';
32535
+ /**
32536
+ * <a href="https://corefork.telegram.org/api/offsets">Offsets
32537
+ * for pagination, for more info click here</a>
32538
+ */
31767
32539
  offsetId: Long;
32540
+ /**
32541
+ * Maximum number of results to return,
32542
+ * <a href="https://corefork.telegram.org/api/offsets">see
32543
+ * pagination</a>
32544
+ */
31768
32545
  limit: number;
31769
32546
  }
31770
32547
  /**
@@ -31772,6 +32549,16 @@ export class RpcError extends Error {
31772
32549
  */
31773
32550
  interface RawGetEmojiStickerGroupsRequest {
31774
32551
  _: 'messages.getEmojiStickerGroups';
32552
+ /**
32553
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
32554
+ * for pagination, for more info click here</a>.
32555
+ *
32556
+ * <strong>Note</strong>: the usual hash generation algorithm
32557
+ * cannot be used in this case, please re-use the
32558
+ * {@link messages.RawEmojiGroups}.<code>hash</code> field
32559
+ * returned by a previous call to the method, or pass 0 if this
32560
+ * is the first call.
32561
+ */
31775
32562
  hash: number;
31776
32563
  }
31777
32564
  /**
@@ -31779,6 +32566,16 @@ export class RpcError extends Error {
31779
32566
  */
31780
32567
  interface RawGetAvailableEffectsRequest {
31781
32568
  _: 'messages.getAvailableEffects';
32569
+ /**
32570
+ * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
32571
+ * for pagination, for more info click here</a>.
32572
+ *
32573
+ * <strong>Note</strong>: the usual hash generation algorithm
32574
+ * cannot be used in this case, please re-use the
32575
+ * {@link messages.RawAvailableEffects}.<code>hash</code> field
32576
+ * returned by a previous call to the method, or pass 0 if this
32577
+ * is the first call.
32578
+ */
31782
32579
  hash: number;
31783
32580
  }
31784
32581
  /**
@@ -31970,7 +32767,7 @@ export class RpcError extends Error {
31970
32767
  'messages.toggleBotInAttachMenu': boolean
31971
32768
  'messages.requestWebView': tl.TypeWebViewResult
31972
32769
  'messages.prolongWebView': boolean
31973
- 'messages.requestSimpleWebView': tl.TypeSimpleWebViewResult
32770
+ 'messages.requestSimpleWebView': tl.TypeWebViewResult
31974
32771
  'messages.sendWebViewResultMessage': tl.TypeWebViewMessageSent
31975
32772
  'messages.sendWebViewData': tl.TypeUpdates
31976
32773
  'messages.transcribeAudio': tl.messages.TypeTranscribedAudio
@@ -31992,7 +32789,7 @@ export class RpcError extends Error {
31992
32789
  'messages.searchCustomEmoji': tl.TypeEmojiList
31993
32790
  'messages.togglePeerTranslations': boolean
31994
32791
  'messages.getBotApp': tl.messages.TypeBotApp
31995
- 'messages.requestAppWebView': tl.TypeAppWebViewResult
32792
+ 'messages.requestAppWebView': tl.TypeWebViewResult
31996
32793
  'messages.setChatWallPaper': tl.TypeUpdates
31997
32794
  'messages.searchEmojiStickerSets': tl.messages.TypeFoundStickerSets
31998
32795
  'messages.getSavedDialogs': tl.messages.TypeSavedDialogs
@@ -32285,8 +33082,8 @@ export class RpcError extends Error {
32285
33082
  function isAnyTranslatedText(o: object): o is TypeTranslatedText
32286
33083
  /**
32287
33084
  * Contains information about a
32288
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
32289
- * Mini App</a>
33085
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
33086
+ * link Mini App</a>
32290
33087
  */
32291
33088
  type TypeBotApp = tl.messages.RawBotApp
32292
33089
  function isAnyBotApp(o: object): o is TypeBotApp
@@ -33679,6 +34476,10 @@ export class RpcError extends Error {
33679
34476
  _: 'account.resolvedBusinessChatLinks';
33680
34477
  peer: tl.TypePeer;
33681
34478
  message: string;
34479
+ /**
34480
+ * <a href="https://corefork.telegram.org/api/entities">Message
34481
+ * entities for styled text</a>
34482
+ */
33682
34483
  entities?: tl.TypeMessageEntity[];
33683
34484
  chats: tl.TypeChat[];
33684
34485
  users: tl.TypeUser[];
@@ -33832,7 +34633,13 @@ export class RpcError extends Error {
33832
34633
  _: 'account.getWallPapers';
33833
34634
  /**
33834
34635
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
33835
- * for pagination, for more info click here</a>
34636
+ * for pagination, for more info click here</a>.
34637
+ *
34638
+ * <strong>Note</strong>: the usual hash generation algorithm
34639
+ * cannot be used in this case, please re-use the
34640
+ * {@link account.RawWallPapers}.<code>hash</code> field
34641
+ * returned by a previous call to the method, or pass 0 if this
34642
+ * is the first call.
33836
34643
  */
33837
34644
  hash: Long;
33838
34645
  }
@@ -34791,7 +35598,13 @@ export class RpcError extends Error {
34791
35598
  format: string;
34792
35599
  /**
34793
35600
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
34794
- * for pagination, for more info click here</a>
35601
+ * for pagination, for more info click here</a>.
35602
+ *
35603
+ * <strong>Note</strong>: the usual hash generation algorithm
35604
+ * cannot be used in this case, please re-use the
35605
+ * {@link account.RawThemes}.<code>hash</code> field returned
35606
+ * by a previous call to the method, or pass 0 if this is the
35607
+ * first call.
34795
35608
  */
34796
35609
  hash: Long;
34797
35610
  }
@@ -34907,7 +35720,13 @@ export class RpcError extends Error {
34907
35720
  _: 'account.getChatThemes';
34908
35721
  /**
34909
35722
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
34910
- * for pagination, for more info click here</a>
35723
+ * for pagination, for more info click here</a>.
35724
+ *
35725
+ * <strong>Note</strong>: the usual hash generation algorithm
35726
+ * cannot be used in this case, please re-use the
35727
+ * {@link account.RawThemes}.<code>hash</code> field returned
35728
+ * by a previous call to the method, or pass 0 if this is the
35729
+ * first call.
34911
35730
  */
34912
35731
  hash: Long;
34913
35732
  }
@@ -34961,7 +35780,13 @@ export class RpcError extends Error {
34961
35780
  _: 'account.getSavedRingtones';
34962
35781
  /**
34963
35782
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
34964
- * for pagination, for more info click here</a>
35783
+ * for pagination, for more info click here</a>.
35784
+ *
35785
+ * <strong>Note</strong>: the usual hash generation algorithm
35786
+ * cannot be used in this case, please re-use the
35787
+ * {@link account.RawSavedRingtones}.<code>hash</code> field
35788
+ * returned by a previous call to the method, or pass 0 if this
35789
+ * is the first call.
34965
35790
  */
34966
35791
  hash: Long;
34967
35792
  }
@@ -35041,7 +35866,13 @@ export class RpcError extends Error {
35041
35866
  _: 'account.getDefaultEmojiStatuses';
35042
35867
  /**
35043
35868
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35044
- * for pagination, for more info click here</a>
35869
+ * for pagination, for more info click here</a>.
35870
+ *
35871
+ * <strong>Note</strong>: the usual hash generation algorithm
35872
+ * cannot be used in this case, please re-use the
35873
+ * {@link account.RawEmojiStatuses}.<code>hash</code> field
35874
+ * returned by a previous call to the method, or pass 0 if this
35875
+ * is the first call.
35045
35876
  */
35046
35877
  hash: Long;
35047
35878
  }
@@ -35056,7 +35887,13 @@ export class RpcError extends Error {
35056
35887
  _: 'account.getRecentEmojiStatuses';
35057
35888
  /**
35058
35889
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35059
- * for pagination, for more info click here</a>
35890
+ * for pagination, for more info click here</a>.
35891
+ *
35892
+ * <strong>Note</strong>: the usual hash generation algorithm
35893
+ * cannot be used in this case, please re-use the
35894
+ * {@link account.RawEmojiStatuses}.<code>hash</code> field
35895
+ * returned by a previous call to the method, or pass 0 if this
35896
+ * is the first call.
35060
35897
  */
35061
35898
  hash: Long;
35062
35899
  }
@@ -35115,7 +35952,13 @@ export class RpcError extends Error {
35115
35952
  _: 'account.getDefaultProfilePhotoEmojis';
35116
35953
  /**
35117
35954
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35118
- * for pagination, for more info click here</a>
35955
+ * for pagination, for more info click here</a>.
35956
+ *
35957
+ * <strong>Note</strong>: the usual hash generation algorithm
35958
+ * cannot be used in this case, please re-use the
35959
+ * {@link RawEmojiList}.<code>hash</code> field returned by a
35960
+ * previous call to the method, or pass 0 if this is the first
35961
+ * call.
35119
35962
  */
35120
35963
  hash: Long;
35121
35964
  }
@@ -35132,7 +35975,13 @@ export class RpcError extends Error {
35132
35975
  _: 'account.getDefaultGroupPhotoEmojis';
35133
35976
  /**
35134
35977
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35135
- * for pagination, for more info click here</a>
35978
+ * for pagination, for more info click here</a>.
35979
+ *
35980
+ * <strong>Note</strong>: the usual hash generation algorithm
35981
+ * cannot be used in this case, please re-use the
35982
+ * {@link RawEmojiList}.<code>hash</code> field returned by a
35983
+ * previous call to the method, or pass 0 if this is the first
35984
+ * call.
35136
35985
  */
35137
35986
  hash: Long;
35138
35987
  }
@@ -35236,7 +36085,13 @@ export class RpcError extends Error {
35236
36085
  _: 'account.getDefaultBackgroundEmojis';
35237
36086
  /**
35238
36087
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35239
- * for pagination, for more info click here</a>
36088
+ * for pagination, for more info click here</a>.
36089
+ *
36090
+ * <strong>Note</strong>: the usual hash generation algorithm
36091
+ * cannot be used in this case, please re-use the
36092
+ * {@link RawEmojiList}.<code>hash</code> field returned by a
36093
+ * previous call to the method, or pass 0 if this is the first
36094
+ * call.
35240
36095
  */
35241
36096
  hash: Long;
35242
36097
  }
@@ -35251,7 +36106,13 @@ export class RpcError extends Error {
35251
36106
  _: 'account.getChannelDefaultEmojiStatuses';
35252
36107
  /**
35253
36108
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35254
- * for pagination, for more info click here</a>
36109
+ * for pagination, for more info click here</a>.
36110
+ *
36111
+ * <strong>Note</strong>: the usual hash generation algorithm
36112
+ * cannot be used in this case, please re-use the
36113
+ * {@link account.RawEmojiStatuses}.<code>hash</code> field
36114
+ * returned by a previous call to the method, or pass 0 if this
36115
+ * is the first call.
35255
36116
  */
35256
36117
  hash: Long;
35257
36118
  }
@@ -35268,23 +36129,65 @@ export class RpcError extends Error {
35268
36129
  _: 'account.getChannelRestrictedStatusEmojis';
35269
36130
  /**
35270
36131
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35271
- * for pagination, for more info click here</a>
36132
+ * for pagination, for more info click here</a>.
36133
+ *
36134
+ * <strong>Note</strong>: the usual hash generation algorithm
36135
+ * cannot be used in this case, please re-use the
36136
+ * {@link RawEmojiList}.<code>hash</code> field returned by a
36137
+ * previous call to the method, or pass 0 if this is the first
36138
+ * call.
35272
36139
  */
35273
36140
  hash: Long;
35274
36141
  }
35275
36142
  /**
36143
+ * Specify a set of
36144
+ * <a href="https://corefork.telegram.org/api/business#opening-hours">Telegram
36145
+ * Business opening hours</a>.
36146
+ *
36147
+ *
36148
+ * This info will be contained in
36149
+ * {@link RawUserFull}.<code>business_work_hours</code>.
36150
+ *
36151
+ * To remove all opening hours, invoke the method without
36152
+ * setting the <code>business_work_hours</code> field.
36153
+ *
36154
+ * Note that the opening hours specified by the user must be
36155
+ * appropriately validated and transformed before invoking the
36156
+ * method, as specified
36157
+ * <a href="https://corefork.telegram.org/api/business#opening-hours">here
36158
+ * »</a>.
36159
+ *
35276
36160
  * RPC method returns boolean
35277
36161
  */
35278
36162
  interface RawUpdateBusinessWorkHoursRequest {
35279
36163
  _: 'account.updateBusinessWorkHours';
36164
+ /**
36165
+ * Opening hours (optional, if not set removes all opening
36166
+ * hours).
36167
+ */
35280
36168
  businessWorkHours?: tl.TypeBusinessWorkHours;
35281
36169
  }
35282
36170
  /**
36171
+ * <a href="https://corefork.telegram.org/api/business#location">Businesses
36172
+ * »</a> may advertise their location using this method, see
36173
+ * <a href="https://corefork.telegram.org/api/business#location">here
36174
+ * »</a> for more info.
36175
+ *
36176
+ * To remove business location information invoke the method
36177
+ * without setting any of the parameters.
36178
+ *
35283
36179
  * RPC method returns boolean
35284
36180
  */
35285
36181
  interface RawUpdateBusinessLocationRequest {
35286
36182
  _: 'account.updateBusinessLocation';
36183
+ /**
36184
+ * Optional, contains a set of geographical coordinates.
36185
+ */
35287
36186
  geoPoint?: tl.TypeInputGeoPoint;
36187
+ /**
36188
+ * Mandatory when setting/updating the location, contains a
36189
+ * textual description of the address (max 96 UTF-8 chars).
36190
+ */
35288
36191
  address?: string;
35289
36192
  }
35290
36193
  /**
@@ -36960,7 +37863,13 @@ export class RpcError extends Error {
36960
37863
  /**
36961
37864
  * Whether to change the accent color emoji pattern of the
36962
37865
  * profile page; otherwise, the accent color and emoji pattern
36963
- * of messages will be changed.
37866
+ * of messages will be changed.
37867
+ *
37868
+ * Channels can change both message and profile palettes;
37869
+ * supergroups can only change the profile palette, of course
37870
+ * after reaching the
37871
+ * <a href="https://corefork.telegram.org/api/colors">appropriate
37872
+ * boost level</a>.
36964
37873
  */
36965
37874
  forProfile?: boolean;
36966
37875
  /**
@@ -37026,16 +37935,16 @@ export class RpcError extends Error {
37026
37935
  /**
37027
37936
  * Set an
37028
37937
  * <a href="https://corefork.telegram.org/api/emoji-status">emoji
37029
- * status</a> for a channel.
37938
+ * status</a> for a channel or supergroup.
37030
37939
  *
37031
37940
  * RPC method returns {@link tl.TypeUpdates}
37032
37941
  */
37033
37942
  interface RawUpdateEmojiStatusRequest {
37034
37943
  _: 'channels.updateEmojiStatus';
37035
37944
  /**
37036
- * The channel, must have at least
37037
- * <a href="https://corefork.telegram.org/api/config#channel-emoji-status-level-min"><code>channel_emoji_status_level_min</code>
37038
- * boosts</a>.
37945
+ * The channel/supergroup, must have at least
37946
+ * <a href="https://corefork.telegram.org/api/config#channel-emoji-status-level-min">channel_emoji_status_level_min</a>/<a href="https://corefork.telegram.org/api/config#group-emoji-status-level-min">group_emoji_status_level_min</a>
37947
+ * boosts.
37039
37948
  */
37040
37949
  channel: tl.TypeInputChannel;
37041
37950
  /**
@@ -37086,7 +37995,16 @@ export class RpcError extends Error {
37086
37995
  hashtag: string;
37087
37996
  offsetRate: number;
37088
37997
  offsetPeer: tl.TypeInputPeer;
37998
+ /**
37999
+ * <a href="https://corefork.telegram.org/api/offsets">Offsets
38000
+ * for pagination, for more info click here</a>
38001
+ */
37089
38002
  offsetId: number;
38003
+ /**
38004
+ * Maximum number of results to return,
38005
+ * <a href="https://corefork.telegram.org/api/offsets">see
38006
+ * pagination</a>
38007
+ */
37090
38008
  limit: number;
37091
38009
  }
37092
38010
  interface RpcCallReturn {
@@ -37599,6 +38517,20 @@ export class RpcError extends Error {
37599
38517
  chats: tl.TypeChat[];
37600
38518
  users: tl.TypeUser[];
37601
38519
  }
38520
+ interface RawStarsRevenueStats {
38521
+ _: 'payments.starsRevenueStats';
38522
+ revenueGraph: tl.TypeStatsGraph;
38523
+ status: tl.TypeStarsRevenueStatus;
38524
+ usdRate: Double;
38525
+ }
38526
+ interface RawStarsRevenueWithdrawalUrl {
38527
+ _: 'payments.starsRevenueWithdrawalUrl';
38528
+ url: string;
38529
+ }
38530
+ interface RawStarsRevenueAdsAccountUrl {
38531
+ _: 'payments.starsRevenueAdsAccountUrl';
38532
+ url: string;
38533
+ }
37602
38534
  /**
37603
38535
  * Get a payment form
37604
38536
  *
@@ -37907,8 +38839,10 @@ export class RpcError extends Error {
37907
38839
  _: 'payments.getStarsTransactions';
37908
38840
  inbound?: boolean;
37909
38841
  outbound?: boolean;
38842
+ ascending?: boolean;
37910
38843
  peer: tl.TypeInputPeer;
37911
38844
  offset: string;
38845
+ limit: number;
37912
38846
  }
37913
38847
  /**
37914
38848
  * RPC method returns {@link tl.payments.TypePaymentResult}
@@ -37926,6 +38860,40 @@ export class RpcError extends Error {
37926
38860
  userId: tl.TypeInputUser;
37927
38861
  chargeId: string;
37928
38862
  }
38863
+ /**
38864
+ * RPC method returns {@link tl.payments.TypeStarsRevenueStats}
38865
+ */
38866
+ interface RawGetStarsRevenueStatsRequest {
38867
+ _: 'payments.getStarsRevenueStats';
38868
+ dark?: boolean;
38869
+ peer: tl.TypeInputPeer;
38870
+ }
38871
+ /**
38872
+ * RPC method returns
38873
+ * {@link tl.payments.TypeStarsRevenueWithdrawalUrl}
38874
+ */
38875
+ interface RawGetStarsRevenueWithdrawalUrlRequest {
38876
+ _: 'payments.getStarsRevenueWithdrawalUrl';
38877
+ peer: tl.TypeInputPeer;
38878
+ stars: Long;
38879
+ password: tl.TypeInputCheckPasswordSRP;
38880
+ }
38881
+ /**
38882
+ * RPC method returns
38883
+ * {@link tl.payments.TypeStarsRevenueAdsAccountUrl}
38884
+ */
38885
+ interface RawGetStarsRevenueAdsAccountUrlRequest {
38886
+ _: 'payments.getStarsRevenueAdsAccountUrl';
38887
+ peer: tl.TypeInputPeer;
38888
+ }
38889
+ /**
38890
+ * RPC method returns {@link tl.payments.TypeStarsStatus}
38891
+ */
38892
+ interface RawGetStarsTransactionsByIDRequest {
38893
+ _: 'payments.getStarsTransactionsByID';
38894
+ peer: tl.TypeInputPeer;
38895
+ id: tl.TypeInputStarsTransaction[];
38896
+ }
37929
38897
  interface RpcCallReturn {
37930
38898
  'payments.getPaymentForm': tl.payments.TypePaymentForm
37931
38899
  'payments.getPaymentReceipt': tl.payments.TypePaymentReceipt
@@ -37948,6 +38916,10 @@ export class RpcError extends Error {
37948
38916
  'payments.getStarsTransactions': tl.payments.TypeStarsStatus
37949
38917
  'payments.sendStarsForm': tl.payments.TypePaymentResult
37950
38918
  'payments.refundStarsCharge': tl.TypeUpdates
38919
+ 'payments.getStarsRevenueStats': tl.payments.TypeStarsRevenueStats
38920
+ 'payments.getStarsRevenueWithdrawalUrl': tl.payments.TypeStarsRevenueWithdrawalUrl
38921
+ 'payments.getStarsRevenueAdsAccountUrl': tl.payments.TypeStarsRevenueAdsAccountUrl
38922
+ 'payments.getStarsTransactionsByID': tl.payments.TypeStarsStatus
37951
38923
  }
37952
38924
  /**
37953
38925
  * Payment form
@@ -38000,6 +38972,12 @@ export class RpcError extends Error {
38000
38972
  function isAnyGiveawayInfo(o: object): o is TypeGiveawayInfo
38001
38973
  type TypeStarsStatus = tl.payments.RawStarsStatus
38002
38974
  function isAnyStarsStatus(o: object): o is TypeStarsStatus
38975
+ type TypeStarsRevenueStats = tl.payments.RawStarsRevenueStats
38976
+ function isAnyStarsRevenueStats(o: object): o is TypeStarsRevenueStats
38977
+ type TypeStarsRevenueWithdrawalUrl = tl.payments.RawStarsRevenueWithdrawalUrl
38978
+ function isAnyStarsRevenueWithdrawalUrl(o: object): o is TypeStarsRevenueWithdrawalUrl
38979
+ type TypeStarsRevenueAdsAccountUrl = tl.payments.RawStarsRevenueAdsAccountUrl
38980
+ function isAnyStarsRevenueAdsAccountUrl(o: object): o is TypeStarsRevenueAdsAccountUrl
38003
38981
  }
38004
38982
 
38005
38983
  namespace phone {
@@ -39354,6 +40332,11 @@ export class RpcError extends Error {
39354
40332
  _: 'stats.getBroadcastRevenueTransactions';
39355
40333
  channel: tl.TypeInputChannel;
39356
40334
  offset: number;
40335
+ /**
40336
+ * Maximum number of results to return,
40337
+ * <a href="https://corefork.telegram.org/api/offsets">see
40338
+ * pagination</a>
40339
+ */
39357
40340
  limit: number;
39358
40341
  }
39359
40342
  interface RpcCallReturn {
@@ -39476,13 +40459,7 @@ export class RpcError extends Error {
39476
40459
  * name of the software that created the stickers
39477
40460
  */
39478
40461
  software?: string;
39479
- /**
39480
- * Whether this is an animated stickerset
39481
- */
39482
40462
  animated?: boolean;
39483
- /**
39484
- * Whether this is a video stickerset
39485
- */
39486
40463
  videos?: boolean;
39487
40464
  }
39488
40465
  /**
@@ -39740,10 +40717,51 @@ export class RpcError extends Error {
39740
40717
  errors: tl.TypeSecureValueError[];
39741
40718
  }
39742
40719
  /**
40720
+ * Check whether we can write to the specified user
40721
+ * (non-<a href="https://corefork.telegram.org/api/premium">Premium</a>
40722
+ * users only).
40723
+ *
40724
+ * If a user enables their
40725
+ * <strong>new_noncontact_peers_require_premium</strong>
40726
+ * <a href="https://corefork.telegram.org/api/privacy#global-privacy-settings">global
40727
+ * privacy setting</a>, represented in
40728
+ * {@link RawUserFull}.<code>contact_require_premium</code>,
40729
+ * only users that have a premium account, are in our contact
40730
+ * list, or already have a private chat with them can write to
40731
+ * them in private.
40732
+ *
40733
+ * To easily check whether we can write to a user with this
40734
+ * flag enabled, if we haven't yet cached all the required
40735
+ * information (for example we don't have the
40736
+ * {@link RawUserFull} or history of all users while displaying
40737
+ * the chat list in the sharing UI) this method may be invoked,
40738
+ * passing the list of users currently visible in the UI,
40739
+ * returning a list of booleans that directly specify whether
40740
+ * we can or cannot write to each user.
40741
+ *
40742
+ * This list may then be used, for example, to display a lock
40743
+ * near the avatar of each user that we cannot write to, with
40744
+ * an appropriate tooltip to purchase a
40745
+ * <a href="https://corefork.telegram.org/api/premium">Premium</a>
40746
+ * subscription.
40747
+ *
40748
+ * Note that this method should <strong>only</strong> be
40749
+ * invoked if we don't have a
40750
+ * <a href="https://corefork.telegram.org/api/premium">Premium</a>
40751
+ * subscription, only for users whose full info
40752
+ * ({@link RawUserFull} + message history information) is not
40753
+ * cached yet, as the same info can be computed locally if all
40754
+ * the mentioned information is available, and updated
40755
+ * automatically using the usual
40756
+ * <a href="https://corefork.telegram.org/api/updates">updates</a>.
40757
+ *
39743
40758
  * RPC method returns boolean array
39744
40759
  */
39745
40760
  interface RawGetIsPremiumRequiredToContactRequest {
39746
40761
  _: 'users.getIsPremiumRequiredToContact';
40762
+ /**
40763
+ * Users to fetch info about.
40764
+ */
39747
40765
  id: tl.TypeInputUser[];
39748
40766
  }
39749
40767
  interface RpcCallReturn {
@@ -40666,6 +41684,14 @@ export class RpcError extends Error {
40666
41684
  */
40667
41685
  nextOffset?: string;
40668
41686
  }
41687
+ interface RawFoundStories {
41688
+ _: 'stories.foundStories';
41689
+ count: number;
41690
+ stories: tl.TypeFoundStory[];
41691
+ nextOffset?: string;
41692
+ chats: tl.TypeChat[];
41693
+ users: tl.TypeUser[];
41694
+ }
40669
41695
  /**
40670
41696
  * Check whether we can post stories as the specified peer.
40671
41697
  *
@@ -41290,6 +42316,16 @@ export class RpcError extends Error {
41290
42316
  peer: tl.TypeInputPeer;
41291
42317
  id: number[];
41292
42318
  }
42319
+ /**
42320
+ * RPC method returns {@link tl.stories.TypeFoundStories}
42321
+ */
42322
+ interface RawSearchPostsRequest {
42323
+ _: 'stories.searchPosts';
42324
+ hashtag?: string;
42325
+ area?: tl.TypeMediaArea;
42326
+ offset: string;
42327
+ limit: number;
42328
+ }
41293
42329
  interface RpcCallReturn {
41294
42330
  'stories.canSendStory': boolean
41295
42331
  'stories.sendStory': tl.TypeUpdates
@@ -41316,6 +42352,7 @@ export class RpcError extends Error {
41316
42352
  'stories.togglePeerStoriesHidden': boolean
41317
42353
  'stories.getStoryReactionsList': tl.stories.TypeStoryReactionsList
41318
42354
  'stories.togglePinnedToTop': boolean
42355
+ 'stories.searchPosts': tl.stories.TypeFoundStories
41319
42356
  }
41320
42357
  /**
41321
42358
  * Full list of active (or active and hidden)
@@ -41353,6 +42390,8 @@ export class RpcError extends Error {
41353
42390
  */
41354
42391
  type TypeStoryReactionsList = tl.stories.RawStoryReactionsList
41355
42392
  function isAnyStoryReactionsList(o: object): o is TypeStoryReactionsList
42393
+ type TypeFoundStories = tl.stories.RawFoundStories
42394
+ function isAnyFoundStories(o: object): o is TypeFoundStories
41356
42395
  }
41357
42396
 
41358
42397
  namespace premium {
@@ -41411,12 +42450,12 @@ export class RpcError extends Error {
41411
42450
  interface RawBoostsStatus {
41412
42451
  _: 'premium.boostsStatus';
41413
42452
  /**
41414
- * Whether we're currently boosting this channel,
42453
+ * Whether we're currently boosting this channel/supergroup,
41415
42454
  * <code>my_boost_slots</code> will also be set.
41416
42455
  */
41417
42456
  myBoost?: boolean;
41418
42457
  /**
41419
- * The current boost level of the channel.
42458
+ * The current boost level of the channel/supergroup.
41420
42459
  */
41421
42460
  level: number;
41422
42461
  /**
@@ -41432,7 +42471,7 @@ export class RpcError extends Error {
41432
42471
  * <a href="https://corefork.telegram.org/api/giveaways">gift
41433
42472
  * codes</a> and
41434
42473
  * <a href="https://corefork.telegram.org/api/giveaways">giveaways</a>;
41435
- * only returned to channel admins.
42474
+ * only returned to channel/supergroup admins.
41436
42475
  */
41437
42476
  giftBoosts?: number;
41438
42477
  /**
@@ -41441,9 +42480,10 @@ export class RpcError extends Error {
41441
42480
  */
41442
42481
  nextLevelBoosts?: number;
41443
42482
  /**
41444
- * Only returned to channel admins: contains the approximated
41445
- * number of Premium users subscribed to the channel, related
41446
- * to the total number of subscribers.
42483
+ * Only returned to channel/supergroup admins: contains the
42484
+ * approximated number of Premium users subscribed to the
42485
+ * channel/supergroup, related to the total number of
42486
+ * subscribers.
41447
42487
  */
41448
42488
  premiumAudience?: tl.TypeStatsPercentValue;
41449
42489
  /**
@@ -41454,7 +42494,8 @@ export class RpcError extends Error {
41454
42494
  /**
41455
42495
  * A list of prepaid
41456
42496
  * <a href="https://corefork.telegram.org/api/giveaways">giveaways</a>
41457
- * available for the chat; only returned to channel admins.
42497
+ * available for the chat; only returned to channel/supergroup
42498
+ * admins.
41458
42499
  */
41459
42500
  prepaidGiveaways?: tl.TypePrepaidGiveaway[];
41460
42501
  /**
@@ -41467,7 +42508,7 @@ export class RpcError extends Error {
41467
42508
  }
41468
42509
  /**
41469
42510
  * Obtains info about the boosts that were applied to a certain
41470
- * channel (admins only)
42511
+ * channel or supergroup (admins only)
41471
42512
  *
41472
42513
  * RPC method returns {@link tl.premium.TypeBoostsList}
41473
42514
  */
@@ -41476,11 +42517,11 @@ export class RpcError extends Error {
41476
42517
  /**
41477
42518
  * Whether to return only info about boosts received from
41478
42519
  * <a href="https://corefork.telegram.org/api/giveaways">gift
41479
- * codes and giveaways created by the channel »</a>
42520
+ * codes and giveaways created by the channel/supergroup »</a>
41480
42521
  */
41481
42522
  gifts?: boolean;
41482
42523
  /**
41483
- * The channel
42524
+ * The channel/supergroup
41484
42525
  */
41485
42526
  peer: tl.TypeInputPeer;
41486
42527
  /**
@@ -41530,7 +42571,7 @@ export class RpcError extends Error {
41530
42571
  /**
41531
42572
  * Gets the current
41532
42573
  * <a href="https://corefork.telegram.org/api/boost">number of
41533
- * boosts</a> of a channel.
42574
+ * boosts</a> of a channel/supergroup.
41534
42575
  *
41535
42576
  * RPC method returns {@link tl.premium.TypeBoostsStatus}
41536
42577
  */
@@ -41542,15 +42583,15 @@ export class RpcError extends Error {
41542
42583
  peer: tl.TypeInputPeer;
41543
42584
  }
41544
42585
  /**
41545
- * Returns the lists of boost that were applied to a channel by
41546
- * a specific user (admins only)
42586
+ * Returns the lists of boost that were applied to a
42587
+ * channel/supergroup by a specific user (admins only)
41547
42588
  *
41548
42589
  * RPC method returns {@link tl.premium.TypeBoostsList}
41549
42590
  */
41550
42591
  interface RawGetUserBoostsRequest {
41551
42592
  _: 'premium.getUserBoosts';
41552
42593
  /**
41553
- * The channel
42594
+ * The channel/supergroup
41554
42595
  */
41555
42596
  peer: tl.TypeInputPeer;
41556
42597
  /**
@@ -41707,12 +42748,25 @@ export class RpcError extends Error {
41707
42748
  _: 'mtcute.dummyInputPeerMinChannel';
41708
42749
  channelId: number;
41709
42750
  }
42751
+ /**
42752
+ * temporary solution to allow users to call arbitrary methods
42753
+ * not present in the schema, without having to override
42754
+ * client's schema readers/writers map. will become redundant
42755
+ * after esm tl rewrite
42756
+ *
42757
+ * RPC method returns Uint8Array
42758
+ */
42759
+ interface RawCustomMethodRequest {
42760
+ _: 'mtcute.customMethod';
42761
+ bytes: Uint8Array;
42762
+ }
41710
42763
  interface RpcCallReturn {
42764
+ 'mtcute.customMethod': Uint8Array
41711
42765
  }
41712
42766
  /**
41713
42767
  * Object contains info on events occurred.
41714
42768
  */
41715
- type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
42769
+ type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
41716
42770
  function isAnyUpdate(o: object): o is TypeUpdate
41717
42771
  /**
41718
42772
  * Peer
@@ -42396,6 +43450,8 @@ export class RpcError extends Error {
42396
43450
  | tl.payments.RawGetStarsTransactionsRequest
42397
43451
  | tl.payments.RawSendStarsFormRequest
42398
43452
  | tl.payments.RawRefundStarsChargeRequest
43453
+ | tl.payments.RawGetStarsRevenueStatsRequest
43454
+ | tl.payments.RawGetStarsRevenueWithdrawalUrlRequest
42399
43455
  | tl.stickers.RawCreateStickerSetRequest
42400
43456
  | tl.stickers.RawRemoveStickerFromSetRequest
42401
43457
  | tl.stickers.RawChangeStickerPositionRequest
@@ -42490,6 +43546,7 @@ export class RpcError extends Error {
42490
43546
  | tl.stories.RawTogglePeerStoriesHiddenRequest
42491
43547
  | tl.stories.RawGetStoryReactionsListRequest
42492
43548
  | tl.stories.RawTogglePinnedToTopRequest
43549
+ | tl.stories.RawSearchPostsRequest
42493
43550
  | tl.premium.RawGetBoostsListRequest
42494
43551
  | tl.premium.RawGetMyBoostsRequest
42495
43552
  | tl.premium.RawApplyBoostRequest
@@ -42503,6 +43560,9 @@ export class RpcError extends Error {
42503
43560
  | tl.smsjobs.RawGetSmsJobRequest
42504
43561
  | tl.smsjobs.RawFinishJobRequest
42505
43562
  | tl.fragment.RawGetCollectibleInfoRequest
43563
+ | tl.payments.RawGetStarsRevenueAdsAccountUrlRequest
43564
+ | tl.payments.RawGetStarsTransactionsByIDRequest
43565
+ | tl.mtcute.RawCustomMethodRequest
42506
43566
 
42507
43567
  type TlObject =
42508
43568
  | tl.RawError
@@ -42870,6 +43930,8 @@ export class RpcError extends Error {
42870
43930
  | tl.RawUpdateNewStoryReaction
42871
43931
  | tl.RawUpdateBroadcastRevenueTransactions
42872
43932
  | tl.RawUpdateStarsBalance
43933
+ | tl.RawUpdateBusinessBotCallbackQuery
43934
+ | tl.RawUpdateStarsRevenueStatus
42873
43935
  | tl.updates.RawState
42874
43936
  | tl.updates.RawDifferenceEmpty
42875
43937
  | tl.updates.RawDifference
@@ -43708,6 +44770,7 @@ export class RpcError extends Error {
43708
44770
  | tl.RawMediaAreaSuggestedReaction
43709
44771
  | tl.RawMediaAreaChannelPost
43710
44772
  | tl.RawInputMediaAreaChannelPost
44773
+ | tl.RawMediaAreaUrl
43711
44774
  | tl.RawPeerStories
43712
44775
  | tl.stories.RawPeerStories
43713
44776
  | tl.messages.RawWebPage
@@ -43820,6 +44883,17 @@ export class RpcError extends Error {
43820
44883
  | tl.RawStarsTopupOption
43821
44884
  | tl.RawStarsTransaction
43822
44885
  | tl.payments.RawStarsStatus
44886
+ | tl.RawFoundStory
44887
+ | tl.stories.RawFoundStories
44888
+ | tl.RawGeoPointAddress
44889
+ | tl.RawStarsRevenueStatus
44890
+ | tl.payments.RawStarsRevenueStats
44891
+ | tl.payments.RawStarsRevenueWithdrawalUrl
44892
+ | tl.RawInputMediaPaidMedia
44893
+ | tl.RawMessageMediaPaidMedia
44894
+ | tl.RawStarsTransactionPeerAds
44895
+ | tl.payments.RawStarsRevenueAdsAccountUrl
44896
+ | tl.RawInputStarsTransaction
43823
44897
  | tl.RawUpdateGroupInvitePrivacyForbidden
43824
44898
  | tl.RawSponsoredWebPage
43825
44899
  | tl.mtcute.RawDummyUpdate
@@ -44361,6 +45435,8 @@ export class RpcError extends Error {
44361
45435
  | tl.payments.RawGetStarsTransactionsRequest
44362
45436
  | tl.payments.RawSendStarsFormRequest
44363
45437
  | tl.payments.RawRefundStarsChargeRequest
45438
+ | tl.payments.RawGetStarsRevenueStatsRequest
45439
+ | tl.payments.RawGetStarsRevenueWithdrawalUrlRequest
44364
45440
  | tl.stickers.RawCreateStickerSetRequest
44365
45441
  | tl.stickers.RawRemoveStickerFromSetRequest
44366
45442
  | tl.stickers.RawChangeStickerPositionRequest
@@ -44455,6 +45531,7 @@ export class RpcError extends Error {
44455
45531
  | tl.stories.RawTogglePeerStoriesHiddenRequest
44456
45532
  | tl.stories.RawGetStoryReactionsListRequest
44457
45533
  | tl.stories.RawTogglePinnedToTopRequest
45534
+ | tl.stories.RawSearchPostsRequest
44458
45535
  | tl.premium.RawGetBoostsListRequest
44459
45536
  | tl.premium.RawGetMyBoostsRequest
44460
45537
  | tl.premium.RawApplyBoostRequest
@@ -44468,6 +45545,9 @@ export class RpcError extends Error {
44468
45545
  | tl.smsjobs.RawGetSmsJobRequest
44469
45546
  | tl.smsjobs.RawFinishJobRequest
44470
45547
  | tl.fragment.RawGetCollectibleInfoRequest
45548
+ | tl.payments.RawGetStarsRevenueAdsAccountUrlRequest
45549
+ | tl.payments.RawGetStarsTransactionsByIDRequest
45550
+ | tl.mtcute.RawCustomMethodRequest
44471
45551
  }
44472
45552
 
44473
45553