@mtcute/tl 182.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 = 182;
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 {
@@ -8734,8 +8810,16 @@ export class RpcError extends Error {
8734
8810
  emoticon: string;
8735
8811
  }
8736
8812
  /**
8737
- * Whether people will be able to see your exact last online
8738
- * 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.
8739
8823
  */
8740
8824
  interface RawInputPrivacyKeyStatusTimestamp {
8741
8825
  _: 'inputPrivacyKeyStatusTimestamp';
@@ -8800,7 +8884,15 @@ export class RpcError extends Error {
8800
8884
  _: 'inputPrivacyKeyBirthday';
8801
8885
  }
8802
8886
  /**
8803
- * 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.
8804
8896
  */
8805
8897
  interface RawPrivacyKeyStatusTimestamp {
8806
8898
  _: 'privacyKeyStatusTimestamp';
@@ -9726,7 +9818,7 @@ export class RpcError extends Error {
9726
9818
  textColor?: boolean;
9727
9819
  /**
9728
9820
  * If set, this custom emoji stickerset can be used in
9729
- * <a href="https://corefork.telegram.org/api/emoji-status">channel
9821
+ * <a href="https://corefork.telegram.org/api/emoji-status">channel/supergroup
9730
9822
  * emoji statuses</a>.
9731
9823
  */
9732
9824
  channelEmojiStatus?: boolean;
@@ -9770,13 +9862,7 @@ export class RpcError extends Error {
9770
9862
  * using {@link messages.RawGetCustomEmojiDocumentsRequest}
9771
9863
  */
9772
9864
  thumbDocumentId?: Long;
9773
- /**
9774
- * Is this an animated stickerpack
9775
- */
9776
9865
  animated?: boolean;
9777
- /**
9778
- * Is this a video stickerpack
9779
- */
9780
9866
  videos?: boolean;
9781
9867
  /**
9782
9868
  * Number of stickers in pack
@@ -11790,19 +11876,21 @@ export class RpcError extends Error {
11790
11876
  * messages »</a>, contains the sender of the original message
11791
11877
  * (i.e. if user A sends a message, then user B forwards it
11792
11878
  * somewhere, then user C saves it to saved messages, this
11793
- * field will contain the ID of user A and <code>from_id</code>
11794
- * 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).
11795
11881
  */
11796
11882
  savedFromId?: tl.TypePeer;
11797
11883
  /**
11798
11884
  * Only for forwarded messages from users with forward privacy
11799
- * enabled reforwarded to
11885
+ * enabled, sent by users with forward privacy enabled,
11886
+ * reforwarded to
11800
11887
  * <a href="https://corefork.telegram.org/api/saved-messages">saved
11801
11888
  * messages »</a>, contains the sender of the original message
11802
11889
  * (i.e. if user A (fwd privacy enabled) sends a message, then
11803
- * user B forwards it somewhere, then user C saves it to saved
11804
- * messages, this field will contain the name of user A and
11805
- * <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).
11806
11894
  */
11807
11895
  savedFromName?: string;
11808
11896
  /**
@@ -11811,8 +11899,8 @@ export class RpcError extends Error {
11811
11899
  * messages »</a>, indicates when was the original message sent
11812
11900
  * (i.e. if user A sends a message @ unixtime 1, then user B
11813
11901
  * forwards it somewhere @ unixtime 2, then user C saves it to
11814
- * saved messages @ unixtime 3, this field will contain 1,
11815
- * <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>
11816
11904
  * of the containing {@link RawMessage} will contain 3).
11817
11905
  */
11818
11906
  savedDate?: number;
@@ -17003,7 +17091,7 @@ export class RpcError extends Error {
17003
17091
  id: number;
17004
17092
  /**
17005
17093
  * <a href="https://corefork.telegram.org/api/folders">Folder</a>
17006
- * name
17094
+ * name (max 12 UTF-8 chars)
17007
17095
  */
17008
17096
  title: string;
17009
17097
  /**
@@ -17053,7 +17141,7 @@ export class RpcError extends Error {
17053
17141
  */
17054
17142
  id: number;
17055
17143
  /**
17056
- * Name of the folder
17144
+ * Name of the folder (max 12 UTF-8 chars)
17057
17145
  */
17058
17146
  title: string;
17059
17147
  /**
@@ -17347,7 +17435,42 @@ export class RpcError extends Error {
17347
17435
  * set.
17348
17436
  */
17349
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
+ */
17350
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
+ */
17351
17474
  newNoncontactPeersRequirePremium?: boolean;
17352
17475
  }
17353
17476
  /**
@@ -18403,10 +18526,11 @@ export class RpcError extends Error {
18403
18526
  */
18404
18527
  interface RawWebViewResultUrl {
18405
18528
  _: 'webViewResultUrl';
18529
+ fullsize?: boolean;
18406
18530
  /**
18407
18531
  * Webview session ID
18408
18532
  */
18409
- queryId: Long;
18533
+ queryId?: Long;
18410
18534
  /**
18411
18535
  * Webview URL to open
18412
18536
  */
@@ -18575,11 +18699,11 @@ export class RpcError extends Error {
18575
18699
  slug: string;
18576
18700
  }
18577
18701
  /**
18578
- * Used if the user wishes to start a channel
18702
+ * Used if the user wishes to start a channel/supergroup
18579
18703
  * <a href="https://corefork.telegram.org/api/giveaways">giveaway</a>
18580
18704
  * or send some
18581
18705
  * <a href="https://corefork.telegram.org/api/giveaways">giftcodes</a>
18582
- * to members of a channel, in exchange for
18706
+ * to members of a channel/supergroup, in exchange for
18583
18707
  * <a href="https://corefork.telegram.org/api/boost">boosts</a>.
18584
18708
  */
18585
18709
  interface RawInputInvoicePremiumGiftCode {
@@ -18653,7 +18777,7 @@ export class RpcError extends Error {
18653
18777
  * Used to gift
18654
18778
  * <a href="https://corefork.telegram.org/api/premium">Telegram
18655
18779
  * Premium</a> subscriptions only to some specific subscribers
18656
- * of a channel or to some of our contacts, see
18780
+ * of a channel/supergroup or to some of our contacts, see
18657
18781
  * <a href="https://corefork.telegram.org/api/giveaways">here
18658
18782
  * »</a> for more info on giveaways and gifts.
18659
18783
  */
@@ -18666,11 +18790,12 @@ export class RpcError extends Error {
18666
18790
  */
18667
18791
  users: tl.TypeInputUser[];
18668
18792
  /**
18669
- * If set, the gifts will be sent on behalf of a channel we are
18670
- * 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
18671
18796
  * <a href="https://corefork.telegram.org/api/boost">boosts</a>
18672
18797
  * to it. Otherwise, the gift will be sent directly from the
18673
- * currently logged in users, and we will gain some extra
18798
+ * currently logged in user, and we will gain some extra
18674
18799
  * <a href="https://corefork.telegram.org/api/boost">boost
18675
18800
  * slots</a>. See
18676
18801
  * <a href="https://corefork.telegram.org/api/giveaways">here
@@ -18713,8 +18838,8 @@ export class RpcError extends Error {
18713
18838
  */
18714
18839
  winnersAreVisible?: boolean;
18715
18840
  /**
18716
- * The channel starting the giveaway, that the user must join
18717
- * 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
18718
18843
  * <a href="https://corefork.telegram.org/api/boost">boosts</a>;
18719
18844
  * see
18720
18845
  * <a href="https://corefork.telegram.org/api/giveaways">here
@@ -19454,14 +19579,14 @@ export class RpcError extends Error {
19454
19579
  }
19455
19580
  /**
19456
19581
  * Used to fetch information about a
19457
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19458
- * 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
19459
19584
  */
19460
19585
  interface RawInputBotAppID {
19461
19586
  _: 'inputBotAppID';
19462
19587
  /**
19463
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19464
- * 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.
19465
19590
  */
19466
19591
  id: Long;
19467
19592
  /**
@@ -19472,8 +19597,8 @@ export class RpcError extends Error {
19472
19597
  }
19473
19598
  /**
19474
19599
  * Used to fetch information about a
19475
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19476
- * 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
19477
19602
  */
19478
19603
  interface RawInputBotAppShortName {
19479
19604
  _: 'inputBotAppShortName';
@@ -19483,7 +19608,7 @@ export class RpcError extends Error {
19483
19608
  botId: tl.TypeInputUser;
19484
19609
  /**
19485
19610
  * Short name, obtained from a
19486
- * <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
19487
19612
  * Mini App deep link</a>
19488
19613
  */
19489
19614
  shortName: string;
@@ -19496,8 +19621,8 @@ export class RpcError extends Error {
19496
19621
  }
19497
19622
  /**
19498
19623
  * Contains information about a
19499
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19500
- * Mini App</a>.
19624
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
19625
+ * link Mini App</a>.
19501
19626
  */
19502
19627
  interface RawBotApp {
19503
19628
  _: 'botApp';
@@ -19511,7 +19636,7 @@ export class RpcError extends Error {
19511
19636
  accessHash: Long;
19512
19637
  /**
19513
19638
  * bot mini app short name, used to generate
19514
- * <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
19515
19640
  * Mini App deep links</a>.
19516
19641
  */
19517
19642
  shortName: string;
@@ -19539,8 +19664,8 @@ export class RpcError extends Error {
19539
19664
  }
19540
19665
  /**
19541
19666
  * Contains the link that must be used to open a
19542
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
19543
- * Mini App</a>.
19667
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
19668
+ * link Mini App</a>.
19544
19669
  */
19545
19670
  interface RawAppWebViewResultUrl {
19546
19671
  _: 'appWebViewResultUrl';
@@ -20301,7 +20426,8 @@ export class RpcError extends Error {
20301
20426
  interface RawBoost {
20302
20427
  _: 'boost';
20303
20428
  /**
20304
- * Whether this boost was applied because the channel
20429
+ * Whether this boost was applied because the
20430
+ * channel/supergroup
20305
20431
  * <a href="https://corefork.telegram.org/api/giveaways">directly
20306
20432
  * gifted a subscription to the user</a>.
20307
20433
  */
@@ -20310,7 +20436,7 @@ export class RpcError extends Error {
20310
20436
  * Whether this boost was applied because the user was chosen
20311
20437
  * in a
20312
20438
  * <a href="https://corefork.telegram.org/api/giveaways">giveaway
20313
- * started by the channel</a>.
20439
+ * started by the channel/supergroup</a>.
20314
20440
  */
20315
20441
  giveaway?: boolean;
20316
20442
  /**
@@ -20593,15 +20719,71 @@ export class RpcError extends Error {
20593
20719
  phoneNumber: string;
20594
20720
  text: string;
20595
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
+ */
20596
20731
  interface RawBusinessWeeklyOpen {
20597
20732
  _: 'businessWeeklyOpen';
20733
+ /**
20734
+ * Start minute in minutes of the week, <code>0</code> to
20735
+ * <code>7*24*60</code> inclusively.
20736
+ */
20598
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
+ */
20599
20749
  endMinute: number;
20600
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
+ */
20601
20756
  interface RawBusinessWorkHours {
20602
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
+ */
20603
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
+ */
20604
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
+ */
20605
20787
  weeklyOpen: tl.TypeBusinessWeeklyOpen[];
20606
20788
  }
20607
20789
  interface RawBusinessLocation {
@@ -20609,59 +20791,241 @@ export class RpcError extends Error {
20609
20791
  geoPoint?: tl.TypeGeoPoint;
20610
20792
  address: string;
20611
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
+ */
20612
20809
  interface RawInputBusinessRecipients {
20613
20810
  _: 'inputBusinessRecipients';
20811
+ /**
20812
+ * All existing private chats.
20813
+ */
20614
20814
  existingChats?: boolean;
20815
+ /**
20816
+ * All new private chats.
20817
+ */
20615
20818
  newChats?: boolean;
20819
+ /**
20820
+ * All private chats with contacts.
20821
+ */
20616
20822
  contacts?: boolean;
20823
+ /**
20824
+ * All private chats with non-contacts.
20825
+ */
20617
20826
  nonContacts?: boolean;
20827
+ /**
20828
+ * If set, inverts the selection.
20829
+ */
20618
20830
  excludeSelected?: boolean;
20831
+ /**
20832
+ * Only private chats with the specified users.
20833
+ */
20619
20834
  users?: tl.TypeInputUser[];
20620
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
+ */
20621
20851
  interface RawBusinessRecipients {
20622
20852
  _: 'businessRecipients';
20853
+ /**
20854
+ * All existing private chats.
20855
+ */
20623
20856
  existingChats?: boolean;
20857
+ /**
20858
+ * All new private chats.
20859
+ */
20624
20860
  newChats?: boolean;
20861
+ /**
20862
+ * All private chats with contacts.
20863
+ */
20625
20864
  contacts?: boolean;
20865
+ /**
20866
+ * All private chats with non-contacts.
20867
+ */
20626
20868
  nonContacts?: boolean;
20869
+ /**
20870
+ * If set, inverts the selection.
20871
+ */
20627
20872
  excludeSelected?: boolean;
20873
+ /**
20874
+ * Only private chats with the specified users.
20875
+ */
20628
20876
  users?: number[];
20629
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
+ */
20630
20884
  interface RawBusinessAwayMessageScheduleAlways {
20631
20885
  _: 'businessAwayMessageScheduleAlways';
20632
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
+ */
20633
20895
  interface RawBusinessAwayMessageScheduleOutsideWorkHours {
20634
20896
  _: 'businessAwayMessageScheduleOutsideWorkHours';
20635
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
+ */
20636
20904
  interface RawBusinessAwayMessageScheduleCustom {
20637
20905
  _: 'businessAwayMessageScheduleCustom';
20906
+ /**
20907
+ * Start date (UNIX timestamp).
20908
+ */
20638
20909
  startDate: number;
20910
+ /**
20911
+ * End date (UNIX timestamp).
20912
+ */
20639
20913
  endDate: number;
20640
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
+ */
20641
20922
  interface RawInputBusinessGreetingMessage {
20642
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
+ */
20643
20930
  shortcutId: number;
20931
+ /**
20932
+ * Allowed recipients for the greeting messages.
20933
+ */
20644
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
+ */
20645
20940
  noActivityDays: number;
20646
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
+ */
20647
20949
  interface RawBusinessGreetingMessage {
20648
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
+ */
20649
20957
  shortcutId: number;
20958
+ /**
20959
+ * Allowed recipients for the greeting messages.
20960
+ */
20650
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
+ */
20651
20967
  noActivityDays: number;
20652
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
+ */
20653
20977
  interface RawInputBusinessAwayMessage {
20654
20978
  _: 'inputBusinessAwayMessage';
20979
+ /**
20980
+ * If set, the messages will not be sent if the account was
20981
+ * online in the last 10 minutes.
20982
+ */
20655
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
+ */
20656
20990
  shortcutId: number;
20991
+ /**
20992
+ * Specifies when should the away messages be sent.
20993
+ */
20657
20994
  schedule: tl.TypeBusinessAwayMessageSchedule;
20995
+ /**
20996
+ * Allowed recipients for the away messages.
20997
+ */
20658
20998
  recipients: tl.TypeInputBusinessRecipients;
20659
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
+ */
20660
21008
  interface RawBusinessAwayMessage {
20661
21009
  _: 'businessAwayMessage';
21010
+ /**
21011
+ * If set, the messages will not be sent if the account was
21012
+ * online in the last 10 minutes.
21013
+ */
20662
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
+ */
20663
21021
  shortcutId: number;
21022
+ /**
21023
+ * Specifies when should the away messages be sent.
21024
+ */
20664
21025
  schedule: tl.TypeBusinessAwayMessageSchedule;
21026
+ /**
21027
+ * Allowed recipients for the away messages.
21028
+ */
20665
21029
  recipients: tl.TypeBusinessRecipients;
20666
21030
  }
20667
21031
  interface RawTimezone {
@@ -20760,6 +21124,10 @@ export class RpcError extends Error {
20760
21124
  interface RawInputBusinessChatLink {
20761
21125
  _: 'inputBusinessChatLink';
20762
21126
  message: string;
21127
+ /**
21128
+ * <a href="https://corefork.telegram.org/api/entities">Message
21129
+ * entities for styled text</a>
21130
+ */
20763
21131
  entities?: tl.TypeMessageEntity[];
20764
21132
  title?: string;
20765
21133
  }
@@ -20767,6 +21135,10 @@ export class RpcError extends Error {
20767
21135
  _: 'businessChatLink';
20768
21136
  link: string;
20769
21137
  message: string;
21138
+ /**
21139
+ * <a href="https://corefork.telegram.org/api/entities">Message
21140
+ * entities for styled text</a>
21141
+ */
20770
21142
  entities?: tl.TypeMessageEntity[];
20771
21143
  title?: string;
20772
21144
  views: number;
@@ -20852,6 +21224,10 @@ export class RpcError extends Error {
20852
21224
  needCheck?: boolean;
20853
21225
  country?: string;
20854
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
+ */
20855
21231
  hash: Long;
20856
21232
  }
20857
21233
  interface RawStarsTransactionPeerUnsupported {
@@ -20895,6 +21271,9 @@ export class RpcError extends Error {
20895
21271
  photo?: tl.TypeWebDocument;
20896
21272
  transactionDate?: number;
20897
21273
  transactionUrl?: string;
21274
+ botPayload?: Uint8Array;
21275
+ msgId?: number;
21276
+ extendedMedia?: tl.TypeMessageMedia[];
20898
21277
  }
20899
21278
  interface RawFoundStory {
20900
21279
  _: 'foundStory';
@@ -20916,6 +21295,24 @@ export class RpcError extends Error {
20916
21295
  overallRevenue: Long;
20917
21296
  nextWithdrawalAt?: number;
20918
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;
21315
+ }
20919
21316
  /**
20920
21317
  * 0-N updates of this type may be returned only when invoking
20921
21318
  * {@link messages.RawAddChatUserRequest},
@@ -21185,7 +21582,7 @@ export class RpcError extends Error {
21185
21582
  /**
21186
21583
  * Defines media content of a message.
21187
21584
  */
21188
- 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
21189
21586
  function isAnyInputMedia(o: object): o is TypeInputMedia
21190
21587
  /**
21191
21588
  * Defines a new group profile photo.
@@ -21261,7 +21658,7 @@ export class RpcError extends Error {
21261
21658
  /**
21262
21659
  * Media
21263
21660
  */
21264
- 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
21265
21662
  function isAnyMessageMedia(o: object): o is TypeMessageMedia
21266
21663
  /**
21267
21664
  * Object describing actions connected to a service message.
@@ -22570,22 +22967,22 @@ export class RpcError extends Error {
22570
22967
  function isAnyAutoSaveException(o: object): o is TypeAutoSaveException
22571
22968
  /**
22572
22969
  * Used to fetch information about a
22573
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
22574
- * Mini App</a>
22970
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
22971
+ * link Mini App</a>
22575
22972
  */
22576
22973
  type TypeInputBotApp = tl.RawInputBotAppID | tl.RawInputBotAppShortName
22577
22974
  function isAnyInputBotApp(o: object): o is TypeInputBotApp
22578
22975
  /**
22579
22976
  * Contains information about a
22580
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
22581
- * Mini App</a>.
22977
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
22978
+ * link Mini App</a>.
22582
22979
  */
22583
22980
  type TypeBotApp = tl.RawBotAppNotModified | tl.RawBotApp
22584
22981
  function isAnyBotApp(o: object): o is TypeBotApp
22585
22982
  /**
22586
22983
  * Contains the link that must be used to open a
22587
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
22588
- * Mini App</a>.
22984
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
22985
+ * link Mini App</a>.
22589
22986
  */
22590
22987
  type TypeAppWebViewResult = tl.RawAppWebViewResultUrl
22591
22988
  function isAnyAppWebViewResult(o: object): o is TypeAppWebViewResult
@@ -22811,7 +23208,7 @@ export class RpcError extends Error {
22811
23208
  function isAnyAvailableEffect(o: object): o is TypeAvailableEffect
22812
23209
  type TypeFactCheck = tl.RawFactCheck
22813
23210
  function isAnyFactCheck(o: object): o is TypeFactCheck
22814
- 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
22815
23212
  function isAnyStarsTransactionPeer(o: object): o is TypeStarsTransactionPeer
22816
23213
  type TypeStarsTopupOption = tl.RawStarsTopupOption
22817
23214
  function isAnyStarsTopupOption(o: object): o is TypeStarsTopupOption
@@ -22823,6 +23220,8 @@ export class RpcError extends Error {
22823
23220
  function isAnyGeoPointAddress(o: object): o is TypeGeoPointAddress
22824
23221
  type TypeStarsRevenueStatus = tl.RawStarsRevenueStatus
22825
23222
  function isAnyStarsRevenueStatus(o: object): o is TypeStarsRevenueStatus
23223
+ type TypeInputStarsTransaction = tl.RawInputStarsTransaction
23224
+ function isAnyInputStarsTransaction(o: object): o is TypeInputStarsTransaction
22826
23225
  /**
22827
23226
  * Represents a sponsored website.
22828
23227
  */
@@ -23338,6 +23737,12 @@ export class RpcError extends Error {
23338
23737
  * level</a> specified in this field.
23339
23738
  */
23340
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
+ */
23341
23746
  groupMinLevel?: number;
23342
23747
  }
23343
23748
  /**
@@ -23371,6 +23776,10 @@ export class RpcError extends Error {
23371
23776
  interface RawTimezonesList {
23372
23777
  _: 'help.timezonesList';
23373
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
+ */
23374
23783
  hash: number;
23375
23784
  }
23376
23785
  /**
@@ -23516,7 +23925,13 @@ export class RpcError extends Error {
23516
23925
  _: 'help.getAppConfig';
23517
23926
  /**
23518
23927
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23519
- * 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.
23520
23935
  */
23521
23936
  hash: number;
23522
23937
  }
@@ -23543,7 +23958,13 @@ export class RpcError extends Error {
23543
23958
  _: 'help.getPassportConfig';
23544
23959
  /**
23545
23960
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23546
- * 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.
23547
23968
  */
23548
23969
  hash: number;
23549
23970
  }
@@ -23643,7 +24064,13 @@ export class RpcError extends Error {
23643
24064
  langCode: string;
23644
24065
  /**
23645
24066
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23646
- * 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.
23647
24074
  */
23648
24075
  hash: number;
23649
24076
  }
@@ -23666,7 +24093,13 @@ export class RpcError extends Error {
23666
24093
  _: 'help.getPeerColors';
23667
24094
  /**
23668
24095
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23669
- * 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.
23670
24103
  */
23671
24104
  hash: number;
23672
24105
  }
@@ -23682,7 +24115,13 @@ export class RpcError extends Error {
23682
24115
  _: 'help.getPeerProfileColors';
23683
24116
  /**
23684
24117
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
23685
- * 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.
23686
24125
  */
23687
24126
  hash: number;
23688
24127
  }
@@ -23691,6 +24130,16 @@ export class RpcError extends Error {
23691
24130
  */
23692
24131
  interface RawGetTimezonesListRequest {
23693
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
+ */
23694
24143
  hash: number;
23695
24144
  }
23696
24145
  interface RpcCallReturn {
@@ -24208,6 +24657,7 @@ export class RpcError extends Error {
24208
24657
  * documentation »</a>
24209
24658
  */
24210
24659
  nonce?: Uint8Array;
24660
+ playIntegrityProjectId?: Long;
24211
24661
  playIntegrityNonce?: Uint8Array;
24212
24662
  /**
24213
24663
  * On iOS, must be compared with the <code>receipt</code>
@@ -25008,7 +25458,7 @@ export class RpcError extends Error {
25008
25458
  }
25009
25459
  /**
25010
25460
  * Use this method to obtain the online statuses of all
25011
- * contacts with an accessible associated Telegram account.
25461
+ * contacts with an accessible Telegram account.
25012
25462
  *
25013
25463
  * RPC method returns {@link tl.TypeContactStatus} array
25014
25464
  */
@@ -25023,12 +25473,21 @@ export class RpcError extends Error {
25023
25473
  interface RawGetContactsRequest {
25024
25474
  _: 'contacts.getContacts';
25025
25475
  /**
25026
- * If there already is a full contact list on the client, a
25027
- * <a href="https://corefork.telegram.org/api/offsets#hash-generation">hash</a>
25028
- * of a the list of contact IDs in ascending order may be
25029
- * passed in this parameter. If the contact set was not
25030
- * changed, {@link contacts.RawContactsNotModified} will be
25031
- * 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>.
25032
25491
  */
25033
25492
  hash: Long;
25034
25493
  }
@@ -26826,8 +27285,8 @@ export class RpcError extends Error {
26826
27285
  }
26827
27286
  /**
26828
27287
  * Contains information about a
26829
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
26830
- * Mini App</a>
27288
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
27289
+ * link Mini App</a>
26831
27290
  */
26832
27291
  interface RawBotApp {
26833
27292
  _: 'messages.botApp';
@@ -26940,6 +27399,10 @@ export class RpcError extends Error {
26940
27399
  interface RawSavedReactionTags {
26941
27400
  _: 'messages.savedReactionTags';
26942
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
+ */
26943
27406
  hash: Long;
26944
27407
  }
26945
27408
  interface RawQuickReplies {
@@ -26972,6 +27435,10 @@ export class RpcError extends Error {
26972
27435
  }
26973
27436
  interface RawAvailableEffects {
26974
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
+ */
26975
27442
  hash: number;
26976
27443
  effects: tl.TypeAvailableEffect[];
26977
27444
  documents: tl.TypeDocument[];
@@ -27309,7 +27776,9 @@ export class RpcError extends Error {
27309
27776
  peer: tl.TypeInputPeer;
27310
27777
  /**
27311
27778
  * If set, indicates that the message should be sent in reply
27312
- * to the specified message or story.
27779
+ * to the specified message or story.
27780
+ *
27781
+ * Also used to quote other messages.
27313
27782
  */
27314
27783
  replyTo?: tl.TypeInputReplyTo;
27315
27784
  /**
@@ -27945,7 +28414,13 @@ export class RpcError extends Error {
27945
28414
  emoticon: string;
27946
28415
  /**
27947
28416
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
27948
- * 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.
27949
28424
  */
27950
28425
  hash: Long;
27951
28426
  }
@@ -27958,7 +28433,13 @@ export class RpcError extends Error {
27958
28433
  _: 'messages.getAllStickers';
27959
28434
  /**
27960
28435
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
27961
- * 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.
27962
28443
  */
27963
28444
  hash: Long;
27964
28445
  }
@@ -28274,7 +28755,7 @@ export class RpcError extends Error {
28274
28755
  mimeType: string;
28275
28756
  }
28276
28757
  /**
28277
- * Get saved GIFs
28758
+ * Get saved GIFs.
28278
28759
  *
28279
28760
  * RPC method returns {@link tl.messages.TypeSavedGifs}
28280
28761
  */
@@ -28282,7 +28763,13 @@ export class RpcError extends Error {
28282
28763
  _: 'messages.getSavedGifs';
28283
28764
  /**
28284
28765
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
28285
- * 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.
28286
28773
  */
28287
28774
  hash: Long;
28288
28775
  }
@@ -28684,7 +29171,13 @@ export class RpcError extends Error {
28684
29171
  _: 'messages.getFeaturedStickers';
28685
29172
  /**
28686
29173
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
28687
- * 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.
28688
29181
  */
28689
29182
  hash: Long;
28690
29183
  }
@@ -28713,7 +29206,13 @@ export class RpcError extends Error {
28713
29206
  attached?: boolean;
28714
29207
  /**
28715
29208
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
28716
- * 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.
28717
29216
  */
28718
29217
  hash: Long;
28719
29218
  }
@@ -28791,7 +29290,13 @@ export class RpcError extends Error {
28791
29290
  _: 'messages.getMaskStickers';
28792
29291
  /**
28793
29292
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
28794
- * 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.
28795
29300
  */
28796
29301
  hash: Long;
28797
29302
  }
@@ -29118,7 +29623,13 @@ export class RpcError extends Error {
29118
29623
  _: 'messages.getFavedStickers';
29119
29624
  /**
29120
29625
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
29121
- * 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.
29122
29633
  */
29123
29634
  hash: Long;
29124
29635
  }
@@ -29326,7 +29837,13 @@ export class RpcError extends Error {
29326
29837
  q: string;
29327
29838
  /**
29328
29839
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
29329
- * 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.
29330
29847
  */
29331
29848
  hash: Long;
29332
29849
  }
@@ -29864,7 +30381,13 @@ export class RpcError extends Error {
29864
30381
  limit: number;
29865
30382
  /**
29866
30383
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
29867
- * 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.
29868
30391
  */
29869
30392
  hash: Long;
29870
30393
  }
@@ -30669,7 +31192,13 @@ export class RpcError extends Error {
30669
31192
  _: 'messages.getAvailableReactions';
30670
31193
  /**
30671
31194
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
30672
- * 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.
30673
31202
  */
30674
31203
  hash: number;
30675
31204
  }
@@ -30815,7 +31344,13 @@ export class RpcError extends Error {
30815
31344
  _: 'messages.getAttachMenuBots';
30816
31345
  /**
30817
31346
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
30818
- * 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.
30819
31354
  */
30820
31355
  hash: Long;
30821
31356
  }
@@ -30933,6 +31468,7 @@ export class RpcError extends Error {
30933
31468
  * resulting the message as the specified peer.
30934
31469
  */
30935
31470
  sendAs?: tl.TypeInputPeer;
31471
+ compact?: boolean;
30936
31472
  }
30937
31473
  /**
30938
31474
  * Indicate to the server (from the user side) that the user is
@@ -30985,7 +31521,7 @@ export class RpcError extends Error {
30985
31521
  * <a href="https://corefork.telegram.org/api/bots/webapps">bot
30986
31522
  * mini app</a>.
30987
31523
  *
30988
- * RPC method returns {@link tl.TypeSimpleWebViewResult}
31524
+ * RPC method returns {@link tl.TypeWebViewResult}
30989
31525
  */
30990
31526
  interface RawRequestSimpleWebViewRequest {
30991
31527
  _: 'messages.requestSimpleWebView';
@@ -31004,6 +31540,7 @@ export class RpcError extends Error {
31004
31540
  * App link »</a>.
31005
31541
  */
31006
31542
  fromSideMenu?: boolean;
31543
+ compact?: boolean;
31007
31544
  /**
31008
31545
  * Bot that owns the mini app
31009
31546
  */
@@ -31154,7 +31691,13 @@ export class RpcError extends Error {
31154
31691
  _: 'messages.getEmojiStickers';
31155
31692
  /**
31156
31693
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31157
- * 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.
31158
31701
  */
31159
31702
  hash: Long;
31160
31703
  }
@@ -31167,7 +31710,13 @@ export class RpcError extends Error {
31167
31710
  _: 'messages.getFeaturedEmojiStickers';
31168
31711
  /**
31169
31712
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31170
- * 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.
31171
31720
  */
31172
31721
  hash: Long;
31173
31722
  }
@@ -31210,7 +31759,13 @@ export class RpcError extends Error {
31210
31759
  limit: number;
31211
31760
  /**
31212
31761
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31213
- * 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.
31214
31769
  */
31215
31770
  hash: Long;
31216
31771
  }
@@ -31231,7 +31786,13 @@ export class RpcError extends Error {
31231
31786
  limit: number;
31232
31787
  /**
31233
31788
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31234
- * 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.
31235
31796
  */
31236
31797
  hash: Long;
31237
31798
  }
@@ -31325,7 +31886,13 @@ export class RpcError extends Error {
31325
31886
  _: 'messages.getEmojiGroups';
31326
31887
  /**
31327
31888
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31328
- * 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.
31329
31896
  */
31330
31897
  hash: number;
31331
31898
  }
@@ -31342,7 +31909,13 @@ export class RpcError extends Error {
31342
31909
  _: 'messages.getEmojiStatusGroups';
31343
31910
  /**
31344
31911
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31345
- * 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.
31346
31919
  */
31347
31920
  hash: number;
31348
31921
  }
@@ -31360,7 +31933,13 @@ export class RpcError extends Error {
31360
31933
  _: 'messages.getEmojiProfilePhotoGroups';
31361
31934
  /**
31362
31935
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31363
- * 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.
31364
31943
  */
31365
31944
  hash: number;
31366
31945
  }
@@ -31379,7 +31958,13 @@ export class RpcError extends Error {
31379
31958
  emoticon: string;
31380
31959
  /**
31381
31960
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31382
- * 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.
31383
31968
  */
31384
31969
  hash: Long;
31385
31970
  }
@@ -31404,8 +31989,8 @@ export class RpcError extends Error {
31404
31989
  }
31405
31990
  /**
31406
31991
  * Obtain information about a
31407
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
31408
- * Mini App</a>
31992
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
31993
+ * link Mini App</a>
31409
31994
  *
31410
31995
  * RPC method returns {@link tl.messages.TypeBotApp}
31411
31996
  */
@@ -31413,7 +31998,7 @@ export class RpcError extends Error {
31413
31998
  _: 'messages.getBotApp';
31414
31999
  /**
31415
32000
  * Bot app information obtained from a
31416
- * <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
31417
32002
  * Mini App deep link »</a>.
31418
32003
  */
31419
32004
  app: tl.TypeInputBotApp;
@@ -31427,7 +32012,7 @@ export class RpcError extends Error {
31427
32012
  * Open a
31428
32013
  * <a href="https://corefork.telegram.org/bots/webapps">bot
31429
32014
  * mini app</a> from a
31430
- * <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
31431
32016
  * Mini App deep link</a>, sending over user information after
31432
32017
  * user confirmation.
31433
32018
  *
@@ -31435,17 +32020,18 @@ export class RpcError extends Error {
31435
32020
  * webview, {@link messages.RawProlongWebViewRequest} must be
31436
32021
  * called every 60 seconds.
31437
32022
  *
31438
- * RPC method returns {@link tl.TypeAppWebViewResult}
32023
+ * RPC method returns {@link tl.TypeWebViewResult}
31439
32024
  */
31440
32025
  interface RawRequestAppWebViewRequest {
31441
32026
  _: 'messages.requestAppWebView';
31442
32027
  /**
31443
32028
  * Set this flag if the bot is asking permission to send
31444
32029
  * messages to the user as specified in the
31445
- * <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
31446
32031
  * Mini App deep link</a> docs, and the user agreed.
31447
32032
  */
31448
32033
  writeAllowed?: boolean;
32034
+ compact?: boolean;
31449
32035
  /**
31450
32036
  * If the client has clicked on the link in a Telegram chat,
31451
32037
  * pass the chat's peer information; otherwise pass the bot's
@@ -31455,14 +32041,14 @@ export class RpcError extends Error {
31455
32041
  /**
31456
32042
  * The app obtained by invoking
31457
32043
  * {@link messages.RawGetBotAppRequest} as specified in the
31458
- * <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
31459
32045
  * Mini App deep link</a> docs.
31460
32046
  */
31461
32047
  app: tl.TypeInputBotApp;
31462
32048
  /**
31463
32049
  * If the <code>startapp</code> query string parameter is
31464
32050
  * present in the
31465
- * <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
31466
32052
  * Mini App deep link</a>, pass it to <code>start_param</code>.
31467
32053
  */
31468
32054
  startParam?: string;
@@ -31548,7 +32134,13 @@ export class RpcError extends Error {
31548
32134
  q: string;
31549
32135
  /**
31550
32136
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
31551
- * 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.
31552
32144
  */
31553
32145
  hash: Long;
31554
32146
  }
@@ -31713,26 +32305,71 @@ export class RpcError extends Error {
31713
32305
  order: tl.TypeInputDialogPeer[];
31714
32306
  }
31715
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
+ *
31716
32312
  * RPC method returns {@link tl.messages.TypeSavedReactionTags}
31717
32313
  */
31718
32314
  interface RawGetSavedReactionTagsRequest {
31719
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
+ */
31720
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
+ */
31721
32332
  hash: Long;
31722
32333
  }
31723
32334
  /**
32335
+ * Update the
32336
+ * <a href="https://corefork.telegram.org/api/saved-messages#tags">description
32337
+ * of a saved message tag »</a>.
32338
+ *
31724
32339
  * RPC method returns boolean
31725
32340
  */
31726
32341
  interface RawUpdateSavedReactionTagRequest {
31727
32342
  _: 'messages.updateSavedReactionTag';
32343
+ /**
32344
+ * <a href="https://corefork.telegram.org/api/reactions">Reaction</a>
32345
+ * associated to the tag
32346
+ */
31728
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
+ */
31729
32352
  title?: string;
31730
32353
  }
31731
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
+ *
31732
32359
  * RPC method returns {@link tl.messages.TypeReactions}
31733
32360
  */
31734
32361
  interface RawGetDefaultTagReactionsRequest {
31735
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
+ */
31736
32373
  hash: Long;
31737
32374
  }
31738
32375
  /**
@@ -31744,39 +32381,100 @@ export class RpcError extends Error {
31744
32381
  msgId: number;
31745
32382
  }
31746
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
+ *
31747
32388
  * RPC method returns {@link tl.messages.TypeQuickReplies}
31748
32389
  */
31749
32390
  interface RawGetQuickRepliesRequest {
31750
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
+ */
31751
32397
  hash: Long;
31752
32398
  }
31753
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
+ *
31754
32407
  * RPC method returns boolean
31755
32408
  */
31756
32409
  interface RawReorderQuickRepliesRequest {
31757
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
+ */
31758
32416
  order: number[];
31759
32417
  }
31760
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
+ *
31761
32426
  * RPC method returns boolean
31762
32427
  */
31763
32428
  interface RawCheckQuickReplyShortcutRequest {
31764
32429
  _: 'messages.checkQuickReplyShortcut';
32430
+ /**
32431
+ * Shorcut name (not ID!).
32432
+ */
31765
32433
  shortcut: string;
31766
32434
  }
31767
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
+ *
31768
32444
  * RPC method returns boolean
31769
32445
  */
31770
32446
  interface RawEditQuickReplyShortcutRequest {
31771
32447
  _: 'messages.editQuickReplyShortcut';
32448
+ /**
32449
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">Shortcut
32450
+ * ID</a>.
32451
+ */
31772
32452
  shortcutId: number;
32453
+ /**
32454
+ * New shortcut name.
32455
+ */
31773
32456
  shortcut: string;
31774
32457
  }
31775
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
+ *
31776
32470
  * RPC method returns boolean
31777
32471
  */
31778
32472
  interface RawDeleteQuickReplyShortcutRequest {
31779
32473
  _: 'messages.deleteQuickReplyShortcut';
32474
+ /**
32475
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">Shortcut
32476
+ * ID</a>
32477
+ */
31780
32478
  shortcutId: number;
31781
32479
  }
31782
32480
  /**
@@ -31786,6 +32484,10 @@ export class RpcError extends Error {
31786
32484
  _: 'messages.getQuickReplyMessages';
31787
32485
  shortcutId: number;
31788
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
+ */
31789
32491
  hash: Long;
31790
32492
  }
31791
32493
  /**
@@ -31799,11 +32501,23 @@ export class RpcError extends Error {
31799
32501
  randomId: Long[];
31800
32502
  }
31801
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
+ *
31802
32509
  * RPC method returns {@link tl.TypeUpdates}
31803
32510
  */
31804
32511
  interface RawDeleteQuickReplyMessagesRequest {
31805
32512
  _: 'messages.deleteQuickReplyMessages';
32513
+ /**
32514
+ * <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">Shortcut
32515
+ * ID</a>.
32516
+ */
31806
32517
  shortcutId: number;
32518
+ /**
32519
+ * IDs of shortcut messages to delete.
32520
+ */
31807
32521
  id: number[];
31808
32522
  }
31809
32523
  /**
@@ -31818,7 +32532,16 @@ export class RpcError extends Error {
31818
32532
  */
31819
32533
  interface RawGetMyStickersRequest {
31820
32534
  _: 'messages.getMyStickers';
32535
+ /**
32536
+ * <a href="https://corefork.telegram.org/api/offsets">Offsets
32537
+ * for pagination, for more info click here</a>
32538
+ */
31821
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
+ */
31822
32545
  limit: number;
31823
32546
  }
31824
32547
  /**
@@ -31826,6 +32549,16 @@ export class RpcError extends Error {
31826
32549
  */
31827
32550
  interface RawGetEmojiStickerGroupsRequest {
31828
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
+ */
31829
32562
  hash: number;
31830
32563
  }
31831
32564
  /**
@@ -31833,6 +32566,16 @@ export class RpcError extends Error {
31833
32566
  */
31834
32567
  interface RawGetAvailableEffectsRequest {
31835
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
+ */
31836
32579
  hash: number;
31837
32580
  }
31838
32581
  /**
@@ -32024,7 +32767,7 @@ export class RpcError extends Error {
32024
32767
  'messages.toggleBotInAttachMenu': boolean
32025
32768
  'messages.requestWebView': tl.TypeWebViewResult
32026
32769
  'messages.prolongWebView': boolean
32027
- 'messages.requestSimpleWebView': tl.TypeSimpleWebViewResult
32770
+ 'messages.requestSimpleWebView': tl.TypeWebViewResult
32028
32771
  'messages.sendWebViewResultMessage': tl.TypeWebViewMessageSent
32029
32772
  'messages.sendWebViewData': tl.TypeUpdates
32030
32773
  'messages.transcribeAudio': tl.messages.TypeTranscribedAudio
@@ -32046,7 +32789,7 @@ export class RpcError extends Error {
32046
32789
  'messages.searchCustomEmoji': tl.TypeEmojiList
32047
32790
  'messages.togglePeerTranslations': boolean
32048
32791
  'messages.getBotApp': tl.messages.TypeBotApp
32049
- 'messages.requestAppWebView': tl.TypeAppWebViewResult
32792
+ 'messages.requestAppWebView': tl.TypeWebViewResult
32050
32793
  'messages.setChatWallPaper': tl.TypeUpdates
32051
32794
  'messages.searchEmojiStickerSets': tl.messages.TypeFoundStickerSets
32052
32795
  'messages.getSavedDialogs': tl.messages.TypeSavedDialogs
@@ -32339,8 +33082,8 @@ export class RpcError extends Error {
32339
33082
  function isAnyTranslatedText(o: object): o is TypeTranslatedText
32340
33083
  /**
32341
33084
  * Contains information about a
32342
- * <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named
32343
- * Mini App</a>
33085
+ * <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
33086
+ * link Mini App</a>
32344
33087
  */
32345
33088
  type TypeBotApp = tl.messages.RawBotApp
32346
33089
  function isAnyBotApp(o: object): o is TypeBotApp
@@ -33733,6 +34476,10 @@ export class RpcError extends Error {
33733
34476
  _: 'account.resolvedBusinessChatLinks';
33734
34477
  peer: tl.TypePeer;
33735
34478
  message: string;
34479
+ /**
34480
+ * <a href="https://corefork.telegram.org/api/entities">Message
34481
+ * entities for styled text</a>
34482
+ */
33736
34483
  entities?: tl.TypeMessageEntity[];
33737
34484
  chats: tl.TypeChat[];
33738
34485
  users: tl.TypeUser[];
@@ -33886,7 +34633,13 @@ export class RpcError extends Error {
33886
34633
  _: 'account.getWallPapers';
33887
34634
  /**
33888
34635
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
33889
- * 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.
33890
34643
  */
33891
34644
  hash: Long;
33892
34645
  }
@@ -34845,7 +35598,13 @@ export class RpcError extends Error {
34845
35598
  format: string;
34846
35599
  /**
34847
35600
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
34848
- * 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.
34849
35608
  */
34850
35609
  hash: Long;
34851
35610
  }
@@ -34961,7 +35720,13 @@ export class RpcError extends Error {
34961
35720
  _: 'account.getChatThemes';
34962
35721
  /**
34963
35722
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
34964
- * 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.
34965
35730
  */
34966
35731
  hash: Long;
34967
35732
  }
@@ -35015,7 +35780,13 @@ export class RpcError extends Error {
35015
35780
  _: 'account.getSavedRingtones';
35016
35781
  /**
35017
35782
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35018
- * 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.
35019
35790
  */
35020
35791
  hash: Long;
35021
35792
  }
@@ -35095,7 +35866,13 @@ export class RpcError extends Error {
35095
35866
  _: 'account.getDefaultEmojiStatuses';
35096
35867
  /**
35097
35868
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35098
- * 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.
35099
35876
  */
35100
35877
  hash: Long;
35101
35878
  }
@@ -35110,7 +35887,13 @@ export class RpcError extends Error {
35110
35887
  _: 'account.getRecentEmojiStatuses';
35111
35888
  /**
35112
35889
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35113
- * 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.
35114
35897
  */
35115
35898
  hash: Long;
35116
35899
  }
@@ -35169,7 +35952,13 @@ export class RpcError extends Error {
35169
35952
  _: 'account.getDefaultProfilePhotoEmojis';
35170
35953
  /**
35171
35954
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35172
- * 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.
35173
35962
  */
35174
35963
  hash: Long;
35175
35964
  }
@@ -35186,7 +35975,13 @@ export class RpcError extends Error {
35186
35975
  _: 'account.getDefaultGroupPhotoEmojis';
35187
35976
  /**
35188
35977
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35189
- * 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.
35190
35985
  */
35191
35986
  hash: Long;
35192
35987
  }
@@ -35290,7 +36085,13 @@ export class RpcError extends Error {
35290
36085
  _: 'account.getDefaultBackgroundEmojis';
35291
36086
  /**
35292
36087
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35293
- * 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.
35294
36095
  */
35295
36096
  hash: Long;
35296
36097
  }
@@ -35305,7 +36106,13 @@ export class RpcError extends Error {
35305
36106
  _: 'account.getChannelDefaultEmojiStatuses';
35306
36107
  /**
35307
36108
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35308
- * 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.
35309
36116
  */
35310
36117
  hash: Long;
35311
36118
  }
@@ -35322,23 +36129,65 @@ export class RpcError extends Error {
35322
36129
  _: 'account.getChannelRestrictedStatusEmojis';
35323
36130
  /**
35324
36131
  * <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
35325
- * 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.
35326
36139
  */
35327
36140
  hash: Long;
35328
36141
  }
35329
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
+ *
35330
36160
  * RPC method returns boolean
35331
36161
  */
35332
36162
  interface RawUpdateBusinessWorkHoursRequest {
35333
36163
  _: 'account.updateBusinessWorkHours';
36164
+ /**
36165
+ * Opening hours (optional, if not set removes all opening
36166
+ * hours).
36167
+ */
35334
36168
  businessWorkHours?: tl.TypeBusinessWorkHours;
35335
36169
  }
35336
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
+ *
35337
36179
  * RPC method returns boolean
35338
36180
  */
35339
36181
  interface RawUpdateBusinessLocationRequest {
35340
36182
  _: 'account.updateBusinessLocation';
36183
+ /**
36184
+ * Optional, contains a set of geographical coordinates.
36185
+ */
35341
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
+ */
35342
36191
  address?: string;
35343
36192
  }
35344
36193
  /**
@@ -37014,7 +37863,13 @@ export class RpcError extends Error {
37014
37863
  /**
37015
37864
  * Whether to change the accent color emoji pattern of the
37016
37865
  * profile page; otherwise, the accent color and emoji pattern
37017
- * 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>.
37018
37873
  */
37019
37874
  forProfile?: boolean;
37020
37875
  /**
@@ -37080,16 +37935,16 @@ export class RpcError extends Error {
37080
37935
  /**
37081
37936
  * Set an
37082
37937
  * <a href="https://corefork.telegram.org/api/emoji-status">emoji
37083
- * status</a> for a channel.
37938
+ * status</a> for a channel or supergroup.
37084
37939
  *
37085
37940
  * RPC method returns {@link tl.TypeUpdates}
37086
37941
  */
37087
37942
  interface RawUpdateEmojiStatusRequest {
37088
37943
  _: 'channels.updateEmojiStatus';
37089
37944
  /**
37090
- * The channel, must have at least
37091
- * <a href="https://corefork.telegram.org/api/config#channel-emoji-status-level-min"><code>channel_emoji_status_level_min</code>
37092
- * 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.
37093
37948
  */
37094
37949
  channel: tl.TypeInputChannel;
37095
37950
  /**
@@ -37140,7 +37995,16 @@ export class RpcError extends Error {
37140
37995
  hashtag: string;
37141
37996
  offsetRate: number;
37142
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
+ */
37143
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
+ */
37144
38008
  limit: number;
37145
38009
  }
37146
38010
  interface RpcCallReturn {
@@ -37663,6 +38527,10 @@ export class RpcError extends Error {
37663
38527
  _: 'payments.starsRevenueWithdrawalUrl';
37664
38528
  url: string;
37665
38529
  }
38530
+ interface RawStarsRevenueAdsAccountUrl {
38531
+ _: 'payments.starsRevenueAdsAccountUrl';
38532
+ url: string;
38533
+ }
37666
38534
  /**
37667
38535
  * Get a payment form
37668
38536
  *
@@ -38010,6 +38878,22 @@ export class RpcError extends Error {
38010
38878
  stars: Long;
38011
38879
  password: tl.TypeInputCheckPasswordSRP;
38012
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
+ }
38013
38897
  interface RpcCallReturn {
38014
38898
  'payments.getPaymentForm': tl.payments.TypePaymentForm
38015
38899
  'payments.getPaymentReceipt': tl.payments.TypePaymentReceipt
@@ -38034,6 +38918,8 @@ export class RpcError extends Error {
38034
38918
  'payments.refundStarsCharge': tl.TypeUpdates
38035
38919
  'payments.getStarsRevenueStats': tl.payments.TypeStarsRevenueStats
38036
38920
  'payments.getStarsRevenueWithdrawalUrl': tl.payments.TypeStarsRevenueWithdrawalUrl
38921
+ 'payments.getStarsRevenueAdsAccountUrl': tl.payments.TypeStarsRevenueAdsAccountUrl
38922
+ 'payments.getStarsTransactionsByID': tl.payments.TypeStarsStatus
38037
38923
  }
38038
38924
  /**
38039
38925
  * Payment form
@@ -38090,6 +38976,8 @@ export class RpcError extends Error {
38090
38976
  function isAnyStarsRevenueStats(o: object): o is TypeStarsRevenueStats
38091
38977
  type TypeStarsRevenueWithdrawalUrl = tl.payments.RawStarsRevenueWithdrawalUrl
38092
38978
  function isAnyStarsRevenueWithdrawalUrl(o: object): o is TypeStarsRevenueWithdrawalUrl
38979
+ type TypeStarsRevenueAdsAccountUrl = tl.payments.RawStarsRevenueAdsAccountUrl
38980
+ function isAnyStarsRevenueAdsAccountUrl(o: object): o is TypeStarsRevenueAdsAccountUrl
38093
38981
  }
38094
38982
 
38095
38983
  namespace phone {
@@ -39444,6 +40332,11 @@ export class RpcError extends Error {
39444
40332
  _: 'stats.getBroadcastRevenueTransactions';
39445
40333
  channel: tl.TypeInputChannel;
39446
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
+ */
39447
40340
  limit: number;
39448
40341
  }
39449
40342
  interface RpcCallReturn {
@@ -39566,13 +40459,7 @@ export class RpcError extends Error {
39566
40459
  * name of the software that created the stickers
39567
40460
  */
39568
40461
  software?: string;
39569
- /**
39570
- * Whether this is an animated stickerset
39571
- */
39572
40462
  animated?: boolean;
39573
- /**
39574
- * Whether this is a video stickerset
39575
- */
39576
40463
  videos?: boolean;
39577
40464
  }
39578
40465
  /**
@@ -39830,10 +40717,51 @@ export class RpcError extends Error {
39830
40717
  errors: tl.TypeSecureValueError[];
39831
40718
  }
39832
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
+ *
39833
40758
  * RPC method returns boolean array
39834
40759
  */
39835
40760
  interface RawGetIsPremiumRequiredToContactRequest {
39836
40761
  _: 'users.getIsPremiumRequiredToContact';
40762
+ /**
40763
+ * Users to fetch info about.
40764
+ */
39837
40765
  id: tl.TypeInputUser[];
39838
40766
  }
39839
40767
  interface RpcCallReturn {
@@ -41522,12 +42450,12 @@ export class RpcError extends Error {
41522
42450
  interface RawBoostsStatus {
41523
42451
  _: 'premium.boostsStatus';
41524
42452
  /**
41525
- * Whether we're currently boosting this channel,
42453
+ * Whether we're currently boosting this channel/supergroup,
41526
42454
  * <code>my_boost_slots</code> will also be set.
41527
42455
  */
41528
42456
  myBoost?: boolean;
41529
42457
  /**
41530
- * The current boost level of the channel.
42458
+ * The current boost level of the channel/supergroup.
41531
42459
  */
41532
42460
  level: number;
41533
42461
  /**
@@ -41543,7 +42471,7 @@ export class RpcError extends Error {
41543
42471
  * <a href="https://corefork.telegram.org/api/giveaways">gift
41544
42472
  * codes</a> and
41545
42473
  * <a href="https://corefork.telegram.org/api/giveaways">giveaways</a>;
41546
- * only returned to channel admins.
42474
+ * only returned to channel/supergroup admins.
41547
42475
  */
41548
42476
  giftBoosts?: number;
41549
42477
  /**
@@ -41552,9 +42480,10 @@ export class RpcError extends Error {
41552
42480
  */
41553
42481
  nextLevelBoosts?: number;
41554
42482
  /**
41555
- * Only returned to channel admins: contains the approximated
41556
- * number of Premium users subscribed to the channel, related
41557
- * 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.
41558
42487
  */
41559
42488
  premiumAudience?: tl.TypeStatsPercentValue;
41560
42489
  /**
@@ -41565,7 +42494,8 @@ export class RpcError extends Error {
41565
42494
  /**
41566
42495
  * A list of prepaid
41567
42496
  * <a href="https://corefork.telegram.org/api/giveaways">giveaways</a>
41568
- * available for the chat; only returned to channel admins.
42497
+ * available for the chat; only returned to channel/supergroup
42498
+ * admins.
41569
42499
  */
41570
42500
  prepaidGiveaways?: tl.TypePrepaidGiveaway[];
41571
42501
  /**
@@ -41578,7 +42508,7 @@ export class RpcError extends Error {
41578
42508
  }
41579
42509
  /**
41580
42510
  * Obtains info about the boosts that were applied to a certain
41581
- * channel (admins only)
42511
+ * channel or supergroup (admins only)
41582
42512
  *
41583
42513
  * RPC method returns {@link tl.premium.TypeBoostsList}
41584
42514
  */
@@ -41587,11 +42517,11 @@ export class RpcError extends Error {
41587
42517
  /**
41588
42518
  * Whether to return only info about boosts received from
41589
42519
  * <a href="https://corefork.telegram.org/api/giveaways">gift
41590
- * codes and giveaways created by the channel »</a>
42520
+ * codes and giveaways created by the channel/supergroup »</a>
41591
42521
  */
41592
42522
  gifts?: boolean;
41593
42523
  /**
41594
- * The channel
42524
+ * The channel/supergroup
41595
42525
  */
41596
42526
  peer: tl.TypeInputPeer;
41597
42527
  /**
@@ -41641,7 +42571,7 @@ export class RpcError extends Error {
41641
42571
  /**
41642
42572
  * Gets the current
41643
42573
  * <a href="https://corefork.telegram.org/api/boost">number of
41644
- * boosts</a> of a channel.
42574
+ * boosts</a> of a channel/supergroup.
41645
42575
  *
41646
42576
  * RPC method returns {@link tl.premium.TypeBoostsStatus}
41647
42577
  */
@@ -41653,15 +42583,15 @@ export class RpcError extends Error {
41653
42583
  peer: tl.TypeInputPeer;
41654
42584
  }
41655
42585
  /**
41656
- * Returns the lists of boost that were applied to a channel by
41657
- * 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)
41658
42588
  *
41659
42589
  * RPC method returns {@link tl.premium.TypeBoostsList}
41660
42590
  */
41661
42591
  interface RawGetUserBoostsRequest {
41662
42592
  _: 'premium.getUserBoosts';
41663
42593
  /**
41664
- * The channel
42594
+ * The channel/supergroup
41665
42595
  */
41666
42596
  peer: tl.TypeInputPeer;
41667
42597
  /**
@@ -42630,6 +43560,8 @@ export class RpcError extends Error {
42630
43560
  | tl.smsjobs.RawGetSmsJobRequest
42631
43561
  | tl.smsjobs.RawFinishJobRequest
42632
43562
  | tl.fragment.RawGetCollectibleInfoRequest
43563
+ | tl.payments.RawGetStarsRevenueAdsAccountUrlRequest
43564
+ | tl.payments.RawGetStarsTransactionsByIDRequest
42633
43565
  | tl.mtcute.RawCustomMethodRequest
42634
43566
 
42635
43567
  type TlObject =
@@ -43957,6 +44889,11 @@ export class RpcError extends Error {
43957
44889
  | tl.RawStarsRevenueStatus
43958
44890
  | tl.payments.RawStarsRevenueStats
43959
44891
  | tl.payments.RawStarsRevenueWithdrawalUrl
44892
+ | tl.RawInputMediaPaidMedia
44893
+ | tl.RawMessageMediaPaidMedia
44894
+ | tl.RawStarsTransactionPeerAds
44895
+ | tl.payments.RawStarsRevenueAdsAccountUrl
44896
+ | tl.RawInputStarsTransaction
43960
44897
  | tl.RawUpdateGroupInvitePrivacyForbidden
43961
44898
  | tl.RawSponsoredWebPage
43962
44899
  | tl.mtcute.RawDummyUpdate
@@ -44608,6 +45545,8 @@ export class RpcError extends Error {
44608
45545
  | tl.smsjobs.RawGetSmsJobRequest
44609
45546
  | tl.smsjobs.RawFinishJobRequest
44610
45547
  | tl.fragment.RawGetCollectibleInfoRequest
45548
+ | tl.payments.RawGetStarsRevenueAdsAccountUrlRequest
45549
+ | tl.payments.RawGetStarsTransactionsByIDRequest
44611
45550
  | tl.mtcute.RawCustomMethodRequest
44612
45551
  }
44613
45552