@mtcute/core 0.29.7 → 0.30.1

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 (134) hide show
  1. package/client.cjs +8 -0
  2. package/client.js +8 -0
  3. package/highlevel/client.d.cts +67 -7
  4. package/highlevel/client.d.ts +67 -7
  5. package/highlevel/methods/chats/join-chat.cjs +38 -16
  6. package/highlevel/methods/chats/join-chat.d.cts +20 -6
  7. package/highlevel/methods/chats/join-chat.d.ts +20 -6
  8. package/highlevel/methods/chats/join-chat.js +38 -16
  9. package/highlevel/methods/chats/save-draft.d.cts +4 -1
  10. package/highlevel/methods/chats/save-draft.d.ts +4 -1
  11. package/highlevel/methods/files/normalize-input-media.cjs +8 -0
  12. package/highlevel/methods/files/normalize-input-media.js +9 -1
  13. package/highlevel/methods/messages/create-rich-streaming-draft.cjs +39 -0
  14. package/highlevel/methods/messages/create-rich-streaming-draft.d.cts +42 -0
  15. package/highlevel/methods/messages/create-rich-streaming-draft.d.ts +42 -0
  16. package/highlevel/methods/messages/create-rich-streaming-draft.js +34 -0
  17. package/highlevel/methods/messages/normalize-rich-message.cjs +157 -0
  18. package/highlevel/methods/messages/normalize-rich-message.d.cts +10 -0
  19. package/highlevel/methods/messages/normalize-rich-message.d.ts +10 -0
  20. package/highlevel/methods/messages/normalize-rich-message.js +152 -0
  21. package/highlevel/methods/messages/send-rich-message.cjs +49 -0
  22. package/highlevel/methods/messages/send-rich-message.d.cts +38 -0
  23. package/highlevel/methods/messages/send-rich-message.d.ts +38 -0
  24. package/highlevel/methods/messages/send-rich-message.js +44 -0
  25. package/highlevel/methods.d.cts +5 -0
  26. package/highlevel/methods.d.ts +5 -0
  27. package/highlevel/storage/service/peers.cjs +1 -0
  28. package/highlevel/storage/service/peers.js +1 -0
  29. package/highlevel/types/bots/inline-message/factories.cjs +14 -0
  30. package/highlevel/types/bots/inline-message/factories.d.cts +9 -1
  31. package/highlevel/types/bots/inline-message/factories.d.ts +9 -1
  32. package/highlevel/types/bots/inline-message/factories.js +14 -0
  33. package/highlevel/types/bots/inline-message/types.d.cts +17 -1
  34. package/highlevel/types/bots/inline-message/types.d.ts +17 -1
  35. package/highlevel/types/files/utils.d.cts +1 -1
  36. package/highlevel/types/files/utils.d.ts +1 -1
  37. package/highlevel/types/media/input-media/types.d.cts +1 -1
  38. package/highlevel/types/media/input-media/types.d.ts +1 -1
  39. package/highlevel/types/messages/index.d.cts +1 -0
  40. package/highlevel/types/messages/index.d.ts +1 -0
  41. package/highlevel/types/messages/message.cjs +5 -0
  42. package/highlevel/types/messages/message.d.cts +3 -0
  43. package/highlevel/types/messages/message.d.ts +3 -0
  44. package/highlevel/types/messages/message.js +5 -0
  45. package/highlevel/types/messages/rich/index.d.cts +4 -0
  46. package/highlevel/types/messages/rich/index.d.ts +4 -0
  47. package/highlevel/types/messages/rich/inner.cjs +219 -0
  48. package/highlevel/types/messages/rich/inner.d.cts +127 -0
  49. package/highlevel/types/messages/rich/inner.d.ts +127 -0
  50. package/highlevel/types/messages/rich/inner.js +214 -0
  51. package/highlevel/types/messages/rich/rich-message.cjs +50 -0
  52. package/highlevel/types/messages/rich/rich-message.d.cts +18 -0
  53. package/highlevel/types/messages/rich/rich-message.d.ts +18 -0
  54. package/highlevel/types/messages/rich/rich-message.js +45 -0
  55. package/highlevel/types/messages/rich/types.d.cts +76 -0
  56. package/highlevel/types/messages/rich/types.d.ts +76 -0
  57. package/highlevel/types/peers/full-chat.cjs +6 -0
  58. package/highlevel/types/peers/full-chat.d.cts +2 -0
  59. package/highlevel/types/peers/full-chat.d.ts +2 -0
  60. package/highlevel/types/peers/full-chat.js +6 -0
  61. package/highlevel/types/peers/user.cjs +4 -0
  62. package/highlevel/types/peers/user.d.cts +2 -0
  63. package/highlevel/types/peers/user.d.ts +2 -0
  64. package/highlevel/types/peers/user.js +4 -0
  65. package/highlevel/types/updates/user-typing-update.cjs +2 -0
  66. package/highlevel/types/updates/user-typing-update.js +2 -0
  67. package/highlevel/updates/manager.cjs +195 -0
  68. package/highlevel/updates/manager.js +195 -0
  69. package/highlevel/utils/entities.cjs +176 -0
  70. package/highlevel/utils/entities.d.cts +18 -0
  71. package/highlevel/utils/entities.d.ts +18 -0
  72. package/highlevel/utils/entities.js +177 -1
  73. package/highlevel/utils/inspectable.cjs +1 -0
  74. package/highlevel/utils/inspectable.d.cts +1 -0
  75. package/highlevel/utils/inspectable.d.ts +1 -0
  76. package/highlevel/utils/inspectable.js +1 -0
  77. package/index.cjs +4 -0
  78. package/index.js +4 -0
  79. package/methods.cjs +4 -0
  80. package/methods.js +4 -0
  81. package/network/flood-control.cjs +149 -0
  82. package/network/flood-control.d.cts +79 -0
  83. package/network/flood-control.d.ts +79 -0
  84. package/network/flood-control.js +144 -0
  85. package/network/flood-control.test.d.cts +1 -0
  86. package/network/flood-control.test.d.ts +1 -0
  87. package/network/mtproto-session.cjs +1 -21
  88. package/network/mtproto-session.d.cts +1 -5
  89. package/network/mtproto-session.d.ts +1 -5
  90. package/network/mtproto-session.js +2 -22
  91. package/network/mtproxy/_fake-tls.cjs +169 -107
  92. package/network/mtproxy/_fake-tls.js +169 -107
  93. package/network/mtproxy/_fake-tls.test.d.cts +1 -0
  94. package/network/mtproxy/_fake-tls.test.d.ts +1 -0
  95. package/network/multi-session-connection.cjs +26 -16
  96. package/network/multi-session-connection.d.cts +1 -1
  97. package/network/multi-session-connection.d.ts +1 -1
  98. package/network/multi-session-connection.js +26 -16
  99. package/network/multi-session-connection.test.d.cts +1 -0
  100. package/network/multi-session-connection.test.d.ts +1 -0
  101. package/network/network-manager.cjs +3 -2
  102. package/network/network-manager.d.cts +12 -0
  103. package/network/network-manager.d.ts +12 -0
  104. package/network/network-manager.js +3 -2
  105. package/network/persistent-connection.cjs +25 -1
  106. package/network/persistent-connection.d.cts +5 -0
  107. package/network/persistent-connection.d.ts +5 -0
  108. package/network/persistent-connection.js +25 -1
  109. package/network/session-connection.cjs +5 -10
  110. package/network/session-connection.d.cts +0 -2
  111. package/network/session-connection.d.ts +0 -2
  112. package/network/session-connection.js +5 -10
  113. package/package.json +1 -1
  114. package/tl/api-schema.json +1 -1
  115. package/tl/binary/reader.cjs +182 -26
  116. package/tl/binary/reader.js +182 -26
  117. package/tl/binary/writer.cjs +437 -20
  118. package/tl/binary/writer.js +437 -20
  119. package/tl/compat/reader.cjs +23 -0
  120. package/tl/compat/reader.js +23 -0
  121. package/tl/index.d.cts +425 -14
  122. package/tl/index.d.ts +425 -14
  123. package/tl/inner-tl.cjs +22 -8
  124. package/tl/inner-tl.js +22 -8
  125. package/types/utils.d.cts +4 -0
  126. package/types/utils.d.ts +4 -0
  127. package/utils/binary/compat.cjs +79 -0
  128. package/utils/binary/compat.js +79 -0
  129. package/utils/index.d.cts +1 -0
  130. package/utils/index.d.ts +1 -0
  131. package/utils/long-utils.cjs +10 -0
  132. package/utils/long-utils.js +10 -0
  133. package/utils.cjs +9 -0
  134. package/utils.js +11 -2
package/tl/index.d.ts 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
@@ -10025,6 +10029,31 @@ export class RpcError extends Error {
10025
10029
  interface RawUpdateAiComposeTones {
10026
10030
  _: 'updateAiComposeTones';
10027
10031
  }
10032
+ interface RawUpdateJoinChatWebViewDecision {
10033
+ _: 'updateJoinChatWebViewDecision';
10034
+ peer: tl.TypePeer;
10035
+ queryId: Long;
10036
+ result: tl.TypeJoinChatBotResult;
10037
+ }
10038
+ interface RawUpdateNewBotConnection {
10039
+ _: 'updateNewBotConnection';
10040
+ confirmed?: boolean;
10041
+ botId: number;
10042
+ date?: number;
10043
+ device?: string;
10044
+ location?: string;
10045
+ }
10046
+ interface RawUpdateWebBrowserSettings {
10047
+ _: 'updateWebBrowserSettings';
10048
+ openExternalBrowser?: boolean;
10049
+ displayCloseButton?: boolean;
10050
+ }
10051
+ interface RawUpdateWebBrowserException {
10052
+ _: 'updateWebBrowserException';
10053
+ delete?: boolean;
10054
+ openExternalBrowser?: boolean;
10055
+ exception: tl.TypeWebDomainException;
10056
+ }
10028
10057
  /**
10029
10058
  * Too many updates, it is necessary to execute
10030
10059
  * {@link updates.RawGetDifferenceRequest}.
@@ -11213,6 +11242,16 @@ export class RpcError extends Error {
11213
11242
  */
11214
11243
  text: tl.TypeTextWithEntities;
11215
11244
  }
11245
+ interface RawInputSendMessageRichMessageDraftAction {
11246
+ _: 'inputSendMessageRichMessageDraftAction';
11247
+ randomId: Long;
11248
+ richMessage: tl.TypeInputRichMessage;
11249
+ }
11250
+ interface RawSendMessageRichMessageDraftAction {
11251
+ _: 'sendMessageRichMessageDraftAction';
11252
+ randomId: Long;
11253
+ richMessage: tl.TypeRichMessage;
11254
+ }
11216
11255
  /**
11217
11256
  * Whether people will be able to see our exact last online
11218
11257
  * timestamp.
@@ -14342,6 +14381,11 @@ export class RpcError extends Error {
14342
14381
  */
14343
14382
  replyMarkup?: tl.TypeReplyMarkup;
14344
14383
  }
14384
+ interface RawInputBotInlineMessageRichMessage {
14385
+ _: 'inputBotInlineMessageRichMessage';
14386
+ replyMarkup?: tl.TypeReplyMarkup;
14387
+ richMessage: tl.TypeInputRichMessage;
14388
+ }
14345
14389
  /**
14346
14390
  * An inline bot result
14347
14391
  */
@@ -14701,6 +14745,11 @@ export class RpcError extends Error {
14701
14745
  */
14702
14746
  replyMarkup?: tl.TypeReplyMarkup;
14703
14747
  }
14748
+ interface RawBotInlineMessageRichMessage {
14749
+ _: 'botInlineMessageRichMessage';
14750
+ replyMarkup?: tl.TypeReplyMarkup;
14751
+ richMessage: tl.TypeRichMessage;
14752
+ }
14704
14753
  /**
14705
14754
  * Generic result
14706
14755
  */
@@ -15102,6 +15151,7 @@ export class RpcError extends Error {
15102
15151
  * full flow.
15103
15152
  */
15104
15153
  suggestedPost?: tl.TypeSuggestedPost;
15154
+ richMessage?: tl.TypeRichMessage;
15105
15155
  }
15106
15156
  /**
15107
15157
  * Stickerset with a single sticker as preview
@@ -15493,6 +15543,67 @@ export class RpcError extends Error {
15493
15543
  */
15494
15544
  name: string;
15495
15545
  }
15546
+ interface RawTextMath {
15547
+ _: 'textMath';
15548
+ source: string;
15549
+ }
15550
+ interface RawTextCustomEmoji {
15551
+ _: 'textCustomEmoji';
15552
+ documentId: Long;
15553
+ alt: string;
15554
+ }
15555
+ interface RawTextSpoiler {
15556
+ _: 'textSpoiler';
15557
+ text: tl.TypeRichText;
15558
+ }
15559
+ interface RawTextMention {
15560
+ _: 'textMention';
15561
+ text: tl.TypeRichText;
15562
+ }
15563
+ interface RawTextHashtag {
15564
+ _: 'textHashtag';
15565
+ text: tl.TypeRichText;
15566
+ }
15567
+ interface RawTextBotCommand {
15568
+ _: 'textBotCommand';
15569
+ text: tl.TypeRichText;
15570
+ }
15571
+ interface RawTextCashtag {
15572
+ _: 'textCashtag';
15573
+ text: tl.TypeRichText;
15574
+ }
15575
+ interface RawTextAutoUrl {
15576
+ _: 'textAutoUrl';
15577
+ text: tl.TypeRichText;
15578
+ }
15579
+ interface RawTextAutoEmail {
15580
+ _: 'textAutoEmail';
15581
+ text: tl.TypeRichText;
15582
+ }
15583
+ interface RawTextAutoPhone {
15584
+ _: 'textAutoPhone';
15585
+ text: tl.TypeRichText;
15586
+ }
15587
+ interface RawTextBankCard {
15588
+ _: 'textBankCard';
15589
+ text: tl.TypeRichText;
15590
+ }
15591
+ interface RawTextMentionName {
15592
+ _: 'textMentionName';
15593
+ text: tl.TypeRichText;
15594
+ userId: number;
15595
+ }
15596
+ interface RawTextDate {
15597
+ _: 'textDate';
15598
+ relative?: boolean;
15599
+ shortTime?: boolean;
15600
+ longTime?: boolean;
15601
+ shortDate?: boolean;
15602
+ longDate?: boolean;
15603
+ dayOfWeek?: boolean;
15604
+ text: tl.TypeRichText;
15605
+ date: number;
15606
+ }
15496
15607
  /**
15497
15608
  * Unsupported IV element
15498
15609
  */
@@ -15647,6 +15758,7 @@ export class RpcError extends Error {
15647
15758
  */
15648
15759
  interface RawPageBlockPhoto {
15649
15760
  _: 'pageBlockPhoto';
15761
+ spoiler?: boolean;
15650
15762
  /**
15651
15763
  * Photo ID
15652
15764
  */
@@ -15677,6 +15789,7 @@ export class RpcError extends Error {
15677
15789
  * Whether the video is set to loop
15678
15790
  */
15679
15791
  loop?: boolean;
15792
+ spoiler?: boolean;
15680
15793
  /**
15681
15794
  * Video ID
15682
15795
  */
@@ -15858,10 +15971,13 @@ export class RpcError extends Error {
15858
15971
  */
15859
15972
  interface RawPageBlockOrderedList {
15860
15973
  _: 'pageBlockOrderedList';
15974
+ reversed?: boolean;
15861
15975
  /**
15862
15976
  * List items
15863
15977
  */
15864
15978
  items: tl.TypePageListOrderedItem[];
15979
+ start?: number;
15980
+ type?: string;
15865
15981
  }
15866
15982
  /**
15867
15983
  * A collapsible details block
@@ -15921,6 +16037,51 @@ export class RpcError extends Error {
15921
16037
  */
15922
16038
  caption: tl.TypePageCaption;
15923
16039
  }
16040
+ interface RawPageBlockHeading1 {
16041
+ _: 'pageBlockHeading1';
16042
+ text: tl.TypeRichText;
16043
+ }
16044
+ interface RawPageBlockHeading2 {
16045
+ _: 'pageBlockHeading2';
16046
+ text: tl.TypeRichText;
16047
+ }
16048
+ interface RawPageBlockHeading3 {
16049
+ _: 'pageBlockHeading3';
16050
+ text: tl.TypeRichText;
16051
+ }
16052
+ interface RawPageBlockHeading4 {
16053
+ _: 'pageBlockHeading4';
16054
+ text: tl.TypeRichText;
16055
+ }
16056
+ interface RawPageBlockHeading5 {
16057
+ _: 'pageBlockHeading5';
16058
+ text: tl.TypeRichText;
16059
+ }
16060
+ interface RawPageBlockHeading6 {
16061
+ _: 'pageBlockHeading6';
16062
+ text: tl.TypeRichText;
16063
+ }
16064
+ interface RawPageBlockMath {
16065
+ _: 'pageBlockMath';
16066
+ source: string;
16067
+ }
16068
+ interface RawPageBlockThinking {
16069
+ _: 'pageBlockThinking';
16070
+ text: tl.TypeRichText;
16071
+ }
16072
+ interface RawInputPageBlockMap {
16073
+ _: 'inputPageBlockMap';
16074
+ geo: tl.TypeInputGeoPoint;
16075
+ zoom: number;
16076
+ w: number;
16077
+ h: number;
16078
+ caption: tl.TypePageCaption;
16079
+ }
16080
+ interface RawPageBlockBlockquoteBlocks {
16081
+ _: 'pageBlockBlockquoteBlocks';
16082
+ blocks: tl.TypePageBlock[];
16083
+ caption: tl.TypeRichText;
16084
+ }
15924
16085
  /**
15925
16086
  * The phone call was missed
15926
16087
  */
@@ -18915,6 +19076,8 @@ export class RpcError extends Error {
18915
19076
  */
18916
19077
  interface RawPageListItemText {
18917
19078
  _: 'pageListItemText';
19079
+ checkbox?: boolean;
19080
+ checked?: boolean;
18918
19081
  /**
18919
19082
  * Text
18920
19083
  */
@@ -18925,6 +19088,8 @@ export class RpcError extends Error {
18925
19088
  */
18926
19089
  interface RawPageListItemBlocks {
18927
19090
  _: 'pageListItemBlocks';
19091
+ checkbox?: boolean;
19092
+ checked?: boolean;
18928
19093
  /**
18929
19094
  * Blocks
18930
19095
  */
@@ -18935,14 +19100,18 @@ export class RpcError extends Error {
18935
19100
  */
18936
19101
  interface RawPageListOrderedItemText {
18937
19102
  _: 'pageListOrderedItemText';
19103
+ checkbox?: boolean;
19104
+ checked?: boolean;
18938
19105
  /**
18939
19106
  * Number of element within ordered list
18940
19107
  */
18941
- num: string;
19108
+ num?: string;
18942
19109
  /**
18943
19110
  * Text
18944
19111
  */
18945
19112
  text: tl.TypeRichText;
19113
+ value?: number;
19114
+ type?: string;
18946
19115
  }
18947
19116
  /**
18948
19117
  * Ordered list of
@@ -18950,14 +19119,18 @@ export class RpcError extends Error {
18950
19119
  */
18951
19120
  interface RawPageListOrderedItemBlocks {
18952
19121
  _: 'pageListOrderedItemBlocks';
19122
+ checkbox?: boolean;
19123
+ checked?: boolean;
18953
19124
  /**
18954
19125
  * Number of element within ordered list
18955
19126
  */
18956
- num: string;
19127
+ num?: string;
18957
19128
  /**
18958
19129
  * Item contents
18959
19130
  */
18960
19131
  blocks: tl.TypePageBlock[];
19132
+ value?: number;
19133
+ type?: string;
18961
19134
  }
18962
19135
  /**
18963
19136
  * Related article
@@ -20835,6 +21008,7 @@ export class RpcError extends Error {
20835
21008
  */
20836
21009
  todoItemId?: number;
20837
21010
  pollOption?: Uint8Array;
21011
+ replyToEphemeral?: boolean;
20838
21012
  }
20839
21013
  /**
20840
21014
  * Represents a reply to a
@@ -21934,6 +22108,7 @@ export class RpcError extends Error {
21934
22108
  * If set, the app must be opened in fullscreen
21935
22109
  */
21936
22110
  fullscreen?: boolean;
22111
+ sameOrigin?: boolean;
21937
22112
  /**
21938
22113
  * Webview session ID (only returned by
21939
22114
  * <a href="https://corefork.telegram.org/api/bots/webapps#inline-button-mini-apps">inline
@@ -25372,6 +25547,9 @@ export class RpcError extends Error {
25372
25547
  * Business bot rights.
25373
25548
  */
25374
25549
  rights: tl.TypeBusinessBotRights;
25550
+ device?: string;
25551
+ date?: number;
25552
+ location?: string;
25375
25553
  }
25376
25554
  /**
25377
25555
  * <a href="https://corefork.telegram.org/api/profile#birthday">Birthday</a>
@@ -28601,6 +28779,67 @@ export class RpcError extends Error {
28601
28779
  from: tl.TypeTextWithEntities;
28602
28780
  to: tl.TypeTextWithEntities;
28603
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 RawInputRichFilePhoto {
28803
+ _: 'inputRichFilePhoto';
28804
+ id: string;
28805
+ photo: tl.TypeInputPhoto;
28806
+ }
28807
+ interface RawInputRichFileDocument {
28808
+ _: 'inputRichFileDocument';
28809
+ id: string;
28810
+ document: tl.TypeInputDocument;
28811
+ }
28812
+ interface RawInputRichMessage {
28813
+ _: 'inputRichMessage';
28814
+ rtl?: boolean;
28815
+ noautolink?: boolean;
28816
+ blocks: tl.TypePageBlock[];
28817
+ photos?: tl.TypeInputPhoto[];
28818
+ documents?: tl.TypeInputDocument[];
28819
+ users?: tl.TypeInputUser[];
28820
+ }
28821
+ interface RawInputRichMessageHTML {
28822
+ _: 'inputRichMessageHTML';
28823
+ rtl?: boolean;
28824
+ noautolink?: boolean;
28825
+ html: string;
28826
+ files?: tl.TypeInputRichFile[];
28827
+ }
28828
+ interface RawInputRichMessageMarkdown {
28829
+ _: 'inputRichMessageMarkdown';
28830
+ rtl?: boolean;
28831
+ noautolink?: boolean;
28832
+ markdown: string;
28833
+ files?: tl.TypeInputRichFile[];
28834
+ }
28835
+ interface RawRichMessage {
28836
+ _: 'richMessage';
28837
+ rtl?: boolean;
28838
+ part?: boolean;
28839
+ blocks: tl.TypePageBlock[];
28840
+ photos: tl.TypePhoto[];
28841
+ documents: tl.TypeDocument[];
28842
+ }
28604
28843
  /**
28605
28844
  * A
28606
28845
  * <a href="https://corefork.telegram.org/api/forum#forum-topics">forum
@@ -29076,7 +29315,7 @@ export class RpcError extends Error {
29076
29315
  /**
29077
29316
  * Object contains info on events occurred.
29078
29317
  */
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
29318
+ 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
29319
  function isAnyUpdate(o: object): o is TypeUpdate
29081
29320
  /**
29082
29321
  * Object which is perceived by the client without a call on
@@ -29145,7 +29384,7 @@ export class RpcError extends Error {
29145
29384
  * about their chat partner's actions: typing or sending
29146
29385
  * attachments of all kinds.
29147
29386
  */
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
29387
+ 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
29388
  function isAnySendMessageAction(o: object): o is TypeSendMessageAction
29150
29389
  /**
29151
29390
  * Privacy <strong>keys</strong> together with
@@ -29317,7 +29556,7 @@ export class RpcError extends Error {
29317
29556
  * Represents a sent inline message from the perspective of a
29318
29557
  * bot
29319
29558
  */
29320
- type TypeInputBotInlineMessage = tl.RawInputBotInlineMessageMediaAuto | tl.RawInputBotInlineMessageText | tl.RawInputBotInlineMessageMediaGeo | tl.RawInputBotInlineMessageMediaVenue | tl.RawInputBotInlineMessageMediaContact | tl.RawInputBotInlineMessageGame | tl.RawInputBotInlineMessageMediaInvoice | tl.RawInputBotInlineMessageMediaWebPage
29559
+ type TypeInputBotInlineMessage = tl.RawInputBotInlineMessageMediaAuto | tl.RawInputBotInlineMessageText | tl.RawInputBotInlineMessageMediaGeo | tl.RawInputBotInlineMessageMediaVenue | tl.RawInputBotInlineMessageMediaContact | tl.RawInputBotInlineMessageGame | tl.RawInputBotInlineMessageMediaInvoice | tl.RawInputBotInlineMessageMediaWebPage | tl.RawInputBotInlineMessageRichMessage
29321
29560
  function isAnyInputBotInlineMessage(o: object): o is TypeInputBotInlineMessage
29322
29561
  /**
29323
29562
  * Inline bot result
@@ -29327,7 +29566,7 @@ export class RpcError extends Error {
29327
29566
  /**
29328
29567
  * Inline message
29329
29568
  */
29330
- type TypeBotInlineMessage = tl.RawBotInlineMessageMediaAuto | tl.RawBotInlineMessageText | tl.RawBotInlineMessageMediaGeo | tl.RawBotInlineMessageMediaVenue | tl.RawBotInlineMessageMediaContact | tl.RawBotInlineMessageMediaInvoice | tl.RawBotInlineMessageMediaWebPage
29569
+ type TypeBotInlineMessage = tl.RawBotInlineMessageMediaAuto | tl.RawBotInlineMessageText | tl.RawBotInlineMessageMediaGeo | tl.RawBotInlineMessageMediaVenue | tl.RawBotInlineMessageMediaContact | tl.RawBotInlineMessageMediaInvoice | tl.RawBotInlineMessageMediaWebPage | tl.RawBotInlineMessageRichMessage
29331
29570
  function isAnyBotInlineMessage(o: object): o is TypeBotInlineMessage
29332
29571
  /**
29333
29572
  * Results of an inline query
@@ -29410,14 +29649,14 @@ export class RpcError extends Error {
29410
29649
  /**
29411
29650
  * Rich text
29412
29651
  */
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
29652
+ 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
29653
  function isAnyRichText(o: object): o is TypeRichText
29415
29654
  /**
29416
29655
  * Represents an
29417
29656
  * <a href="https://instantview.telegram.org/">instant view
29418
29657
  * page element</a>
29419
29658
  */
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
29659
+ 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
29660
  function isAnyPageBlock(o: object): o is TypePageBlock
29422
29661
  /**
29423
29662
  * Why was the phone call discarded?
@@ -31085,6 +31324,16 @@ export class RpcError extends Error {
31085
31324
  function isAnyAiComposeTone(o: object): o is TypeAiComposeTone
31086
31325
  type TypeAiComposeToneExample = tl.RawAiComposeToneExample
31087
31326
  function isAnyAiComposeToneExample(o: object): o is TypeAiComposeToneExample
31327
+ type TypeJoinChatBotResult = tl.RawJoinChatBotResultApproved | tl.RawJoinChatBotResultDeclined | tl.RawJoinChatBotResultQueued | tl.RawJoinChatBotResultWebView
31328
+ function isAnyJoinChatBotResult(o: object): o is TypeJoinChatBotResult
31329
+ type TypeWebDomainException = tl.RawWebDomainException
31330
+ function isAnyWebDomainException(o: object): o is TypeWebDomainException
31331
+ type TypeInputRichFile = tl.RawInputRichFilePhoto | tl.RawInputRichFileDocument
31332
+ function isAnyInputRichFile(o: object): o is TypeInputRichFile
31333
+ type TypeInputRichMessage = tl.RawInputRichMessage | tl.RawInputRichMessageHTML | tl.RawInputRichMessageMarkdown
31334
+ function isAnyInputRichMessage(o: object): o is TypeInputRichMessage
31335
+ type TypeRichMessage = tl.RawRichMessage
31336
+ function isAnyRichMessage(o: object): o is TypeRichMessage
31088
31337
 
31089
31338
  namespace storage {
31090
31339
  /**
@@ -32647,6 +32896,8 @@ export class RpcError extends Error {
32647
32896
  */
32648
32897
  interface RawSearchRequest {
32649
32898
  _: 'contacts.search';
32899
+ broadcasts?: boolean;
32900
+ bots?: boolean;
32650
32901
  /**
32651
32902
  * Target substring
32652
32903
  */
@@ -34812,6 +35063,16 @@ export class RpcError extends Error {
34812
35063
  */
34813
35064
  diffText?: tl.TypeTextWithEntities;
34814
35065
  }
35066
+ interface RawChatInviteJoinResultOk {
35067
+ _: 'messages.chatInviteJoinResultOk';
35068
+ updates: tl.TypeUpdates;
35069
+ }
35070
+ interface RawChatInviteJoinResultWebView {
35071
+ _: 'messages.chatInviteJoinResultWebView';
35072
+ botId: number;
35073
+ webview: tl.TypeWebViewResult;
35074
+ users: tl.TypeUser[];
35075
+ }
34815
35076
  /**
34816
35077
  * Returns the list of messages by their IDs.
34817
35078
  *
@@ -35229,6 +35490,7 @@ export class RpcError extends Error {
35229
35490
  * full flow.
35230
35491
  */
35231
35492
  suggestedPost?: tl.TypeSuggestedPost;
35493
+ richMessage?: tl.TypeInputRichMessage;
35232
35494
  }
35233
35495
  /**
35234
35496
  * Send a media
@@ -36010,7 +36272,8 @@ export class RpcError extends Error {
36010
36272
  * Import a chat invite and join a private
36011
36273
  * chat/supergroup/channel
36012
36274
  *
36013
- * RPC method returns {@link tl.TypeUpdates}
36275
+ * RPC method returns
36276
+ * {@link tl.messages.TypeChatInviteJoinResult}
36014
36277
  */
36015
36278
  interface RawImportChatInviteRequest {
36016
36279
  _: 'messages.importChatInvite';
@@ -36524,6 +36787,7 @@ export class RpcError extends Error {
36524
36787
  * reply shortcut message, instead »</a>.
36525
36788
  */
36526
36789
  quickReplyShortcutId?: number;
36790
+ richMessage?: tl.TypeInputRichMessage;
36527
36791
  }
36528
36792
  /**
36529
36793
  * Edit an inline bot message
@@ -36562,6 +36826,7 @@ export class RpcError extends Error {
36562
36826
  * entities for styled text</a>
36563
36827
  */
36564
36828
  entities?: tl.TypeMessageEntity[];
36829
+ richMessage?: tl.TypeInputRichMessage;
36565
36830
  }
36566
36831
  /**
36567
36832
  * Press an inline callback button and get a callback answer
@@ -36689,6 +36954,7 @@ export class RpcError extends Error {
36689
36954
  * full flow.
36690
36955
  */
36691
36956
  suggestedPost?: tl.TypeSuggestedPost;
36957
+ richMessage?: tl.TypeInputRichMessage;
36692
36958
  }
36693
36959
  /**
36694
36960
  * Return all message
@@ -41256,6 +41522,14 @@ export class RpcError extends Error {
41256
41522
  minId: number;
41257
41523
  hash: Long;
41258
41524
  }
41525
+ /**
41526
+ * RPC method returns {@link tl.messages.TypeMessages}
41527
+ */
41528
+ interface RawGetRichMessageRequest {
41529
+ _: 'messages.getRichMessage';
41530
+ peer: tl.TypeInputPeer;
41531
+ id: number;
41532
+ }
41259
41533
  interface RpcCallReturn {
41260
41534
  'messages.getMessages': tl.messages.TypeMessages
41261
41535
  'messages.getDialogs': tl.messages.TypeDialogs
@@ -41296,7 +41570,7 @@ export class RpcError extends Error {
41296
41570
  'messages.getWebPagePreview': tl.messages.TypeWebPagePreview
41297
41571
  'messages.exportChatInvite': tl.TypeExportedChatInvite
41298
41572
  'messages.checkChatInvite': tl.TypeChatInvite
41299
- 'messages.importChatInvite': tl.TypeUpdates
41573
+ 'messages.importChatInvite': tl.messages.TypeChatInviteJoinResult
41300
41574
  'messages.getStickerSet': tl.messages.TypeStickerSet
41301
41575
  'messages.installStickerSet': tl.messages.TypeStickerSetInstallResult
41302
41576
  'messages.uninstallStickerSet': boolean
@@ -41512,6 +41786,7 @@ export class RpcError extends Error {
41512
41786
  'messages.deleteParticipantReactions': boolean
41513
41787
  'messages.deleteParticipantReaction': tl.TypeUpdates
41514
41788
  'messages.getPersonalChannelHistory': tl.messages.TypeMessages
41789
+ 'messages.getRichMessage': tl.messages.TypeMessages
41515
41790
  }
41516
41791
  /**
41517
41792
  * Object contains a list of chats with messages and auxiliary
@@ -41871,6 +42146,8 @@ export class RpcError extends Error {
41871
42146
  */
41872
42147
  type TypeComposedMessageWithAI = tl.messages.RawComposedMessageWithAI
41873
42148
  function isAnyComposedMessageWithAI(o: object): o is TypeComposedMessageWithAI
42149
+ type TypeChatInviteJoinResult = tl.messages.RawChatInviteJoinResultOk | tl.messages.RawChatInviteJoinResultWebView
42150
+ function isAnyChatInviteJoinResult(o: object): o is TypeChatInviteJoinResult
41874
42151
  }
41875
42152
 
41876
42153
  namespace updates {
@@ -44460,6 +44737,17 @@ export class RpcError extends Error {
44460
44737
  */
44461
44738
  options: tl.TypeDataJSON;
44462
44739
  }
44740
+ interface RawWebBrowserSettingsNotModified {
44741
+ _: 'account.webBrowserSettingsNotModified';
44742
+ }
44743
+ interface RawWebBrowserSettings {
44744
+ _: 'account.webBrowserSettings';
44745
+ openExternalBrowser?: boolean;
44746
+ displayCloseButton?: boolean;
44747
+ externalExceptions: tl.TypeWebDomainException[];
44748
+ inappExceptions: tl.TypeWebDomainException[];
44749
+ hash: Long;
44750
+ }
44463
44751
  /**
44464
44752
  * Register device to receive
44465
44753
  * <a href="https://corefork.telegram.org/api/push-updates">PUSH
@@ -46643,6 +46931,43 @@ export class RpcError extends Error {
46643
46931
  */
46644
46932
  id: string;
46645
46933
  }
46934
+ /**
46935
+ * RPC method returns boolean
46936
+ */
46937
+ interface RawConfirmBotConnectionRequest {
46938
+ _: 'account.confirmBotConnection';
46939
+ botId: tl.TypeInputUser;
46940
+ }
46941
+ /**
46942
+ * RPC method returns {@link tl.account.TypeWebBrowserSettings}
46943
+ */
46944
+ interface RawGetWebBrowserSettingsRequest {
46945
+ _: 'account.getWebBrowserSettings';
46946
+ hash: Long;
46947
+ }
46948
+ /**
46949
+ * RPC method returns {@link tl.account.TypeWebBrowserSettings}
46950
+ */
46951
+ interface RawUpdateWebBrowserSettingsRequest {
46952
+ _: 'account.updateWebBrowserSettings';
46953
+ openExternalBrowser?: boolean;
46954
+ displayCloseButton?: boolean;
46955
+ }
46956
+ /**
46957
+ * RPC method returns {@link tl.TypeUpdates}
46958
+ */
46959
+ interface RawToggleWebBrowserSettingsExceptionRequest {
46960
+ _: 'account.toggleWebBrowserSettingsException';
46961
+ delete?: boolean;
46962
+ openExternalBrowser?: boolean;
46963
+ url: string;
46964
+ }
46965
+ /**
46966
+ * RPC method returns {@link tl.account.TypeWebBrowserSettings}
46967
+ */
46968
+ interface RawDeleteWebBrowserSettingsExceptionsRequest {
46969
+ _: 'account.deleteWebBrowserSettingsExceptions';
46970
+ }
46646
46971
  interface RpcCallReturn {
46647
46972
  'account.registerDevice': boolean
46648
46973
  'account.unregisterDevice': boolean
@@ -46767,6 +47092,11 @@ export class RpcError extends Error {
46767
47092
  'account.registerPasskey': tl.TypePasskey
46768
47093
  'account.getPasskeys': tl.account.TypePasskeys
46769
47094
  'account.deletePasskey': boolean
47095
+ 'account.confirmBotConnection': boolean
47096
+ 'account.getWebBrowserSettings': tl.account.TypeWebBrowserSettings
47097
+ 'account.updateWebBrowserSettings': tl.account.TypeWebBrowserSettings
47098
+ 'account.toggleWebBrowserSettingsException': tl.TypeUpdates
47099
+ 'account.deleteWebBrowserSettingsExceptions': tl.account.TypeWebBrowserSettings
46770
47100
  }
46771
47101
  /**
46772
47102
  * Privacy rules
@@ -46934,6 +47264,8 @@ export class RpcError extends Error {
46934
47264
  */
46935
47265
  type TypePasskeyRegistrationOptions = tl.account.RawPasskeyRegistrationOptions
46936
47266
  function isAnyPasskeyRegistrationOptions(o: object): o is TypePasskeyRegistrationOptions
47267
+ type TypeWebBrowserSettings = tl.account.RawWebBrowserSettingsNotModified | tl.account.RawWebBrowserSettings
47268
+ function isAnyWebBrowserSettings(o: object): o is TypeWebBrowserSettings
46937
47269
  }
46938
47270
 
46939
47271
  namespace channels {
@@ -47368,7 +47700,8 @@ export class RpcError extends Error {
47368
47700
  /**
47369
47701
  * Join a channel/supergroup
47370
47702
  *
47371
- * RPC method returns {@link tl.TypeUpdates}
47703
+ * RPC method returns
47704
+ * {@link tl.messages.TypeChatInviteJoinResult}
47372
47705
  */
47373
47706
  interface RawJoinChannelRequest {
47374
47707
  _: 'channels.joinChannel';
@@ -47835,6 +48168,7 @@ export class RpcError extends Error {
47835
48168
  */
47836
48169
  interface RawToggleJoinRequestRequest {
47837
48170
  _: 'channels.toggleJoinRequest';
48171
+ applyToInvites?: boolean;
47838
48172
  /**
47839
48173
  * Group
47840
48174
  */
@@ -47843,6 +48177,7 @@ export class RpcError extends Error {
47843
48177
  * Toggle
47844
48178
  */
47845
48179
  enabled: boolean;
48180
+ guardBot?: tl.TypeInputUser;
47846
48181
  }
47847
48182
  /**
47848
48183
  * Reorder active usernames
@@ -48584,7 +48919,7 @@ export class RpcError extends Error {
48584
48919
  'channels.editPhoto': tl.TypeUpdates
48585
48920
  'channels.checkUsername': boolean
48586
48921
  'channels.updateUsername': boolean
48587
- 'channels.joinChannel': tl.TypeUpdates
48922
+ 'channels.joinChannel': tl.messages.TypeChatInviteJoinResult
48588
48923
  'channels.leaveChannel': tl.TypeUpdates
48589
48924
  'channels.inviteToChannel': tl.messages.TypeInvitedUsers
48590
48925
  'channels.deleteChannel': tl.TypeUpdates
@@ -54668,6 +55003,14 @@ export class RpcError extends Error {
54668
55003
  bot: tl.TypeInputUser;
54669
55004
  addUsers?: tl.TypeInputUser[];
54670
55005
  }
55006
+ /**
55007
+ * RPC method returns boolean
55008
+ */
55009
+ interface RawSetJoinChatResultsRequest {
55010
+ _: 'bots.setJoinChatResults';
55011
+ queryId: Long;
55012
+ result: tl.TypeJoinChatBotResult;
55013
+ }
54671
55014
  interface RpcCallReturn {
54672
55015
  'bots.sendCustomRequest': tl.TypeDataJSON
54673
55016
  'bots.answerWebhookJSONQuery': boolean
@@ -54706,6 +55049,7 @@ export class RpcError extends Error {
54706
55049
  'bots.getRequestedWebViewButton': tl.TypeKeyboardButton
54707
55050
  'bots.getAccessSettings': tl.bots.TypeAccessSettings
54708
55051
  'bots.editAccessSettings': boolean
55052
+ 'bots.setJoinChatResults': boolean
54709
55053
  }
54710
55054
  /**
54711
55055
  * Localized name, about text and description of a bot.
@@ -56515,7 +56859,7 @@ export class RpcError extends Error {
56515
56859
  /**
56516
56860
  * Object contains info on events occurred.
56517
56861
  */
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
56862
+ 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
56863
  function isAnyUpdate(o: object): o is TypeUpdate
56520
56864
  /**
56521
56865
  * Peer
@@ -56815,6 +57159,11 @@ export class RpcError extends Error {
56815
57159
  | tl.account.RawRegisterPasskeyRequest
56816
57160
  | tl.account.RawGetPasskeysRequest
56817
57161
  | tl.account.RawDeletePasskeyRequest
57162
+ | tl.account.RawConfirmBotConnectionRequest
57163
+ | tl.account.RawGetWebBrowserSettingsRequest
57164
+ | tl.account.RawUpdateWebBrowserSettingsRequest
57165
+ | tl.account.RawToggleWebBrowserSettingsExceptionRequest
57166
+ | tl.account.RawDeleteWebBrowserSettingsExceptionsRequest
56818
57167
  | tl.users.RawGetUsersRequest
56819
57168
  | tl.users.RawGetFullUserRequest
56820
57169
  | tl.users.RawSetSecureValueErrorsRequest
@@ -57105,6 +57454,7 @@ export class RpcError extends Error {
57105
57454
  | tl.messages.RawDeleteParticipantReactionsRequest
57106
57455
  | tl.messages.RawDeleteParticipantReactionRequest
57107
57456
  | tl.messages.RawGetPersonalChannelHistoryRequest
57457
+ | tl.messages.RawGetRichMessageRequest
57108
57458
  | tl.updates.RawGetStateRequest
57109
57459
  | tl.updates.RawGetDifferenceRequest
57110
57460
  | tl.updates.RawGetChannelDifferenceRequest
@@ -57241,6 +57591,7 @@ export class RpcError extends Error {
57241
57591
  | tl.bots.RawGetRequestedWebViewButtonRequest
57242
57592
  | tl.bots.RawGetAccessSettingsRequest
57243
57593
  | tl.bots.RawEditAccessSettingsRequest
57594
+ | tl.bots.RawSetJoinChatResultsRequest
57244
57595
  | tl.payments.RawGetPaymentFormRequest
57245
57596
  | tl.payments.RawGetPaymentReceiptRequest
57246
57597
  | tl.payments.RawValidateRequestedInfoRequest
@@ -57862,6 +58213,10 @@ export class RpcError extends Error {
57862
58213
  | tl.RawUpdateManagedBot
57863
58214
  | tl.RawUpdateBotGuestChatQuery
57864
58215
  | tl.RawUpdateAiComposeTones
58216
+ | tl.RawUpdateJoinChatWebViewDecision
58217
+ | tl.RawUpdateNewBotConnection
58218
+ | tl.RawUpdateWebBrowserSettings
58219
+ | tl.RawUpdateWebBrowserException
57865
58220
  | tl.updates.RawState
57866
58221
  | tl.updates.RawDifferenceEmpty
57867
58222
  | tl.updates.RawDifference
@@ -57932,6 +58287,8 @@ export class RpcError extends Error {
57932
58287
  | tl.RawSendMessageEmojiInteraction
57933
58288
  | tl.RawSendMessageEmojiInteractionSeen
57934
58289
  | tl.RawSendMessageTextDraftAction
58290
+ | tl.RawInputSendMessageRichMessageDraftAction
58291
+ | tl.RawSendMessageRichMessageDraftAction
57935
58292
  | tl.contacts.RawFound
57936
58293
  | tl.RawInputPrivacyKeyStatusTimestamp
57937
58294
  | tl.RawInputPrivacyKeyChatInvite
@@ -58120,6 +58477,7 @@ export class RpcError extends Error {
58120
58477
  | tl.RawInputBotInlineMessageGame
58121
58478
  | tl.RawInputBotInlineMessageMediaInvoice
58122
58479
  | tl.RawInputBotInlineMessageMediaWebPage
58480
+ | tl.RawInputBotInlineMessageRichMessage
58123
58481
  | tl.RawInputBotInlineResult
58124
58482
  | tl.RawInputBotInlineResultPhoto
58125
58483
  | tl.RawInputBotInlineResultDocument
@@ -58131,6 +58489,7 @@ export class RpcError extends Error {
58131
58489
  | tl.RawBotInlineMessageMediaContact
58132
58490
  | tl.RawBotInlineMessageMediaInvoice
58133
58491
  | tl.RawBotInlineMessageMediaWebPage
58492
+ | tl.RawBotInlineMessageRichMessage
58134
58493
  | tl.RawBotInlineResult
58135
58494
  | tl.RawBotInlineMediaResult
58136
58495
  | tl.messages.RawBotResults
@@ -58210,6 +58569,19 @@ export class RpcError extends Error {
58210
58569
  | tl.RawTextPhone
58211
58570
  | tl.RawTextImage
58212
58571
  | tl.RawTextAnchor
58572
+ | tl.RawTextMath
58573
+ | tl.RawTextCustomEmoji
58574
+ | tl.RawTextSpoiler
58575
+ | tl.RawTextMention
58576
+ | tl.RawTextHashtag
58577
+ | tl.RawTextBotCommand
58578
+ | tl.RawTextCashtag
58579
+ | tl.RawTextAutoUrl
58580
+ | tl.RawTextAutoEmail
58581
+ | tl.RawTextAutoPhone
58582
+ | tl.RawTextBankCard
58583
+ | tl.RawTextMentionName
58584
+ | tl.RawTextDate
58213
58585
  | tl.RawPageBlockUnsupported
58214
58586
  | tl.RawPageBlockTitle
58215
58587
  | tl.RawPageBlockSubtitle
@@ -58239,6 +58611,16 @@ export class RpcError extends Error {
58239
58611
  | tl.RawPageBlockDetails
58240
58612
  | tl.RawPageBlockRelatedArticles
58241
58613
  | tl.RawPageBlockMap
58614
+ | tl.RawPageBlockHeading1
58615
+ | tl.RawPageBlockHeading2
58616
+ | tl.RawPageBlockHeading3
58617
+ | tl.RawPageBlockHeading4
58618
+ | tl.RawPageBlockHeading5
58619
+ | tl.RawPageBlockHeading6
58620
+ | tl.RawPageBlockMath
58621
+ | tl.RawPageBlockThinking
58622
+ | tl.RawInputPageBlockMap
58623
+ | tl.RawPageBlockBlockquoteBlocks
58242
58624
  | tl.RawPhoneCallDiscardReasonMissed
58243
58625
  | tl.RawPhoneCallDiscardReasonDisconnect
58244
58626
  | tl.RawPhoneCallDiscardReasonHangup
@@ -59020,6 +59402,21 @@ export class RpcError extends Error {
59020
59402
  | tl.aicompose.RawTones
59021
59403
  | tl.RawAiComposeToneExample
59022
59404
  | tl.bots.RawAccessSettings
59405
+ | tl.messages.RawChatInviteJoinResultOk
59406
+ | tl.messages.RawChatInviteJoinResultWebView
59407
+ | tl.RawJoinChatBotResultApproved
59408
+ | tl.RawJoinChatBotResultDeclined
59409
+ | tl.RawJoinChatBotResultQueued
59410
+ | tl.RawJoinChatBotResultWebView
59411
+ | tl.RawWebDomainException
59412
+ | tl.account.RawWebBrowserSettingsNotModified
59413
+ | tl.account.RawWebBrowserSettings
59414
+ | tl.RawInputRichFilePhoto
59415
+ | tl.RawInputRichFileDocument
59416
+ | tl.RawInputRichMessage
59417
+ | tl.RawInputRichMessageHTML
59418
+ | tl.RawInputRichMessageMarkdown
59419
+ | tl.RawRichMessage
59023
59420
  | tl.RawUpdateChannelPinnedTopic
59024
59421
  | tl.RawUpdateChannelPinnedTopics
59025
59422
  | tl.mtcute.RawDummyUpdate
@@ -59185,6 +59582,11 @@ export class RpcError extends Error {
59185
59582
  | tl.account.RawRegisterPasskeyRequest
59186
59583
  | tl.account.RawGetPasskeysRequest
59187
59584
  | tl.account.RawDeletePasskeyRequest
59585
+ | tl.account.RawConfirmBotConnectionRequest
59586
+ | tl.account.RawGetWebBrowserSettingsRequest
59587
+ | tl.account.RawUpdateWebBrowserSettingsRequest
59588
+ | tl.account.RawToggleWebBrowserSettingsExceptionRequest
59589
+ | tl.account.RawDeleteWebBrowserSettingsExceptionsRequest
59188
59590
  | tl.users.RawGetUsersRequest
59189
59591
  | tl.users.RawGetFullUserRequest
59190
59592
  | tl.users.RawSetSecureValueErrorsRequest
@@ -59475,6 +59877,7 @@ export class RpcError extends Error {
59475
59877
  | tl.messages.RawDeleteParticipantReactionsRequest
59476
59878
  | tl.messages.RawDeleteParticipantReactionRequest
59477
59879
  | tl.messages.RawGetPersonalChannelHistoryRequest
59880
+ | tl.messages.RawGetRichMessageRequest
59478
59881
  | tl.updates.RawGetStateRequest
59479
59882
  | tl.updates.RawGetDifferenceRequest
59480
59883
  | tl.updates.RawGetChannelDifferenceRequest
@@ -59611,6 +60014,7 @@ export class RpcError extends Error {
59611
60014
  | tl.bots.RawGetRequestedWebViewButtonRequest
59612
60015
  | tl.bots.RawGetAccessSettingsRequest
59613
60016
  | tl.bots.RawEditAccessSettingsRequest
60017
+ | tl.bots.RawSetJoinChatResultsRequest
59614
60018
  | tl.payments.RawGetPaymentFormRequest
59615
60019
  | tl.payments.RawGetPaymentReceiptRequest
59616
60020
  | tl.payments.RawValidateRequestedInfoRequest
@@ -60195,6 +60599,11 @@ export declare function isAnyInputMessageReadMetric(o: object): o is tl.TypeInpu
60195
60599
  export declare function isAnyInputAiComposeTone(o: object): o is tl.TypeInputAiComposeTone
60196
60600
  export declare function isAnyAiComposeTone(o: object): o is tl.TypeAiComposeTone
60197
60601
  export declare function isAnyAiComposeToneExample(o: object): o is tl.TypeAiComposeToneExample
60602
+ export declare function isAnyJoinChatBotResult(o: object): o is tl.TypeJoinChatBotResult
60603
+ export declare function isAnyWebDomainException(o: object): o is tl.TypeWebDomainException
60604
+ export declare function isAnyInputRichFile(o: object): o is tl.TypeInputRichFile
60605
+ export declare function isAnyInputRichMessage(o: object): o is tl.TypeInputRichMessage
60606
+ export declare function isAnyRichMessage(o: object): o is tl.TypeRichMessage
60198
60607
  export declare function isAnyStorage_FileType(o: object): o is tl.storage.TypeFileType
60199
60608
  export declare function isAnyAuth_SentCode(o: object): o is tl.auth.TypeSentCode
60200
60609
  export declare function isAnyAuth_Authorization(o: object): o is tl.auth.TypeAuthorization
@@ -60276,6 +60685,7 @@ export declare function isAnyMessages_WebPagePreview(o: object): o is tl.message
60276
60685
  export declare function isAnyMessages_EmojiGameOutcome(o: object): o is tl.messages.TypeEmojiGameOutcome
60277
60686
  export declare function isAnyMessages_EmojiGameInfo(o: object): o is tl.messages.TypeEmojiGameInfo
60278
60687
  export declare function isAnyMessages_ComposedMessageWithAI(o: object): o is tl.messages.TypeComposedMessageWithAI
60688
+ export declare function isAnyMessages_ChatInviteJoinResult(o: object): o is tl.messages.TypeChatInviteJoinResult
60279
60689
  export declare function isAnyUpdates_State(o: object): o is tl.updates.TypeState
60280
60690
  export declare function isAnyUpdates_Difference(o: object): o is tl.updates.TypeDifference
60281
60691
  export declare function isAnyUpdates_ChannelDifference(o: object): o is tl.updates.TypeChannelDifference
@@ -60332,6 +60742,7 @@ export declare function isAnyAccount_PaidMessagesRevenue(o: object): o is tl.acc
60332
60742
  export declare function isAnyAccount_SavedMusicIds(o: object): o is tl.account.TypeSavedMusicIds
60333
60743
  export declare function isAnyAccount_Passkeys(o: object): o is tl.account.TypePasskeys
60334
60744
  export declare function isAnyAccount_PasskeyRegistrationOptions(o: object): o is tl.account.TypePasskeyRegistrationOptions
60745
+ export declare function isAnyAccount_WebBrowserSettings(o: object): o is tl.account.TypeWebBrowserSettings
60335
60746
  export declare function isAnyChannels_ChannelParticipants(o: object): o is tl.channels.TypeChannelParticipants
60336
60747
  export declare function isAnyChannels_ChannelParticipant(o: object): o is tl.channels.TypeChannelParticipant
60337
60748
  export declare function isAnyChannels_AdminLogResults(o: object): o is tl.channels.TypeAdminLogResults