@mtcute/tl 176.0.0 → 179.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 = 176;
5
+ const LAYER = 179;
6
6
 
7
7
  function $extendTypes(types: Record<string, string>): void
8
8
 
@@ -1736,6 +1736,7 @@ export class RpcError extends Error {
1736
1736
  */
1737
1737
  storiesUnavailable?: boolean;
1738
1738
  contactRequirePremium?: boolean;
1739
+ botBusiness?: boolean;
1739
1740
  /**
1740
1741
  * ID of the user
1741
1742
  */
@@ -2326,6 +2327,7 @@ export class RpcError extends Error {
2326
2327
  * reactions »</a>
2327
2328
  */
2328
2329
  availableReactions?: tl.TypeChatReactions;
2330
+ reactionsLimit?: number;
2329
2331
  }
2330
2332
  /**
2331
2333
  * Full info about a
@@ -2414,6 +2416,8 @@ export class RpcError extends Error {
2414
2416
  * invoking this method will update the value of this flag.
2415
2417
  */
2416
2418
  viewForumAsMessages?: boolean;
2419
+ restrictedSponsored?: boolean;
2420
+ canViewRevenue?: boolean;
2417
2421
  /**
2418
2422
  * ID of the channel
2419
2423
  */
@@ -2581,6 +2585,7 @@ export class RpcError extends Error {
2581
2585
  * reactions »</a>
2582
2586
  */
2583
2587
  availableReactions?: tl.TypeChatReactions;
2588
+ reactionsLimit?: number;
2584
2589
  /**
2585
2590
  * Channel
2586
2591
  * <a href="https://corefork.telegram.org/api/stories">stories</a>
@@ -2776,6 +2781,7 @@ export class RpcError extends Error {
2776
2781
  * the message instead of at the bottom.
2777
2782
  */
2778
2783
  invertMedia?: boolean;
2784
+ offline?: boolean;
2779
2785
  /**
2780
2786
  * ID of the message
2781
2787
  */
@@ -2808,6 +2814,7 @@ export class RpcError extends Error {
2808
2814
  * ID of the inline bot that generated the message
2809
2815
  */
2810
2816
  viaBotId?: number;
2817
+ viaBusinessBotId?: number;
2811
2818
  /**
2812
2819
  * Reply information
2813
2820
  */
@@ -4117,6 +4124,11 @@ export class RpcError extends Error {
4117
4124
  _: 'messageActionBoostApply';
4118
4125
  boosts: number;
4119
4126
  }
4127
+ interface RawMessageActionRequestedPeerSentMe {
4128
+ _: 'messageActionRequestedPeerSentMe';
4129
+ buttonId: number;
4130
+ peers: tl.TypeRequestedPeer[];
4131
+ }
4120
4132
  /**
4121
4133
  * Chat
4122
4134
  */
@@ -4621,6 +4633,8 @@ export class RpcError extends Error {
4621
4633
  * request »</a> is related to a chat).
4622
4634
  */
4623
4635
  requestChatBroadcast?: boolean;
4636
+ businessBotPaused?: boolean;
4637
+ businessBotCanReply?: boolean;
4624
4638
  /**
4625
4639
  * Distance in meters between us and this peer
4626
4640
  */
@@ -4639,6 +4653,8 @@ export class RpcError extends Error {
4639
4653
  * request »</a> was sent.
4640
4654
  */
4641
4655
  requestChatDate?: number;
4656
+ businessBotId?: number;
4657
+ businessBotManageUrl?: string;
4642
4658
  }
4643
4659
  /**
4644
4660
  * Represents a
@@ -4841,6 +4857,7 @@ export class RpcError extends Error {
4841
4857
  wallpaperOverridden?: boolean;
4842
4858
  contactRequirePremium?: boolean;
4843
4859
  readDatesPrivate?: boolean;
4860
+ sponsoredEnabled?: boolean;
4844
4861
  /**
4845
4862
  * User ID
4846
4863
  */
@@ -4942,6 +4959,10 @@ export class RpcError extends Error {
4942
4959
  businessLocation?: tl.TypeBusinessLocation;
4943
4960
  businessGreetingMessage?: tl.TypeBusinessGreetingMessage;
4944
4961
  businessAwayMessage?: tl.TypeBusinessAwayMessage;
4962
+ businessIntro?: tl.TypeBusinessIntro;
4963
+ birthday?: tl.TypeBirthday;
4964
+ personalChannelId?: number;
4965
+ personalChannelMessage?: number;
4945
4966
  }
4946
4967
  /**
4947
4968
  * A contact of the current user that is registered in the
@@ -7209,23 +7230,6 @@ export class RpcError extends Error {
7209
7230
  interface RawUpdateAutoSaveSettings {
7210
7231
  _: 'updateAutoSaveSettings';
7211
7232
  }
7212
- /**
7213
- * 0-N updates of this type may be returned only when invoking
7214
- * {@link messages.RawAddChatUserRequest},
7215
- * {@link channels.RawInviteToChannelRequest} or
7216
- * {@link messages.RawCreateChatRequest}: it indicates we
7217
- * couldn't add a user to a chat because of their privacy
7218
- * settings; if required, an
7219
- * <a href="https://corefork.telegram.org/api/invites">invite
7220
- * link</a> can be shared with the user, instead.
7221
- */
7222
- interface RawUpdateGroupInvitePrivacyForbidden {
7223
- _: 'updateGroupInvitePrivacyForbidden';
7224
- /**
7225
- * ID of the user we couldn't add.
7226
- */
7227
- userId: number;
7228
- }
7229
7233
  /**
7230
7234
  * A new story was posted.
7231
7235
  */
@@ -7502,6 +7506,32 @@ export class RpcError extends Error {
7502
7506
  shortcutId: number;
7503
7507
  messages: number[];
7504
7508
  }
7509
+ interface RawUpdateBotBusinessConnect {
7510
+ _: 'updateBotBusinessConnect';
7511
+ connection: tl.TypeBotBusinessConnection;
7512
+ qts: number;
7513
+ }
7514
+ interface RawUpdateBotNewBusinessMessage {
7515
+ _: 'updateBotNewBusinessMessage';
7516
+ connectionId: string;
7517
+ message: tl.TypeMessage;
7518
+ replyToMessage?: tl.TypeMessage;
7519
+ qts: number;
7520
+ }
7521
+ interface RawUpdateBotEditBusinessMessage {
7522
+ _: 'updateBotEditBusinessMessage';
7523
+ connectionId: string;
7524
+ message: tl.TypeMessage;
7525
+ replyToMessage?: tl.TypeMessage;
7526
+ qts: number;
7527
+ }
7528
+ interface RawUpdateBotDeleteBusinessMessage {
7529
+ _: 'updateBotDeleteBusinessMessage';
7530
+ connectionId: string;
7531
+ peer: tl.TypePeer;
7532
+ messages: number[];
7533
+ qts: number;
7534
+ }
7505
7535
  /**
7506
7536
  * Too many updates, it is necessary to execute
7507
7537
  * {@link updates.RawGetDifferenceRequest}.
@@ -8734,6 +8764,9 @@ export class RpcError extends Error {
8734
8764
  interface RawInputPrivacyKeyAbout {
8735
8765
  _: 'inputPrivacyKeyAbout';
8736
8766
  }
8767
+ interface RawInputPrivacyKeyBirthday {
8768
+ _: 'inputPrivacyKeyBirthday';
8769
+ }
8737
8770
  /**
8738
8771
  * Whether we can see the last online timestamp of this user
8739
8772
  */
@@ -8798,6 +8831,9 @@ export class RpcError extends Error {
8798
8831
  interface RawPrivacyKeyAbout {
8799
8832
  _: 'privacyKeyAbout';
8800
8833
  }
8834
+ interface RawPrivacyKeyBirthday {
8835
+ _: 'privacyKeyBirthday';
8836
+ }
8801
8837
  /**
8802
8838
  * Allow only contacts
8803
8839
  */
@@ -8870,6 +8906,9 @@ export class RpcError extends Error {
8870
8906
  interface RawInputPrivacyValueAllowCloseFriends {
8871
8907
  _: 'inputPrivacyValueAllowCloseFriends';
8872
8908
  }
8909
+ interface RawInputPrivacyValueAllowPremium {
8910
+ _: 'inputPrivacyValueAllowPremium';
8911
+ }
8873
8912
  /**
8874
8913
  * Allow all contacts
8875
8914
  */
@@ -8942,6 +8981,9 @@ export class RpcError extends Error {
8942
8981
  interface RawPrivacyValueAllowCloseFriends {
8943
8982
  _: 'privacyValueAllowCloseFriends';
8944
8983
  }
8984
+ interface RawPrivacyValueAllowPremium {
8985
+ _: 'privacyValueAllowPremium';
8986
+ }
8945
8987
  /**
8946
8988
  * Time to live in days of the current account
8947
8989
  */
@@ -9639,14 +9681,6 @@ export class RpcError extends Error {
9639
9681
  * Is this a mask stickerset
9640
9682
  */
9641
9683
  masks?: boolean;
9642
- /**
9643
- * Is this an animated stickerpack
9644
- */
9645
- animated?: boolean;
9646
- /**
9647
- * Is this a video stickerpack
9648
- */
9649
- videos?: boolean;
9650
9684
  /**
9651
9685
  * This is a custom emoji stickerset
9652
9686
  */
@@ -9664,6 +9698,7 @@ export class RpcError extends Error {
9664
9698
  * emoji statuses</a>.
9665
9699
  */
9666
9700
  channelEmojiStatus?: boolean;
9701
+ creator?: boolean;
9667
9702
  /**
9668
9703
  * When was this stickerset installed
9669
9704
  */
@@ -9703,6 +9738,14 @@ export class RpcError extends Error {
9703
9738
  * using {@link messages.RawGetCustomEmojiDocumentsRequest}
9704
9739
  */
9705
9740
  thumbDocumentId?: Long;
9741
+ /**
9742
+ * Is this an animated stickerpack
9743
+ */
9744
+ animated?: boolean;
9745
+ /**
9746
+ * Is this a video stickerpack
9747
+ */
9748
+ videos?: boolean;
9706
9749
  /**
9707
9750
  * Number of stickers in pack
9708
9751
  */
@@ -10101,6 +10144,16 @@ export class RpcError extends Error {
10101
10144
  */
10102
10145
  maxQuantity: number;
10103
10146
  }
10147
+ interface RawInputKeyboardButtonRequestPeer {
10148
+ _: 'inputKeyboardButtonRequestPeer';
10149
+ nameRequested?: boolean;
10150
+ usernameRequested?: boolean;
10151
+ photoRequested?: boolean;
10152
+ text: string;
10153
+ buttonId: number;
10154
+ peerType: tl.TypeRequestPeerType;
10155
+ maxQuantity: number;
10156
+ }
10104
10157
  /**
10105
10158
  * Inline keyboard row
10106
10159
  */
@@ -13402,6 +13455,7 @@ export class RpcError extends Error {
13402
13455
  * When was the call actually started
13403
13456
  */
13404
13457
  startDate: number;
13458
+ customParameters?: tl.TypeDataJSON;
13405
13459
  }
13406
13460
  /**
13407
13461
  * Indicates a discarded phone call
@@ -15764,7 +15818,7 @@ export class RpcError extends Error {
15764
15818
  /**
15765
15819
  * Textual representation of the answer
15766
15820
  */
15767
- text: string;
15821
+ text: tl.TypeTextWithEntities;
15768
15822
  /**
15769
15823
  * The param that has to be passed to
15770
15824
  * {@link messages.RawSendVoteRequest}.
@@ -15802,7 +15856,7 @@ export class RpcError extends Error {
15802
15856
  /**
15803
15857
  * The question of the poll
15804
15858
  */
15805
- question: string;
15859
+ question: tl.TypeTextWithEntities;
15806
15860
  /**
15807
15861
  * The possible answers, vote using
15808
15862
  * {@link messages.RawSendVoteRequest}.
@@ -16215,6 +16269,7 @@ export class RpcError extends Error {
16215
16269
  * push notification.
16216
16270
  */
16217
16271
  appSandbox?: boolean;
16272
+ unknownNumber?: boolean;
16218
16273
  }
16219
16274
  /**
16220
16275
  * <a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a>
@@ -17844,49 +17899,13 @@ export class RpcError extends Error {
17844
17899
  * instead of "sponsored"
17845
17900
  */
17846
17901
  recommended?: boolean;
17847
- /**
17848
- * Whether a profile photo bubble should be displayed for this
17849
- * message, like for messages sent in groups. The photo shown
17850
- * in the bubble is obtained either from the peer contained in
17851
- * <code>from_id</code>, or from <code>chat_invite</code>.
17852
- */
17853
- showPeerPhoto?: boolean;
17902
+ canReport?: boolean;
17854
17903
  /**
17855
17904
  * Message ID
17856
17905
  */
17857
17906
  randomId: Uint8Array;
17858
- /**
17859
- * ID of the sender of the message
17860
- */
17861
- fromId?: tl.TypePeer;
17862
- /**
17863
- * Information about the chat invite hash specified in
17864
- * <code>chat_invite_hash</code>
17865
- */
17866
- chatInvite?: tl.TypeChatInvite;
17867
- /**
17868
- * Chat invite
17869
- */
17870
- chatInviteHash?: string;
17871
- /**
17872
- * Optional link to a channel post if <code>from_id</code>
17873
- * points to a channel
17874
- */
17875
- channelPost?: number;
17876
- /**
17877
- * Parameter for the bot start message if the sponsored chat is
17878
- * a chat with a bot.
17879
- */
17880
- startParam?: string;
17881
- /**
17882
- * Sponsored website
17883
- */
17884
- webpage?: tl.TypeSponsoredWebPage;
17885
- /**
17886
- * <a href="https://corefork.telegram.org/api/bots/webapps">Mini
17887
- * App »</a> to open when the sponsored message is clicked.
17888
- */
17889
- app?: tl.TypeBotApp;
17907
+ url: string;
17908
+ title: string;
17890
17909
  /**
17891
17910
  * Sponsored message
17892
17911
  */
@@ -17896,10 +17915,12 @@ export class RpcError extends Error {
17896
17915
  * entities for styled text</a>
17897
17916
  */
17898
17917
  entities?: tl.TypeMessageEntity[];
17918
+ photo?: tl.TypePhoto;
17919
+ color?: tl.TypePeerColor;
17899
17920
  /**
17900
17921
  * Text of the sponsored message button.
17901
17922
  */
17902
- buttonText?: string;
17923
+ buttonText: string;
17903
17924
  /**
17904
17925
  * If set, contains additional information about the sponsor to
17905
17926
  * be shown along with the message.
@@ -20618,7 +20639,201 @@ export class RpcError extends Error {
20618
20639
  _: 'connectedBot';
20619
20640
  canReply?: boolean;
20620
20641
  botId: number;
20621
- recipients: tl.TypeBusinessRecipients;
20642
+ recipients: tl.TypeBusinessBotRecipients;
20643
+ }
20644
+ interface RawBirthday {
20645
+ _: 'birthday';
20646
+ day: number;
20647
+ month: number;
20648
+ year?: number;
20649
+ }
20650
+ interface RawBotBusinessConnection {
20651
+ _: 'botBusinessConnection';
20652
+ canReply?: boolean;
20653
+ disabled?: boolean;
20654
+ connectionId: string;
20655
+ userId: number;
20656
+ dcId: number;
20657
+ date: number;
20658
+ }
20659
+ interface RawInputBusinessIntro {
20660
+ _: 'inputBusinessIntro';
20661
+ title: string;
20662
+ description: string;
20663
+ sticker?: tl.TypeInputDocument;
20664
+ }
20665
+ interface RawBusinessIntro {
20666
+ _: 'businessIntro';
20667
+ title: string;
20668
+ description: string;
20669
+ sticker?: tl.TypeDocument;
20670
+ }
20671
+ interface RawInputCollectibleUsername {
20672
+ _: 'inputCollectibleUsername';
20673
+ username: string;
20674
+ }
20675
+ interface RawInputCollectiblePhone {
20676
+ _: 'inputCollectiblePhone';
20677
+ phone: string;
20678
+ }
20679
+ interface RawInputBusinessBotRecipients {
20680
+ _: 'inputBusinessBotRecipients';
20681
+ existingChats?: boolean;
20682
+ newChats?: boolean;
20683
+ contacts?: boolean;
20684
+ nonContacts?: boolean;
20685
+ excludeSelected?: boolean;
20686
+ users?: tl.TypeInputUser[];
20687
+ excludeUsers?: tl.TypeInputUser[];
20688
+ }
20689
+ interface RawBusinessBotRecipients {
20690
+ _: 'businessBotRecipients';
20691
+ existingChats?: boolean;
20692
+ newChats?: boolean;
20693
+ contacts?: boolean;
20694
+ nonContacts?: boolean;
20695
+ excludeSelected?: boolean;
20696
+ users?: number[];
20697
+ excludeUsers?: number[];
20698
+ }
20699
+ interface RawContactBirthday {
20700
+ _: 'contactBirthday';
20701
+ contactId: number;
20702
+ birthday: tl.TypeBirthday;
20703
+ }
20704
+ interface RawMissingInvitee {
20705
+ _: 'missingInvitee';
20706
+ premiumWouldAllowInvite?: boolean;
20707
+ premiumRequiredForPm?: boolean;
20708
+ userId: number;
20709
+ }
20710
+ interface RawInputBusinessChatLink {
20711
+ _: 'inputBusinessChatLink';
20712
+ message: string;
20713
+ entities?: tl.TypeMessageEntity[];
20714
+ title?: string;
20715
+ }
20716
+ interface RawBusinessChatLink {
20717
+ _: 'businessChatLink';
20718
+ link: string;
20719
+ message: string;
20720
+ entities?: tl.TypeMessageEntity[];
20721
+ title?: string;
20722
+ views: number;
20723
+ }
20724
+ interface RawRequestedPeerUser {
20725
+ _: 'requestedPeerUser';
20726
+ userId: number;
20727
+ firstName?: string;
20728
+ lastName?: string;
20729
+ username?: string;
20730
+ photo?: tl.TypePhoto;
20731
+ }
20732
+ interface RawRequestedPeerChat {
20733
+ _: 'requestedPeerChat';
20734
+ chatId: number;
20735
+ title?: string;
20736
+ photo?: tl.TypePhoto;
20737
+ }
20738
+ interface RawRequestedPeerChannel {
20739
+ _: 'requestedPeerChannel';
20740
+ channelId: Long;
20741
+ title?: string;
20742
+ username?: string;
20743
+ photo?: tl.TypePhoto;
20744
+ }
20745
+ interface RawSponsoredMessageReportOption {
20746
+ _: 'sponsoredMessageReportOption';
20747
+ text: string;
20748
+ option: Uint8Array;
20749
+ }
20750
+ interface RawBroadcastRevenueTransactionProceeds {
20751
+ _: 'broadcastRevenueTransactionProceeds';
20752
+ amount: Long;
20753
+ fromDate: number;
20754
+ toDate: number;
20755
+ }
20756
+ interface RawBroadcastRevenueTransactionWithdrawal {
20757
+ _: 'broadcastRevenueTransactionWithdrawal';
20758
+ pending?: boolean;
20759
+ failed?: boolean;
20760
+ amount: Long;
20761
+ date: number;
20762
+ provider: string;
20763
+ transactionDate?: number;
20764
+ transactionUrl?: string;
20765
+ }
20766
+ interface RawBroadcastRevenueTransactionRefund {
20767
+ _: 'broadcastRevenueTransactionRefund';
20768
+ amount: Long;
20769
+ date: number;
20770
+ provider: string;
20771
+ }
20772
+ interface RawUpdateNewStoryReaction {
20773
+ _: 'updateNewStoryReaction';
20774
+ storyId: number;
20775
+ peer: tl.TypePeer;
20776
+ reaction: tl.TypeReaction;
20777
+ }
20778
+ interface RawWebPageAttributeStickerSet {
20779
+ _: 'webPageAttributeStickerSet';
20780
+ emojis?: boolean;
20781
+ textColor?: boolean;
20782
+ stickers: tl.TypeDocument[];
20783
+ }
20784
+ interface RawEmojiGroupGreeting {
20785
+ _: 'emojiGroupGreeting';
20786
+ title: string;
20787
+ iconEmojiId: Long;
20788
+ emoticons: string[];
20789
+ }
20790
+ interface RawEmojiGroupPremium {
20791
+ _: 'emojiGroupPremium';
20792
+ title: string;
20793
+ iconEmojiId: Long;
20794
+ }
20795
+ interface RawReactionNotificationsFromContacts {
20796
+ _: 'reactionNotificationsFromContacts';
20797
+ }
20798
+ interface RawReactionNotificationsFromAll {
20799
+ _: 'reactionNotificationsFromAll';
20800
+ }
20801
+ interface RawReactionsNotifySettings {
20802
+ _: 'reactionsNotifySettings';
20803
+ messagesNotifyFrom?: tl.TypeReactionNotificationsFrom;
20804
+ storiesNotifyFrom?: tl.TypeReactionNotificationsFrom;
20805
+ sound: tl.TypeNotificationSound;
20806
+ showPreviews: boolean;
20807
+ }
20808
+ interface RawBroadcastRevenueBalances {
20809
+ _: 'broadcastRevenueBalances';
20810
+ currentBalance: Long;
20811
+ availableBalance: Long;
20812
+ overallRevenue: Long;
20813
+ }
20814
+ /**
20815
+ * 0-N updates of this type may be returned only when invoking
20816
+ * {@link messages.RawAddChatUserRequest},
20817
+ * {@link channels.RawInviteToChannelRequest} or
20818
+ * {@link messages.RawCreateChatRequest}: it indicates we
20819
+ * couldn't add a user to a chat because of their privacy
20820
+ * settings; if required, an
20821
+ * <a href="https://corefork.telegram.org/api/invites">invite
20822
+ * link</a> can be shared with the user, instead.
20823
+ */
20824
+ interface RawUpdateGroupInvitePrivacyForbidden {
20825
+ _: 'updateGroupInvitePrivacyForbidden';
20826
+ /**
20827
+ * ID of the user we couldn't add.
20828
+ */
20829
+ userId: number;
20830
+ }
20831
+ /**
20832
+ * RPC method returns {@link tl.TypeError}
20833
+ */
20834
+ interface RawInvokeWithBusinessConnectionPrefixRequest {
20835
+ _: 'invokeWithBusinessConnectionPrefix';
20836
+ connectionId: string;
20622
20837
  }
20623
20838
  /**
20624
20839
  * Invokes a query after successful completion of one of the
@@ -20762,7 +20977,13 @@ export class RpcError extends Error {
20762
20977
  */
20763
20978
  query: X;
20764
20979
  }
20765
- interface RpcCallReturn extends help.RpcCallReturn, storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, smsjobs.RpcCallReturn, mtcute.RpcCallReturn, test.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
20980
+ interface RawInvokeWithBusinessConnectionRequest<X extends tl.TlObject = tl.TlObject> {
20981
+ _: 'invokeWithBusinessConnection';
20982
+ connectionId: string;
20983
+ query: X;
20984
+ }
20985
+ interface RpcCallReturn extends help.RpcCallReturn, storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, smsjobs.RpcCallReturn, fragment.RpcCallReturn, mtcute.RpcCallReturn, test.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
20986
+ 'invokeWithBusinessConnectionPrefix': tl.TypeError
20766
20987
  'invokeAfterMsg': any
20767
20988
  'invokeAfterMsgs': any
20768
20989
  'initConnection': any
@@ -20770,6 +20991,7 @@ export class RpcError extends Error {
20770
20991
  'invokeWithoutUpdates': any
20771
20992
  'invokeWithMessagesRange': any
20772
20993
  'invokeWithTakeout': any
20994
+ 'invokeWithBusinessConnection': any
20773
20995
  }
20774
20996
  /**
20775
20997
  * An object containing a query error.
@@ -20889,7 +21111,7 @@ export class RpcError extends Error {
20889
21111
  /**
20890
21112
  * Object describing actions connected to a service message.
20891
21113
  */
20892
- type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply
21114
+ type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe
20893
21115
  function isAnyMessageAction(o: object): o is TypeMessageAction
20894
21116
  /**
20895
21117
  * Chat info.
@@ -20972,7 +21194,7 @@ export class RpcError extends Error {
20972
21194
  /**
20973
21195
  * Object contains info on events occurred.
20974
21196
  */
20975
- type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.mtcute.RawDummyUpdate
21197
+ type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
20976
21198
  function isAnyUpdate(o: object): o is TypeUpdate
20977
21199
  /**
20978
21200
  * Object which is perceived by the client without a call on
@@ -21056,7 +21278,7 @@ export class RpcError extends Error {
21056
21278
  * <a href="https://corefork.telegram.org/api/privacy">privacy
21057
21279
  * documentation »</a> for more info.
21058
21280
  */
21059
- type TypeInputPrivacyKey = tl.RawInputPrivacyKeyStatusTimestamp | tl.RawInputPrivacyKeyChatInvite | tl.RawInputPrivacyKeyPhoneCall | tl.RawInputPrivacyKeyPhoneP2P | tl.RawInputPrivacyKeyForwards | tl.RawInputPrivacyKeyProfilePhoto | tl.RawInputPrivacyKeyPhoneNumber | tl.RawInputPrivacyKeyAddedByPhone | tl.RawInputPrivacyKeyVoiceMessages | tl.RawInputPrivacyKeyAbout
21281
+ type TypeInputPrivacyKey = tl.RawInputPrivacyKeyStatusTimestamp | tl.RawInputPrivacyKeyChatInvite | tl.RawInputPrivacyKeyPhoneCall | tl.RawInputPrivacyKeyPhoneP2P | tl.RawInputPrivacyKeyForwards | tl.RawInputPrivacyKeyProfilePhoto | tl.RawInputPrivacyKeyPhoneNumber | tl.RawInputPrivacyKeyAddedByPhone | tl.RawInputPrivacyKeyVoiceMessages | tl.RawInputPrivacyKeyAbout | tl.RawInputPrivacyKeyBirthday
21060
21282
  function isAnyInputPrivacyKey(o: object): o is TypeInputPrivacyKey
21061
21283
  /**
21062
21284
  * Privacy <strong>keys</strong> together with
@@ -21071,7 +21293,7 @@ export class RpcError extends Error {
21071
21293
  * <a href="https://corefork.telegram.org/api/privacy">privacy
21072
21294
  * documentation »</a> for more info.
21073
21295
  */
21074
- type TypePrivacyKey = tl.RawPrivacyKeyStatusTimestamp | tl.RawPrivacyKeyChatInvite | tl.RawPrivacyKeyPhoneCall | tl.RawPrivacyKeyPhoneP2P | tl.RawPrivacyKeyForwards | tl.RawPrivacyKeyProfilePhoto | tl.RawPrivacyKeyPhoneNumber | tl.RawPrivacyKeyAddedByPhone | tl.RawPrivacyKeyVoiceMessages | tl.RawPrivacyKeyAbout
21296
+ type TypePrivacyKey = tl.RawPrivacyKeyStatusTimestamp | tl.RawPrivacyKeyChatInvite | tl.RawPrivacyKeyPhoneCall | tl.RawPrivacyKeyPhoneP2P | tl.RawPrivacyKeyForwards | tl.RawPrivacyKeyProfilePhoto | tl.RawPrivacyKeyPhoneNumber | tl.RawPrivacyKeyAddedByPhone | tl.RawPrivacyKeyVoiceMessages | tl.RawPrivacyKeyAbout | tl.RawPrivacyKeyBirthday
21075
21297
  function isAnyPrivacyKey(o: object): o is TypePrivacyKey
21076
21298
  /**
21077
21299
  * Privacy <strong>rules</strong> indicate <em>who</em> can or
@@ -21084,7 +21306,7 @@ export class RpcError extends Error {
21084
21306
  * <a href="https://corefork.telegram.org/api/privacy">privacy
21085
21307
  * documentation »</a> for more info.
21086
21308
  */
21087
- type TypeInputPrivacyRule = tl.RawInputPrivacyValueAllowContacts | tl.RawInputPrivacyValueAllowAll | tl.RawInputPrivacyValueAllowUsers | tl.RawInputPrivacyValueDisallowContacts | tl.RawInputPrivacyValueDisallowAll | tl.RawInputPrivacyValueDisallowUsers | tl.RawInputPrivacyValueAllowChatParticipants | tl.RawInputPrivacyValueDisallowChatParticipants | tl.RawInputPrivacyValueAllowCloseFriends
21309
+ type TypeInputPrivacyRule = tl.RawInputPrivacyValueAllowContacts | tl.RawInputPrivacyValueAllowAll | tl.RawInputPrivacyValueAllowUsers | tl.RawInputPrivacyValueDisallowContacts | tl.RawInputPrivacyValueDisallowAll | tl.RawInputPrivacyValueDisallowUsers | tl.RawInputPrivacyValueAllowChatParticipants | tl.RawInputPrivacyValueDisallowChatParticipants | tl.RawInputPrivacyValueAllowCloseFriends | tl.RawInputPrivacyValueAllowPremium
21088
21310
  function isAnyInputPrivacyRule(o: object): o is TypeInputPrivacyRule
21089
21311
  /**
21090
21312
  * Privacy <strong>rules</strong> together with
@@ -21099,7 +21321,7 @@ export class RpcError extends Error {
21099
21321
  * <a href="https://corefork.telegram.org/api/privacy">privacy
21100
21322
  * documentation »</a> for more info.
21101
21323
  */
21102
- type TypePrivacyRule = tl.RawPrivacyValueAllowContacts | tl.RawPrivacyValueAllowAll | tl.RawPrivacyValueAllowUsers | tl.RawPrivacyValueDisallowContacts | tl.RawPrivacyValueDisallowAll | tl.RawPrivacyValueDisallowUsers | tl.RawPrivacyValueAllowChatParticipants | tl.RawPrivacyValueDisallowChatParticipants | tl.RawPrivacyValueAllowCloseFriends
21324
+ type TypePrivacyRule = tl.RawPrivacyValueAllowContacts | tl.RawPrivacyValueAllowAll | tl.RawPrivacyValueAllowUsers | tl.RawPrivacyValueDisallowContacts | tl.RawPrivacyValueDisallowAll | tl.RawPrivacyValueDisallowUsers | tl.RawPrivacyValueAllowChatParticipants | tl.RawPrivacyValueDisallowChatParticipants | tl.RawPrivacyValueAllowCloseFriends | tl.RawPrivacyValueAllowPremium
21103
21325
  function isAnyPrivacyRule(o: object): o is TypePrivacyRule
21104
21326
  /**
21105
21327
  * Time-to-live of current account
@@ -21167,7 +21389,7 @@ export class RpcError extends Error {
21167
21389
  /**
21168
21390
  * Bot or inline keyboard buttons
21169
21391
  */
21170
- type TypeKeyboardButton = tl.RawKeyboardButton | tl.RawKeyboardButtonUrl | tl.RawKeyboardButtonCallback | tl.RawKeyboardButtonRequestPhone | tl.RawKeyboardButtonRequestGeoLocation | tl.RawKeyboardButtonSwitchInline | tl.RawKeyboardButtonGame | tl.RawKeyboardButtonBuy | tl.RawKeyboardButtonUrlAuth | tl.RawInputKeyboardButtonUrlAuth | tl.RawKeyboardButtonRequestPoll | tl.RawInputKeyboardButtonUserProfile | tl.RawKeyboardButtonUserProfile | tl.RawKeyboardButtonWebView | tl.RawKeyboardButtonSimpleWebView | tl.RawKeyboardButtonRequestPeer
21392
+ type TypeKeyboardButton = tl.RawKeyboardButton | tl.RawKeyboardButtonUrl | tl.RawKeyboardButtonCallback | tl.RawKeyboardButtonRequestPhone | tl.RawKeyboardButtonRequestGeoLocation | tl.RawKeyboardButtonSwitchInline | tl.RawKeyboardButtonGame | tl.RawKeyboardButtonBuy | tl.RawKeyboardButtonUrlAuth | tl.RawInputKeyboardButtonUrlAuth | tl.RawKeyboardButtonRequestPoll | tl.RawInputKeyboardButtonUserProfile | tl.RawKeyboardButtonUserProfile | tl.RawKeyboardButtonWebView | tl.RawKeyboardButtonSimpleWebView | tl.RawKeyboardButtonRequestPeer | tl.RawInputKeyboardButtonRequestPeer
21171
21393
  function isAnyKeyboardButton(o: object): o is TypeKeyboardButton
21172
21394
  /**
21173
21395
  * Bot or inline keyboard rows
@@ -21806,7 +22028,7 @@ export class RpcError extends Error {
21806
22028
  /**
21807
22029
  * Webpage attributes
21808
22030
  */
21809
- type TypeWebPageAttribute = tl.RawWebPageAttributeTheme | tl.RawWebPageAttributeStory
22031
+ type TypeWebPageAttribute = tl.RawWebPageAttributeTheme | tl.RawWebPageAttributeStory | tl.RawWebPageAttributeStickerSet
21810
22032
  function isAnyWebPageAttribute(o: object): o is TypeWebPageAttribute
21811
22033
  /**
21812
22034
  * Credit card info URL provided by the bank
@@ -22172,7 +22394,7 @@ export class RpcError extends Error {
22172
22394
  * <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji
22173
22395
  * category</a>.
22174
22396
  */
22175
- type TypeEmojiGroup = tl.RawEmojiGroup
22397
+ type TypeEmojiGroup = tl.RawEmojiGroup | tl.RawEmojiGroupGreeting | tl.RawEmojiGroupPremium
22176
22398
  function isAnyEmojiGroup(o: object): o is TypeEmojiGroup
22177
22399
  /**
22178
22400
  * Styled text with
@@ -22401,6 +22623,40 @@ export class RpcError extends Error {
22401
22623
  function isAnyInputQuickReplyShortcut(o: object): o is TypeInputQuickReplyShortcut
22402
22624
  type TypeConnectedBot = tl.RawConnectedBot
22403
22625
  function isAnyConnectedBot(o: object): o is TypeConnectedBot
22626
+ type TypeBirthday = tl.RawBirthday
22627
+ function isAnyBirthday(o: object): o is TypeBirthday
22628
+ type TypeBotBusinessConnection = tl.RawBotBusinessConnection
22629
+ function isAnyBotBusinessConnection(o: object): o is TypeBotBusinessConnection
22630
+ type TypeInputBusinessIntro = tl.RawInputBusinessIntro
22631
+ function isAnyInputBusinessIntro(o: object): o is TypeInputBusinessIntro
22632
+ type TypeBusinessIntro = tl.RawBusinessIntro
22633
+ function isAnyBusinessIntro(o: object): o is TypeBusinessIntro
22634
+ type TypeInputCollectible = tl.RawInputCollectibleUsername | tl.RawInputCollectiblePhone
22635
+ function isAnyInputCollectible(o: object): o is TypeInputCollectible
22636
+ type TypeInputBusinessBotRecipients = tl.RawInputBusinessBotRecipients
22637
+ function isAnyInputBusinessBotRecipients(o: object): o is TypeInputBusinessBotRecipients
22638
+ type TypeBusinessBotRecipients = tl.RawBusinessBotRecipients
22639
+ function isAnyBusinessBotRecipients(o: object): o is TypeBusinessBotRecipients
22640
+ type TypeContactBirthday = tl.RawContactBirthday
22641
+ function isAnyContactBirthday(o: object): o is TypeContactBirthday
22642
+ type TypeMissingInvitee = tl.RawMissingInvitee
22643
+ function isAnyMissingInvitee(o: object): o is TypeMissingInvitee
22644
+ type TypeInputBusinessChatLink = tl.RawInputBusinessChatLink
22645
+ function isAnyInputBusinessChatLink(o: object): o is TypeInputBusinessChatLink
22646
+ type TypeBusinessChatLink = tl.RawBusinessChatLink
22647
+ function isAnyBusinessChatLink(o: object): o is TypeBusinessChatLink
22648
+ type TypeRequestedPeer = tl.RawRequestedPeerUser | tl.RawRequestedPeerChat | tl.RawRequestedPeerChannel
22649
+ function isAnyRequestedPeer(o: object): o is TypeRequestedPeer
22650
+ type TypeSponsoredMessageReportOption = tl.RawSponsoredMessageReportOption
22651
+ function isAnySponsoredMessageReportOption(o: object): o is TypeSponsoredMessageReportOption
22652
+ type TypeBroadcastRevenueTransaction = tl.RawBroadcastRevenueTransactionProceeds | tl.RawBroadcastRevenueTransactionWithdrawal | tl.RawBroadcastRevenueTransactionRefund
22653
+ function isAnyBroadcastRevenueTransaction(o: object): o is TypeBroadcastRevenueTransaction
22654
+ type TypeReactionNotificationsFrom = tl.RawReactionNotificationsFromContacts | tl.RawReactionNotificationsFromAll
22655
+ function isAnyReactionNotificationsFrom(o: object): o is TypeReactionNotificationsFrom
22656
+ type TypeReactionsNotifySettings = tl.RawReactionsNotifySettings
22657
+ function isAnyReactionsNotifySettings(o: object): o is TypeReactionsNotifySettings
22658
+ type TypeBroadcastRevenueBalances = tl.RawBroadcastRevenueBalances
22659
+ function isAnyBroadcastRevenueBalances(o: object): o is TypeBroadcastRevenueBalances
22404
22660
 
22405
22661
  namespace help {
22406
22662
  interface RawConfigSimple {
@@ -23851,6 +24107,14 @@ export class RpcError extends Error {
23851
24107
  */
23852
24108
  futureAuthToken?: Uint8Array;
23853
24109
  }
24110
+ interface RawSentCodeTypeSmsWord {
24111
+ _: 'auth.sentCodeTypeSmsWord';
24112
+ beginning?: string;
24113
+ }
24114
+ interface RawSentCodeTypeSmsPhrase {
24115
+ _: 'auth.sentCodeTypeSmsPhrase';
24116
+ beginning?: string;
24117
+ }
23854
24118
  /**
23855
24119
  * Send the verification code for login
23856
24120
  *
@@ -24303,6 +24567,15 @@ export class RpcError extends Error {
24303
24567
  */
24304
24568
  phoneCodeHash: string;
24305
24569
  }
24570
+ /**
24571
+ * RPC method returns boolean
24572
+ */
24573
+ interface RawReportMissingCodeRequest {
24574
+ _: 'auth.reportMissingCode';
24575
+ phoneNumber: string;
24576
+ phoneCodeHash: string;
24577
+ mnc: string;
24578
+ }
24306
24579
  interface RpcCallReturn {
24307
24580
  'auth.sendCode': tl.auth.TypeSentCode
24308
24581
  'auth.signUp': tl.auth.TypeAuthorization
@@ -24326,6 +24599,7 @@ export class RpcError extends Error {
24326
24599
  'auth.importWebTokenAuthorization': tl.auth.TypeAuthorization
24327
24600
  'auth.requestFirebaseSms': boolean
24328
24601
  'auth.resetLoginEmail': tl.auth.TypeSentCode
24602
+ 'auth.reportMissingCode': boolean
24329
24603
  }
24330
24604
  /**
24331
24605
  * Contains info on a confirmation code message sent via SMS,
@@ -24361,7 +24635,7 @@ export class RpcError extends Error {
24361
24635
  /**
24362
24636
  * Type of the verification code that was sent
24363
24637
  */
24364
- type TypeSentCodeType = tl.auth.RawSentCodeTypeApp | tl.auth.RawSentCodeTypeSms | tl.auth.RawSentCodeTypeCall | tl.auth.RawSentCodeTypeFlashCall | tl.auth.RawSentCodeTypeMissedCall | tl.auth.RawSentCodeTypeEmailCode | tl.auth.RawSentCodeTypeSetUpEmailRequired | tl.auth.RawSentCodeTypeFragmentSms | tl.auth.RawSentCodeTypeFirebaseSms
24638
+ type TypeSentCodeType = tl.auth.RawSentCodeTypeApp | tl.auth.RawSentCodeTypeSms | tl.auth.RawSentCodeTypeCall | tl.auth.RawSentCodeTypeFlashCall | tl.auth.RawSentCodeTypeMissedCall | tl.auth.RawSentCodeTypeEmailCode | tl.auth.RawSentCodeTypeSetUpEmailRequired | tl.auth.RawSentCodeTypeFragmentSms | tl.auth.RawSentCodeTypeFirebaseSms | tl.auth.RawSentCodeTypeSmsWord | tl.auth.RawSentCodeTypeSmsPhrase
24365
24639
  function isAnySentCodeType(o: object): o is TypeSentCodeType
24366
24640
  /**
24367
24641
  * Login token (for QR code login)
@@ -24535,6 +24809,11 @@ export class RpcError extends Error {
24535
24809
  interface RawTopPeersDisabled {
24536
24810
  _: 'contacts.topPeersDisabled';
24537
24811
  }
24812
+ interface RawContactBirthdays {
24813
+ _: 'contacts.contactBirthdays';
24814
+ contacts: tl.TypeContactBirthday[];
24815
+ users: tl.TypeUser[];
24816
+ }
24538
24817
  /**
24539
24818
  * Get the telegram IDs of all contacts.
24540
24819
  *
@@ -25010,6 +25289,12 @@ export class RpcError extends Error {
25010
25289
  */
25011
25290
  limit: number;
25012
25291
  }
25292
+ /**
25293
+ * RPC method returns {@link tl.contacts.TypeContactBirthdays}
25294
+ */
25295
+ interface RawGetBirthdaysRequest {
25296
+ _: 'contacts.getBirthdays';
25297
+ }
25013
25298
  interface RpcCallReturn {
25014
25299
  'contacts.getContactIDs': number[]
25015
25300
  'contacts.getStatuses': tl.TypeContactStatus[]
@@ -25036,6 +25321,7 @@ export class RpcError extends Error {
25036
25321
  'contacts.importContactToken': tl.TypeUser
25037
25322
  'contacts.editCloseFriends': boolean
25038
25323
  'contacts.setBlocked': boolean
25324
+ 'contacts.getBirthdays': tl.contacts.TypeContactBirthdays
25039
25325
  }
25040
25326
  /**
25041
25327
  * Info on the current user's contact list.
@@ -25068,6 +25354,8 @@ export class RpcError extends Error {
25068
25354
  */
25069
25355
  type TypeTopPeers = tl.contacts.RawTopPeersNotModified | tl.contacts.RawTopPeers | tl.contacts.RawTopPeersDisabled
25070
25356
  function isAnyTopPeers(o: object): o is TypeTopPeers
25357
+ type TypeContactBirthdays = tl.contacts.RawContactBirthdays
25358
+ function isAnyContactBirthdays(o: object): o is TypeContactBirthdays
25071
25359
  }
25072
25360
 
25073
25361
  namespace messages {
@@ -26495,6 +26783,16 @@ export class RpcError extends Error {
26495
26783
  tagsEnabled?: boolean;
26496
26784
  filters: tl.TypeDialogFilter[];
26497
26785
  }
26786
+ interface RawMyStickers {
26787
+ _: 'messages.myStickers';
26788
+ count: number;
26789
+ sets: tl.TypeStickerSetCovered[];
26790
+ }
26791
+ interface RawInvitedUsers {
26792
+ _: 'messages.invitedUsers';
26793
+ updates: tl.TypeUpdates;
26794
+ missingInvitees: tl.TypeMissingInvitee[];
26795
+ }
26498
26796
  /**
26499
26797
  * Returns the list of messages by their IDs.
26500
26798
  *
@@ -27130,7 +27428,7 @@ export class RpcError extends Error {
27130
27428
  * <a href="https://corefork.telegram.org/api/invites">invite
27131
27429
  * link</a> can be shared with the user, instead.
27132
27430
  *
27133
- * RPC method returns {@link tl.TypeUpdates}
27431
+ * RPC method returns {@link tl.messages.TypeInvitedUsers}
27134
27432
  */
27135
27433
  interface RawAddChatUserRequest {
27136
27434
  _: 'messages.addChatUser';
@@ -27179,7 +27477,7 @@ export class RpcError extends Error {
27179
27477
  * <a href="https://corefork.telegram.org/api/invites">invite
27180
27478
  * link</a> can be shared with the user, instead.
27181
27479
  *
27182
- * RPC method returns {@link tl.TypeUpdates}
27480
+ * RPC method returns {@link tl.messages.TypeInvitedUsers}
27183
27481
  */
27184
27482
  interface RawCreateChatRequest {
27185
27483
  _: 'messages.createChat';
@@ -27708,6 +28006,7 @@ export class RpcError extends Error {
27708
28006
  * folder ID, for more info click here</a>
27709
28007
  */
27710
28008
  folderId?: number;
28009
+ broadcastsOnly?: boolean;
27711
28010
  /**
27712
28011
  * Query
27713
28012
  */
@@ -28588,6 +28887,7 @@ export class RpcError extends Error {
28588
28887
  */
28589
28888
  interface RawUploadMediaRequest {
28590
28889
  _: 'messages.uploadMedia';
28890
+ businessConnectionId?: string;
28591
28891
  /**
28592
28892
  * The chat, can be {@link RawInputPeerEmpty} for bots and
28593
28893
  * {@link RawInputPeerSelf} for users.
@@ -30168,6 +30468,7 @@ export class RpcError extends Error {
30168
30468
  * Allowed reaction emojis
30169
30469
  */
30170
30470
  availableReactions: tl.TypeChatReactions;
30471
+ reactionsLimit?: number;
30171
30472
  }
30172
30473
  /**
30173
30474
  * Obtain available
@@ -31307,6 +31608,8 @@ export class RpcError extends Error {
31307
31608
  _: 'messages.sendQuickReplyMessages';
31308
31609
  peer: tl.TypeInputPeer;
31309
31610
  shortcutId: number;
31611
+ id: number[];
31612
+ randomId: Long[];
31310
31613
  }
31311
31614
  /**
31312
31615
  * RPC method returns {@link tl.TypeUpdates}
@@ -31323,6 +31626,21 @@ export class RpcError extends Error {
31323
31626
  _: 'messages.toggleDialogFilterTags';
31324
31627
  enabled: boolean;
31325
31628
  }
31629
+ /**
31630
+ * RPC method returns {@link tl.messages.TypeMyStickers}
31631
+ */
31632
+ interface RawGetMyStickersRequest {
31633
+ _: 'messages.getMyStickers';
31634
+ offsetId: Long;
31635
+ limit: number;
31636
+ }
31637
+ /**
31638
+ * RPC method returns {@link tl.messages.TypeEmojiGroups}
31639
+ */
31640
+ interface RawGetEmojiStickerGroupsRequest {
31641
+ _: 'messages.getEmojiStickerGroups';
31642
+ hash: number;
31643
+ }
31326
31644
  interface RpcCallReturn {
31327
31645
  'messages.getMessages': tl.messages.TypeMessages
31328
31646
  'messages.getDialogs': tl.messages.TypeDialogs
@@ -31343,9 +31661,9 @@ export class RpcError extends Error {
31343
31661
  'messages.getFullChat': tl.messages.TypeChatFull
31344
31662
  'messages.editChatTitle': tl.TypeUpdates
31345
31663
  'messages.editChatPhoto': tl.TypeUpdates
31346
- 'messages.addChatUser': tl.TypeUpdates
31664
+ 'messages.addChatUser': tl.messages.TypeInvitedUsers
31347
31665
  'messages.deleteChatUser': tl.TypeUpdates
31348
- 'messages.createChat': tl.TypeUpdates
31666
+ 'messages.createChat': tl.messages.TypeInvitedUsers
31349
31667
  'messages.getDhConfig': tl.messages.TypeDhConfig
31350
31668
  'messages.requestEncryption': tl.TypeEncryptedChat
31351
31669
  'messages.acceptEncryption': tl.TypeEncryptedChat
@@ -31531,6 +31849,8 @@ export class RpcError extends Error {
31531
31849
  'messages.sendQuickReplyMessages': tl.TypeUpdates
31532
31850
  'messages.deleteQuickReplyMessages': tl.TypeUpdates
31533
31851
  'messages.toggleDialogFilterTags': boolean
31852
+ 'messages.getMyStickers': tl.messages.TypeMyStickers
31853
+ 'messages.getEmojiStickerGroups': tl.messages.TypeEmojiGroups
31534
31854
  }
31535
31855
  /**
31536
31856
  * Object contains a list of chats with messages and auxiliary
@@ -31819,6 +32139,10 @@ export class RpcError extends Error {
31819
32139
  function isAnyQuickReplies(o: object): o is TypeQuickReplies
31820
32140
  type TypeDialogFilters = tl.messages.RawDialogFilters
31821
32141
  function isAnyDialogFilters(o: object): o is TypeDialogFilters
32142
+ type TypeMyStickers = tl.messages.RawMyStickers
32143
+ function isAnyMyStickers(o: object): o is TypeMyStickers
32144
+ type TypeInvitedUsers = tl.messages.RawInvitedUsers
32145
+ function isAnyInvitedUsers(o: object): o is TypeInvitedUsers
31822
32146
  }
31823
32147
 
31824
32148
  namespace updates {
@@ -33174,6 +33498,20 @@ export class RpcError extends Error {
33174
33498
  connectedBots: tl.TypeConnectedBot[];
33175
33499
  users: tl.TypeUser[];
33176
33500
  }
33501
+ interface RawBusinessChatLinks {
33502
+ _: 'account.businessChatLinks';
33503
+ links: tl.TypeBusinessChatLink[];
33504
+ chats: tl.TypeChat[];
33505
+ users: tl.TypeUser[];
33506
+ }
33507
+ interface RawResolvedBusinessChatLinks {
33508
+ _: 'account.resolvedBusinessChatLinks';
33509
+ peer: tl.TypePeer;
33510
+ message: string;
33511
+ entities?: tl.TypeMessageEntity[];
33512
+ chats: tl.TypeChat[];
33513
+ users: tl.TypeUser[];
33514
+ }
33177
33515
  /**
33178
33516
  * Register device to receive
33179
33517
  * <a href="https://corefork.telegram.org/api/push-updates">PUSH
@@ -34800,7 +35138,7 @@ export class RpcError extends Error {
34800
35138
  canReply?: boolean;
34801
35139
  deleted?: boolean;
34802
35140
  bot: tl.TypeInputUser;
34803
- recipients: tl.TypeInputBusinessRecipients;
35141
+ recipients: tl.TypeInputBusinessBotRecipients;
34804
35142
  }
34805
35143
  /**
34806
35144
  * RPC method returns {@link tl.account.TypeConnectedBots}
@@ -34808,6 +35146,105 @@ export class RpcError extends Error {
34808
35146
  interface RawGetConnectedBotsRequest {
34809
35147
  _: 'account.getConnectedBots';
34810
35148
  }
35149
+ /**
35150
+ * RPC method returns {@link tl.TypeUpdates}
35151
+ */
35152
+ interface RawGetBotBusinessConnectionRequest {
35153
+ _: 'account.getBotBusinessConnection';
35154
+ connectionId: string;
35155
+ }
35156
+ /**
35157
+ * RPC method returns boolean
35158
+ */
35159
+ interface RawUpdateBusinessIntroRequest {
35160
+ _: 'account.updateBusinessIntro';
35161
+ intro?: tl.TypeInputBusinessIntro;
35162
+ }
35163
+ /**
35164
+ * RPC method returns boolean
35165
+ */
35166
+ interface RawToggleConnectedBotPausedRequest {
35167
+ _: 'account.toggleConnectedBotPaused';
35168
+ peer: tl.TypeInputPeer;
35169
+ paused: boolean;
35170
+ }
35171
+ /**
35172
+ * RPC method returns boolean
35173
+ */
35174
+ interface RawDisablePeerConnectedBotRequest {
35175
+ _: 'account.disablePeerConnectedBot';
35176
+ peer: tl.TypeInputPeer;
35177
+ }
35178
+ /**
35179
+ * RPC method returns boolean
35180
+ */
35181
+ interface RawUpdateBirthdayRequest {
35182
+ _: 'account.updateBirthday';
35183
+ birthday?: tl.TypeBirthday;
35184
+ }
35185
+ /**
35186
+ * RPC method returns {@link tl.TypeBusinessChatLink}
35187
+ */
35188
+ interface RawCreateBusinessChatLinkRequest {
35189
+ _: 'account.createBusinessChatLink';
35190
+ link: tl.TypeInputBusinessChatLink;
35191
+ }
35192
+ /**
35193
+ * RPC method returns {@link tl.TypeBusinessChatLink}
35194
+ */
35195
+ interface RawEditBusinessChatLinkRequest {
35196
+ _: 'account.editBusinessChatLink';
35197
+ slug: string;
35198
+ link: tl.TypeInputBusinessChatLink;
35199
+ }
35200
+ /**
35201
+ * RPC method returns boolean
35202
+ */
35203
+ interface RawDeleteBusinessChatLinkRequest {
35204
+ _: 'account.deleteBusinessChatLink';
35205
+ slug: string;
35206
+ }
35207
+ /**
35208
+ * RPC method returns {@link tl.account.TypeBusinessChatLinks}
35209
+ */
35210
+ interface RawGetBusinessChatLinksRequest {
35211
+ _: 'account.getBusinessChatLinks';
35212
+ }
35213
+ /**
35214
+ * RPC method returns
35215
+ * {@link tl.account.TypeResolvedBusinessChatLinks}
35216
+ */
35217
+ interface RawResolveBusinessChatLinkRequest {
35218
+ _: 'account.resolveBusinessChatLink';
35219
+ slug: string;
35220
+ }
35221
+ /**
35222
+ * RPC method returns boolean
35223
+ */
35224
+ interface RawUpdatePersonalChannelRequest {
35225
+ _: 'account.updatePersonalChannel';
35226
+ channel: tl.TypeInputChannel;
35227
+ }
35228
+ /**
35229
+ * RPC method returns boolean
35230
+ */
35231
+ interface RawToggleSponsoredMessagesRequest {
35232
+ _: 'account.toggleSponsoredMessages';
35233
+ enabled: boolean;
35234
+ }
35235
+ /**
35236
+ * RPC method returns {@link tl.TypeReactionsNotifySettings}
35237
+ */
35238
+ interface RawGetReactionsNotifySettingsRequest {
35239
+ _: 'account.getReactionsNotifySettings';
35240
+ }
35241
+ /**
35242
+ * RPC method returns {@link tl.TypeReactionsNotifySettings}
35243
+ */
35244
+ interface RawSetReactionsNotifySettingsRequest {
35245
+ _: 'account.setReactionsNotifySettings';
35246
+ settings: tl.TypeReactionsNotifySettings;
35247
+ }
34811
35248
  interface RpcCallReturn {
34812
35249
  'account.registerDevice': boolean
34813
35250
  'account.unregisterDevice': boolean
@@ -34907,6 +35344,20 @@ export class RpcError extends Error {
34907
35344
  'account.updateBusinessAwayMessage': boolean
34908
35345
  'account.updateConnectedBot': tl.TypeUpdates
34909
35346
  'account.getConnectedBots': tl.account.TypeConnectedBots
35347
+ 'account.getBotBusinessConnection': tl.TypeUpdates
35348
+ 'account.updateBusinessIntro': boolean
35349
+ 'account.toggleConnectedBotPaused': boolean
35350
+ 'account.disablePeerConnectedBot': boolean
35351
+ 'account.updateBirthday': boolean
35352
+ 'account.createBusinessChatLink': tl.TypeBusinessChatLink
35353
+ 'account.editBusinessChatLink': tl.TypeBusinessChatLink
35354
+ 'account.deleteBusinessChatLink': boolean
35355
+ 'account.getBusinessChatLinks': tl.account.TypeBusinessChatLinks
35356
+ 'account.resolveBusinessChatLink': tl.account.TypeResolvedBusinessChatLinks
35357
+ 'account.updatePersonalChannel': boolean
35358
+ 'account.toggleSponsoredMessages': boolean
35359
+ 'account.getReactionsNotifySettings': tl.TypeReactionsNotifySettings
35360
+ 'account.setReactionsNotifySettings': tl.TypeReactionsNotifySettings
34910
35361
  }
34911
35362
  /**
34912
35363
  * Privacy rules
@@ -35018,6 +35469,10 @@ export class RpcError extends Error {
35018
35469
  function isAnyAutoSaveSettings(o: object): o is TypeAutoSaveSettings
35019
35470
  type TypeConnectedBots = tl.account.RawConnectedBots
35020
35471
  function isAnyConnectedBots(o: object): o is TypeConnectedBots
35472
+ type TypeBusinessChatLinks = tl.account.RawBusinessChatLinks
35473
+ function isAnyBusinessChatLinks(o: object): o is TypeBusinessChatLinks
35474
+ type TypeResolvedBusinessChatLinks = tl.account.RawResolvedBusinessChatLinks
35475
+ function isAnyResolvedBusinessChatLinks(o: object): o is TypeResolvedBusinessChatLinks
35021
35476
  }
35022
35477
 
35023
35478
  namespace channels {
@@ -35105,6 +35560,17 @@ export class RpcError extends Error {
35105
35560
  */
35106
35561
  users: tl.TypeUser[];
35107
35562
  }
35563
+ interface RawSponsoredMessageReportResultChooseOption {
35564
+ _: 'channels.sponsoredMessageReportResultChooseOption';
35565
+ title: string;
35566
+ options: tl.TypeSponsoredMessageReportOption[];
35567
+ }
35568
+ interface RawSponsoredMessageReportResultAdsHidden {
35569
+ _: 'channels.sponsoredMessageReportResultAdsHidden';
35570
+ }
35571
+ interface RawSponsoredMessageReportResultReported {
35572
+ _: 'channels.sponsoredMessageReportResultReported';
35573
+ }
35108
35574
  /**
35109
35575
  * Mark
35110
35576
  * <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a>
@@ -35453,7 +35919,7 @@ export class RpcError extends Error {
35453
35919
  * <a href="https://corefork.telegram.org/api/invites">invite
35454
35920
  * link</a> can be shared with the user, instead.
35455
35921
  *
35456
- * RPC method returns {@link tl.TypeUpdates}
35922
+ * RPC method returns {@link tl.messages.TypeInvitedUsers}
35457
35923
  */
35458
35924
  interface RawInviteToChannelRequest {
35459
35925
  _: 'channels.inviteToChannel';
@@ -35551,6 +36017,7 @@ export class RpcError extends Error {
35551
36017
  * {@link channels.RawCheckUsernameRequest}/{@linkƒchannels.RawUpdateUsernameRequest}.
35552
36018
  */
35553
36019
  checkLimit?: boolean;
36020
+ forPersonal?: boolean;
35554
36021
  }
35555
36022
  /**
35556
36023
  * Ban/unban/kick a user in a
@@ -36383,7 +36850,7 @@ export class RpcError extends Error {
36383
36850
  * The method will return channels related to the passed
36384
36851
  * <code>channel</code>.
36385
36852
  */
36386
- channel: tl.TypeInputChannel;
36853
+ channel?: tl.TypeInputChannel;
36387
36854
  }
36388
36855
  /**
36389
36856
  * Set an
@@ -36422,6 +36889,24 @@ export class RpcError extends Error {
36422
36889
  channel: tl.TypeInputChannel;
36423
36890
  stickerset: tl.TypeInputStickerSet;
36424
36891
  }
36892
+ /**
36893
+ * RPC method returns
36894
+ * {@link tl.channels.TypeSponsoredMessageReportResult}
36895
+ */
36896
+ interface RawReportSponsoredMessageRequest {
36897
+ _: 'channels.reportSponsoredMessage';
36898
+ channel: tl.TypeInputChannel;
36899
+ randomId: Uint8Array;
36900
+ option: Uint8Array;
36901
+ }
36902
+ /**
36903
+ * RPC method returns {@link tl.TypeUpdates}
36904
+ */
36905
+ interface RawRestrictSponsoredMessagesRequest {
36906
+ _: 'channels.restrictSponsoredMessages';
36907
+ channel: tl.TypeInputChannel;
36908
+ restricted: boolean;
36909
+ }
36425
36910
  interface RpcCallReturn {
36426
36911
  'channels.readHistory': boolean
36427
36912
  'channels.deleteMessages': tl.messages.TypeAffectedMessages
@@ -36439,7 +36924,7 @@ export class RpcError extends Error {
36439
36924
  'channels.updateUsername': boolean
36440
36925
  'channels.joinChannel': tl.TypeUpdates
36441
36926
  'channels.leaveChannel': tl.TypeUpdates
36442
- 'channels.inviteToChannel': tl.TypeUpdates
36927
+ 'channels.inviteToChannel': tl.messages.TypeInvitedUsers
36443
36928
  'channels.deleteChannel': tl.TypeUpdates
36444
36929
  'channels.exportMessageLink': tl.TypeExportedMessageLink
36445
36930
  'channels.toggleSignatures': tl.TypeUpdates
@@ -36485,6 +36970,8 @@ export class RpcError extends Error {
36485
36970
  'channels.updateEmojiStatus': tl.TypeUpdates
36486
36971
  'channels.setBoostsToUnblockRestrictions': tl.TypeUpdates
36487
36972
  'channels.setEmojiStickers': boolean
36973
+ 'channels.reportSponsoredMessage': tl.channels.TypeSponsoredMessageReportResult
36974
+ 'channels.restrictSponsoredMessages': tl.TypeUpdates
36488
36975
  }
36489
36976
  /**
36490
36977
  * Channel/supergroup participants
@@ -36507,6 +36994,8 @@ export class RpcError extends Error {
36507
36994
  */
36508
36995
  type TypeSendAsPeers = tl.channels.RawSendAsPeers
36509
36996
  function isAnySendAsPeers(o: object): o is TypeSendAsPeers
36997
+ type TypeSponsoredMessageReportResult = tl.channels.RawSponsoredMessageReportResultChooseOption | tl.channels.RawSponsoredMessageReportResultAdsHidden | tl.channels.RawSponsoredMessageReportResultReported
36998
+ function isAnySponsoredMessageReportResult(o: object): o is TypeSponsoredMessageReportResult
36510
36999
  }
36511
37000
 
36512
37001
  namespace payments {
@@ -38397,6 +38886,22 @@ export class RpcError extends Error {
38397
38886
  */
38398
38887
  users: tl.TypeUser[];
38399
38888
  }
38889
+ interface RawBroadcastRevenueStats {
38890
+ _: 'stats.broadcastRevenueStats';
38891
+ topHoursGraph: tl.TypeStatsGraph;
38892
+ revenueGraph: tl.TypeStatsGraph;
38893
+ balances: tl.TypeBroadcastRevenueBalances;
38894
+ usdRate: Double;
38895
+ }
38896
+ interface RawBroadcastRevenueWithdrawalUrl {
38897
+ _: 'stats.broadcastRevenueWithdrawalUrl';
38898
+ url: string;
38899
+ }
38900
+ interface RawBroadcastRevenueTransactions {
38901
+ _: 'stats.broadcastRevenueTransactions';
38902
+ count: number;
38903
+ transactions: tl.TypeBroadcastRevenueTransaction[];
38904
+ }
38400
38905
  /**
38401
38906
  * Get
38402
38907
  * <a href="https://corefork.telegram.org/api/stats">channel
@@ -38563,6 +39068,34 @@ export class RpcError extends Error {
38563
39068
  */
38564
39069
  limit: number;
38565
39070
  }
39071
+ /**
39072
+ * RPC method returns
39073
+ * {@link tl.stats.TypeBroadcastRevenueStats}
39074
+ */
39075
+ interface RawGetBroadcastRevenueStatsRequest {
39076
+ _: 'stats.getBroadcastRevenueStats';
39077
+ dark?: boolean;
39078
+ channel: tl.TypeInputChannel;
39079
+ }
39080
+ /**
39081
+ * RPC method returns
39082
+ * {@link tl.stats.TypeBroadcastRevenueWithdrawalUrl}
39083
+ */
39084
+ interface RawGetBroadcastRevenueWithdrawalUrlRequest {
39085
+ _: 'stats.getBroadcastRevenueWithdrawalUrl';
39086
+ channel: tl.TypeInputChannel;
39087
+ password: tl.TypeInputCheckPasswordSRP;
39088
+ }
39089
+ /**
39090
+ * RPC method returns
39091
+ * {@link tl.stats.TypeBroadcastRevenueTransactions}
39092
+ */
39093
+ interface RawGetBroadcastRevenueTransactionsRequest {
39094
+ _: 'stats.getBroadcastRevenueTransactions';
39095
+ channel: tl.TypeInputChannel;
39096
+ offset: number;
39097
+ limit: number;
39098
+ }
38566
39099
  interface RpcCallReturn {
38567
39100
  'stats.getBroadcastStats': tl.stats.TypeBroadcastStats
38568
39101
  'stats.loadAsyncGraph': tl.TypeStatsGraph
@@ -38571,6 +39104,9 @@ export class RpcError extends Error {
38571
39104
  'stats.getMessageStats': tl.stats.TypeMessageStats
38572
39105
  'stats.getStoryStats': tl.stats.TypeStoryStats
38573
39106
  'stats.getStoryPublicForwards': tl.stats.TypePublicForwards
39107
+ 'stats.getBroadcastRevenueStats': tl.stats.TypeBroadcastRevenueStats
39108
+ 'stats.getBroadcastRevenueWithdrawalUrl': tl.stats.TypeBroadcastRevenueWithdrawalUrl
39109
+ 'stats.getBroadcastRevenueTransactions': tl.stats.TypeBroadcastRevenueTransactions
38574
39110
  }
38575
39111
  /**
38576
39112
  * Channel statistics
@@ -38602,6 +39138,12 @@ export class RpcError extends Error {
38602
39138
  */
38603
39139
  type TypePublicForwards = tl.stats.RawPublicForwards
38604
39140
  function isAnyPublicForwards(o: object): o is TypePublicForwards
39141
+ type TypeBroadcastRevenueStats = tl.stats.RawBroadcastRevenueStats
39142
+ function isAnyBroadcastRevenueStats(o: object): o is TypeBroadcastRevenueStats
39143
+ type TypeBroadcastRevenueWithdrawalUrl = tl.stats.RawBroadcastRevenueWithdrawalUrl
39144
+ function isAnyBroadcastRevenueWithdrawalUrl(o: object): o is TypeBroadcastRevenueWithdrawalUrl
39145
+ type TypeBroadcastRevenueTransactions = tl.stats.RawBroadcastRevenueTransactions
39146
+ function isAnyBroadcastRevenueTransactions(o: object): o is TypeBroadcastRevenueTransactions
38605
39147
  }
38606
39148
 
38607
39149
  namespace stickers {
@@ -38626,14 +39168,6 @@ export class RpcError extends Error {
38626
39168
  * Whether this is a mask stickerset
38627
39169
  */
38628
39170
  masks?: boolean;
38629
- /**
38630
- * Whether this is an animated stickerset
38631
- */
38632
- animated?: boolean;
38633
- /**
38634
- * Whether this is a video stickerset
38635
- */
38636
- videos?: boolean;
38637
39171
  /**
38638
39172
  * Whether this is a
38639
39173
  * <a href="https://corefork.telegram.org/api/custom-emoji">custom
@@ -38682,6 +39216,14 @@ export class RpcError extends Error {
38682
39216
  * name of the software that created the stickers
38683
39217
  */
38684
39218
  software?: string;
39219
+ /**
39220
+ * Whether this is an animated stickerset
39221
+ */
39222
+ animated?: boolean;
39223
+ /**
39224
+ * Whether this is a video stickerset
39225
+ */
39226
+ videos?: boolean;
38685
39227
  }
38686
39228
  /**
38687
39229
  * Remove a sticker from the set where it belongs, bots only.
@@ -38838,6 +39380,14 @@ export class RpcError extends Error {
38838
39380
  */
38839
39381
  stickerset: tl.TypeInputStickerSet;
38840
39382
  }
39383
+ /**
39384
+ * RPC method returns {@link tl.messages.TypeStickerSet}
39385
+ */
39386
+ interface RawReplaceStickerRequest {
39387
+ _: 'stickers.replaceSticker';
39388
+ sticker: tl.TypeInputDocument;
39389
+ newSticker: tl.TypeInputStickerSetItem;
39390
+ }
38841
39391
  interface RpcCallReturn {
38842
39392
  'stickers.createStickerSet': tl.messages.TypeStickerSet
38843
39393
  'stickers.removeStickerFromSet': tl.messages.TypeStickerSet
@@ -38849,6 +39399,7 @@ export class RpcError extends Error {
38849
39399
  'stickers.changeSticker': tl.messages.TypeStickerSet
38850
39400
  'stickers.renameStickerSet': tl.messages.TypeStickerSet
38851
39401
  'stickers.deleteStickerSet': boolean
39402
+ 'stickers.replaceSticker': tl.messages.TypeStickerSet
38852
39403
  }
38853
39404
  /**
38854
39405
  * A suggested short name for the specified stickerpack
@@ -39742,6 +40293,7 @@ export class RpcError extends Error {
39742
40293
  * Stories
39743
40294
  */
39744
40295
  stories: tl.TypeStoryItem[];
40296
+ pinnedToTop?: number[];
39745
40297
  /**
39746
40298
  * Mentioned chats
39747
40299
  */
@@ -40470,6 +41022,14 @@ export class RpcError extends Error {
40470
41022
  */
40471
41023
  limit: number;
40472
41024
  }
41025
+ /**
41026
+ * RPC method returns boolean
41027
+ */
41028
+ interface RawTogglePinnedToTopRequest {
41029
+ _: 'stories.togglePinnedToTop';
41030
+ peer: tl.TypeInputPeer;
41031
+ id: number[];
41032
+ }
40473
41033
  interface RpcCallReturn {
40474
41034
  'stories.canSendStory': boolean
40475
41035
  'stories.sendStory': tl.TypeUpdates
@@ -40495,6 +41055,7 @@ export class RpcError extends Error {
40495
41055
  'stories.getChatsToSend': tl.messages.TypeChats
40496
41056
  'stories.togglePeerStoriesHidden': boolean
40497
41057
  'stories.getStoryReactionsList': tl.stories.TypeStoryReactionsList
41058
+ 'stories.togglePinnedToTop': boolean
40498
41059
  }
40499
41060
  /**
40500
41061
  * Full list of active (or active and hidden)
@@ -40847,6 +41408,30 @@ export class RpcError extends Error {
40847
41408
  function isAnyStatus(o: object): o is TypeStatus
40848
41409
  }
40849
41410
 
41411
+ namespace fragment {
41412
+ interface RawCollectibleInfo {
41413
+ _: 'fragment.collectibleInfo';
41414
+ purchaseDate: number;
41415
+ currency: string;
41416
+ amount: Long;
41417
+ cryptoCurrency: string;
41418
+ cryptoAmount: Long;
41419
+ url: string;
41420
+ }
41421
+ /**
41422
+ * RPC method returns {@link tl.fragment.TypeCollectibleInfo}
41423
+ */
41424
+ interface RawGetCollectibleInfoRequest {
41425
+ _: 'fragment.getCollectibleInfo';
41426
+ collectible: tl.TypeInputCollectible;
41427
+ }
41428
+ interface RpcCallReturn {
41429
+ 'fragment.getCollectibleInfo': tl.fragment.TypeCollectibleInfo
41430
+ }
41431
+ type TypeCollectibleInfo = tl.fragment.RawCollectibleInfo
41432
+ function isAnyCollectibleInfo(o: object): o is TypeCollectibleInfo
41433
+ }
41434
+
40850
41435
  namespace mtcute {
40851
41436
  interface RawDummyUpdate {
40852
41437
  _: 'mtcute.dummyUpdate';
@@ -40867,7 +41452,7 @@ export class RpcError extends Error {
40867
41452
  /**
40868
41453
  * Object contains info on events occurred.
40869
41454
  */
40870
- type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.mtcute.RawDummyUpdate
41455
+ type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateGroupInvitePrivacyForbidden | tl.mtcute.RawDummyUpdate
40871
41456
  function isAnyUpdate(o: object): o is TypeUpdate
40872
41457
  /**
40873
41458
  * Peer
@@ -40877,12 +41462,6 @@ export class RpcError extends Error {
40877
41462
  }
40878
41463
 
40879
41464
  namespace test {
40880
- /**
40881
- * RPC method returns {@link tl.TypeError}
40882
- */
40883
- interface RawUseErrorRequest {
40884
- _: 'test.useError';
40885
- }
40886
41465
  /**
40887
41466
  * RPC method returns {@link tl.help.TypeConfigSimple}
40888
41467
  */
@@ -40896,7 +41475,6 @@ export class RpcError extends Error {
40896
41475
  _: 'test.parseInputAppEvent';
40897
41476
  }
40898
41477
  interface RpcCallReturn {
40899
- 'test.useError': tl.TypeError
40900
41478
  'test.useConfigSimple': tl.help.TypeConfigSimple
40901
41479
  'test.parseInputAppEvent': tl.TypeInputAppEvent
40902
41480
  }
@@ -41022,9 +41600,9 @@ export class RpcError extends Error {
41022
41600
  }
41023
41601
  }
41024
41602
  type RpcMethod =
41025
- | tl.test.RawUseErrorRequest
41026
41603
  | tl.test.RawUseConfigSimpleRequest
41027
41604
  | tl.test.RawParseInputAppEventRequest
41605
+ | tl.RawInvokeWithBusinessConnectionPrefixRequest
41028
41606
  | tl.RawInvokeAfterMsgRequest
41029
41607
  | tl.RawInvokeAfterMsgsRequest
41030
41608
  | tl.RawInitConnectionRequest
@@ -41032,6 +41610,7 @@ export class RpcError extends Error {
41032
41610
  | tl.RawInvokeWithoutUpdatesRequest
41033
41611
  | tl.RawInvokeWithMessagesRangeRequest
41034
41612
  | tl.RawInvokeWithTakeoutRequest
41613
+ | tl.RawInvokeWithBusinessConnectionRequest
41035
41614
  | tl.auth.RawSendCodeRequest
41036
41615
  | tl.auth.RawSignUpRequest
41037
41616
  | tl.auth.RawSignInRequest
@@ -41152,6 +41731,17 @@ export class RpcError extends Error {
41152
41731
  | tl.account.RawUpdateBusinessAwayMessageRequest
41153
41732
  | tl.account.RawUpdateConnectedBotRequest
41154
41733
  | tl.account.RawGetConnectedBotsRequest
41734
+ | tl.account.RawGetBotBusinessConnectionRequest
41735
+ | tl.account.RawUpdateBusinessIntroRequest
41736
+ | tl.account.RawToggleConnectedBotPausedRequest
41737
+ | tl.account.RawDisablePeerConnectedBotRequest
41738
+ | tl.account.RawUpdateBirthdayRequest
41739
+ | tl.account.RawCreateBusinessChatLinkRequest
41740
+ | tl.account.RawEditBusinessChatLinkRequest
41741
+ | tl.account.RawDeleteBusinessChatLinkRequest
41742
+ | tl.account.RawGetBusinessChatLinksRequest
41743
+ | tl.account.RawResolveBusinessChatLinkRequest
41744
+ | tl.account.RawUpdatePersonalChannelRequest
41155
41745
  | tl.users.RawGetUsersRequest
41156
41746
  | tl.users.RawGetFullUserRequest
41157
41747
  | tl.users.RawSetSecureValueErrorsRequest
@@ -41181,6 +41771,7 @@ export class RpcError extends Error {
41181
41771
  | tl.contacts.RawImportContactTokenRequest
41182
41772
  | tl.contacts.RawEditCloseFriendsRequest
41183
41773
  | tl.contacts.RawSetBlockedRequest
41774
+ | tl.contacts.RawGetBirthdaysRequest
41184
41775
  | tl.messages.RawGetMessagesRequest
41185
41776
  | tl.messages.RawGetDialogsRequest
41186
41777
  | tl.messages.RawGetHistoryRequest
@@ -41388,6 +41979,7 @@ export class RpcError extends Error {
41388
41979
  | tl.messages.RawSendQuickReplyMessagesRequest
41389
41980
  | tl.messages.RawDeleteQuickReplyMessagesRequest
41390
41981
  | tl.messages.RawToggleDialogFilterTagsRequest
41982
+ | tl.messages.RawGetMyStickersRequest
41391
41983
  | tl.updates.RawGetStateRequest
41392
41984
  | tl.updates.RawGetDifferenceRequest
41393
41985
  | tl.updates.RawGetChannelDifferenceRequest
@@ -41491,6 +42083,8 @@ export class RpcError extends Error {
41491
42083
  | tl.channels.RawUpdateEmojiStatusRequest
41492
42084
  | tl.channels.RawSetBoostsToUnblockRestrictionsRequest
41493
42085
  | tl.channels.RawSetEmojiStickersRequest
42086
+ | tl.channels.RawReportSponsoredMessageRequest
42087
+ | tl.channels.RawRestrictSponsoredMessagesRequest
41494
42088
  | tl.bots.RawSendCustomRequestRequest
41495
42089
  | tl.bots.RawAnswerWebhookJSONQueryRequest
41496
42090
  | tl.bots.RawSetBotCommandsRequest
@@ -41533,6 +42127,7 @@ export class RpcError extends Error {
41533
42127
  | tl.stickers.RawChangeStickerRequest
41534
42128
  | tl.stickers.RawRenameStickerSetRequest
41535
42129
  | tl.stickers.RawDeleteStickerSetRequest
42130
+ | tl.stickers.RawReplaceStickerRequest
41536
42131
  | tl.phone.RawGetCallConfigRequest
41537
42132
  | tl.phone.RawRequestCallRequest
41538
42133
  | tl.phone.RawAcceptCallRequest
@@ -41577,6 +42172,9 @@ export class RpcError extends Error {
41577
42172
  | tl.stats.RawGetMessageStatsRequest
41578
42173
  | tl.stats.RawGetStoryStatsRequest
41579
42174
  | tl.stats.RawGetStoryPublicForwardsRequest
42175
+ | tl.stats.RawGetBroadcastRevenueStatsRequest
42176
+ | tl.stats.RawGetBroadcastRevenueWithdrawalUrlRequest
42177
+ | tl.stats.RawGetBroadcastRevenueTransactionsRequest
41580
42178
  | tl.chatlists.RawExportChatlistInviteRequest
41581
42179
  | tl.chatlists.RawDeleteExportedInviteRequest
41582
42180
  | tl.chatlists.RawEditExportedInviteRequest
@@ -41624,6 +42222,13 @@ export class RpcError extends Error {
41624
42222
  | tl.smsjobs.RawGetStatusRequest
41625
42223
  | tl.smsjobs.RawGetSmsJobRequest
41626
42224
  | tl.smsjobs.RawFinishJobRequest
42225
+ | tl.fragment.RawGetCollectibleInfoRequest
42226
+ | tl.auth.RawReportMissingCodeRequest
42227
+ | tl.account.RawToggleSponsoredMessagesRequest
42228
+ | tl.account.RawGetReactionsNotifySettingsRequest
42229
+ | tl.account.RawSetReactionsNotifySettingsRequest
42230
+ | tl.messages.RawGetEmojiStickerGroupsRequest
42231
+ | tl.stories.RawTogglePinnedToTopRequest
41627
42232
 
41628
42233
  type TlObject =
41629
42234
  | tl.RawError
@@ -41779,6 +42384,7 @@ export class RpcError extends Error {
41779
42384
  | tl.RawMessageActionGiveawayLaunch
41780
42385
  | tl.RawMessageActionGiveawayResults
41781
42386
  | tl.RawMessageActionBoostApply
42387
+ | tl.RawMessageActionRequestedPeerSentMe
41782
42388
  | tl.RawDialog
41783
42389
  | tl.RawDialogFolder
41784
42390
  | tl.RawPhotoEmpty
@@ -41964,7 +42570,6 @@ export class RpcError extends Error {
41964
42570
  | tl.RawUpdateChannelPinnedTopics
41965
42571
  | tl.RawUpdateUser
41966
42572
  | tl.RawUpdateAutoSaveSettings
41967
- | tl.RawUpdateGroupInvitePrivacyForbidden
41968
42573
  | tl.RawUpdateStory
41969
42574
  | tl.RawUpdateReadStories
41970
42575
  | tl.RawUpdateStoryID
@@ -41984,6 +42589,10 @@ export class RpcError extends Error {
41984
42589
  | tl.RawUpdateDeleteQuickReply
41985
42590
  | tl.RawUpdateQuickReplyMessage
41986
42591
  | tl.RawUpdateDeleteQuickReplyMessages
42592
+ | tl.RawUpdateBotBusinessConnect
42593
+ | tl.RawUpdateBotNewBusinessMessage
42594
+ | tl.RawUpdateBotEditBusinessMessage
42595
+ | tl.RawUpdateBotDeleteBusinessMessage
41987
42596
  | tl.updates.RawState
41988
42597
  | tl.updates.RawDifferenceEmpty
41989
42598
  | tl.updates.RawDifference
@@ -42064,6 +42673,7 @@ export class RpcError extends Error {
42064
42673
  | tl.RawInputPrivacyKeyAddedByPhone
42065
42674
  | tl.RawInputPrivacyKeyVoiceMessages
42066
42675
  | tl.RawInputPrivacyKeyAbout
42676
+ | tl.RawInputPrivacyKeyBirthday
42067
42677
  | tl.RawPrivacyKeyStatusTimestamp
42068
42678
  | tl.RawPrivacyKeyChatInvite
42069
42679
  | tl.RawPrivacyKeyPhoneCall
@@ -42074,6 +42684,7 @@ export class RpcError extends Error {
42074
42684
  | tl.RawPrivacyKeyAddedByPhone
42075
42685
  | tl.RawPrivacyKeyVoiceMessages
42076
42686
  | tl.RawPrivacyKeyAbout
42687
+ | tl.RawPrivacyKeyBirthday
42077
42688
  | tl.RawInputPrivacyValueAllowContacts
42078
42689
  | tl.RawInputPrivacyValueAllowAll
42079
42690
  | tl.RawInputPrivacyValueAllowUsers
@@ -42083,6 +42694,7 @@ export class RpcError extends Error {
42083
42694
  | tl.RawInputPrivacyValueAllowChatParticipants
42084
42695
  | tl.RawInputPrivacyValueDisallowChatParticipants
42085
42696
  | tl.RawInputPrivacyValueAllowCloseFriends
42697
+ | tl.RawInputPrivacyValueAllowPremium
42086
42698
  | tl.RawPrivacyValueAllowContacts
42087
42699
  | tl.RawPrivacyValueAllowAll
42088
42700
  | tl.RawPrivacyValueAllowUsers
@@ -42092,6 +42704,7 @@ export class RpcError extends Error {
42092
42704
  | tl.RawPrivacyValueAllowChatParticipants
42093
42705
  | tl.RawPrivacyValueDisallowChatParticipants
42094
42706
  | tl.RawPrivacyValueAllowCloseFriends
42707
+ | tl.RawPrivacyValueAllowPremium
42095
42708
  | tl.account.RawPrivacyRules
42096
42709
  | tl.RawAccountDaysTTL
42097
42710
  | tl.RawDocumentAttributeImageSize
@@ -42156,6 +42769,7 @@ export class RpcError extends Error {
42156
42769
  | tl.RawKeyboardButtonWebView
42157
42770
  | tl.RawKeyboardButtonSimpleWebView
42158
42771
  | tl.RawKeyboardButtonRequestPeer
42772
+ | tl.RawInputKeyboardButtonRequestPeer
42159
42773
  | tl.RawKeyboardButtonRow
42160
42774
  | tl.RawReplyKeyboardHide
42161
42775
  | tl.RawReplyKeyboardForceReply
@@ -42873,12 +43487,54 @@ export class RpcError extends Error {
42873
43487
  | tl.RawConnectedBot
42874
43488
  | tl.account.RawConnectedBots
42875
43489
  | tl.messages.RawDialogFilters
43490
+ | tl.RawBirthday
43491
+ | tl.RawBotBusinessConnection
43492
+ | tl.RawInputBusinessIntro
43493
+ | tl.RawBusinessIntro
43494
+ | tl.messages.RawMyStickers
43495
+ | tl.RawInputCollectibleUsername
43496
+ | tl.RawInputCollectiblePhone
43497
+ | tl.fragment.RawCollectibleInfo
43498
+ | tl.RawInputBusinessBotRecipients
43499
+ | tl.RawBusinessBotRecipients
43500
+ | tl.RawContactBirthday
43501
+ | tl.contacts.RawContactBirthdays
43502
+ | tl.RawMissingInvitee
43503
+ | tl.messages.RawInvitedUsers
43504
+ | tl.RawInputBusinessChatLink
43505
+ | tl.RawBusinessChatLink
43506
+ | tl.account.RawBusinessChatLinks
43507
+ | tl.account.RawResolvedBusinessChatLinks
43508
+ | tl.RawRequestedPeerUser
43509
+ | tl.RawRequestedPeerChat
43510
+ | tl.RawRequestedPeerChannel
43511
+ | tl.RawSponsoredMessageReportOption
43512
+ | tl.channels.RawSponsoredMessageReportResultChooseOption
43513
+ | tl.channels.RawSponsoredMessageReportResultAdsHidden
43514
+ | tl.channels.RawSponsoredMessageReportResultReported
43515
+ | tl.stats.RawBroadcastRevenueStats
43516
+ | tl.stats.RawBroadcastRevenueWithdrawalUrl
43517
+ | tl.RawBroadcastRevenueTransactionProceeds
43518
+ | tl.RawBroadcastRevenueTransactionWithdrawal
43519
+ | tl.RawBroadcastRevenueTransactionRefund
43520
+ | tl.stats.RawBroadcastRevenueTransactions
43521
+ | tl.RawUpdateNewStoryReaction
43522
+ | tl.auth.RawSentCodeTypeSmsWord
43523
+ | tl.auth.RawSentCodeTypeSmsPhrase
43524
+ | tl.RawWebPageAttributeStickerSet
43525
+ | tl.RawEmojiGroupGreeting
43526
+ | tl.RawEmojiGroupPremium
43527
+ | tl.RawReactionNotificationsFromContacts
43528
+ | tl.RawReactionNotificationsFromAll
43529
+ | tl.RawReactionsNotifySettings
43530
+ | tl.RawBroadcastRevenueBalances
43531
+ | tl.RawUpdateGroupInvitePrivacyForbidden
42876
43532
  | tl.mtcute.RawDummyUpdate
42877
43533
  | tl.mtcute.RawDummyInputPeerMinUser
42878
43534
  | tl.mtcute.RawDummyInputPeerMinChannel
42879
- | tl.test.RawUseErrorRequest
42880
43535
  | tl.test.RawUseConfigSimpleRequest
42881
43536
  | tl.test.RawParseInputAppEventRequest
43537
+ | tl.RawInvokeWithBusinessConnectionPrefixRequest
42882
43538
  | tl.RawInvokeAfterMsgRequest
42883
43539
  | tl.RawInvokeAfterMsgsRequest
42884
43540
  | tl.RawInitConnectionRequest
@@ -42886,6 +43542,7 @@ export class RpcError extends Error {
42886
43542
  | tl.RawInvokeWithoutUpdatesRequest
42887
43543
  | tl.RawInvokeWithMessagesRangeRequest
42888
43544
  | tl.RawInvokeWithTakeoutRequest
43545
+ | tl.RawInvokeWithBusinessConnectionRequest
42889
43546
  | tl.auth.RawSendCodeRequest
42890
43547
  | tl.auth.RawSignUpRequest
42891
43548
  | tl.auth.RawSignInRequest
@@ -43006,6 +43663,17 @@ export class RpcError extends Error {
43006
43663
  | tl.account.RawUpdateBusinessAwayMessageRequest
43007
43664
  | tl.account.RawUpdateConnectedBotRequest
43008
43665
  | tl.account.RawGetConnectedBotsRequest
43666
+ | tl.account.RawGetBotBusinessConnectionRequest
43667
+ | tl.account.RawUpdateBusinessIntroRequest
43668
+ | tl.account.RawToggleConnectedBotPausedRequest
43669
+ | tl.account.RawDisablePeerConnectedBotRequest
43670
+ | tl.account.RawUpdateBirthdayRequest
43671
+ | tl.account.RawCreateBusinessChatLinkRequest
43672
+ | tl.account.RawEditBusinessChatLinkRequest
43673
+ | tl.account.RawDeleteBusinessChatLinkRequest
43674
+ | tl.account.RawGetBusinessChatLinksRequest
43675
+ | tl.account.RawResolveBusinessChatLinkRequest
43676
+ | tl.account.RawUpdatePersonalChannelRequest
43009
43677
  | tl.users.RawGetUsersRequest
43010
43678
  | tl.users.RawGetFullUserRequest
43011
43679
  | tl.users.RawSetSecureValueErrorsRequest
@@ -43035,6 +43703,7 @@ export class RpcError extends Error {
43035
43703
  | tl.contacts.RawImportContactTokenRequest
43036
43704
  | tl.contacts.RawEditCloseFriendsRequest
43037
43705
  | tl.contacts.RawSetBlockedRequest
43706
+ | tl.contacts.RawGetBirthdaysRequest
43038
43707
  | tl.messages.RawGetMessagesRequest
43039
43708
  | tl.messages.RawGetDialogsRequest
43040
43709
  | tl.messages.RawGetHistoryRequest
@@ -43242,6 +43911,7 @@ export class RpcError extends Error {
43242
43911
  | tl.messages.RawSendQuickReplyMessagesRequest
43243
43912
  | tl.messages.RawDeleteQuickReplyMessagesRequest
43244
43913
  | tl.messages.RawToggleDialogFilterTagsRequest
43914
+ | tl.messages.RawGetMyStickersRequest
43245
43915
  | tl.updates.RawGetStateRequest
43246
43916
  | tl.updates.RawGetDifferenceRequest
43247
43917
  | tl.updates.RawGetChannelDifferenceRequest
@@ -43345,6 +44015,8 @@ export class RpcError extends Error {
43345
44015
  | tl.channels.RawUpdateEmojiStatusRequest
43346
44016
  | tl.channels.RawSetBoostsToUnblockRestrictionsRequest
43347
44017
  | tl.channels.RawSetEmojiStickersRequest
44018
+ | tl.channels.RawReportSponsoredMessageRequest
44019
+ | tl.channels.RawRestrictSponsoredMessagesRequest
43348
44020
  | tl.bots.RawSendCustomRequestRequest
43349
44021
  | tl.bots.RawAnswerWebhookJSONQueryRequest
43350
44022
  | tl.bots.RawSetBotCommandsRequest
@@ -43387,6 +44059,7 @@ export class RpcError extends Error {
43387
44059
  | tl.stickers.RawChangeStickerRequest
43388
44060
  | tl.stickers.RawRenameStickerSetRequest
43389
44061
  | tl.stickers.RawDeleteStickerSetRequest
44062
+ | tl.stickers.RawReplaceStickerRequest
43390
44063
  | tl.phone.RawGetCallConfigRequest
43391
44064
  | tl.phone.RawRequestCallRequest
43392
44065
  | tl.phone.RawAcceptCallRequest
@@ -43431,6 +44104,9 @@ export class RpcError extends Error {
43431
44104
  | tl.stats.RawGetMessageStatsRequest
43432
44105
  | tl.stats.RawGetStoryStatsRequest
43433
44106
  | tl.stats.RawGetStoryPublicForwardsRequest
44107
+ | tl.stats.RawGetBroadcastRevenueStatsRequest
44108
+ | tl.stats.RawGetBroadcastRevenueWithdrawalUrlRequest
44109
+ | tl.stats.RawGetBroadcastRevenueTransactionsRequest
43434
44110
  | tl.chatlists.RawExportChatlistInviteRequest
43435
44111
  | tl.chatlists.RawDeleteExportedInviteRequest
43436
44112
  | tl.chatlists.RawEditExportedInviteRequest
@@ -43478,6 +44154,13 @@ export class RpcError extends Error {
43478
44154
  | tl.smsjobs.RawGetStatusRequest
43479
44155
  | tl.smsjobs.RawGetSmsJobRequest
43480
44156
  | tl.smsjobs.RawFinishJobRequest
44157
+ | tl.fragment.RawGetCollectibleInfoRequest
44158
+ | tl.auth.RawReportMissingCodeRequest
44159
+ | tl.account.RawToggleSponsoredMessagesRequest
44160
+ | tl.account.RawGetReactionsNotifySettingsRequest
44161
+ | tl.account.RawSetReactionsNotifySettingsRequest
44162
+ | tl.messages.RawGetEmojiStickerGroupsRequest
44163
+ | tl.stories.RawTogglePinnedToTopRequest
43481
44164
  }
43482
44165
 
43483
44166