@mtcute/core 0.29.7 → 0.30.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.
Files changed (90) hide show
  1. package/highlevel/client.d.cts +4 -6
  2. package/highlevel/client.d.ts +4 -6
  3. package/highlevel/methods/chats/join-chat.cjs +38 -16
  4. package/highlevel/methods/chats/join-chat.d.cts +20 -6
  5. package/highlevel/methods/chats/join-chat.d.ts +20 -6
  6. package/highlevel/methods/chats/join-chat.js +38 -16
  7. package/highlevel/methods/chats/save-draft.d.cts +4 -1
  8. package/highlevel/methods/chats/save-draft.d.ts +4 -1
  9. package/highlevel/methods.d.cts +2 -0
  10. package/highlevel/methods.d.ts +2 -0
  11. package/highlevel/storage/service/peers.cjs +1 -0
  12. package/highlevel/storage/service/peers.js +1 -0
  13. package/highlevel/types/files/utils.d.cts +1 -1
  14. package/highlevel/types/files/utils.d.ts +1 -1
  15. package/highlevel/types/messages/index.d.cts +1 -0
  16. package/highlevel/types/messages/index.d.ts +1 -0
  17. package/highlevel/types/messages/message.cjs +5 -0
  18. package/highlevel/types/messages/message.d.cts +3 -0
  19. package/highlevel/types/messages/message.d.ts +3 -0
  20. package/highlevel/types/messages/message.js +5 -0
  21. package/highlevel/types/messages/rich-message.cjs +50 -0
  22. package/highlevel/types/messages/rich-message.d.cts +18 -0
  23. package/highlevel/types/messages/rich-message.d.ts +18 -0
  24. package/highlevel/types/messages/rich-message.js +45 -0
  25. package/highlevel/types/peers/full-chat.cjs +6 -0
  26. package/highlevel/types/peers/full-chat.d.cts +2 -0
  27. package/highlevel/types/peers/full-chat.d.ts +2 -0
  28. package/highlevel/types/peers/full-chat.js +6 -0
  29. package/highlevel/types/peers/user.cjs +4 -0
  30. package/highlevel/types/peers/user.d.cts +2 -0
  31. package/highlevel/types/peers/user.d.ts +2 -0
  32. package/highlevel/types/peers/user.js +4 -0
  33. package/highlevel/types/updates/user-typing-update.cjs +2 -0
  34. package/highlevel/types/updates/user-typing-update.js +2 -0
  35. package/highlevel/updates/manager.cjs +191 -0
  36. package/highlevel/updates/manager.js +191 -0
  37. package/highlevel/utils/inspectable.cjs +1 -0
  38. package/highlevel/utils/inspectable.d.cts +1 -0
  39. package/highlevel/utils/inspectable.d.ts +1 -0
  40. package/highlevel/utils/inspectable.js +1 -0
  41. package/index.cjs +2 -0
  42. package/index.js +2 -0
  43. package/network/flood-control.cjs +149 -0
  44. package/network/flood-control.d.cts +79 -0
  45. package/network/flood-control.d.ts +79 -0
  46. package/network/flood-control.js +144 -0
  47. package/network/flood-control.test.d.cts +1 -0
  48. package/network/flood-control.test.d.ts +1 -0
  49. package/network/mtproto-session.cjs +1 -21
  50. package/network/mtproto-session.d.cts +1 -5
  51. package/network/mtproto-session.d.ts +1 -5
  52. package/network/mtproto-session.js +2 -22
  53. package/network/multi-session-connection.cjs +26 -16
  54. package/network/multi-session-connection.d.cts +1 -1
  55. package/network/multi-session-connection.d.ts +1 -1
  56. package/network/multi-session-connection.js +26 -16
  57. package/network/multi-session-connection.test.d.cts +1 -0
  58. package/network/multi-session-connection.test.d.ts +1 -0
  59. package/network/network-manager.cjs +3 -2
  60. package/network/network-manager.d.cts +12 -0
  61. package/network/network-manager.d.ts +12 -0
  62. package/network/network-manager.js +3 -2
  63. package/network/persistent-connection.cjs +25 -1
  64. package/network/persistent-connection.d.cts +5 -0
  65. package/network/persistent-connection.d.ts +5 -0
  66. package/network/persistent-connection.js +25 -1
  67. package/network/session-connection.cjs +5 -10
  68. package/network/session-connection.d.cts +0 -2
  69. package/network/session-connection.d.ts +0 -2
  70. package/network/session-connection.js +5 -10
  71. package/package.json +1 -1
  72. package/tl/api-schema.json +1 -1
  73. package/tl/binary/reader.cjs +176 -26
  74. package/tl/binary/reader.js +176 -26
  75. package/tl/binary/writer.cjs +439 -20
  76. package/tl/binary/writer.js +439 -20
  77. package/tl/compat/reader.cjs +23 -0
  78. package/tl/compat/reader.js +23 -0
  79. package/tl/index.d.cts +414 -14
  80. package/tl/index.d.ts +414 -14
  81. package/tl/inner-tl.cjs +20 -8
  82. package/tl/inner-tl.js +20 -8
  83. package/utils/binary/compat.cjs +79 -0
  84. package/utils/binary/compat.js +79 -0
  85. package/utils/index.d.cts +1 -0
  86. package/utils/index.d.ts +1 -0
  87. package/utils/long-utils.cjs +10 -0
  88. package/utils/long-utils.js +10 -0
  89. package/utils.cjs +7 -0
  90. package/utils.js +8 -1
package/tl/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { default as _Long } from 'long';
2
2
  export declare namespace tl {
3
- const LAYER = 225;
3
+ const LAYER = 227;
4
4
 
5
5
  type Long = _Long;
6
6
  type RawLong = Uint8Array;
@@ -1915,6 +1915,7 @@ export class RpcError extends Error {
1915
1915
  botForumCanManageTopics?: boolean;
1916
1916
  botCanManageBots?: boolean;
1917
1917
  botGuestchat?: boolean;
1918
+ botGuard?: boolean;
1918
1919
  /**
1919
1920
  * ID of the user, see
1920
1921
  * <a href="https://corefork.telegram.org/api/peers#peer-id">here
@@ -3297,6 +3298,7 @@ export class RpcError extends Error {
3297
3298
  * »</a> for more info.
3298
3299
  */
3299
3300
  mainTab?: tl.TypeProfileTab;
3301
+ guardBotId?: number;
3300
3302
  }
3301
3303
  /**
3302
3304
  * <a href="https://corefork.telegram.org/api/channel#basic-groups">Basic
@@ -3742,6 +3744,7 @@ export class RpcError extends Error {
3742
3744
  */
3743
3745
  scheduleRepeatPeriod?: number;
3744
3746
  summaryFromLanguage?: string;
3747
+ richMessage?: tl.TypeRichMessage;
3745
3748
  }
3746
3749
  /**
3747
3750
  * Indicates a service message
@@ -8987,6 +8990,7 @@ export class RpcError extends Error {
8987
8990
  * event sequence identifier
8988
8991
  */
8989
8992
  qts: number;
8993
+ queryId?: Long;
8990
8994
  }
8991
8995
  /**
8992
8996
  * New
@@ -15102,6 +15106,7 @@ export class RpcError extends Error {
15102
15106
  * full flow.
15103
15107
  */
15104
15108
  suggestedPost?: tl.TypeSuggestedPost;
15109
+ richMessage?: tl.TypeRichMessage;
15105
15110
  }
15106
15111
  /**
15107
15112
  * Stickerset with a single sticker as preview
@@ -15663,6 +15668,7 @@ export class RpcError extends Error {
15663
15668
  * ID of preview of the page the photo leads to when clicked
15664
15669
  */
15665
15670
  webpageId?: Long;
15671
+ spoiler?: boolean;
15666
15672
  }
15667
15673
  /**
15668
15674
  * Video
@@ -15677,6 +15683,7 @@ export class RpcError extends Error {
15677
15683
  * Whether the video is set to loop
15678
15684
  */
15679
15685
  loop?: boolean;
15686
+ spoiler?: boolean;
15680
15687
  /**
15681
15688
  * Video ID
15682
15689
  */
@@ -15858,10 +15865,13 @@ export class RpcError extends Error {
15858
15865
  */
15859
15866
  interface RawPageBlockOrderedList {
15860
15867
  _: 'pageBlockOrderedList';
15868
+ reversed?: boolean;
15861
15869
  /**
15862
15870
  * List items
15863
15871
  */
15864
15872
  items: tl.TypePageListOrderedItem[];
15873
+ start?: number;
15874
+ type?: string;
15865
15875
  }
15866
15876
  /**
15867
15877
  * A collapsible details block
@@ -18915,6 +18925,8 @@ export class RpcError extends Error {
18915
18925
  */
18916
18926
  interface RawPageListItemText {
18917
18927
  _: 'pageListItemText';
18928
+ checkbox?: boolean;
18929
+ checked?: boolean;
18918
18930
  /**
18919
18931
  * Text
18920
18932
  */
@@ -18925,6 +18937,8 @@ export class RpcError extends Error {
18925
18937
  */
18926
18938
  interface RawPageListItemBlocks {
18927
18939
  _: 'pageListItemBlocks';
18940
+ checkbox?: boolean;
18941
+ checked?: boolean;
18928
18942
  /**
18929
18943
  * Blocks
18930
18944
  */
@@ -18935,14 +18949,18 @@ export class RpcError extends Error {
18935
18949
  */
18936
18950
  interface RawPageListOrderedItemText {
18937
18951
  _: 'pageListOrderedItemText';
18952
+ checkbox?: boolean;
18953
+ checked?: boolean;
18938
18954
  /**
18939
18955
  * Number of element within ordered list
18940
18956
  */
18941
- num: string;
18957
+ num?: string;
18942
18958
  /**
18943
18959
  * Text
18944
18960
  */
18945
18961
  text: tl.TypeRichText;
18962
+ value?: number;
18963
+ type?: string;
18946
18964
  }
18947
18965
  /**
18948
18966
  * Ordered list of
@@ -18950,14 +18968,18 @@ export class RpcError extends Error {
18950
18968
  */
18951
18969
  interface RawPageListOrderedItemBlocks {
18952
18970
  _: 'pageListOrderedItemBlocks';
18971
+ checkbox?: boolean;
18972
+ checked?: boolean;
18953
18973
  /**
18954
18974
  * Number of element within ordered list
18955
18975
  */
18956
- num: string;
18976
+ num?: string;
18957
18977
  /**
18958
18978
  * Item contents
18959
18979
  */
18960
18980
  blocks: tl.TypePageBlock[];
18981
+ value?: number;
18982
+ type?: string;
18961
18983
  }
18962
18984
  /**
18963
18985
  * Related article
@@ -20782,6 +20804,7 @@ export class RpcError extends Error {
20782
20804
  * Whether this message is quoting a part of another message.
20783
20805
  */
20784
20806
  quote?: boolean;
20807
+ replyToEphemeral?: boolean;
20785
20808
  /**
20786
20809
  * ID of message to which this message is replying
20787
20810
  */
@@ -21944,6 +21967,7 @@ export class RpcError extends Error {
21944
21967
  * menu mini apps</a>).
21945
21968
  */
21946
21969
  queryId?: Long;
21970
+ sameOrigin?: boolean;
21947
21971
  /**
21948
21972
  * Webview URL to open
21949
21973
  */
@@ -25372,6 +25396,9 @@ export class RpcError extends Error {
25372
25396
  * Business bot rights.
25373
25397
  */
25374
25398
  rights: tl.TypeBusinessBotRights;
25399
+ device?: string;
25400
+ date?: number;
25401
+ location?: string;
25375
25402
  }
25376
25403
  /**
25377
25404
  * <a href="https://corefork.telegram.org/api/profile#birthday">Birthday</a>
@@ -28601,6 +28628,212 @@ export class RpcError extends Error {
28601
28628
  from: tl.TypeTextWithEntities;
28602
28629
  to: tl.TypeTextWithEntities;
28603
28630
  }
28631
+ interface RawUpdateJoinChatWebViewDecision {
28632
+ _: 'updateJoinChatWebViewDecision';
28633
+ peer: tl.TypePeer;
28634
+ queryId: Long;
28635
+ result: tl.TypeJoinChatBotResult;
28636
+ }
28637
+ interface RawUpdateNewBotConnection {
28638
+ _: 'updateNewBotConnection';
28639
+ confirmed?: boolean;
28640
+ botId: number;
28641
+ date?: number;
28642
+ device?: string;
28643
+ location?: string;
28644
+ }
28645
+ interface RawUpdateWebBrowserSettings {
28646
+ _: 'updateWebBrowserSettings';
28647
+ openExternalBrowser?: boolean;
28648
+ displayCloseButton?: boolean;
28649
+ }
28650
+ interface RawUpdateWebBrowserException {
28651
+ _: 'updateWebBrowserException';
28652
+ delete?: boolean;
28653
+ openExternalBrowser?: boolean;
28654
+ exception: tl.TypeWebDomainException;
28655
+ }
28656
+ interface RawInputSendMessageRichMessageDraftAction {
28657
+ _: 'inputSendMessageRichMessageDraftAction';
28658
+ randomId: Long;
28659
+ richMessage: tl.TypeInputRichMessage;
28660
+ }
28661
+ interface RawSendMessageRichMessageDraftAction {
28662
+ _: 'sendMessageRichMessageDraftAction';
28663
+ randomId: Long;
28664
+ richMessage: tl.TypeRichMessage;
28665
+ }
28666
+ interface RawInputBotInlineMessageRichMessage {
28667
+ _: 'inputBotInlineMessageRichMessage';
28668
+ replyMarkup?: tl.TypeReplyMarkup;
28669
+ richMessage: tl.TypeInputRichMessage;
28670
+ }
28671
+ interface RawBotInlineMessageRichMessage {
28672
+ _: 'botInlineMessageRichMessage';
28673
+ replyMarkup?: tl.TypeReplyMarkup;
28674
+ richMessage: tl.TypeRichMessage;
28675
+ }
28676
+ interface RawTextMath {
28677
+ _: 'textMath';
28678
+ source: string;
28679
+ }
28680
+ interface RawTextCustomEmoji {
28681
+ _: 'textCustomEmoji';
28682
+ documentId: Long;
28683
+ alt: string;
28684
+ }
28685
+ interface RawTextSpoiler {
28686
+ _: 'textSpoiler';
28687
+ text: tl.TypeRichText;
28688
+ }
28689
+ interface RawTextMention {
28690
+ _: 'textMention';
28691
+ text: tl.TypeRichText;
28692
+ }
28693
+ interface RawTextHashtag {
28694
+ _: 'textHashtag';
28695
+ text: tl.TypeRichText;
28696
+ }
28697
+ interface RawTextBotCommand {
28698
+ _: 'textBotCommand';
28699
+ text: tl.TypeRichText;
28700
+ }
28701
+ interface RawTextCashtag {
28702
+ _: 'textCashtag';
28703
+ text: tl.TypeRichText;
28704
+ }
28705
+ interface RawTextAutoUrl {
28706
+ _: 'textAutoUrl';
28707
+ text: tl.TypeRichText;
28708
+ }
28709
+ interface RawTextAutoEmail {
28710
+ _: 'textAutoEmail';
28711
+ text: tl.TypeRichText;
28712
+ }
28713
+ interface RawTextAutoPhone {
28714
+ _: 'textAutoPhone';
28715
+ text: tl.TypeRichText;
28716
+ }
28717
+ interface RawTextBankCard {
28718
+ _: 'textBankCard';
28719
+ text: tl.TypeRichText;
28720
+ }
28721
+ interface RawTextMentionName {
28722
+ _: 'textMentionName';
28723
+ text: tl.TypeRichText;
28724
+ userId: number;
28725
+ }
28726
+ interface RawTextDate {
28727
+ _: 'textDate';
28728
+ relative?: boolean;
28729
+ shortTime?: boolean;
28730
+ longTime?: boolean;
28731
+ shortDate?: boolean;
28732
+ longDate?: boolean;
28733
+ dayOfWeek?: boolean;
28734
+ text: tl.TypeRichText;
28735
+ date: number;
28736
+ }
28737
+ interface RawPageBlockHeading1 {
28738
+ _: 'pageBlockHeading1';
28739
+ text: tl.TypeRichText;
28740
+ }
28741
+ interface RawPageBlockHeading2 {
28742
+ _: 'pageBlockHeading2';
28743
+ text: tl.TypeRichText;
28744
+ }
28745
+ interface RawPageBlockHeading3 {
28746
+ _: 'pageBlockHeading3';
28747
+ text: tl.TypeRichText;
28748
+ }
28749
+ interface RawPageBlockHeading4 {
28750
+ _: 'pageBlockHeading4';
28751
+ text: tl.TypeRichText;
28752
+ }
28753
+ interface RawPageBlockHeading5 {
28754
+ _: 'pageBlockHeading5';
28755
+ text: tl.TypeRichText;
28756
+ }
28757
+ interface RawPageBlockHeading6 {
28758
+ _: 'pageBlockHeading6';
28759
+ text: tl.TypeRichText;
28760
+ }
28761
+ interface RawPageBlockMath {
28762
+ _: 'pageBlockMath';
28763
+ source: string;
28764
+ }
28765
+ interface RawPageBlockThinking {
28766
+ _: 'pageBlockThinking';
28767
+ text: tl.TypeRichText;
28768
+ }
28769
+ interface RawInputPageBlockMap {
28770
+ _: 'inputPageBlockMap';
28771
+ geo: tl.TypeInputGeoPoint;
28772
+ zoom: number;
28773
+ w: number;
28774
+ h: number;
28775
+ caption: tl.TypePageCaption;
28776
+ }
28777
+ interface RawPageBlockBlockquoteBlocks {
28778
+ _: 'pageBlockBlockquoteBlocks';
28779
+ blocks: tl.TypePageBlock[];
28780
+ caption: tl.TypeRichText;
28781
+ }
28782
+ interface RawJoinChatBotResultApproved {
28783
+ _: 'joinChatBotResultApproved';
28784
+ }
28785
+ interface RawJoinChatBotResultDeclined {
28786
+ _: 'joinChatBotResultDeclined';
28787
+ }
28788
+ interface RawJoinChatBotResultQueued {
28789
+ _: 'joinChatBotResultQueued';
28790
+ }
28791
+ interface RawJoinChatBotResultWebView {
28792
+ _: 'joinChatBotResultWebView';
28793
+ url: string;
28794
+ }
28795
+ interface RawWebDomainException {
28796
+ _: 'webDomainException';
28797
+ domain: string;
28798
+ url: string;
28799
+ title: string;
28800
+ favicon?: Long;
28801
+ }
28802
+ interface RawRichMessage {
28803
+ _: 'richMessage';
28804
+ rtl?: boolean;
28805
+ part?: boolean;
28806
+ blocks: tl.TypePageBlock[];
28807
+ photos: tl.TypePhoto[];
28808
+ documents: tl.TypeDocument[];
28809
+ }
28810
+ interface RawInputRichMessage {
28811
+ _: 'inputRichMessage';
28812
+ rtl?: boolean;
28813
+ noautolink?: boolean;
28814
+ blocks: tl.TypePageBlock[];
28815
+ photos?: tl.TypeInputPhoto[];
28816
+ documents?: tl.TypeInputDocument[];
28817
+ users?: tl.TypeInputUser[];
28818
+ }
28819
+ interface RawInputRichMessageHTML {
28820
+ _: 'inputRichMessageHTML';
28821
+ rtl?: boolean;
28822
+ noautolink?: boolean;
28823
+ html: string;
28824
+ photos?: tl.TypeInputPhoto[];
28825
+ documents?: tl.TypeInputDocument[];
28826
+ users?: tl.TypeInputUser[];
28827
+ }
28828
+ interface RawInputRichMessageMarkdown {
28829
+ _: 'inputRichMessageMarkdown';
28830
+ rtl?: boolean;
28831
+ noautolink?: boolean;
28832
+ markdown: string;
28833
+ photos?: tl.TypeInputPhoto[];
28834
+ documents?: tl.TypeInputDocument[];
28835
+ users?: tl.TypeInputUser[];
28836
+ }
28604
28837
  /**
28605
28838
  * A
28606
28839
  * <a href="https://corefork.telegram.org/api/forum#forum-topics">forum
@@ -29076,7 +29309,7 @@ export class RpcError extends Error {
29076
29309
  /**
29077
29310
  * Object contains info on events occurred.
29078
29311
  */
29079
- 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.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.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateBotGuestChatQuery | tl.RawUpdateAiComposeTones | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
29312
+ 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.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.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateBotGuestChatQuery | tl.RawUpdateAiComposeTones | tl.RawUpdateJoinChatWebViewDecision | tl.RawUpdateNewBotConnection | tl.RawUpdateWebBrowserSettings | tl.RawUpdateWebBrowserException | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
29080
29313
  function isAnyUpdate(o: object): o is TypeUpdate
29081
29314
  /**
29082
29315
  * Object which is perceived by the client without a call on
@@ -29145,7 +29378,7 @@ export class RpcError extends Error {
29145
29378
  * about their chat partner's actions: typing or sending
29146
29379
  * attachments of all kinds.
29147
29380
  */
29148
- type TypeSendMessageAction = tl.RawSendMessageTypingAction | tl.RawSendMessageCancelAction | tl.RawSendMessageRecordVideoAction | tl.RawSendMessageUploadVideoAction | tl.RawSendMessageRecordAudioAction | tl.RawSendMessageUploadAudioAction | tl.RawSendMessageUploadPhotoAction | tl.RawSendMessageUploadDocumentAction | tl.RawSendMessageGeoLocationAction | tl.RawSendMessageChooseContactAction | tl.RawSendMessageGamePlayAction | tl.RawSendMessageRecordRoundAction | tl.RawSendMessageUploadRoundAction | tl.RawSpeakingInGroupCallAction | tl.RawSendMessageHistoryImportAction | tl.RawSendMessageChooseStickerAction | tl.RawSendMessageEmojiInteraction | tl.RawSendMessageEmojiInteractionSeen | tl.RawSendMessageTextDraftAction
29381
+ type TypeSendMessageAction = tl.RawSendMessageTypingAction | tl.RawSendMessageCancelAction | tl.RawSendMessageRecordVideoAction | tl.RawSendMessageUploadVideoAction | tl.RawSendMessageRecordAudioAction | tl.RawSendMessageUploadAudioAction | tl.RawSendMessageUploadPhotoAction | tl.RawSendMessageUploadDocumentAction | tl.RawSendMessageGeoLocationAction | tl.RawSendMessageChooseContactAction | tl.RawSendMessageGamePlayAction | tl.RawSendMessageRecordRoundAction | tl.RawSendMessageUploadRoundAction | tl.RawSpeakingInGroupCallAction | tl.RawSendMessageHistoryImportAction | tl.RawSendMessageChooseStickerAction | tl.RawSendMessageEmojiInteraction | tl.RawSendMessageEmojiInteractionSeen | tl.RawSendMessageTextDraftAction | tl.RawInputSendMessageRichMessageDraftAction | tl.RawSendMessageRichMessageDraftAction
29149
29382
  function isAnySendMessageAction(o: object): o is TypeSendMessageAction
29150
29383
  /**
29151
29384
  * Privacy <strong>keys</strong> together with
@@ -29317,7 +29550,7 @@ export class RpcError extends Error {
29317
29550
  * Represents a sent inline message from the perspective of a
29318
29551
  * bot
29319
29552
  */
29320
- type TypeInputBotInlineMessage = tl.RawInputBotInlineMessageMediaAuto | tl.RawInputBotInlineMessageText | tl.RawInputBotInlineMessageMediaGeo | tl.RawInputBotInlineMessageMediaVenue | tl.RawInputBotInlineMessageMediaContact | tl.RawInputBotInlineMessageGame | tl.RawInputBotInlineMessageMediaInvoice | tl.RawInputBotInlineMessageMediaWebPage
29553
+ type TypeInputBotInlineMessage = tl.RawInputBotInlineMessageMediaAuto | tl.RawInputBotInlineMessageText | tl.RawInputBotInlineMessageMediaGeo | tl.RawInputBotInlineMessageMediaVenue | tl.RawInputBotInlineMessageMediaContact | tl.RawInputBotInlineMessageGame | tl.RawInputBotInlineMessageMediaInvoice | tl.RawInputBotInlineMessageMediaWebPage | tl.RawInputBotInlineMessageRichMessage
29321
29554
  function isAnyInputBotInlineMessage(o: object): o is TypeInputBotInlineMessage
29322
29555
  /**
29323
29556
  * Inline bot result
@@ -29327,7 +29560,7 @@ export class RpcError extends Error {
29327
29560
  /**
29328
29561
  * Inline message
29329
29562
  */
29330
- type TypeBotInlineMessage = tl.RawBotInlineMessageMediaAuto | tl.RawBotInlineMessageText | tl.RawBotInlineMessageMediaGeo | tl.RawBotInlineMessageMediaVenue | tl.RawBotInlineMessageMediaContact | tl.RawBotInlineMessageMediaInvoice | tl.RawBotInlineMessageMediaWebPage
29563
+ type TypeBotInlineMessage = tl.RawBotInlineMessageMediaAuto | tl.RawBotInlineMessageText | tl.RawBotInlineMessageMediaGeo | tl.RawBotInlineMessageMediaVenue | tl.RawBotInlineMessageMediaContact | tl.RawBotInlineMessageMediaInvoice | tl.RawBotInlineMessageMediaWebPage | tl.RawBotInlineMessageRichMessage
29331
29564
  function isAnyBotInlineMessage(o: object): o is TypeBotInlineMessage
29332
29565
  /**
29333
29566
  * Results of an inline query
@@ -29410,14 +29643,14 @@ export class RpcError extends Error {
29410
29643
  /**
29411
29644
  * Rich text
29412
29645
  */
29413
- type TypeRichText = tl.RawTextEmpty | tl.RawTextPlain | tl.RawTextBold | tl.RawTextItalic | tl.RawTextUnderline | tl.RawTextStrike | tl.RawTextFixed | tl.RawTextUrl | tl.RawTextEmail | tl.RawTextConcat | tl.RawTextSubscript | tl.RawTextSuperscript | tl.RawTextMarked | tl.RawTextPhone | tl.RawTextImage | tl.RawTextAnchor
29646
+ type TypeRichText = tl.RawTextEmpty | tl.RawTextPlain | tl.RawTextBold | tl.RawTextItalic | tl.RawTextUnderline | tl.RawTextStrike | tl.RawTextFixed | tl.RawTextUrl | tl.RawTextEmail | tl.RawTextConcat | tl.RawTextSubscript | tl.RawTextSuperscript | tl.RawTextMarked | tl.RawTextPhone | tl.RawTextImage | tl.RawTextAnchor | tl.RawTextMath | tl.RawTextCustomEmoji | tl.RawTextSpoiler | tl.RawTextMention | tl.RawTextHashtag | tl.RawTextBotCommand | tl.RawTextCashtag | tl.RawTextAutoUrl | tl.RawTextAutoEmail | tl.RawTextAutoPhone | tl.RawTextBankCard | tl.RawTextMentionName | tl.RawTextDate
29414
29647
  function isAnyRichText(o: object): o is TypeRichText
29415
29648
  /**
29416
29649
  * Represents an
29417
29650
  * <a href="https://instantview.telegram.org/">instant view
29418
29651
  * page element</a>
29419
29652
  */
29420
- type TypePageBlock = tl.RawPageBlockUnsupported | tl.RawPageBlockTitle | tl.RawPageBlockSubtitle | tl.RawPageBlockAuthorDate | tl.RawPageBlockHeader | tl.RawPageBlockSubheader | tl.RawPageBlockParagraph | tl.RawPageBlockPreformatted | tl.RawPageBlockFooter | tl.RawPageBlockDivider | tl.RawPageBlockAnchor | tl.RawPageBlockList | tl.RawPageBlockBlockquote | tl.RawPageBlockPullquote | tl.RawPageBlockPhoto | tl.RawPageBlockVideo | tl.RawPageBlockCover | tl.RawPageBlockEmbed | tl.RawPageBlockEmbedPost | tl.RawPageBlockCollage | tl.RawPageBlockSlideshow | tl.RawPageBlockChannel | tl.RawPageBlockAudio | tl.RawPageBlockKicker | tl.RawPageBlockTable | tl.RawPageBlockOrderedList | tl.RawPageBlockDetails | tl.RawPageBlockRelatedArticles | tl.RawPageBlockMap
29653
+ type TypePageBlock = tl.RawPageBlockUnsupported | tl.RawPageBlockTitle | tl.RawPageBlockSubtitle | tl.RawPageBlockAuthorDate | tl.RawPageBlockHeader | tl.RawPageBlockSubheader | tl.RawPageBlockParagraph | tl.RawPageBlockPreformatted | tl.RawPageBlockFooter | tl.RawPageBlockDivider | tl.RawPageBlockAnchor | tl.RawPageBlockList | tl.RawPageBlockBlockquote | tl.RawPageBlockPullquote | tl.RawPageBlockPhoto | tl.RawPageBlockVideo | tl.RawPageBlockCover | tl.RawPageBlockEmbed | tl.RawPageBlockEmbedPost | tl.RawPageBlockCollage | tl.RawPageBlockSlideshow | tl.RawPageBlockChannel | tl.RawPageBlockAudio | tl.RawPageBlockKicker | tl.RawPageBlockTable | tl.RawPageBlockOrderedList | tl.RawPageBlockDetails | tl.RawPageBlockRelatedArticles | tl.RawPageBlockMap | tl.RawPageBlockHeading1 | tl.RawPageBlockHeading2 | tl.RawPageBlockHeading3 | tl.RawPageBlockHeading4 | tl.RawPageBlockHeading5 | tl.RawPageBlockHeading6 | tl.RawPageBlockMath | tl.RawPageBlockThinking | tl.RawInputPageBlockMap | tl.RawPageBlockBlockquoteBlocks
29421
29654
  function isAnyPageBlock(o: object): o is TypePageBlock
29422
29655
  /**
29423
29656
  * Why was the phone call discarded?
@@ -31085,6 +31318,14 @@ export class RpcError extends Error {
31085
31318
  function isAnyAiComposeTone(o: object): o is TypeAiComposeTone
31086
31319
  type TypeAiComposeToneExample = tl.RawAiComposeToneExample
31087
31320
  function isAnyAiComposeToneExample(o: object): o is TypeAiComposeToneExample
31321
+ type TypeJoinChatBotResult = tl.RawJoinChatBotResultApproved | tl.RawJoinChatBotResultDeclined | tl.RawJoinChatBotResultQueued | tl.RawJoinChatBotResultWebView
31322
+ function isAnyJoinChatBotResult(o: object): o is TypeJoinChatBotResult
31323
+ type TypeWebDomainException = tl.RawWebDomainException
31324
+ function isAnyWebDomainException(o: object): o is TypeWebDomainException
31325
+ type TypeRichMessage = tl.RawRichMessage
31326
+ function isAnyRichMessage(o: object): o is TypeRichMessage
31327
+ type TypeInputRichMessage = tl.RawInputRichMessage | tl.RawInputRichMessageHTML | tl.RawInputRichMessageMarkdown
31328
+ function isAnyInputRichMessage(o: object): o is TypeInputRichMessage
31088
31329
 
31089
31330
  namespace storage {
31090
31331
  /**
@@ -32647,6 +32888,8 @@ export class RpcError extends Error {
32647
32888
  */
32648
32889
  interface RawSearchRequest {
32649
32890
  _: 'contacts.search';
32891
+ broadcasts?: boolean;
32892
+ bots?: boolean;
32650
32893
  /**
32651
32894
  * Target substring
32652
32895
  */
@@ -34812,6 +35055,16 @@ export class RpcError extends Error {
34812
35055
  */
34813
35056
  diffText?: tl.TypeTextWithEntities;
34814
35057
  }
35058
+ interface RawChatInviteJoinResultOk {
35059
+ _: 'messages.chatInviteJoinResultOk';
35060
+ updates: tl.TypeUpdates;
35061
+ }
35062
+ interface RawChatInviteJoinResultWebView {
35063
+ _: 'messages.chatInviteJoinResultWebView';
35064
+ botId: number;
35065
+ webview: tl.TypeWebViewResult;
35066
+ users: tl.TypeUser[];
35067
+ }
34815
35068
  /**
34816
35069
  * Returns the list of messages by their IDs.
34817
35070
  *
@@ -35229,6 +35482,7 @@ export class RpcError extends Error {
35229
35482
  * full flow.
35230
35483
  */
35231
35484
  suggestedPost?: tl.TypeSuggestedPost;
35485
+ richMessage?: tl.TypeInputRichMessage;
35232
35486
  }
35233
35487
  /**
35234
35488
  * Send a media
@@ -36010,7 +36264,8 @@ export class RpcError extends Error {
36010
36264
  * Import a chat invite and join a private
36011
36265
  * chat/supergroup/channel
36012
36266
  *
36013
- * RPC method returns {@link tl.TypeUpdates}
36267
+ * RPC method returns
36268
+ * {@link tl.messages.TypeChatInviteJoinResult}
36014
36269
  */
36015
36270
  interface RawImportChatInviteRequest {
36016
36271
  _: 'messages.importChatInvite';
@@ -36524,6 +36779,7 @@ export class RpcError extends Error {
36524
36779
  * reply shortcut message, instead »</a>.
36525
36780
  */
36526
36781
  quickReplyShortcutId?: number;
36782
+ richMessage?: tl.TypeInputRichMessage;
36527
36783
  }
36528
36784
  /**
36529
36785
  * Edit an inline bot message
@@ -36562,6 +36818,7 @@ export class RpcError extends Error {
36562
36818
  * entities for styled text</a>
36563
36819
  */
36564
36820
  entities?: tl.TypeMessageEntity[];
36821
+ richMessage?: tl.TypeInputRichMessage;
36565
36822
  }
36566
36823
  /**
36567
36824
  * Press an inline callback button and get a callback answer
@@ -36689,6 +36946,7 @@ export class RpcError extends Error {
36689
36946
  * full flow.
36690
36947
  */
36691
36948
  suggestedPost?: tl.TypeSuggestedPost;
36949
+ richMessage?: tl.TypeInputRichMessage;
36692
36950
  }
36693
36951
  /**
36694
36952
  * Return all message
@@ -41256,6 +41514,14 @@ export class RpcError extends Error {
41256
41514
  minId: number;
41257
41515
  hash: Long;
41258
41516
  }
41517
+ /**
41518
+ * RPC method returns {@link tl.messages.TypeMessages}
41519
+ */
41520
+ interface RawGetRichMessageRequest {
41521
+ _: 'messages.getRichMessage';
41522
+ peer: tl.TypeInputPeer;
41523
+ id: number;
41524
+ }
41259
41525
  interface RpcCallReturn {
41260
41526
  'messages.getMessages': tl.messages.TypeMessages
41261
41527
  'messages.getDialogs': tl.messages.TypeDialogs
@@ -41296,7 +41562,7 @@ export class RpcError extends Error {
41296
41562
  'messages.getWebPagePreview': tl.messages.TypeWebPagePreview
41297
41563
  'messages.exportChatInvite': tl.TypeExportedChatInvite
41298
41564
  'messages.checkChatInvite': tl.TypeChatInvite
41299
- 'messages.importChatInvite': tl.TypeUpdates
41565
+ 'messages.importChatInvite': tl.messages.TypeChatInviteJoinResult
41300
41566
  'messages.getStickerSet': tl.messages.TypeStickerSet
41301
41567
  'messages.installStickerSet': tl.messages.TypeStickerSetInstallResult
41302
41568
  'messages.uninstallStickerSet': boolean
@@ -41512,6 +41778,7 @@ export class RpcError extends Error {
41512
41778
  'messages.deleteParticipantReactions': boolean
41513
41779
  'messages.deleteParticipantReaction': tl.TypeUpdates
41514
41780
  'messages.getPersonalChannelHistory': tl.messages.TypeMessages
41781
+ 'messages.getRichMessage': tl.messages.TypeMessages
41515
41782
  }
41516
41783
  /**
41517
41784
  * Object contains a list of chats with messages and auxiliary
@@ -41871,6 +42138,8 @@ export class RpcError extends Error {
41871
42138
  */
41872
42139
  type TypeComposedMessageWithAI = tl.messages.RawComposedMessageWithAI
41873
42140
  function isAnyComposedMessageWithAI(o: object): o is TypeComposedMessageWithAI
42141
+ type TypeChatInviteJoinResult = tl.messages.RawChatInviteJoinResultOk | tl.messages.RawChatInviteJoinResultWebView
42142
+ function isAnyChatInviteJoinResult(o: object): o is TypeChatInviteJoinResult
41874
42143
  }
41875
42144
 
41876
42145
  namespace updates {
@@ -44460,6 +44729,17 @@ export class RpcError extends Error {
44460
44729
  */
44461
44730
  options: tl.TypeDataJSON;
44462
44731
  }
44732
+ interface RawWebBrowserSettingsNotModified {
44733
+ _: 'account.webBrowserSettingsNotModified';
44734
+ }
44735
+ interface RawWebBrowserSettings {
44736
+ _: 'account.webBrowserSettings';
44737
+ openExternalBrowser?: boolean;
44738
+ displayCloseButton?: boolean;
44739
+ externalExceptions: tl.TypeWebDomainException[];
44740
+ inappExceptions: tl.TypeWebDomainException[];
44741
+ hash: Long;
44742
+ }
44463
44743
  /**
44464
44744
  * Register device to receive
44465
44745
  * <a href="https://corefork.telegram.org/api/push-updates">PUSH
@@ -46643,6 +46923,43 @@ export class RpcError extends Error {
46643
46923
  */
46644
46924
  id: string;
46645
46925
  }
46926
+ /**
46927
+ * RPC method returns boolean
46928
+ */
46929
+ interface RawConfirmBotConnectionRequest {
46930
+ _: 'account.confirmBotConnection';
46931
+ botId: tl.TypeInputUser;
46932
+ }
46933
+ /**
46934
+ * RPC method returns {@link tl.account.TypeWebBrowserSettings}
46935
+ */
46936
+ interface RawGetWebBrowserSettingsRequest {
46937
+ _: 'account.getWebBrowserSettings';
46938
+ hash: Long;
46939
+ }
46940
+ /**
46941
+ * RPC method returns {@link tl.account.TypeWebBrowserSettings}
46942
+ */
46943
+ interface RawUpdateWebBrowserSettingsRequest {
46944
+ _: 'account.updateWebBrowserSettings';
46945
+ openExternalBrowser?: boolean;
46946
+ displayCloseButton?: boolean;
46947
+ }
46948
+ /**
46949
+ * RPC method returns {@link tl.TypeUpdates}
46950
+ */
46951
+ interface RawToggleWebBrowserSettingsExceptionRequest {
46952
+ _: 'account.toggleWebBrowserSettingsException';
46953
+ delete?: boolean;
46954
+ openExternalBrowser?: boolean;
46955
+ url: string;
46956
+ }
46957
+ /**
46958
+ * RPC method returns {@link tl.account.TypeWebBrowserSettings}
46959
+ */
46960
+ interface RawDeleteWebBrowserSettingsExceptionsRequest {
46961
+ _: 'account.deleteWebBrowserSettingsExceptions';
46962
+ }
46646
46963
  interface RpcCallReturn {
46647
46964
  'account.registerDevice': boolean
46648
46965
  'account.unregisterDevice': boolean
@@ -46767,6 +47084,11 @@ export class RpcError extends Error {
46767
47084
  'account.registerPasskey': tl.TypePasskey
46768
47085
  'account.getPasskeys': tl.account.TypePasskeys
46769
47086
  'account.deletePasskey': boolean
47087
+ 'account.confirmBotConnection': boolean
47088
+ 'account.getWebBrowserSettings': tl.account.TypeWebBrowserSettings
47089
+ 'account.updateWebBrowserSettings': tl.account.TypeWebBrowserSettings
47090
+ 'account.toggleWebBrowserSettingsException': tl.TypeUpdates
47091
+ 'account.deleteWebBrowserSettingsExceptions': tl.account.TypeWebBrowserSettings
46770
47092
  }
46771
47093
  /**
46772
47094
  * Privacy rules
@@ -46934,6 +47256,8 @@ export class RpcError extends Error {
46934
47256
  */
46935
47257
  type TypePasskeyRegistrationOptions = tl.account.RawPasskeyRegistrationOptions
46936
47258
  function isAnyPasskeyRegistrationOptions(o: object): o is TypePasskeyRegistrationOptions
47259
+ type TypeWebBrowserSettings = tl.account.RawWebBrowserSettingsNotModified | tl.account.RawWebBrowserSettings
47260
+ function isAnyWebBrowserSettings(o: object): o is TypeWebBrowserSettings
46937
47261
  }
46938
47262
 
46939
47263
  namespace channels {
@@ -47368,7 +47692,8 @@ export class RpcError extends Error {
47368
47692
  /**
47369
47693
  * Join a channel/supergroup
47370
47694
  *
47371
- * RPC method returns {@link tl.TypeUpdates}
47695
+ * RPC method returns
47696
+ * {@link tl.messages.TypeChatInviteJoinResult}
47372
47697
  */
47373
47698
  interface RawJoinChannelRequest {
47374
47699
  _: 'channels.joinChannel';
@@ -47835,6 +48160,7 @@ export class RpcError extends Error {
47835
48160
  */
47836
48161
  interface RawToggleJoinRequestRequest {
47837
48162
  _: 'channels.toggleJoinRequest';
48163
+ applyToInvites?: boolean;
47838
48164
  /**
47839
48165
  * Group
47840
48166
  */
@@ -47843,6 +48169,7 @@ export class RpcError extends Error {
47843
48169
  * Toggle
47844
48170
  */
47845
48171
  enabled: boolean;
48172
+ guardBot?: tl.TypeInputUser;
47846
48173
  }
47847
48174
  /**
47848
48175
  * Reorder active usernames
@@ -48584,7 +48911,7 @@ export class RpcError extends Error {
48584
48911
  'channels.editPhoto': tl.TypeUpdates
48585
48912
  'channels.checkUsername': boolean
48586
48913
  'channels.updateUsername': boolean
48587
- 'channels.joinChannel': tl.TypeUpdates
48914
+ 'channels.joinChannel': tl.messages.TypeChatInviteJoinResult
48588
48915
  'channels.leaveChannel': tl.TypeUpdates
48589
48916
  'channels.inviteToChannel': tl.messages.TypeInvitedUsers
48590
48917
  'channels.deleteChannel': tl.TypeUpdates
@@ -54668,6 +54995,14 @@ export class RpcError extends Error {
54668
54995
  bot: tl.TypeInputUser;
54669
54996
  addUsers?: tl.TypeInputUser[];
54670
54997
  }
54998
+ /**
54999
+ * RPC method returns boolean
55000
+ */
55001
+ interface RawSetJoinChatResultsRequest {
55002
+ _: 'bots.setJoinChatResults';
55003
+ queryId: Long;
55004
+ result: tl.TypeJoinChatBotResult;
55005
+ }
54671
55006
  interface RpcCallReturn {
54672
55007
  'bots.sendCustomRequest': tl.TypeDataJSON
54673
55008
  'bots.answerWebhookJSONQuery': boolean
@@ -54706,6 +55041,7 @@ export class RpcError extends Error {
54706
55041
  'bots.getRequestedWebViewButton': tl.TypeKeyboardButton
54707
55042
  'bots.getAccessSettings': tl.bots.TypeAccessSettings
54708
55043
  'bots.editAccessSettings': boolean
55044
+ 'bots.setJoinChatResults': boolean
54709
55045
  }
54710
55046
  /**
54711
55047
  * Localized name, about text and description of a bot.
@@ -56515,7 +56851,7 @@ export class RpcError extends Error {
56515
56851
  /**
56516
56852
  * Object contains info on events occurred.
56517
56853
  */
56518
- 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.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.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateBotGuestChatQuery | tl.RawUpdateAiComposeTones | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
56854
+ 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.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.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateBotGuestChatQuery | tl.RawUpdateAiComposeTones | tl.RawUpdateJoinChatWebViewDecision | tl.RawUpdateNewBotConnection | tl.RawUpdateWebBrowserSettings | tl.RawUpdateWebBrowserException | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
56519
56855
  function isAnyUpdate(o: object): o is TypeUpdate
56520
56856
  /**
56521
56857
  * Peer
@@ -57438,6 +57774,13 @@ export class RpcError extends Error {
57438
57774
  | tl.aicompose.RawGetToneRequest
57439
57775
  | tl.aicompose.RawGetTonesRequest
57440
57776
  | tl.aicompose.RawGetToneExampleRequest
57777
+ | tl.account.RawConfirmBotConnectionRequest
57778
+ | tl.account.RawGetWebBrowserSettingsRequest
57779
+ | tl.account.RawUpdateWebBrowserSettingsRequest
57780
+ | tl.account.RawToggleWebBrowserSettingsExceptionRequest
57781
+ | tl.account.RawDeleteWebBrowserSettingsExceptionsRequest
57782
+ | tl.messages.RawGetRichMessageRequest
57783
+ | tl.bots.RawSetJoinChatResultsRequest
57441
57784
  | tl.channels.RawEditCreatorRequest
57442
57785
  | tl.channels.RawCreateForumTopicRequest
57443
57786
  | tl.channels.RawGetForumTopicsRequest
@@ -59020,6 +59363,50 @@ export class RpcError extends Error {
59020
59363
  | tl.aicompose.RawTones
59021
59364
  | tl.RawAiComposeToneExample
59022
59365
  | tl.bots.RawAccessSettings
59366
+ | tl.RawUpdateJoinChatWebViewDecision
59367
+ | tl.RawUpdateNewBotConnection
59368
+ | tl.RawUpdateWebBrowserSettings
59369
+ | tl.RawUpdateWebBrowserException
59370
+ | tl.RawInputSendMessageRichMessageDraftAction
59371
+ | tl.RawSendMessageRichMessageDraftAction
59372
+ | tl.RawInputBotInlineMessageRichMessage
59373
+ | tl.RawBotInlineMessageRichMessage
59374
+ | tl.RawTextMath
59375
+ | tl.RawTextCustomEmoji
59376
+ | tl.RawTextSpoiler
59377
+ | tl.RawTextMention
59378
+ | tl.RawTextHashtag
59379
+ | tl.RawTextBotCommand
59380
+ | tl.RawTextCashtag
59381
+ | tl.RawTextAutoUrl
59382
+ | tl.RawTextAutoEmail
59383
+ | tl.RawTextAutoPhone
59384
+ | tl.RawTextBankCard
59385
+ | tl.RawTextMentionName
59386
+ | tl.RawTextDate
59387
+ | tl.RawPageBlockHeading1
59388
+ | tl.RawPageBlockHeading2
59389
+ | tl.RawPageBlockHeading3
59390
+ | tl.RawPageBlockHeading4
59391
+ | tl.RawPageBlockHeading5
59392
+ | tl.RawPageBlockHeading6
59393
+ | tl.RawPageBlockMath
59394
+ | tl.RawPageBlockThinking
59395
+ | tl.RawInputPageBlockMap
59396
+ | tl.RawPageBlockBlockquoteBlocks
59397
+ | tl.messages.RawChatInviteJoinResultOk
59398
+ | tl.messages.RawChatInviteJoinResultWebView
59399
+ | tl.RawJoinChatBotResultApproved
59400
+ | tl.RawJoinChatBotResultDeclined
59401
+ | tl.RawJoinChatBotResultQueued
59402
+ | tl.RawJoinChatBotResultWebView
59403
+ | tl.RawWebDomainException
59404
+ | tl.account.RawWebBrowserSettingsNotModified
59405
+ | tl.account.RawWebBrowserSettings
59406
+ | tl.RawRichMessage
59407
+ | tl.RawInputRichMessage
59408
+ | tl.RawInputRichMessageHTML
59409
+ | tl.RawInputRichMessageMarkdown
59023
59410
  | tl.RawUpdateChannelPinnedTopic
59024
59411
  | tl.RawUpdateChannelPinnedTopics
59025
59412
  | tl.mtcute.RawDummyUpdate
@@ -59808,6 +60195,13 @@ export class RpcError extends Error {
59808
60195
  | tl.aicompose.RawGetToneRequest
59809
60196
  | tl.aicompose.RawGetTonesRequest
59810
60197
  | tl.aicompose.RawGetToneExampleRequest
60198
+ | tl.account.RawConfirmBotConnectionRequest
60199
+ | tl.account.RawGetWebBrowserSettingsRequest
60200
+ | tl.account.RawUpdateWebBrowserSettingsRequest
60201
+ | tl.account.RawToggleWebBrowserSettingsExceptionRequest
60202
+ | tl.account.RawDeleteWebBrowserSettingsExceptionsRequest
60203
+ | tl.messages.RawGetRichMessageRequest
60204
+ | tl.bots.RawSetJoinChatResultsRequest
59811
60205
  | tl.channels.RawEditCreatorRequest
59812
60206
  | tl.channels.RawCreateForumTopicRequest
59813
60207
  | tl.channels.RawGetForumTopicsRequest
@@ -60195,6 +60589,10 @@ export declare function isAnyInputMessageReadMetric(o: object): o is tl.TypeInpu
60195
60589
  export declare function isAnyInputAiComposeTone(o: object): o is tl.TypeInputAiComposeTone
60196
60590
  export declare function isAnyAiComposeTone(o: object): o is tl.TypeAiComposeTone
60197
60591
  export declare function isAnyAiComposeToneExample(o: object): o is tl.TypeAiComposeToneExample
60592
+ export declare function isAnyJoinChatBotResult(o: object): o is tl.TypeJoinChatBotResult
60593
+ export declare function isAnyWebDomainException(o: object): o is tl.TypeWebDomainException
60594
+ export declare function isAnyRichMessage(o: object): o is tl.TypeRichMessage
60595
+ export declare function isAnyInputRichMessage(o: object): o is tl.TypeInputRichMessage
60198
60596
  export declare function isAnyStorage_FileType(o: object): o is tl.storage.TypeFileType
60199
60597
  export declare function isAnyAuth_SentCode(o: object): o is tl.auth.TypeSentCode
60200
60598
  export declare function isAnyAuth_Authorization(o: object): o is tl.auth.TypeAuthorization
@@ -60276,6 +60674,7 @@ export declare function isAnyMessages_WebPagePreview(o: object): o is tl.message
60276
60674
  export declare function isAnyMessages_EmojiGameOutcome(o: object): o is tl.messages.TypeEmojiGameOutcome
60277
60675
  export declare function isAnyMessages_EmojiGameInfo(o: object): o is tl.messages.TypeEmojiGameInfo
60278
60676
  export declare function isAnyMessages_ComposedMessageWithAI(o: object): o is tl.messages.TypeComposedMessageWithAI
60677
+ export declare function isAnyMessages_ChatInviteJoinResult(o: object): o is tl.messages.TypeChatInviteJoinResult
60279
60678
  export declare function isAnyUpdates_State(o: object): o is tl.updates.TypeState
60280
60679
  export declare function isAnyUpdates_Difference(o: object): o is tl.updates.TypeDifference
60281
60680
  export declare function isAnyUpdates_ChannelDifference(o: object): o is tl.updates.TypeChannelDifference
@@ -60332,6 +60731,7 @@ export declare function isAnyAccount_PaidMessagesRevenue(o: object): o is tl.acc
60332
60731
  export declare function isAnyAccount_SavedMusicIds(o: object): o is tl.account.TypeSavedMusicIds
60333
60732
  export declare function isAnyAccount_Passkeys(o: object): o is tl.account.TypePasskeys
60334
60733
  export declare function isAnyAccount_PasskeyRegistrationOptions(o: object): o is tl.account.TypePasskeyRegistrationOptions
60734
+ export declare function isAnyAccount_WebBrowserSettings(o: object): o is tl.account.TypeWebBrowserSettings
60335
60735
  export declare function isAnyChannels_ChannelParticipants(o: object): o is tl.channels.TypeChannelParticipants
60336
60736
  export declare function isAnyChannels_ChannelParticipant(o: object): o is tl.channels.TypeChannelParticipant
60337
60737
  export declare function isAnyChannels_AdminLogResults(o: object): o is tl.channels.TypeAdminLogResults