@mtcute/tl 166.0.0 → 167.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api-schema.json +1 -1
- package/binary/reader.js +57 -41
- package/binary/writer.js +85 -55
- package/index.d.ts +1674 -218
- package/index.js +17 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _Long from 'long';
|
|
3
3
|
|
|
4
4
|
export declare namespace tl {
|
|
5
|
-
const LAYER =
|
|
5
|
+
const LAYER = 167;
|
|
6
6
|
|
|
7
7
|
function $extendTypes(types: Record<string, string>): void
|
|
8
8
|
|
|
@@ -1043,7 +1043,7 @@ export class RpcError extends Error {
|
|
|
1043
1043
|
address: string;
|
|
1044
1044
|
/**
|
|
1045
1045
|
* Venue provider: currently only "foursquare" and "gplaces"
|
|
1046
|
-
* need to be supported
|
|
1046
|
+
* (Google Places) need to be supported
|
|
1047
1047
|
*/
|
|
1048
1048
|
provider: string;
|
|
1049
1049
|
/**
|
|
@@ -1235,11 +1235,27 @@ export class RpcError extends Error {
|
|
|
1235
1235
|
*/
|
|
1236
1236
|
emoticon: string;
|
|
1237
1237
|
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Forwarded story
|
|
1240
|
+
*/
|
|
1238
1241
|
interface RawInputMediaStory {
|
|
1239
1242
|
_: 'inputMediaStory';
|
|
1243
|
+
/**
|
|
1244
|
+
* Peer where the story was posted
|
|
1245
|
+
*/
|
|
1240
1246
|
peer: tl.TypeInputPeer;
|
|
1247
|
+
/**
|
|
1248
|
+
* Story ID
|
|
1249
|
+
*/
|
|
1241
1250
|
id: number;
|
|
1242
1251
|
}
|
|
1252
|
+
interface RawInputMediaWebPage {
|
|
1253
|
+
_: 'inputMediaWebPage';
|
|
1254
|
+
forceLargeMedia?: boolean;
|
|
1255
|
+
forceSmallMedia?: boolean;
|
|
1256
|
+
optional?: boolean;
|
|
1257
|
+
url: string;
|
|
1258
|
+
}
|
|
1243
1259
|
/**
|
|
1244
1260
|
* Empty constructor, remove group photo.
|
|
1245
1261
|
*/
|
|
@@ -1677,6 +1693,11 @@ export class RpcError extends Error {
|
|
|
1677
1693
|
*/
|
|
1678
1694
|
botCanEdit?: boolean;
|
|
1679
1695
|
closeFriend?: boolean;
|
|
1696
|
+
/**
|
|
1697
|
+
* Whether we have
|
|
1698
|
+
* <a href="https://corefork.telegram.org/api/stories#hiding-stories-of-other-users">hidden
|
|
1699
|
+
* »</a> all active stories of this user.
|
|
1700
|
+
*/
|
|
1680
1701
|
storiesHidden?: boolean;
|
|
1681
1702
|
storiesUnavailable?: boolean;
|
|
1682
1703
|
/**
|
|
@@ -1739,8 +1760,8 @@ export class RpcError extends Error {
|
|
|
1739
1760
|
*/
|
|
1740
1761
|
usernames?: tl.TypeUsername[];
|
|
1741
1762
|
storiesMaxId?: number;
|
|
1742
|
-
color?:
|
|
1743
|
-
|
|
1763
|
+
color?: tl.TypePeerColor;
|
|
1764
|
+
profileColor?: tl.TypePeerColor;
|
|
1744
1765
|
}
|
|
1745
1766
|
/**
|
|
1746
1767
|
* Profile photo has not been set, or was hidden.
|
|
@@ -2081,8 +2102,7 @@ export class RpcError extends Error {
|
|
|
2081
2102
|
*/
|
|
2082
2103
|
usernames?: tl.TypeUsername[];
|
|
2083
2104
|
storiesMaxId?: number;
|
|
2084
|
-
color?:
|
|
2085
|
-
backgroundEmojiId?: Long;
|
|
2105
|
+
color?: tl.TypePeerColor;
|
|
2086
2106
|
}
|
|
2087
2107
|
/**
|
|
2088
2108
|
* Indicates a channel/supergroup we can't access because we
|
|
@@ -2282,6 +2302,7 @@ export class RpcError extends Error {
|
|
|
2282
2302
|
*/
|
|
2283
2303
|
translationsDisabled?: boolean;
|
|
2284
2304
|
storiesPinnedAvailable?: boolean;
|
|
2305
|
+
viewForumAsMessages?: boolean;
|
|
2285
2306
|
/**
|
|
2286
2307
|
* ID of the channel
|
|
2287
2308
|
*/
|
|
@@ -2449,6 +2470,10 @@ export class RpcError extends Error {
|
|
|
2449
2470
|
* reactions »</a>
|
|
2450
2471
|
*/
|
|
2451
2472
|
availableReactions?: tl.TypeChatReactions;
|
|
2473
|
+
/**
|
|
2474
|
+
* Channel
|
|
2475
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
2476
|
+
*/
|
|
2452
2477
|
stories?: tl.TypePeerStories;
|
|
2453
2478
|
}
|
|
2454
2479
|
/**
|
|
@@ -2623,9 +2648,12 @@ export class RpcError extends Error {
|
|
|
2623
2648
|
/**
|
|
2624
2649
|
* Whether this message is
|
|
2625
2650
|
* <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a>
|
|
2626
|
-
* and thus cannot be forwarded
|
|
2651
|
+
* and thus cannot be forwarded; clients should also prevent
|
|
2652
|
+
* users from saving attached media (i.e. videos should only be
|
|
2653
|
+
* streamed, photos should be kept in RAM, et cetera).
|
|
2627
2654
|
*/
|
|
2628
2655
|
noforwards?: boolean;
|
|
2656
|
+
invertMedia?: boolean;
|
|
2629
2657
|
/**
|
|
2630
2658
|
* ID of the message
|
|
2631
2659
|
*/
|
|
@@ -2719,7 +2747,6 @@ export class RpcError extends Error {
|
|
|
2719
2747
|
* well.
|
|
2720
2748
|
*/
|
|
2721
2749
|
ttlPeriod?: number;
|
|
2722
|
-
invertMedia?: boolean;
|
|
2723
2750
|
}
|
|
2724
2751
|
/**
|
|
2725
2752
|
* Indicates a service message
|
|
@@ -2910,7 +2937,7 @@ export class RpcError extends Error {
|
|
|
2910
2937
|
address: string;
|
|
2911
2938
|
/**
|
|
2912
2939
|
* Venue provider: currently only "foursquare" and "gplaces"
|
|
2913
|
-
* need to be supported
|
|
2940
|
+
* (Google Places) need to be supported
|
|
2914
2941
|
*/
|
|
2915
2942
|
provider: string;
|
|
2916
2943
|
/**
|
|
@@ -3065,6 +3092,15 @@ export class RpcError extends Error {
|
|
|
3065
3092
|
id: number;
|
|
3066
3093
|
story?: tl.TypeStoryItem;
|
|
3067
3094
|
}
|
|
3095
|
+
interface RawMessageMediaGiveaway {
|
|
3096
|
+
_: 'messageMediaGiveaway';
|
|
3097
|
+
onlyNewSubscribers?: boolean;
|
|
3098
|
+
channels: number[];
|
|
3099
|
+
countriesIso2?: string[];
|
|
3100
|
+
quantity: number;
|
|
3101
|
+
months: number;
|
|
3102
|
+
untilDate: number;
|
|
3103
|
+
}
|
|
3068
3104
|
/**
|
|
3069
3105
|
* Empty constructor.
|
|
3070
3106
|
*/
|
|
@@ -3657,6 +3693,8 @@ export class RpcError extends Error {
|
|
|
3657
3693
|
*/
|
|
3658
3694
|
interface RawMessageActionSetChatWallPaper {
|
|
3659
3695
|
_: 'messageActionSetChatWallPaper';
|
|
3696
|
+
same?: boolean;
|
|
3697
|
+
forBoth?: boolean;
|
|
3660
3698
|
/**
|
|
3661
3699
|
* New
|
|
3662
3700
|
* <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a>
|
|
@@ -3677,6 +3715,17 @@ export class RpcError extends Error {
|
|
|
3677
3715
|
*/
|
|
3678
3716
|
wallpaper: tl.TypeWallPaper;
|
|
3679
3717
|
}
|
|
3718
|
+
interface RawMessageActionGiftCode {
|
|
3719
|
+
_: 'messageActionGiftCode';
|
|
3720
|
+
viaGiveaway?: boolean;
|
|
3721
|
+
unclaimed?: boolean;
|
|
3722
|
+
boostPeer?: tl.TypePeer;
|
|
3723
|
+
months: number;
|
|
3724
|
+
slug: string;
|
|
3725
|
+
}
|
|
3726
|
+
interface RawMessageActionGiveawayLaunch {
|
|
3727
|
+
_: 'messageActionGiveawayLaunch';
|
|
3728
|
+
}
|
|
3680
3729
|
/**
|
|
3681
3730
|
* Chat
|
|
3682
3731
|
*/
|
|
@@ -3742,6 +3791,7 @@ export class RpcError extends Error {
|
|
|
3742
3791
|
* Time-to-live of all messages sent in this dialog
|
|
3743
3792
|
*/
|
|
3744
3793
|
ttlPeriod?: number;
|
|
3794
|
+
viewForumAsMessages?: boolean;
|
|
3745
3795
|
}
|
|
3746
3796
|
/**
|
|
3747
3797
|
* Dialog in folder
|
|
@@ -4087,7 +4137,11 @@ export class RpcError extends Error {
|
|
|
4087
4137
|
}
|
|
4088
4138
|
/**
|
|
4089
4139
|
* List of actions that are possible when interacting with this
|
|
4090
|
-
* user, to be shown as suggested actions in the
|
|
4140
|
+
* user, to be shown as suggested actions in the
|
|
4141
|
+
* <a href="https://corefork.telegram.org/api/action-bar">chat
|
|
4142
|
+
* action bar »</a>, see
|
|
4143
|
+
* <a href="https://corefork.telegram.org/api/action-bar">here
|
|
4144
|
+
* »</a> for more info.
|
|
4091
4145
|
*/
|
|
4092
4146
|
interface RawPeerSettings {
|
|
4093
4147
|
_: 'peerSettings';
|
|
@@ -4336,6 +4390,7 @@ export class RpcError extends Error {
|
|
|
4336
4390
|
translationsDisabled?: boolean;
|
|
4337
4391
|
storiesPinnedAvailable?: boolean;
|
|
4338
4392
|
blockedMyStoriesFrom?: boolean;
|
|
4393
|
+
wallpaperOverridden?: boolean;
|
|
4339
4394
|
/**
|
|
4340
4395
|
* User ID
|
|
4341
4396
|
*/
|
|
@@ -4734,6 +4789,11 @@ export class RpcError extends Error {
|
|
|
4734
4789
|
*/
|
|
4735
4790
|
interface RawUpdateNewAuthorization {
|
|
4736
4791
|
_: 'updateNewAuthorization';
|
|
4792
|
+
/**
|
|
4793
|
+
* Whether the session is
|
|
4794
|
+
* <a href="https://corefork.telegram.org/api/auth#confirming-login">unconfirmed,
|
|
4795
|
+
* see here »</a> for more info.
|
|
4796
|
+
*/
|
|
4737
4797
|
unconfirmed?: boolean;
|
|
4738
4798
|
/**
|
|
4739
4799
|
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
@@ -4902,6 +4962,7 @@ export class RpcError extends Error {
|
|
|
4902
4962
|
* If set, the message must be displayed in a popup.
|
|
4903
4963
|
*/
|
|
4904
4964
|
popup?: boolean;
|
|
4965
|
+
invertMedia?: boolean;
|
|
4905
4966
|
/**
|
|
4906
4967
|
* When was the notification received
|
|
4907
4968
|
*
|
|
@@ -4910,7 +4971,6 @@ export class RpcError extends Error {
|
|
|
4910
4971
|
* (Telegram Notifications).
|
|
4911
4972
|
*/
|
|
4912
4973
|
inboxDate?: number;
|
|
4913
|
-
invertMedia?: boolean;
|
|
4914
4974
|
/**
|
|
4915
4975
|
* String, identical in format and contents to the
|
|
4916
4976
|
* <a href="https://corefork.telegram.org/api/errors#error-type"><strong>type</strong></a>
|
|
@@ -5085,7 +5145,8 @@ export class RpcError extends Error {
|
|
|
5085
5145
|
pts?: number;
|
|
5086
5146
|
}
|
|
5087
5147
|
/**
|
|
5088
|
-
* A new channel is available
|
|
5148
|
+
* A new channel or supergroup is available, or info about an
|
|
5149
|
+
* existing channel has changed and must be refeteched.
|
|
5089
5150
|
*/
|
|
5090
5151
|
interface RawUpdateChannel {
|
|
5091
5152
|
_: 'updateChannel';
|
|
@@ -6063,7 +6124,9 @@ export class RpcError extends Error {
|
|
|
6063
6124
|
readMaxId: number;
|
|
6064
6125
|
}
|
|
6065
6126
|
/**
|
|
6066
|
-
*
|
|
6127
|
+
* We blocked a peer, see
|
|
6128
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
6129
|
+
* for more info on blocklists.
|
|
6067
6130
|
*/
|
|
6068
6131
|
interface RawUpdatePeerBlocked {
|
|
6069
6132
|
_: 'updatePeerBlocked';
|
|
@@ -6071,9 +6134,16 @@ export class RpcError extends Error {
|
|
|
6071
6134
|
* Whether the peer was blocked or unblocked
|
|
6072
6135
|
*/
|
|
6073
6136
|
blocked?: boolean;
|
|
6137
|
+
/**
|
|
6138
|
+
* Whether the peer was added/removed to/from the story
|
|
6139
|
+
* blocklist; if not set, this update affects the main
|
|
6140
|
+
* blocklist, see
|
|
6141
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
6142
|
+
* for more info.
|
|
6143
|
+
*/
|
|
6074
6144
|
blockedMyStoriesFrom?: boolean;
|
|
6075
6145
|
/**
|
|
6076
|
-
* The blocked peer
|
|
6146
|
+
* The (un)blocked peer
|
|
6077
6147
|
*/
|
|
6078
6148
|
peerId: tl.TypePeer;
|
|
6079
6149
|
}
|
|
@@ -6660,7 +6730,7 @@ export class RpcError extends Error {
|
|
|
6660
6730
|
/**
|
|
6661
6731
|
* User ID
|
|
6662
6732
|
*/
|
|
6663
|
-
userId:
|
|
6733
|
+
userId: number;
|
|
6664
6734
|
}
|
|
6665
6735
|
/**
|
|
6666
6736
|
* Media autosave settings have changed and must be refetched
|
|
@@ -6684,33 +6754,101 @@ export class RpcError extends Error {
|
|
|
6684
6754
|
/**
|
|
6685
6755
|
* ID of the user we couldn't add.
|
|
6686
6756
|
*/
|
|
6687
|
-
userId:
|
|
6757
|
+
userId: number;
|
|
6688
6758
|
}
|
|
6759
|
+
/**
|
|
6760
|
+
* A new story was posted.
|
|
6761
|
+
*/
|
|
6689
6762
|
interface RawUpdateStory {
|
|
6690
6763
|
_: 'updateStory';
|
|
6764
|
+
/**
|
|
6765
|
+
* ID of the poster.
|
|
6766
|
+
*/
|
|
6691
6767
|
peer: tl.TypePeer;
|
|
6768
|
+
/**
|
|
6769
|
+
* The story that was posted.
|
|
6770
|
+
*/
|
|
6692
6771
|
story: tl.TypeStoryItem;
|
|
6693
6772
|
}
|
|
6773
|
+
/**
|
|
6774
|
+
* Stories of a specific peer were marked as read.
|
|
6775
|
+
*/
|
|
6694
6776
|
interface RawUpdateReadStories {
|
|
6695
6777
|
_: 'updateReadStories';
|
|
6778
|
+
/**
|
|
6779
|
+
* The peer
|
|
6780
|
+
*/
|
|
6696
6781
|
peer: tl.TypePeer;
|
|
6782
|
+
/**
|
|
6783
|
+
* ID of the last story that was marked as read
|
|
6784
|
+
*/
|
|
6697
6785
|
maxId: number;
|
|
6698
6786
|
}
|
|
6787
|
+
/**
|
|
6788
|
+
* A story was successfully uploaded.
|
|
6789
|
+
*
|
|
6790
|
+
* Once a story is successfully uploaded, an
|
|
6791
|
+
* {@link RawUpdateStoryID} will be returned, indicating the
|
|
6792
|
+
* story ID (<code>id</code>) that was attributed to the story
|
|
6793
|
+
* (like for messages, <code>random_id</code> indicates the
|
|
6794
|
+
* <code>random_id</code> that was passed to
|
|
6795
|
+
* {@link stories.RawSendStory}: this way, you can tell which
|
|
6796
|
+
* story was assigned a specific <code>id</code> by checking
|
|
6797
|
+
* which {@link stories.RawSendStory} call has the returned
|
|
6798
|
+
* <code>random_id</code>).
|
|
6799
|
+
*/
|
|
6699
6800
|
interface RawUpdateStoryID {
|
|
6700
6801
|
_: 'updateStoryID';
|
|
6802
|
+
/**
|
|
6803
|
+
* The <code>id</code> that was attributed to the story.
|
|
6804
|
+
*/
|
|
6701
6805
|
id: number;
|
|
6806
|
+
/**
|
|
6807
|
+
* The <code>random_id</code> that was passed to
|
|
6808
|
+
* {@link stories.RawSendStory}.
|
|
6809
|
+
*/
|
|
6702
6810
|
randomId: Long;
|
|
6703
6811
|
}
|
|
6812
|
+
/**
|
|
6813
|
+
* Indicates that
|
|
6814
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stories
|
|
6815
|
+
* stealth mode</a> was activated.
|
|
6816
|
+
*/
|
|
6704
6817
|
interface RawUpdateStoriesStealthMode {
|
|
6705
6818
|
_: 'updateStoriesStealthMode';
|
|
6819
|
+
/**
|
|
6820
|
+
* Information about the current
|
|
6821
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stealth
|
|
6822
|
+
* mode</a> session.
|
|
6823
|
+
*/
|
|
6706
6824
|
stealthMode: tl.TypeStoriesStealthMode;
|
|
6707
6825
|
}
|
|
6826
|
+
/**
|
|
6827
|
+
* Indicates we
|
|
6828
|
+
* <a href="https://corefork.telegram.org/api/stories#reactions">reacted
|
|
6829
|
+
* to a story »</a>.
|
|
6830
|
+
*/
|
|
6708
6831
|
interface RawUpdateSentStoryReaction {
|
|
6709
6832
|
_: 'updateSentStoryReaction';
|
|
6833
|
+
/**
|
|
6834
|
+
* The peer that sent the story
|
|
6835
|
+
*/
|
|
6710
6836
|
peer: tl.TypePeer;
|
|
6837
|
+
/**
|
|
6838
|
+
* ID of the story we reacted to
|
|
6839
|
+
*/
|
|
6711
6840
|
storyId: number;
|
|
6841
|
+
/**
|
|
6842
|
+
* The reaction that was sent
|
|
6843
|
+
*/
|
|
6712
6844
|
reaction: tl.TypeReaction;
|
|
6713
6845
|
}
|
|
6846
|
+
interface RawUpdateBotChatBoost {
|
|
6847
|
+
_: 'updateBotChatBoost';
|
|
6848
|
+
peer: tl.TypePeer;
|
|
6849
|
+
boost: tl.TypeBoost;
|
|
6850
|
+
qts: number;
|
|
6851
|
+
}
|
|
6714
6852
|
/**
|
|
6715
6853
|
* Too many updates, it is necessary to execute
|
|
6716
6854
|
* {@link updates.RawGetDifferenceRequest}.
|
|
@@ -7937,6 +8075,9 @@ export class RpcError extends Error {
|
|
|
7937
8075
|
interface RawInputPrivacyKeyVoiceMessages {
|
|
7938
8076
|
_: 'inputPrivacyKeyVoiceMessages';
|
|
7939
8077
|
}
|
|
8078
|
+
/**
|
|
8079
|
+
* Whether people can see your bio
|
|
8080
|
+
*/
|
|
7940
8081
|
interface RawInputPrivacyKeyAbout {
|
|
7941
8082
|
_: 'inputPrivacyKeyAbout';
|
|
7942
8083
|
}
|
|
@@ -7998,6 +8139,9 @@ export class RpcError extends Error {
|
|
|
7998
8139
|
interface RawPrivacyKeyVoiceMessages {
|
|
7999
8140
|
_: 'privacyKeyVoiceMessages';
|
|
8000
8141
|
}
|
|
8142
|
+
/**
|
|
8143
|
+
* Whether people can see your bio
|
|
8144
|
+
*/
|
|
8001
8145
|
interface RawPrivacyKeyAbout {
|
|
8002
8146
|
_: 'privacyKeyAbout';
|
|
8003
8147
|
}
|
|
@@ -8065,6 +8209,11 @@ export class RpcError extends Error {
|
|
|
8065
8209
|
*/
|
|
8066
8210
|
chats: number[];
|
|
8067
8211
|
}
|
|
8212
|
+
/**
|
|
8213
|
+
* Allow only
|
|
8214
|
+
* <a href="https://corefork.telegram.org/api/privacy">close
|
|
8215
|
+
* friends »</a>
|
|
8216
|
+
*/
|
|
8068
8217
|
interface RawInputPrivacyValueAllowCloseFriends {
|
|
8069
8218
|
_: 'inputPrivacyValueAllowCloseFriends';
|
|
8070
8219
|
}
|
|
@@ -8132,6 +8281,11 @@ export class RpcError extends Error {
|
|
|
8132
8281
|
*/
|
|
8133
8282
|
chats: number[];
|
|
8134
8283
|
}
|
|
8284
|
+
/**
|
|
8285
|
+
* Allow only
|
|
8286
|
+
* <a href="https://corefork.telegram.org/api/privacy">close
|
|
8287
|
+
* friends »</a>
|
|
8288
|
+
*/
|
|
8135
8289
|
interface RawPrivacyValueAllowCloseFriends {
|
|
8136
8290
|
_: 'privacyValueAllowCloseFriends';
|
|
8137
8291
|
}
|
|
@@ -8339,6 +8493,7 @@ export class RpcError extends Error {
|
|
|
8339
8493
|
*/
|
|
8340
8494
|
interface RawWebPage {
|
|
8341
8495
|
_: 'webPage';
|
|
8496
|
+
hasLargeMedia?: boolean;
|
|
8342
8497
|
/**
|
|
8343
8498
|
* Preview ID
|
|
8344
8499
|
*/
|
|
@@ -8416,7 +8571,6 @@ export class RpcError extends Error {
|
|
|
8416
8571
|
* Webpage attributes
|
|
8417
8572
|
*/
|
|
8418
8573
|
attributes?: tl.TypeWebPageAttribute[];
|
|
8419
|
-
hasLargeMedia?: boolean;
|
|
8420
8574
|
}
|
|
8421
8575
|
/**
|
|
8422
8576
|
* The preview of the webpage hasn't changed
|
|
@@ -8453,6 +8607,11 @@ export class RpcError extends Error {
|
|
|
8453
8607
|
* Whether this session will accept phone calls
|
|
8454
8608
|
*/
|
|
8455
8609
|
callRequestsDisabled?: boolean;
|
|
8610
|
+
/**
|
|
8611
|
+
* Whether the session is
|
|
8612
|
+
* <a href="https://corefork.telegram.org/api/auth#confirming-login">unconfirmed,
|
|
8613
|
+
* see here »</a> for more info.
|
|
8614
|
+
*/
|
|
8456
8615
|
unconfirmed?: boolean;
|
|
8457
8616
|
/**
|
|
8458
8617
|
* Identifier
|
|
@@ -8627,8 +8786,18 @@ export class RpcError extends Error {
|
|
|
8627
8786
|
* request »</a> must be first approved by an administrator
|
|
8628
8787
|
*/
|
|
8629
8788
|
requestNeeded?: boolean;
|
|
8789
|
+
/**
|
|
8790
|
+
* Is this chat or channel verified by Telegram?
|
|
8791
|
+
*/
|
|
8630
8792
|
verified?: boolean;
|
|
8793
|
+
/**
|
|
8794
|
+
* This chat is probably a scam
|
|
8795
|
+
*/
|
|
8631
8796
|
scam?: boolean;
|
|
8797
|
+
/**
|
|
8798
|
+
* If set, this chat was reported by many users as a fake or
|
|
8799
|
+
* scam: be careful when interacting with it.
|
|
8800
|
+
*/
|
|
8632
8801
|
fake?: boolean;
|
|
8633
8802
|
/**
|
|
8634
8803
|
* Chat/supergroup/channel title
|
|
@@ -8798,6 +8967,7 @@ export class RpcError extends Error {
|
|
|
8798
8967
|
* This is a custom emoji stickerset
|
|
8799
8968
|
*/
|
|
8800
8969
|
emojis?: boolean;
|
|
8970
|
+
textColor?: boolean;
|
|
8801
8971
|
/**
|
|
8802
8972
|
* When was this stickerset installed
|
|
8803
8973
|
*/
|
|
@@ -8837,7 +9007,6 @@ export class RpcError extends Error {
|
|
|
8837
9007
|
* using {@link messages.RawGetCustomEmojiDocumentsRequest}
|
|
8838
9008
|
*/
|
|
8839
9009
|
thumbDocumentId?: Long;
|
|
8840
|
-
textColor?: boolean;
|
|
8841
9010
|
/**
|
|
8842
9011
|
* Number of stickers in pack
|
|
8843
9012
|
*/
|
|
@@ -9696,24 +9865,6 @@ export class RpcError extends Error {
|
|
|
9696
9865
|
*/
|
|
9697
9866
|
length: number;
|
|
9698
9867
|
}
|
|
9699
|
-
/**
|
|
9700
|
-
* Message entity representing a block quote.
|
|
9701
|
-
*/
|
|
9702
|
-
interface RawMessageEntityBlockquote {
|
|
9703
|
-
_: 'messageEntityBlockquote';
|
|
9704
|
-
/**
|
|
9705
|
-
* Offset of message entity within message (in
|
|
9706
|
-
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
9707
|
-
* code units</a>)
|
|
9708
|
-
*/
|
|
9709
|
-
offset: number;
|
|
9710
|
-
/**
|
|
9711
|
-
* Length of message entity within message (in
|
|
9712
|
-
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
9713
|
-
* code units</a>)
|
|
9714
|
-
*/
|
|
9715
|
-
length: number;
|
|
9716
|
-
}
|
|
9717
9868
|
/**
|
|
9718
9869
|
* Indicates a credit card number
|
|
9719
9870
|
*/
|
|
@@ -9782,6 +9933,24 @@ export class RpcError extends Error {
|
|
|
9782
9933
|
*/
|
|
9783
9934
|
documentId: Long;
|
|
9784
9935
|
}
|
|
9936
|
+
/**
|
|
9937
|
+
* Message entity representing a block quote.
|
|
9938
|
+
*/
|
|
9939
|
+
interface RawMessageEntityBlockquote {
|
|
9940
|
+
_: 'messageEntityBlockquote';
|
|
9941
|
+
/**
|
|
9942
|
+
* Offset of message entity within message (in
|
|
9943
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
9944
|
+
* code units</a>)
|
|
9945
|
+
*/
|
|
9946
|
+
offset: number;
|
|
9947
|
+
/**
|
|
9948
|
+
* Length of message entity within message (in
|
|
9949
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
9950
|
+
* code units</a>)
|
|
9951
|
+
*/
|
|
9952
|
+
length: number;
|
|
9953
|
+
}
|
|
9785
9954
|
/**
|
|
9786
9955
|
* Represents the absence of a channel
|
|
9787
9956
|
*/
|
|
@@ -10080,6 +10249,7 @@ export class RpcError extends Error {
|
|
|
10080
10249
|
*/
|
|
10081
10250
|
interface RawInputBotInlineMessageMediaAuto {
|
|
10082
10251
|
_: 'inputBotInlineMessageMediaAuto';
|
|
10252
|
+
invertMedia?: boolean;
|
|
10083
10253
|
/**
|
|
10084
10254
|
* Caption
|
|
10085
10255
|
*/
|
|
@@ -10093,7 +10263,6 @@ export class RpcError extends Error {
|
|
|
10093
10263
|
* Inline keyboard
|
|
10094
10264
|
*/
|
|
10095
10265
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10096
|
-
invertMedia?: boolean;
|
|
10097
10266
|
}
|
|
10098
10267
|
/**
|
|
10099
10268
|
* Simple text message
|
|
@@ -10104,6 +10273,7 @@ export class RpcError extends Error {
|
|
|
10104
10273
|
* Disable webpage preview
|
|
10105
10274
|
*/
|
|
10106
10275
|
noWebpage?: boolean;
|
|
10276
|
+
invertMedia?: boolean;
|
|
10107
10277
|
/**
|
|
10108
10278
|
* Message
|
|
10109
10279
|
*/
|
|
@@ -10117,7 +10287,6 @@ export class RpcError extends Error {
|
|
|
10117
10287
|
* Inline keyboard
|
|
10118
10288
|
*/
|
|
10119
10289
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10120
|
-
invertMedia?: boolean;
|
|
10121
10290
|
}
|
|
10122
10291
|
/**
|
|
10123
10292
|
* Geolocation
|
|
@@ -10170,7 +10339,7 @@ export class RpcError extends Error {
|
|
|
10170
10339
|
address: string;
|
|
10171
10340
|
/**
|
|
10172
10341
|
* Venue provider: currently only "foursquare" and "gplaces"
|
|
10173
|
-
* need to be supported
|
|
10342
|
+
* (Google Places) need to be supported
|
|
10174
10343
|
*/
|
|
10175
10344
|
provider: string;
|
|
10176
10345
|
/**
|
|
@@ -10265,6 +10434,17 @@ export class RpcError extends Error {
|
|
|
10265
10434
|
*/
|
|
10266
10435
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10267
10436
|
}
|
|
10437
|
+
interface RawInputBotInlineMessageMediaWebPage {
|
|
10438
|
+
_: 'inputBotInlineMessageMediaWebPage';
|
|
10439
|
+
invertMedia?: boolean;
|
|
10440
|
+
forceLargeMedia?: boolean;
|
|
10441
|
+
forceSmallMedia?: boolean;
|
|
10442
|
+
optional?: boolean;
|
|
10443
|
+
message: string;
|
|
10444
|
+
entities?: tl.TypeMessageEntity[];
|
|
10445
|
+
url: string;
|
|
10446
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
10447
|
+
}
|
|
10268
10448
|
/**
|
|
10269
10449
|
* An inline bot result
|
|
10270
10450
|
*/
|
|
@@ -10385,6 +10565,7 @@ export class RpcError extends Error {
|
|
|
10385
10565
|
*/
|
|
10386
10566
|
interface RawBotInlineMessageMediaAuto {
|
|
10387
10567
|
_: 'botInlineMessageMediaAuto';
|
|
10568
|
+
invertMedia?: boolean;
|
|
10388
10569
|
/**
|
|
10389
10570
|
* Caption
|
|
10390
10571
|
*/
|
|
@@ -10398,7 +10579,6 @@ export class RpcError extends Error {
|
|
|
10398
10579
|
* Inline keyboard
|
|
10399
10580
|
*/
|
|
10400
10581
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10401
|
-
invertMedia?: boolean;
|
|
10402
10582
|
}
|
|
10403
10583
|
/**
|
|
10404
10584
|
* Send a simple text message
|
|
@@ -10409,6 +10589,7 @@ export class RpcError extends Error {
|
|
|
10409
10589
|
* Disable webpage preview
|
|
10410
10590
|
*/
|
|
10411
10591
|
noWebpage?: boolean;
|
|
10592
|
+
invertMedia?: boolean;
|
|
10412
10593
|
/**
|
|
10413
10594
|
* The message
|
|
10414
10595
|
*/
|
|
@@ -10422,7 +10603,6 @@ export class RpcError extends Error {
|
|
|
10422
10603
|
* Inline keyboard
|
|
10423
10604
|
*/
|
|
10424
10605
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10425
|
-
invertMedia?: boolean;
|
|
10426
10606
|
}
|
|
10427
10607
|
/**
|
|
10428
10608
|
* Send a geolocation
|
|
@@ -10475,7 +10655,7 @@ export class RpcError extends Error {
|
|
|
10475
10655
|
address: string;
|
|
10476
10656
|
/**
|
|
10477
10657
|
* Venue provider: currently only "foursquare" and "gplaces"
|
|
10478
|
-
* need to be supported
|
|
10658
|
+
* (Google Places) need to be supported
|
|
10479
10659
|
*/
|
|
10480
10660
|
provider: string;
|
|
10481
10661
|
/**
|
|
@@ -10564,6 +10744,18 @@ export class RpcError extends Error {
|
|
|
10564
10744
|
*/
|
|
10565
10745
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10566
10746
|
}
|
|
10747
|
+
interface RawBotInlineMessageMediaWebPage {
|
|
10748
|
+
_: 'botInlineMessageMediaWebPage';
|
|
10749
|
+
invertMedia?: boolean;
|
|
10750
|
+
forceLargeMedia?: boolean;
|
|
10751
|
+
forceSmallMedia?: boolean;
|
|
10752
|
+
manual?: boolean;
|
|
10753
|
+
safe?: boolean;
|
|
10754
|
+
message: string;
|
|
10755
|
+
entities?: tl.TypeMessageEntity[];
|
|
10756
|
+
url: string;
|
|
10757
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
10758
|
+
}
|
|
10567
10759
|
/**
|
|
10568
10760
|
* Generic result
|
|
10569
10761
|
*/
|
|
@@ -11837,6 +12029,9 @@ export class RpcError extends Error {
|
|
|
11837
12029
|
* order and must not exceed <code>max_tip_amount</code>.
|
|
11838
12030
|
*/
|
|
11839
12031
|
suggestedTipAmounts?: Long[];
|
|
12032
|
+
/**
|
|
12033
|
+
* Terms of service URL
|
|
12034
|
+
*/
|
|
11840
12035
|
termsUrl?: string;
|
|
11841
12036
|
}
|
|
11842
12037
|
/**
|
|
@@ -13203,6 +13398,16 @@ export class RpcError extends Error {
|
|
|
13203
13398
|
*/
|
|
13204
13399
|
newValue: boolean;
|
|
13205
13400
|
}
|
|
13401
|
+
interface RawChannelAdminLogEventActionChangeColor {
|
|
13402
|
+
_: 'channelAdminLogEventActionChangeColor';
|
|
13403
|
+
prevValue: number;
|
|
13404
|
+
newValue: number;
|
|
13405
|
+
}
|
|
13406
|
+
interface RawChannelAdminLogEventActionChangeBackgroundEmoji {
|
|
13407
|
+
_: 'channelAdminLogEventActionChangeBackgroundEmoji';
|
|
13408
|
+
prevValue: Long;
|
|
13409
|
+
newValue: Long;
|
|
13410
|
+
}
|
|
13206
13411
|
/**
|
|
13207
13412
|
* Admin log event
|
|
13208
13413
|
*/
|
|
@@ -14860,8 +15065,26 @@ export class RpcError extends Error {
|
|
|
14860
15065
|
* topics »</a>.
|
|
14861
15066
|
*/
|
|
14862
15067
|
manageTopics?: boolean;
|
|
15068
|
+
/**
|
|
15069
|
+
* If set, allows the admin to post
|
|
15070
|
+
* <a href="https://corefork.telegram.org/api/stories#channel-stories">stories</a>
|
|
15071
|
+
* as the
|
|
15072
|
+
* <a href="https://corefork.telegram.org/api/channel">channel</a>.
|
|
15073
|
+
*/
|
|
14863
15074
|
postStories?: boolean;
|
|
15075
|
+
/**
|
|
15076
|
+
* If set, allows the admin to edit
|
|
15077
|
+
* <a href="https://corefork.telegram.org/api/stories#channel-stories">stories</a>
|
|
15078
|
+
* posted by the other admins of the
|
|
15079
|
+
* <a href="https://corefork.telegram.org/api/channel">channel</a>.
|
|
15080
|
+
*/
|
|
14864
15081
|
editStories?: boolean;
|
|
15082
|
+
/**
|
|
15083
|
+
* If set, allows the admin to delete
|
|
15084
|
+
* <a href="https://corefork.telegram.org/api/stories#channel-stories">stories</a>
|
|
15085
|
+
* posted by the other admins of the
|
|
15086
|
+
* <a href="https://corefork.telegram.org/api/channel">channel</a>.
|
|
15087
|
+
*/
|
|
14865
15088
|
deleteStories?: boolean;
|
|
14866
15089
|
}
|
|
14867
15090
|
/**
|
|
@@ -16142,10 +16365,21 @@ export class RpcError extends Error {
|
|
|
16142
16365
|
replyToTopId?: number;
|
|
16143
16366
|
quoteText?: string;
|
|
16144
16367
|
quoteEntities?: tl.TypeMessageEntity[];
|
|
16368
|
+
quoteOffset?: number;
|
|
16145
16369
|
}
|
|
16370
|
+
/**
|
|
16371
|
+
* Represents a reply to a
|
|
16372
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
16373
|
+
*/
|
|
16146
16374
|
interface RawMessageReplyStoryHeader {
|
|
16147
16375
|
_: 'messageReplyStoryHeader';
|
|
16376
|
+
/**
|
|
16377
|
+
* ID of the user that posted a story
|
|
16378
|
+
*/
|
|
16148
16379
|
userId: number;
|
|
16380
|
+
/**
|
|
16381
|
+
* Story ID
|
|
16382
|
+
*/
|
|
16149
16383
|
storyId: number;
|
|
16150
16384
|
}
|
|
16151
16385
|
/**
|
|
@@ -16671,6 +16905,7 @@ export class RpcError extends Error {
|
|
|
16671
16905
|
*/
|
|
16672
16906
|
startParam?: string;
|
|
16673
16907
|
webpage?: tl.TypeSponsoredWebPage;
|
|
16908
|
+
app?: tl.TypeBotApp;
|
|
16674
16909
|
/**
|
|
16675
16910
|
* Sponsored message
|
|
16676
16911
|
*/
|
|
@@ -16680,6 +16915,7 @@ export class RpcError extends Error {
|
|
|
16680
16915
|
* entities for styled text</a>
|
|
16681
16916
|
*/
|
|
16682
16917
|
entities?: tl.TypeMessageEntity[];
|
|
16918
|
+
buttonText?: string;
|
|
16683
16919
|
/**
|
|
16684
16920
|
* If set, contains additional information about the sponsor to
|
|
16685
16921
|
* be shown along with the message.
|
|
@@ -16755,11 +16991,11 @@ export class RpcError extends Error {
|
|
|
16755
16991
|
*/
|
|
16756
16992
|
chosenOrder?: number;
|
|
16757
16993
|
/**
|
|
16758
|
-
*
|
|
16994
|
+
* The reaction.
|
|
16759
16995
|
*/
|
|
16760
16996
|
reaction: tl.TypeReaction;
|
|
16761
16997
|
/**
|
|
16762
|
-
*
|
|
16998
|
+
* Number of users that reacted with this emoji.
|
|
16763
16999
|
*/
|
|
16764
17000
|
count: number;
|
|
16765
17001
|
}
|
|
@@ -17259,6 +17495,11 @@ export class RpcError extends Error {
|
|
|
17259
17495
|
*/
|
|
17260
17496
|
slug: string;
|
|
17261
17497
|
}
|
|
17498
|
+
interface RawInputInvoicePremiumGiftCode {
|
|
17499
|
+
_: 'inputInvoicePremiumGiftCode';
|
|
17500
|
+
purpose: tl.TypeInputStorePaymentPurpose;
|
|
17501
|
+
option: tl.TypePremiumGiftCodeOption;
|
|
17502
|
+
}
|
|
17262
17503
|
/**
|
|
17263
17504
|
* Info about a Telegram Premium purchase
|
|
17264
17505
|
*/
|
|
@@ -17302,6 +17543,24 @@ export class RpcError extends Error {
|
|
|
17302
17543
|
*/
|
|
17303
17544
|
amount: Long;
|
|
17304
17545
|
}
|
|
17546
|
+
interface RawInputStorePaymentPremiumGiftCode {
|
|
17547
|
+
_: 'inputStorePaymentPremiumGiftCode';
|
|
17548
|
+
users: tl.TypeInputUser[];
|
|
17549
|
+
boostPeer?: tl.TypeInputPeer;
|
|
17550
|
+
currency: string;
|
|
17551
|
+
amount: Long;
|
|
17552
|
+
}
|
|
17553
|
+
interface RawInputStorePaymentPremiumGiveaway {
|
|
17554
|
+
_: 'inputStorePaymentPremiumGiveaway';
|
|
17555
|
+
onlyNewSubscribers?: boolean;
|
|
17556
|
+
boostPeer: tl.TypeInputPeer;
|
|
17557
|
+
additionalPeers?: tl.TypeInputPeer[];
|
|
17558
|
+
countriesIso2?: string[];
|
|
17559
|
+
randomId: Long;
|
|
17560
|
+
untilDate: number;
|
|
17561
|
+
currency: string;
|
|
17562
|
+
amount: Long;
|
|
17563
|
+
}
|
|
17305
17564
|
/**
|
|
17306
17565
|
* Telegram Premium gift option
|
|
17307
17566
|
*/
|
|
@@ -17785,7 +18044,7 @@ export class RpcError extends Error {
|
|
|
17785
18044
|
*/
|
|
17786
18045
|
url: string;
|
|
17787
18046
|
/**
|
|
17788
|
-
* Its
|
|
18047
|
+
* Its expiration date
|
|
17789
18048
|
*/
|
|
17790
18049
|
expires: number;
|
|
17791
18050
|
}
|
|
@@ -18131,21 +18390,56 @@ export class RpcError extends Error {
|
|
|
18131
18390
|
*/
|
|
18132
18391
|
peers: tl.TypePeer[];
|
|
18133
18392
|
}
|
|
18393
|
+
/**
|
|
18394
|
+
* How a peer voted in a poll
|
|
18395
|
+
*/
|
|
18134
18396
|
interface RawMessagePeerVote {
|
|
18135
18397
|
_: 'messagePeerVote';
|
|
18398
|
+
/**
|
|
18399
|
+
* Peer ID
|
|
18400
|
+
*/
|
|
18136
18401
|
peer: tl.TypePeer;
|
|
18402
|
+
/**
|
|
18403
|
+
* The option chosen by the peer
|
|
18404
|
+
*/
|
|
18137
18405
|
option: Uint8Array;
|
|
18406
|
+
/**
|
|
18407
|
+
* When did the peer cast the vote
|
|
18408
|
+
*/
|
|
18138
18409
|
date: number;
|
|
18139
18410
|
}
|
|
18411
|
+
/**
|
|
18412
|
+
* How a peer voted in a poll (reduced constructor, returned if
|
|
18413
|
+
* an <code>option</code> was provided to
|
|
18414
|
+
* {@link messages.RawGetPollVotesRequest})
|
|
18415
|
+
*/
|
|
18140
18416
|
interface RawMessagePeerVoteInputOption {
|
|
18141
18417
|
_: 'messagePeerVoteInputOption';
|
|
18418
|
+
/**
|
|
18419
|
+
* The peer that voted for the queried <code>option</code>
|
|
18420
|
+
*/
|
|
18142
18421
|
peer: tl.TypePeer;
|
|
18422
|
+
/**
|
|
18423
|
+
* When did the peer cast the vote
|
|
18424
|
+
*/
|
|
18143
18425
|
date: number;
|
|
18144
18426
|
}
|
|
18427
|
+
/**
|
|
18428
|
+
* How a peer voted in a multiple-choice poll
|
|
18429
|
+
*/
|
|
18145
18430
|
interface RawMessagePeerVoteMultiple {
|
|
18146
18431
|
_: 'messagePeerVoteMultiple';
|
|
18432
|
+
/**
|
|
18433
|
+
* Peer ID
|
|
18434
|
+
*/
|
|
18147
18435
|
peer: tl.TypePeer;
|
|
18436
|
+
/**
|
|
18437
|
+
* Options chosen by the peer
|
|
18438
|
+
*/
|
|
18148
18439
|
options: Uint8Array[];
|
|
18440
|
+
/**
|
|
18441
|
+
* When did the peer cast their votes
|
|
18442
|
+
*/
|
|
18149
18443
|
date: number;
|
|
18150
18444
|
}
|
|
18151
18445
|
interface RawSponsoredWebPage {
|
|
@@ -18154,212 +18448,395 @@ export class RpcError extends Error {
|
|
|
18154
18448
|
siteName: string;
|
|
18155
18449
|
photo?: tl.TypePhoto;
|
|
18156
18450
|
}
|
|
18451
|
+
/**
|
|
18452
|
+
* Aggregated view and reaction information of a
|
|
18453
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>.
|
|
18454
|
+
*/
|
|
18157
18455
|
interface RawStoryViews {
|
|
18158
18456
|
_: 'storyViews';
|
|
18159
18457
|
hasViewers?: boolean;
|
|
18458
|
+
/**
|
|
18459
|
+
* View counter of the story
|
|
18460
|
+
*/
|
|
18160
18461
|
viewsCount: number;
|
|
18462
|
+
/**
|
|
18463
|
+
* Forward counter of the story
|
|
18464
|
+
*/
|
|
18161
18465
|
forwardsCount?: number;
|
|
18466
|
+
/**
|
|
18467
|
+
* All reactions sent to this story
|
|
18468
|
+
*/
|
|
18162
18469
|
reactions?: tl.TypeReactionCount[];
|
|
18163
18470
|
reactionsCount?: number;
|
|
18471
|
+
/**
|
|
18472
|
+
* User IDs of some recent viewers of the story
|
|
18473
|
+
*/
|
|
18164
18474
|
recentViewers?: number[];
|
|
18165
18475
|
}
|
|
18476
|
+
/**
|
|
18477
|
+
* Represents a previously active story, that was deleted
|
|
18478
|
+
*/
|
|
18166
18479
|
interface RawStoryItemDeleted {
|
|
18167
18480
|
_: 'storyItemDeleted';
|
|
18481
|
+
/**
|
|
18482
|
+
* Story ID
|
|
18483
|
+
*/
|
|
18168
18484
|
id: number;
|
|
18169
18485
|
}
|
|
18486
|
+
/**
|
|
18487
|
+
* Represents an active story, whose full information was
|
|
18488
|
+
* omitted for space and performance reasons; use
|
|
18489
|
+
* {@link stories.RawGetStoriesByIDRequest} to fetch full info
|
|
18490
|
+
* about the skipped story when and if needed.
|
|
18491
|
+
*/
|
|
18170
18492
|
interface RawStoryItemSkipped {
|
|
18171
18493
|
_: 'storyItemSkipped';
|
|
18172
18494
|
closeFriends?: boolean;
|
|
18495
|
+
/**
|
|
18496
|
+
* Story ID
|
|
18497
|
+
*/
|
|
18173
18498
|
id: number;
|
|
18499
|
+
/**
|
|
18500
|
+
* When was the story posted.
|
|
18501
|
+
*/
|
|
18174
18502
|
date: number;
|
|
18503
|
+
/**
|
|
18504
|
+
* When does the story expire.
|
|
18505
|
+
*/
|
|
18175
18506
|
expireDate: number;
|
|
18176
18507
|
}
|
|
18508
|
+
/**
|
|
18509
|
+
* Represents a
|
|
18510
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>.
|
|
18511
|
+
*/
|
|
18177
18512
|
interface RawStoryItem {
|
|
18178
18513
|
_: 'storyItem';
|
|
18514
|
+
/**
|
|
18515
|
+
* Whether this story is pinned on the user's profile
|
|
18516
|
+
*/
|
|
18179
18517
|
pinned?: boolean;
|
|
18518
|
+
/**
|
|
18519
|
+
* Whether this story is public
|
|
18520
|
+
*/
|
|
18180
18521
|
public?: boolean;
|
|
18181
18522
|
closeFriends?: boolean;
|
|
18182
18523
|
min?: boolean;
|
|
18524
|
+
/**
|
|
18525
|
+
* Whether this story is
|
|
18526
|
+
* <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a>
|
|
18527
|
+
* and thus cannot be forwarded; clients should also prevent
|
|
18528
|
+
* users from saving attached media (i.e. videos should only be
|
|
18529
|
+
* streamed, photos should be kept in RAM, et cetera).
|
|
18530
|
+
*/
|
|
18183
18531
|
noforwards?: boolean;
|
|
18532
|
+
/**
|
|
18533
|
+
* Indicates whether the story was edited.
|
|
18534
|
+
*/
|
|
18184
18535
|
edited?: boolean;
|
|
18185
18536
|
contacts?: boolean;
|
|
18186
18537
|
selectedContacts?: boolean;
|
|
18538
|
+
/**
|
|
18539
|
+
* indicates whether we sent this story.
|
|
18540
|
+
*/
|
|
18187
18541
|
out?: boolean;
|
|
18542
|
+
/**
|
|
18543
|
+
* ID of the story.
|
|
18544
|
+
*/
|
|
18188
18545
|
id: number;
|
|
18546
|
+
/**
|
|
18547
|
+
* When was the story posted.
|
|
18548
|
+
*/
|
|
18189
18549
|
date: number;
|
|
18550
|
+
fwdFrom?: tl.TypeStoryFwdHeader;
|
|
18551
|
+
/**
|
|
18552
|
+
* When does the story expire.
|
|
18553
|
+
*/
|
|
18190
18554
|
expireDate: number;
|
|
18555
|
+
/**
|
|
18556
|
+
* Story caption.
|
|
18557
|
+
*/
|
|
18191
18558
|
caption?: string;
|
|
18192
18559
|
/**
|
|
18193
18560
|
* <a href="https://corefork.telegram.org/api/entities">Message
|
|
18194
18561
|
* entities for styled text</a>
|
|
18195
18562
|
*/
|
|
18196
18563
|
entities?: tl.TypeMessageEntity[];
|
|
18564
|
+
/**
|
|
18565
|
+
* Story media.
|
|
18566
|
+
*/
|
|
18197
18567
|
media: tl.TypeMessageMedia;
|
|
18568
|
+
/**
|
|
18569
|
+
* List of media areas, see
|
|
18570
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
18571
|
+
* »</a> for more info on media areas.
|
|
18572
|
+
*/
|
|
18198
18573
|
mediaAreas?: tl.TypeMediaArea[];
|
|
18574
|
+
/**
|
|
18575
|
+
* <a href="https://corefork.telegram.org/api/privacy">Privacy
|
|
18576
|
+
* rules</a> indicating who can and can't view this story
|
|
18577
|
+
*/
|
|
18199
18578
|
privacy?: tl.TypePrivacyRule[];
|
|
18579
|
+
/**
|
|
18580
|
+
* View date and reaction information
|
|
18581
|
+
*/
|
|
18200
18582
|
views?: tl.TypeStoryViews;
|
|
18583
|
+
/**
|
|
18584
|
+
* The reaction we sent.
|
|
18585
|
+
*/
|
|
18201
18586
|
sentReaction?: tl.TypeReaction;
|
|
18202
18587
|
}
|
|
18588
|
+
/**
|
|
18589
|
+
* <a href="https://corefork.telegram.org/api/stories">Story</a>
|
|
18590
|
+
* view date and reaction information
|
|
18591
|
+
*/
|
|
18203
18592
|
interface RawStoryView {
|
|
18204
18593
|
_: 'storyView';
|
|
18205
18594
|
blocked?: boolean;
|
|
18206
18595
|
blockedMyStoriesFrom?: boolean;
|
|
18596
|
+
/**
|
|
18597
|
+
* The user that viewed the story
|
|
18598
|
+
*/
|
|
18207
18599
|
userId: number;
|
|
18600
|
+
/**
|
|
18601
|
+
* When did the user view the story
|
|
18602
|
+
*/
|
|
18208
18603
|
date: number;
|
|
18604
|
+
/**
|
|
18605
|
+
* If present, contains the reaction that the user left on the
|
|
18606
|
+
* story
|
|
18607
|
+
*/
|
|
18209
18608
|
reaction?: tl.TypeReaction;
|
|
18210
18609
|
}
|
|
18610
|
+
/**
|
|
18611
|
+
* Reply to a message.
|
|
18612
|
+
*/
|
|
18211
18613
|
interface RawInputReplyToMessage {
|
|
18212
18614
|
_: 'inputReplyToMessage';
|
|
18615
|
+
/**
|
|
18616
|
+
* The message ID to reply to.
|
|
18617
|
+
*/
|
|
18213
18618
|
replyToMsgId: number;
|
|
18619
|
+
/**
|
|
18620
|
+
* This field must contain the topic ID <strong>only</strong>
|
|
18621
|
+
* when replying to messages in forum topics different from the
|
|
18622
|
+
* "General" topic (i.e. <code>reply_to_msg_id</code> is set
|
|
18623
|
+
* and <code>reply_to_msg_id != topicID</code> and
|
|
18624
|
+
* <code>topicID != 1</code>).
|
|
18625
|
+
*
|
|
18626
|
+
* If the replied-to message is deleted before the method
|
|
18627
|
+
* finishes execution, the value in this field will be used to
|
|
18628
|
+
* send the message to the correct topic, instead of the
|
|
18629
|
+
* "General" topic.
|
|
18630
|
+
*/
|
|
18214
18631
|
topMsgId?: number;
|
|
18215
18632
|
replyToPeerId?: tl.TypeInputPeer;
|
|
18216
18633
|
quoteText?: string;
|
|
18217
18634
|
quoteEntities?: tl.TypeMessageEntity[];
|
|
18635
|
+
quoteOffset?: number;
|
|
18218
18636
|
}
|
|
18637
|
+
/**
|
|
18638
|
+
* Reply to a story.
|
|
18639
|
+
*/
|
|
18219
18640
|
interface RawInputReplyToStory {
|
|
18220
18641
|
_: 'inputReplyToStory';
|
|
18642
|
+
/**
|
|
18643
|
+
* ID of the user that posted the story.
|
|
18644
|
+
*/
|
|
18221
18645
|
userId: tl.TypeInputUser;
|
|
18646
|
+
/**
|
|
18647
|
+
* ID of the story to reply to.
|
|
18648
|
+
*/
|
|
18222
18649
|
storyId: number;
|
|
18223
18650
|
}
|
|
18651
|
+
/**
|
|
18652
|
+
* Represents a
|
|
18653
|
+
* <a href="https://corefork.telegram.org/api/stories#story-links">story
|
|
18654
|
+
* deep link</a>.
|
|
18655
|
+
*/
|
|
18224
18656
|
interface RawExportedStoryLink {
|
|
18225
18657
|
_: 'exportedStoryLink';
|
|
18658
|
+
/**
|
|
18659
|
+
* The
|
|
18660
|
+
* <a href="https://corefork.telegram.org/api/stories#story-links">story
|
|
18661
|
+
* deep link</a>.
|
|
18662
|
+
*/
|
|
18226
18663
|
link: string;
|
|
18227
18664
|
}
|
|
18665
|
+
/**
|
|
18666
|
+
* Information about the current
|
|
18667
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stealth
|
|
18668
|
+
* mode</a> session.
|
|
18669
|
+
*/
|
|
18228
18670
|
interface RawStoriesStealthMode {
|
|
18229
18671
|
_: 'storiesStealthMode';
|
|
18672
|
+
/**
|
|
18673
|
+
* The date up to which stealth mode will be active.
|
|
18674
|
+
*/
|
|
18230
18675
|
activeUntilDate?: number;
|
|
18676
|
+
/**
|
|
18677
|
+
* The date starting from which the user will be allowed to
|
|
18678
|
+
* re-enable stealth mode again.
|
|
18679
|
+
*/
|
|
18231
18680
|
cooldownUntilDate?: number;
|
|
18232
18681
|
}
|
|
18682
|
+
/**
|
|
18683
|
+
* Coordinates and size of a clicable rectangular area on top
|
|
18684
|
+
* of a story.
|
|
18685
|
+
*/
|
|
18233
18686
|
interface RawMediaAreaCoordinates {
|
|
18234
18687
|
_: 'mediaAreaCoordinates';
|
|
18688
|
+
/**
|
|
18689
|
+
* The abscissa of the rectangle's center, as a percentage of
|
|
18690
|
+
* the media width (0-100).
|
|
18691
|
+
*/
|
|
18235
18692
|
x: Double;
|
|
18693
|
+
/**
|
|
18694
|
+
* The ordinate of the rectangle's center, as a percentage of
|
|
18695
|
+
* the media height (0-100).
|
|
18696
|
+
*/
|
|
18236
18697
|
y: Double;
|
|
18698
|
+
/**
|
|
18699
|
+
* The width of the rectangle, as a percentage of the media
|
|
18700
|
+
* width (0-100).
|
|
18701
|
+
*/
|
|
18237
18702
|
w: Double;
|
|
18703
|
+
/**
|
|
18704
|
+
* The height of the rectangle, as a percentage of the media
|
|
18705
|
+
* height (0-100).
|
|
18706
|
+
*/
|
|
18238
18707
|
h: Double;
|
|
18708
|
+
/**
|
|
18709
|
+
* Clockwise rotation angle of the rectangle, in degrees
|
|
18710
|
+
* (0-360).
|
|
18711
|
+
*/
|
|
18239
18712
|
rotation: Double;
|
|
18240
18713
|
}
|
|
18714
|
+
/**
|
|
18715
|
+
* Represents a location tag attached to a
|
|
18716
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>,
|
|
18717
|
+
* with additional venue information.
|
|
18718
|
+
*/
|
|
18241
18719
|
interface RawMediaAreaVenue {
|
|
18242
18720
|
_: 'mediaAreaVenue';
|
|
18721
|
+
/**
|
|
18722
|
+
* The size and location of the media area corresponding to the
|
|
18723
|
+
* location sticker on top of the story media.
|
|
18724
|
+
*/
|
|
18243
18725
|
coordinates: tl.TypeMediaAreaCoordinates;
|
|
18726
|
+
/**
|
|
18727
|
+
* Coordinates of the venue
|
|
18728
|
+
*/
|
|
18244
18729
|
geo: tl.TypeGeoPoint;
|
|
18730
|
+
/**
|
|
18731
|
+
* Venue name
|
|
18732
|
+
*/
|
|
18245
18733
|
title: string;
|
|
18734
|
+
/**
|
|
18735
|
+
* Address
|
|
18736
|
+
*/
|
|
18246
18737
|
address: string;
|
|
18738
|
+
/**
|
|
18739
|
+
* Venue provider: currently only "foursquare" and "gplaces"
|
|
18740
|
+
* need to be supported.
|
|
18741
|
+
*/
|
|
18247
18742
|
provider: string;
|
|
18743
|
+
/**
|
|
18744
|
+
* Venue ID in the provider's database
|
|
18745
|
+
*/
|
|
18248
18746
|
venueId: string;
|
|
18747
|
+
/**
|
|
18748
|
+
* Venue type in the provider's database
|
|
18749
|
+
*/
|
|
18249
18750
|
venueType: string;
|
|
18250
18751
|
}
|
|
18752
|
+
/**
|
|
18753
|
+
* Represents a
|
|
18754
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">location
|
|
18755
|
+
* tag</a> attached to a
|
|
18756
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>,
|
|
18757
|
+
* with additional venue information.
|
|
18758
|
+
*/
|
|
18251
18759
|
interface RawInputMediaAreaVenue {
|
|
18252
18760
|
_: 'inputMediaAreaVenue';
|
|
18761
|
+
/**
|
|
18762
|
+
* The size and location of the media area corresponding to the
|
|
18763
|
+
* location sticker on top of the story media.
|
|
18764
|
+
*/
|
|
18253
18765
|
coordinates: tl.TypeMediaAreaCoordinates;
|
|
18766
|
+
/**
|
|
18767
|
+
* The <code>query_id</code> from
|
|
18768
|
+
* {@link messages.RawBotResults}, see
|
|
18769
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
18770
|
+
* »</a> for more info.
|
|
18771
|
+
*/
|
|
18254
18772
|
queryId: Long;
|
|
18773
|
+
/**
|
|
18774
|
+
* The <code>id</code> of the chosen result, see
|
|
18775
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
18776
|
+
* »</a> for more info.
|
|
18777
|
+
*/
|
|
18255
18778
|
resultId: string;
|
|
18256
18779
|
}
|
|
18780
|
+
/**
|
|
18781
|
+
* Represents a geolocation tag attached to a
|
|
18782
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>.
|
|
18783
|
+
*/
|
|
18257
18784
|
interface RawMediaAreaGeoPoint {
|
|
18258
18785
|
_: 'mediaAreaGeoPoint';
|
|
18786
|
+
/**
|
|
18787
|
+
* The size and position of the media area corresponding to the
|
|
18788
|
+
* location sticker on top of the story media.
|
|
18789
|
+
*/
|
|
18259
18790
|
coordinates: tl.TypeMediaAreaCoordinates;
|
|
18791
|
+
/**
|
|
18792
|
+
* Coordinates of the geolocation tag.
|
|
18793
|
+
*/
|
|
18260
18794
|
geo: tl.TypeGeoPoint;
|
|
18261
18795
|
}
|
|
18796
|
+
/**
|
|
18797
|
+
* Represents a reaction bubble.
|
|
18798
|
+
*/
|
|
18262
18799
|
interface RawMediaAreaSuggestedReaction {
|
|
18263
18800
|
_: 'mediaAreaSuggestedReaction';
|
|
18801
|
+
/**
|
|
18802
|
+
* Whether the reaction bubble has a dark background.
|
|
18803
|
+
*/
|
|
18264
18804
|
dark?: boolean;
|
|
18805
|
+
/**
|
|
18806
|
+
* Whether the reaction bubble is mirrored (see
|
|
18807
|
+
* <a href="https://corefork.telegram.org/api/stories#reactions">here
|
|
18808
|
+
* »</a> for more info).
|
|
18809
|
+
*/
|
|
18265
18810
|
flipped?: boolean;
|
|
18811
|
+
/**
|
|
18812
|
+
* The coordinates of the media area corresponding to the
|
|
18813
|
+
* reaction button.
|
|
18814
|
+
*/
|
|
18266
18815
|
coordinates: tl.TypeMediaAreaCoordinates;
|
|
18816
|
+
/**
|
|
18817
|
+
* The reaction that should be sent when this area is clicked.
|
|
18818
|
+
*/
|
|
18267
18819
|
reaction: tl.TypeReaction;
|
|
18268
18820
|
}
|
|
18821
|
+
/**
|
|
18822
|
+
* <a href="https://corefork.telegram.org/api/stories">Stories</a>
|
|
18823
|
+
* associated to a peer
|
|
18824
|
+
*/
|
|
18269
18825
|
interface RawPeerStories {
|
|
18270
18826
|
_: 'peerStories';
|
|
18827
|
+
/**
|
|
18828
|
+
* The peer
|
|
18829
|
+
*/
|
|
18271
18830
|
peer: tl.TypePeer;
|
|
18831
|
+
/**
|
|
18832
|
+
* If set, contains the ID of the maximum read story
|
|
18833
|
+
*/
|
|
18272
18834
|
maxReadId?: number;
|
|
18835
|
+
/**
|
|
18836
|
+
* Stories
|
|
18837
|
+
*/
|
|
18273
18838
|
stories: tl.TypeStoryItem[];
|
|
18274
18839
|
}
|
|
18275
|
-
interface RawBooster {
|
|
18276
|
-
_: 'booster';
|
|
18277
|
-
userId: number;
|
|
18278
|
-
expires: number;
|
|
18279
|
-
}
|
|
18280
|
-
interface RawInputMediaWebPage {
|
|
18281
|
-
_: 'inputMediaWebPage';
|
|
18282
|
-
forceLargeMedia?: boolean;
|
|
18283
|
-
forceSmallMedia?: boolean;
|
|
18284
|
-
optional?: boolean;
|
|
18285
|
-
url: string;
|
|
18286
|
-
}
|
|
18287
|
-
interface RawMessageMediaGiveaway {
|
|
18288
|
-
_: 'messageMediaGiveaway';
|
|
18289
|
-
onlyNewSubscribers?: boolean;
|
|
18290
|
-
channels: Long[];
|
|
18291
|
-
countriesIso2?: string[];
|
|
18292
|
-
quantity: number;
|
|
18293
|
-
months: number;
|
|
18294
|
-
untilDate: number;
|
|
18295
|
-
}
|
|
18296
|
-
interface RawMessageActionGiftCode {
|
|
18297
|
-
_: 'messageActionGiftCode';
|
|
18298
|
-
viaGiveaway?: boolean;
|
|
18299
|
-
unclaimed?: boolean;
|
|
18300
|
-
boostPeer?: tl.TypePeer;
|
|
18301
|
-
months: number;
|
|
18302
|
-
slug: string;
|
|
18303
|
-
}
|
|
18304
|
-
interface RawMessageActionGiveawayLaunch {
|
|
18305
|
-
_: 'messageActionGiveawayLaunch';
|
|
18306
|
-
}
|
|
18307
|
-
interface RawInputBotInlineMessageMediaWebPage {
|
|
18308
|
-
_: 'inputBotInlineMessageMediaWebPage';
|
|
18309
|
-
invertMedia?: boolean;
|
|
18310
|
-
forceLargeMedia?: boolean;
|
|
18311
|
-
forceSmallMedia?: boolean;
|
|
18312
|
-
optional?: boolean;
|
|
18313
|
-
message: string;
|
|
18314
|
-
entities?: tl.TypeMessageEntity[];
|
|
18315
|
-
url: string;
|
|
18316
|
-
replyMarkup?: tl.TypeReplyMarkup;
|
|
18317
|
-
}
|
|
18318
|
-
interface RawBotInlineMessageMediaWebPage {
|
|
18319
|
-
_: 'botInlineMessageMediaWebPage';
|
|
18320
|
-
invertMedia?: boolean;
|
|
18321
|
-
forceLargeMedia?: boolean;
|
|
18322
|
-
forceSmallMedia?: boolean;
|
|
18323
|
-
manual?: boolean;
|
|
18324
|
-
safe?: boolean;
|
|
18325
|
-
message: string;
|
|
18326
|
-
entities?: tl.TypeMessageEntity[];
|
|
18327
|
-
url: string;
|
|
18328
|
-
replyMarkup?: tl.TypeReplyMarkup;
|
|
18329
|
-
}
|
|
18330
|
-
interface RawChannelAdminLogEventActionChangeColor {
|
|
18331
|
-
_: 'channelAdminLogEventActionChangeColor';
|
|
18332
|
-
prevValue: number;
|
|
18333
|
-
newValue: number;
|
|
18334
|
-
}
|
|
18335
|
-
interface RawChannelAdminLogEventActionChangeBackgroundEmoji {
|
|
18336
|
-
_: 'channelAdminLogEventActionChangeBackgroundEmoji';
|
|
18337
|
-
prevValue: Long;
|
|
18338
|
-
newValue: Long;
|
|
18339
|
-
}
|
|
18340
|
-
interface RawInputInvoicePremiumGiftCode {
|
|
18341
|
-
_: 'inputInvoicePremiumGiftCode';
|
|
18342
|
-
purpose: tl.TypeInputStorePaymentPurpose;
|
|
18343
|
-
option: tl.TypePremiumGiftCodeOption;
|
|
18344
|
-
}
|
|
18345
|
-
interface RawInputStorePaymentPremiumGiftCode {
|
|
18346
|
-
_: 'inputStorePaymentPremiumGiftCode';
|
|
18347
|
-
users: tl.TypeInputUser[];
|
|
18348
|
-
boostPeer?: tl.TypeInputPeer;
|
|
18349
|
-
currency: string;
|
|
18350
|
-
amount: Long;
|
|
18351
|
-
}
|
|
18352
|
-
interface RawInputStorePaymentPremiumGiveaway {
|
|
18353
|
-
_: 'inputStorePaymentPremiumGiveaway';
|
|
18354
|
-
onlyNewSubscribers?: boolean;
|
|
18355
|
-
boostPeer: tl.TypeInputPeer;
|
|
18356
|
-
additionalPeers?: tl.TypeInputPeer[];
|
|
18357
|
-
countriesIso2?: string[];
|
|
18358
|
-
randomId: Long;
|
|
18359
|
-
untilDate: number;
|
|
18360
|
-
currency: string;
|
|
18361
|
-
amount: Long;
|
|
18362
|
-
}
|
|
18363
18840
|
interface RawPremiumGiftCodeOption {
|
|
18364
18841
|
_: 'premiumGiftCodeOption';
|
|
18365
18842
|
users: number;
|
|
@@ -18397,6 +18874,57 @@ export class RpcError extends Error {
|
|
|
18397
18874
|
expires: number;
|
|
18398
18875
|
cooldownUntilDate?: number;
|
|
18399
18876
|
}
|
|
18877
|
+
interface RawMessageActionGiveawayResults {
|
|
18878
|
+
_: 'messageActionGiveawayResults';
|
|
18879
|
+
winnersCount: number;
|
|
18880
|
+
unclaimedCount: number;
|
|
18881
|
+
}
|
|
18882
|
+
interface RawUpdateChannelViewForumAsMessages {
|
|
18883
|
+
_: 'updateChannelViewForumAsMessages';
|
|
18884
|
+
channelId: number;
|
|
18885
|
+
enabled: boolean;
|
|
18886
|
+
}
|
|
18887
|
+
interface RawUpdatePeerWallpaper {
|
|
18888
|
+
_: 'updatePeerWallpaper';
|
|
18889
|
+
wallpaperOverridden?: boolean;
|
|
18890
|
+
peer: tl.TypePeer;
|
|
18891
|
+
wallpaper?: tl.TypeWallPaper;
|
|
18892
|
+
}
|
|
18893
|
+
interface RawStoryFwdHeader {
|
|
18894
|
+
_: 'storyFwdHeader';
|
|
18895
|
+
modified?: boolean;
|
|
18896
|
+
from?: tl.TypePeer;
|
|
18897
|
+
fromName?: string;
|
|
18898
|
+
storyId?: number;
|
|
18899
|
+
}
|
|
18900
|
+
interface RawPostInteractionCountersMessage {
|
|
18901
|
+
_: 'postInteractionCountersMessage';
|
|
18902
|
+
msgId: number;
|
|
18903
|
+
views: number;
|
|
18904
|
+
forwards: number;
|
|
18905
|
+
reactions: number;
|
|
18906
|
+
}
|
|
18907
|
+
interface RawPostInteractionCountersStory {
|
|
18908
|
+
_: 'postInteractionCountersStory';
|
|
18909
|
+
storyId: number;
|
|
18910
|
+
views: number;
|
|
18911
|
+
forwards: number;
|
|
18912
|
+
reactions: number;
|
|
18913
|
+
}
|
|
18914
|
+
interface RawPublicForwardMessage {
|
|
18915
|
+
_: 'publicForwardMessage';
|
|
18916
|
+
message: tl.TypeMessage;
|
|
18917
|
+
}
|
|
18918
|
+
interface RawPublicForwardStory {
|
|
18919
|
+
_: 'publicForwardStory';
|
|
18920
|
+
peer: tl.TypePeer;
|
|
18921
|
+
story: tl.TypeStoryItem;
|
|
18922
|
+
}
|
|
18923
|
+
interface RawPeerColor {
|
|
18924
|
+
_: 'peerColor';
|
|
18925
|
+
color?: number;
|
|
18926
|
+
backgroundEmojiId?: Long;
|
|
18927
|
+
}
|
|
18400
18928
|
/**
|
|
18401
18929
|
* How a user voted in a poll
|
|
18402
18930
|
*/
|
|
@@ -18449,11 +18977,21 @@ export class RpcError extends Error {
|
|
|
18449
18977
|
*/
|
|
18450
18978
|
date: number;
|
|
18451
18979
|
}
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18980
|
+
/**
|
|
18981
|
+
* Info about a
|
|
18982
|
+
* <a href="https://corefork.telegram.org/api/boost">boost</a>
|
|
18983
|
+
* made by a specific user.
|
|
18984
|
+
*/
|
|
18985
|
+
interface RawBooster {
|
|
18986
|
+
_: 'booster';
|
|
18987
|
+
/**
|
|
18988
|
+
* ID of the user that made the boost.
|
|
18989
|
+
*/
|
|
18990
|
+
userId: number;
|
|
18991
|
+
/**
|
|
18992
|
+
* Default expiration date of the boost.
|
|
18993
|
+
*/
|
|
18994
|
+
expires: number;
|
|
18457
18995
|
}
|
|
18458
18996
|
/**
|
|
18459
18997
|
* Invokes a query after successful completion of one of the
|
|
@@ -18594,7 +19132,7 @@ export class RpcError extends Error {
|
|
|
18594
19132
|
*/
|
|
18595
19133
|
query: X;
|
|
18596
19134
|
}
|
|
18597
|
-
interface RpcCallReturn extends help.RpcCallReturn, storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, test.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
19135
|
+
interface RpcCallReturn extends help.RpcCallReturn, storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, mtcute.RpcCallReturn, test.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
18598
19136
|
'invokeAfterMsg': any
|
|
18599
19137
|
'invokeAfterMsgs': any
|
|
18600
19138
|
'initConnection': any
|
|
@@ -18620,7 +19158,7 @@ export class RpcError extends Error {
|
|
|
18620
19158
|
/**
|
|
18621
19159
|
* Peer
|
|
18622
19160
|
*/
|
|
18623
|
-
type TypeInputPeer = tl.RawInputPeerEmpty | tl.RawInputPeerSelf | tl.RawInputPeerChat | tl.RawInputPeerUser | tl.RawInputPeerChannel | tl.RawInputPeerUserFromMessage | tl.RawInputPeerChannelFromMessage
|
|
19161
|
+
type TypeInputPeer = tl.RawInputPeerEmpty | tl.RawInputPeerSelf | tl.RawInputPeerChat | tl.RawInputPeerUser | tl.RawInputPeerChannel | tl.RawInputPeerUserFromMessage | tl.RawInputPeerChannelFromMessage | tl.mtcute.RawDummyInputPeerMinUser | tl.mtcute.RawDummyInputPeerMinChannel
|
|
18624
19162
|
function isAnyInputPeer(o: object): o is TypeInputPeer
|
|
18625
19163
|
/**
|
|
18626
19164
|
* Defines a user for subsequent interaction.
|
|
@@ -18721,7 +19259,7 @@ export class RpcError extends Error {
|
|
|
18721
19259
|
/**
|
|
18722
19260
|
* Object describing actions connected to a service message.
|
|
18723
19261
|
*/
|
|
18724
|
-
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionSetSameChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch
|
|
19262
|
+
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionSetSameChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults
|
|
18725
19263
|
function isAnyMessageAction(o: object): o is TypeMessageAction
|
|
18726
19264
|
/**
|
|
18727
19265
|
* Chat info.
|
|
@@ -18804,7 +19342,7 @@ export class RpcError extends Error {
|
|
|
18804
19342
|
/**
|
|
18805
19343
|
* Object contains info on events occurred.
|
|
18806
19344
|
*/
|
|
18807
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawDummyUpdate
|
|
19345
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.mtcute.RawDummyUpdate
|
|
18808
19346
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
18809
19347
|
/**
|
|
18810
19348
|
* Object which is perceived by the client without a call on
|
|
@@ -18876,22 +19414,60 @@ export class RpcError extends Error {
|
|
|
18876
19414
|
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
|
|
18877
19415
|
function isAnySendMessageAction(o: object): o is TypeSendMessageAction
|
|
18878
19416
|
/**
|
|
18879
|
-
* Privacy
|
|
19417
|
+
* Privacy <strong>keys</strong> together with
|
|
19418
|
+
* <a href="https://corefork.telegram.org/api/privacy#privacy-rules">privacy
|
|
19419
|
+
* rules »</a> indicate <em>what</em> can or can't someone do
|
|
19420
|
+
* and are specified by a
|
|
19421
|
+
* <a href="https://corefork.telegram.org/type/PrivacyKey">PrivacyKey</a>
|
|
19422
|
+
* constructor, and its input counterpart
|
|
19423
|
+
* <a href="https://corefork.telegram.org/type/InputPrivacyKey">InputPrivacyKey</a>.
|
|
19424
|
+
*
|
|
19425
|
+
* See the
|
|
19426
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
19427
|
+
* documentation »</a> for more info.
|
|
18880
19428
|
*/
|
|
18881
19429
|
type TypeInputPrivacyKey = tl.RawInputPrivacyKeyStatusTimestamp | tl.RawInputPrivacyKeyChatInvite | tl.RawInputPrivacyKeyPhoneCall | tl.RawInputPrivacyKeyPhoneP2P | tl.RawInputPrivacyKeyForwards | tl.RawInputPrivacyKeyProfilePhoto | tl.RawInputPrivacyKeyPhoneNumber | tl.RawInputPrivacyKeyAddedByPhone | tl.RawInputPrivacyKeyVoiceMessages | tl.RawInputPrivacyKeyAbout
|
|
18882
19430
|
function isAnyInputPrivacyKey(o: object): o is TypeInputPrivacyKey
|
|
18883
19431
|
/**
|
|
18884
|
-
* Privacy
|
|
19432
|
+
* Privacy <strong>keys</strong> together with
|
|
19433
|
+
* <a href="https://corefork.telegram.org/api/privacy#privacy-rules">privacy
|
|
19434
|
+
* rules »</a> indicate <em>what</em> can or can't someone do
|
|
19435
|
+
* and are specified by a
|
|
19436
|
+
* <a href="https://corefork.telegram.org/type/PrivacyKey">PrivacyKey</a>
|
|
19437
|
+
* constructor, and its input counterpart
|
|
19438
|
+
* <a href="https://corefork.telegram.org/type/InputPrivacyKey">InputPrivacyKey</a>.
|
|
19439
|
+
*
|
|
19440
|
+
* See the
|
|
19441
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
19442
|
+
* documentation »</a> for more info.
|
|
18885
19443
|
*/
|
|
18886
19444
|
type TypePrivacyKey = tl.RawPrivacyKeyStatusTimestamp | tl.RawPrivacyKeyChatInvite | tl.RawPrivacyKeyPhoneCall | tl.RawPrivacyKeyPhoneP2P | tl.RawPrivacyKeyForwards | tl.RawPrivacyKeyProfilePhoto | tl.RawPrivacyKeyPhoneNumber | tl.RawPrivacyKeyAddedByPhone | tl.RawPrivacyKeyVoiceMessages | tl.RawPrivacyKeyAbout
|
|
18887
19445
|
function isAnyPrivacyKey(o: object): o is TypePrivacyKey
|
|
18888
19446
|
/**
|
|
18889
|
-
* Privacy
|
|
19447
|
+
* Privacy <strong>rules</strong> indicate <em>who</em> can or
|
|
19448
|
+
* can't do something and are specified by a
|
|
19449
|
+
* <a href="https://corefork.telegram.org/type/PrivacyRule">PrivacyRule</a>,
|
|
19450
|
+
* and its input counterpart
|
|
19451
|
+
* <a href="https://corefork.telegram.org/type/InputPrivacyRule">InputPrivacyRule</a>.
|
|
19452
|
+
*
|
|
19453
|
+
* See the
|
|
19454
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
19455
|
+
* documentation »</a> for more info.
|
|
18890
19456
|
*/
|
|
18891
19457
|
type TypeInputPrivacyRule = tl.RawInputPrivacyValueAllowContacts | tl.RawInputPrivacyValueAllowAll | tl.RawInputPrivacyValueAllowUsers | tl.RawInputPrivacyValueDisallowContacts | tl.RawInputPrivacyValueDisallowAll | tl.RawInputPrivacyValueDisallowUsers | tl.RawInputPrivacyValueAllowChatParticipants | tl.RawInputPrivacyValueDisallowChatParticipants | tl.RawInputPrivacyValueAllowCloseFriends
|
|
18892
19458
|
function isAnyInputPrivacyRule(o: object): o is TypeInputPrivacyRule
|
|
18893
19459
|
/**
|
|
18894
|
-
* Privacy
|
|
19460
|
+
* Privacy <strong>rules</strong> together with
|
|
19461
|
+
* <a href="https://corefork.telegram.org/api/privacy#privacy-keys">privacy
|
|
19462
|
+
* keys</a> indicate <em>what</em> can or can't someone do and
|
|
19463
|
+
* are specified by a
|
|
19464
|
+
* <a href="https://corefork.telegram.org/type/PrivacyRule">PrivacyRule</a>
|
|
19465
|
+
* constructor, and its input counterpart
|
|
19466
|
+
* <a href="https://corefork.telegram.org/type/InputPrivacyRule">InputPrivacyRule</a>.
|
|
19467
|
+
*
|
|
19468
|
+
* See the
|
|
19469
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
19470
|
+
* documentation »</a> for more info.
|
|
18895
19471
|
*/
|
|
18896
19472
|
type TypePrivacyRule = tl.RawPrivacyValueAllowContacts | tl.RawPrivacyValueAllowAll | tl.RawPrivacyValueAllowUsers | tl.RawPrivacyValueDisallowContacts | tl.RawPrivacyValueDisallowAll | tl.RawPrivacyValueDisallowUsers | tl.RawPrivacyValueAllowChatParticipants | tl.RawPrivacyValueDisallowChatParticipants | tl.RawPrivacyValueAllowCloseFriends
|
|
18897
19473
|
function isAnyPrivacyRule(o: object): o is TypePrivacyRule
|
|
@@ -18976,7 +19552,7 @@ export class RpcError extends Error {
|
|
|
18976
19552
|
/**
|
|
18977
19553
|
* Message entities, representing styled text in a message
|
|
18978
19554
|
*/
|
|
18979
|
-
type TypeMessageEntity = tl.RawMessageEntityUnknown | tl.RawMessageEntityMention | tl.RawMessageEntityHashtag | tl.RawMessageEntityBotCommand | tl.RawMessageEntityUrl | tl.RawMessageEntityEmail | tl.RawMessageEntityBold | tl.RawMessageEntityItalic | tl.RawMessageEntityCode | tl.RawMessageEntityPre | tl.RawMessageEntityTextUrl | tl.RawMessageEntityMentionName | tl.RawInputMessageEntityMentionName | tl.RawMessageEntityPhone | tl.RawMessageEntityCashtag | tl.RawMessageEntityUnderline | tl.RawMessageEntityStrike | tl.
|
|
19555
|
+
type TypeMessageEntity = tl.RawMessageEntityUnknown | tl.RawMessageEntityMention | tl.RawMessageEntityHashtag | tl.RawMessageEntityBotCommand | tl.RawMessageEntityUrl | tl.RawMessageEntityEmail | tl.RawMessageEntityBold | tl.RawMessageEntityItalic | tl.RawMessageEntityCode | tl.RawMessageEntityPre | tl.RawMessageEntityTextUrl | tl.RawMessageEntityMentionName | tl.RawInputMessageEntityMentionName | tl.RawMessageEntityPhone | tl.RawMessageEntityCashtag | tl.RawMessageEntityUnderline | tl.RawMessageEntityStrike | tl.RawMessageEntityBankCard | tl.RawMessageEntitySpoiler | tl.RawMessageEntityCustomEmoji | tl.RawMessageEntityBlockquote
|
|
18980
19556
|
function isAnyMessageEntity(o: object): o is TypeMessageEntity
|
|
18981
19557
|
/**
|
|
18982
19558
|
* Represents a channel
|
|
@@ -20036,30 +20612,69 @@ export class RpcError extends Error {
|
|
|
20036
20612
|
*/
|
|
20037
20613
|
type TypeExportedChatlistInvite = tl.RawExportedChatlistInvite
|
|
20038
20614
|
function isAnyExportedChatlistInvite(o: object): o is TypeExportedChatlistInvite
|
|
20615
|
+
/**
|
|
20616
|
+
* How a user voted in a poll
|
|
20617
|
+
*/
|
|
20039
20618
|
type TypeMessagePeerVote = tl.RawMessagePeerVote | tl.RawMessagePeerVoteInputOption | tl.RawMessagePeerVoteMultiple
|
|
20040
20619
|
function isAnyMessagePeerVote(o: object): o is TypeMessagePeerVote
|
|
20041
20620
|
type TypeSponsoredWebPage = tl.RawSponsoredWebPage
|
|
20042
20621
|
function isAnySponsoredWebPage(o: object): o is TypeSponsoredWebPage
|
|
20622
|
+
/**
|
|
20623
|
+
* Aggregated view and reaction information of a
|
|
20624
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
20625
|
+
*/
|
|
20043
20626
|
type TypeStoryViews = tl.RawStoryViews
|
|
20044
20627
|
function isAnyStoryViews(o: object): o is TypeStoryViews
|
|
20628
|
+
/**
|
|
20629
|
+
* Represents a
|
|
20630
|
+
* <a href="https://corefork.telegram.org/api/stories">Telegram
|
|
20631
|
+
* Story</a>
|
|
20632
|
+
*/
|
|
20045
20633
|
type TypeStoryItem = tl.RawStoryItemDeleted | tl.RawStoryItemSkipped | tl.RawStoryItem
|
|
20046
20634
|
function isAnyStoryItem(o: object): o is TypeStoryItem
|
|
20635
|
+
/**
|
|
20636
|
+
* <a href="https://corefork.telegram.org/api/stories">Story</a>
|
|
20637
|
+
* view date and reaction information
|
|
20638
|
+
*/
|
|
20047
20639
|
type TypeStoryView = tl.RawStoryView
|
|
20048
20640
|
function isAnyStoryView(o: object): o is TypeStoryView
|
|
20641
|
+
/**
|
|
20642
|
+
* Contains info about a message or story to reply to.
|
|
20643
|
+
*/
|
|
20049
20644
|
type TypeInputReplyTo = tl.RawInputReplyToMessage | tl.RawInputReplyToStory
|
|
20050
20645
|
function isAnyInputReplyTo(o: object): o is TypeInputReplyTo
|
|
20646
|
+
/**
|
|
20647
|
+
* Represents a
|
|
20648
|
+
* <a href="https://corefork.telegram.org/api/stories#story-links">story
|
|
20649
|
+
* deep link</a>
|
|
20650
|
+
*/
|
|
20051
20651
|
type TypeExportedStoryLink = tl.RawExportedStoryLink
|
|
20052
20652
|
function isAnyExportedStoryLink(o: object): o is TypeExportedStoryLink
|
|
20653
|
+
/**
|
|
20654
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">Story
|
|
20655
|
+
* stealth mode status</a>
|
|
20656
|
+
*/
|
|
20053
20657
|
type TypeStoriesStealthMode = tl.RawStoriesStealthMode
|
|
20054
20658
|
function isAnyStoriesStealthMode(o: object): o is TypeStoriesStealthMode
|
|
20659
|
+
/**
|
|
20660
|
+
* Coordinates and size of a clicable rectangular area on top
|
|
20661
|
+
* of a story.
|
|
20662
|
+
*/
|
|
20055
20663
|
type TypeMediaAreaCoordinates = tl.RawMediaAreaCoordinates
|
|
20056
20664
|
function isAnyMediaAreaCoordinates(o: object): o is TypeMediaAreaCoordinates
|
|
20665
|
+
/**
|
|
20666
|
+
* Represents a
|
|
20667
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">story
|
|
20668
|
+
* media area »</a>
|
|
20669
|
+
*/
|
|
20057
20670
|
type TypeMediaArea = tl.RawMediaAreaVenue | tl.RawInputMediaAreaVenue | tl.RawMediaAreaGeoPoint | tl.RawMediaAreaSuggestedReaction
|
|
20058
20671
|
function isAnyMediaArea(o: object): o is TypeMediaArea
|
|
20672
|
+
/**
|
|
20673
|
+
* <a href="https://corefork.telegram.org/api/stories">Stories</a>
|
|
20674
|
+
* associated to a peer
|
|
20675
|
+
*/
|
|
20059
20676
|
type TypePeerStories = tl.RawPeerStories
|
|
20060
20677
|
function isAnyPeerStories(o: object): o is TypePeerStories
|
|
20061
|
-
type TypeBooster = tl.RawBooster
|
|
20062
|
-
function isAnyBooster(o: object): o is TypeBooster
|
|
20063
20678
|
type TypePremiumGiftCodeOption = tl.RawPremiumGiftCodeOption
|
|
20064
20679
|
function isAnyPremiumGiftCodeOption(o: object): o is TypePremiumGiftCodeOption
|
|
20065
20680
|
type TypePrepaidGiveaway = tl.RawPrepaidGiveaway
|
|
@@ -20068,11 +20683,26 @@ export class RpcError extends Error {
|
|
|
20068
20683
|
function isAnyBoost(o: object): o is TypeBoost
|
|
20069
20684
|
type TypeMyBoost = tl.RawMyBoost
|
|
20070
20685
|
function isAnyMyBoost(o: object): o is TypeMyBoost
|
|
20686
|
+
type TypeStoryFwdHeader = tl.RawStoryFwdHeader
|
|
20687
|
+
function isAnyStoryFwdHeader(o: object): o is TypeStoryFwdHeader
|
|
20688
|
+
type TypePostInteractionCounters = tl.RawPostInteractionCountersMessage | tl.RawPostInteractionCountersStory
|
|
20689
|
+
function isAnyPostInteractionCounters(o: object): o is TypePostInteractionCounters
|
|
20690
|
+
type TypePublicForward = tl.RawPublicForwardMessage | tl.RawPublicForwardStory
|
|
20691
|
+
function isAnyPublicForward(o: object): o is TypePublicForward
|
|
20692
|
+
type TypePeerColor = tl.RawPeerColor
|
|
20693
|
+
function isAnyPeerColor(o: object): o is TypePeerColor
|
|
20071
20694
|
/**
|
|
20072
20695
|
* How a user voted in a poll
|
|
20073
20696
|
*/
|
|
20074
20697
|
type TypeMessageUserVote = tl.RawMessageUserVote | tl.RawMessageUserVoteInputOption | tl.RawMessageUserVoteMultiple
|
|
20075
20698
|
function isAnyMessageUserVote(o: object): o is TypeMessageUserVote
|
|
20699
|
+
/**
|
|
20700
|
+
* Info about a
|
|
20701
|
+
* <a href="https://corefork.telegram.org/api/boost">boost</a>
|
|
20702
|
+
* made by a specific user.
|
|
20703
|
+
*/
|
|
20704
|
+
type TypeBooster = tl.RawBooster
|
|
20705
|
+
function isAnyBooster(o: object): o is TypeBooster
|
|
20076
20706
|
|
|
20077
20707
|
namespace help {
|
|
20078
20708
|
interface RawConfigSimple {
|
|
@@ -20507,6 +21137,31 @@ export class RpcError extends Error {
|
|
|
20507
21137
|
*/
|
|
20508
21138
|
config: tl.TypeJSONValue;
|
|
20509
21139
|
}
|
|
21140
|
+
interface RawPeerColorSet {
|
|
21141
|
+
_: 'help.peerColorSet';
|
|
21142
|
+
colors: number[];
|
|
21143
|
+
}
|
|
21144
|
+
interface RawPeerColorProfileSet {
|
|
21145
|
+
_: 'help.peerColorProfileSet';
|
|
21146
|
+
paletteColors: number[];
|
|
21147
|
+
bgColors: number[];
|
|
21148
|
+
storyColors: number[];
|
|
21149
|
+
}
|
|
21150
|
+
interface RawPeerColorOption {
|
|
21151
|
+
_: 'help.peerColorOption';
|
|
21152
|
+
hidden?: boolean;
|
|
21153
|
+
colorId: number;
|
|
21154
|
+
colors?: tl.help.TypePeerColorSet;
|
|
21155
|
+
darkColors?: tl.help.TypePeerColorSet;
|
|
21156
|
+
}
|
|
21157
|
+
interface RawPeerColorsNotModified {
|
|
21158
|
+
_: 'help.peerColorsNotModified';
|
|
21159
|
+
}
|
|
21160
|
+
interface RawPeerColors {
|
|
21161
|
+
_: 'help.peerColors';
|
|
21162
|
+
hash: number;
|
|
21163
|
+
colors: tl.help.TypePeerColorOption[];
|
|
21164
|
+
}
|
|
20510
21165
|
/**
|
|
20511
21166
|
* Returns current configuration, including data center
|
|
20512
21167
|
* configuration.
|
|
@@ -20807,6 +21462,20 @@ export class RpcError extends Error {
|
|
|
20807
21462
|
interface RawGetPremiumPromoRequest {
|
|
20808
21463
|
_: 'help.getPremiumPromo';
|
|
20809
21464
|
}
|
|
21465
|
+
/**
|
|
21466
|
+
* RPC method returns {@link tl.help.TypePeerColors}
|
|
21467
|
+
*/
|
|
21468
|
+
interface RawGetPeerColorsRequest {
|
|
21469
|
+
_: 'help.getPeerColors';
|
|
21470
|
+
hash: number;
|
|
21471
|
+
}
|
|
21472
|
+
/**
|
|
21473
|
+
* RPC method returns {@link tl.help.TypePeerColors}
|
|
21474
|
+
*/
|
|
21475
|
+
interface RawGetPeerProfileColorsRequest {
|
|
21476
|
+
_: 'help.getPeerProfileColors';
|
|
21477
|
+
hash: number;
|
|
21478
|
+
}
|
|
20810
21479
|
interface RpcCallReturn {
|
|
20811
21480
|
'help.getConfig': tl.TypeConfig
|
|
20812
21481
|
'help.getNearestDc': tl.TypeNearestDc
|
|
@@ -20831,6 +21500,8 @@ export class RpcError extends Error {
|
|
|
20831
21500
|
'help.dismissSuggestion': boolean
|
|
20832
21501
|
'help.getCountriesList': tl.help.TypeCountriesList
|
|
20833
21502
|
'help.getPremiumPromo': tl.help.TypePremiumPromo
|
|
21503
|
+
'help.getPeerColors': tl.help.TypePeerColors
|
|
21504
|
+
'help.getPeerProfileColors': tl.help.TypePeerColors
|
|
20834
21505
|
}
|
|
20835
21506
|
type TypeConfigSimple = tl.help.RawConfigSimple
|
|
20836
21507
|
function isAnyConfigSimple(o: object): o is TypeConfigSimple
|
|
@@ -20924,6 +21595,12 @@ export class RpcError extends Error {
|
|
|
20924
21595
|
*/
|
|
20925
21596
|
type TypeAppConfig = tl.help.RawAppConfigNotModified | tl.help.RawAppConfig
|
|
20926
21597
|
function isAnyAppConfig(o: object): o is TypeAppConfig
|
|
21598
|
+
type TypePeerColorSet = tl.help.RawPeerColorSet | tl.help.RawPeerColorProfileSet
|
|
21599
|
+
function isAnyPeerColorSet(o: object): o is TypePeerColorSet
|
|
21600
|
+
type TypePeerColorOption = tl.help.RawPeerColorOption
|
|
21601
|
+
function isAnyPeerColorOption(o: object): o is TypePeerColorOption
|
|
21602
|
+
type TypePeerColors = tl.help.RawPeerColorsNotModified | tl.help.RawPeerColors
|
|
21603
|
+
function isAnyPeerColors(o: object): o is TypePeerColors
|
|
20927
21604
|
}
|
|
20928
21605
|
|
|
20929
21606
|
namespace storage {
|
|
@@ -21323,7 +22000,7 @@ export class RpcError extends Error {
|
|
|
21323
22000
|
interface RawLoginToken {
|
|
21324
22001
|
_: 'auth.loginToken';
|
|
21325
22002
|
/**
|
|
21326
|
-
*
|
|
22003
|
+
* Expiration date of QR code
|
|
21327
22004
|
*/
|
|
21328
22005
|
expires: number;
|
|
21329
22006
|
/**
|
|
@@ -22130,28 +22807,45 @@ export class RpcError extends Error {
|
|
|
22130
22807
|
phones: string[];
|
|
22131
22808
|
}
|
|
22132
22809
|
/**
|
|
22133
|
-
* Adds
|
|
22810
|
+
* Adds a peer to a blocklist, see
|
|
22811
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22812
|
+
* for more info.
|
|
22134
22813
|
*
|
|
22135
22814
|
* RPC method returns boolean
|
|
22136
22815
|
*/
|
|
22137
22816
|
interface RawBlockRequest {
|
|
22138
22817
|
_: 'contacts.block';
|
|
22818
|
+
/**
|
|
22819
|
+
* Whether the peer should be added to the story blocklist; if
|
|
22820
|
+
* not set, the peer will be added to the main blocklist, see
|
|
22821
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22822
|
+
* for more info.
|
|
22823
|
+
*/
|
|
22139
22824
|
myStoriesFrom?: boolean;
|
|
22140
22825
|
/**
|
|
22141
|
-
*
|
|
22826
|
+
* Peer
|
|
22142
22827
|
*/
|
|
22143
22828
|
id: tl.TypeInputPeer;
|
|
22144
22829
|
}
|
|
22145
22830
|
/**
|
|
22146
|
-
* Deletes
|
|
22831
|
+
* Deletes a peer from a blocklist, see
|
|
22832
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22833
|
+
* for more info.
|
|
22147
22834
|
*
|
|
22148
22835
|
* RPC method returns boolean
|
|
22149
22836
|
*/
|
|
22150
22837
|
interface RawUnblockRequest {
|
|
22151
22838
|
_: 'contacts.unblock';
|
|
22839
|
+
/**
|
|
22840
|
+
* Whether the peer should be removed from the story blocklist;
|
|
22841
|
+
* if not set, the peer will be removed from the main
|
|
22842
|
+
* blocklist, see
|
|
22843
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22844
|
+
* for more info.
|
|
22845
|
+
*/
|
|
22152
22846
|
myStoriesFrom?: boolean;
|
|
22153
22847
|
/**
|
|
22154
|
-
*
|
|
22848
|
+
* Peer
|
|
22155
22849
|
*/
|
|
22156
22850
|
id: tl.TypeInputPeer;
|
|
22157
22851
|
}
|
|
@@ -22162,6 +22856,12 @@ export class RpcError extends Error {
|
|
|
22162
22856
|
*/
|
|
22163
22857
|
interface RawGetBlockedRequest {
|
|
22164
22858
|
_: 'contacts.getBlocked';
|
|
22859
|
+
/**
|
|
22860
|
+
* Whether to fetch the story blocklist; if not set, will fetch
|
|
22861
|
+
* the main blocklist. See
|
|
22862
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22863
|
+
* for differences between the two.
|
|
22864
|
+
*/
|
|
22165
22865
|
myStoriesFrom?: boolean;
|
|
22166
22866
|
/**
|
|
22167
22867
|
* The number of list elements to be skipped
|
|
@@ -22331,13 +23031,15 @@ export class RpcError extends Error {
|
|
|
22331
23031
|
*/
|
|
22332
23032
|
lastName: string;
|
|
22333
23033
|
/**
|
|
22334
|
-
* User's phone number
|
|
23034
|
+
* User's phone number, may be omitted to simply add the user
|
|
23035
|
+
* to the contact list, without a phone number.
|
|
22335
23036
|
*/
|
|
22336
23037
|
phone: string;
|
|
22337
23038
|
}
|
|
22338
23039
|
/**
|
|
22339
|
-
* If the
|
|
22340
|
-
*
|
|
23040
|
+
* If the
|
|
23041
|
+
* <a href="https://corefork.telegram.org/api/action-bar#add-contact">add
|
|
23042
|
+
* contact action bar is active</a>, add that user as contact
|
|
22341
23043
|
*
|
|
22342
23044
|
* RPC method returns {@link tl.TypeUpdates}
|
|
22343
23045
|
*/
|
|
@@ -22349,7 +23051,9 @@ export class RpcError extends Error {
|
|
|
22349
23051
|
id: tl.TypeInputUser;
|
|
22350
23052
|
}
|
|
22351
23053
|
/**
|
|
22352
|
-
* Get
|
|
23054
|
+
* Get users and geochats near you, see
|
|
23055
|
+
* <a href="https://corefork.telegram.org/api/nearby">here
|
|
23056
|
+
* »</a> for more info.
|
|
22353
23057
|
*
|
|
22354
23058
|
* RPC method returns {@link tl.TypeUpdates}
|
|
22355
23059
|
*/
|
|
@@ -22448,18 +23152,40 @@ export class RpcError extends Error {
|
|
|
22448
23152
|
token: string;
|
|
22449
23153
|
}
|
|
22450
23154
|
/**
|
|
23155
|
+
* Edit the
|
|
23156
|
+
* <a href="https://corefork.telegram.org/api/privacy">close
|
|
23157
|
+
* friends list, see here »</a> for more info.
|
|
23158
|
+
*
|
|
22451
23159
|
* RPC method returns boolean
|
|
22452
23160
|
*/
|
|
22453
23161
|
interface RawEditCloseFriendsRequest {
|
|
22454
23162
|
_: 'contacts.editCloseFriends';
|
|
23163
|
+
/**
|
|
23164
|
+
* Full list of user IDs of close friends, see
|
|
23165
|
+
* <a href="https://corefork.telegram.org/api/privacy">here</a>
|
|
23166
|
+
* for more info.
|
|
23167
|
+
*/
|
|
22455
23168
|
id: number[];
|
|
22456
23169
|
}
|
|
22457
23170
|
/**
|
|
23171
|
+
* Replace the contents of an entire
|
|
23172
|
+
* <a href="https://corefork.telegram.org/api/contacts">blocklist,
|
|
23173
|
+
* see here for more info »</a>.
|
|
23174
|
+
*
|
|
22458
23175
|
* RPC method returns boolean
|
|
22459
23176
|
*/
|
|
22460
23177
|
interface RawSetBlockedRequest {
|
|
22461
23178
|
_: 'contacts.setBlocked';
|
|
23179
|
+
/**
|
|
23180
|
+
* Whether to edit the story blocklist; if not set, will edit
|
|
23181
|
+
* the main blocklist. See
|
|
23182
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
23183
|
+
* for differences between the two.
|
|
23184
|
+
*/
|
|
22462
23185
|
myStoriesFrom?: boolean;
|
|
23186
|
+
/**
|
|
23187
|
+
* Full content of the blocklist.
|
|
23188
|
+
*/
|
|
22463
23189
|
id: tl.TypeInputPeer[];
|
|
22464
23190
|
/**
|
|
22465
23191
|
* Maximum number of results to return,
|
|
@@ -23266,6 +23992,9 @@ export class RpcError extends Error {
|
|
|
23266
23992
|
* Vote info for each user
|
|
23267
23993
|
*/
|
|
23268
23994
|
votes: tl.TypeMessagePeerVote[];
|
|
23995
|
+
/**
|
|
23996
|
+
* Mentioned chats
|
|
23997
|
+
*/
|
|
23269
23998
|
chats: tl.TypeChat[];
|
|
23270
23999
|
/**
|
|
23271
24000
|
* Info about users that voted in the poll
|
|
@@ -23686,6 +24415,8 @@ export class RpcError extends Error {
|
|
|
23686
24415
|
* Transcripted text
|
|
23687
24416
|
*/
|
|
23688
24417
|
text: string;
|
|
24418
|
+
trialRemainsNum?: number;
|
|
24419
|
+
trialRemainsUntilDate?: number;
|
|
23689
24420
|
}
|
|
23690
24421
|
/**
|
|
23691
24422
|
* The server-side list of
|
|
@@ -24144,6 +24875,10 @@ export class RpcError extends Error {
|
|
|
24144
24875
|
* The destination where the message will be sent
|
|
24145
24876
|
*/
|
|
24146
24877
|
peer: tl.TypeInputPeer;
|
|
24878
|
+
/**
|
|
24879
|
+
* If set, indicates that the message should be sent in reply
|
|
24880
|
+
* to the specified message or story.
|
|
24881
|
+
*/
|
|
24147
24882
|
replyTo?: tl.TypeInputReplyTo;
|
|
24148
24883
|
/**
|
|
24149
24884
|
* The message
|
|
@@ -24212,6 +24947,10 @@ export class RpcError extends Error {
|
|
|
24212
24947
|
* Destination
|
|
24213
24948
|
*/
|
|
24214
24949
|
peer: tl.TypeInputPeer;
|
|
24950
|
+
/**
|
|
24951
|
+
* If set, indicates that the message should be sent in reply
|
|
24952
|
+
* to the specified message or story.
|
|
24953
|
+
*/
|
|
24215
24954
|
replyTo?: tl.TypeInputReplyTo;
|
|
24216
24955
|
/**
|
|
24217
24956
|
* Attached media
|
|
@@ -25235,6 +25974,10 @@ export class RpcError extends Error {
|
|
|
25235
25974
|
* Destination
|
|
25236
25975
|
*/
|
|
25237
25976
|
peer: tl.TypeInputPeer;
|
|
25977
|
+
/**
|
|
25978
|
+
* If set, indicates that the message should be sent in reply
|
|
25979
|
+
* to the specified message or story.
|
|
25980
|
+
*/
|
|
25238
25981
|
replyTo?: tl.TypeInputReplyTo;
|
|
25239
25982
|
/**
|
|
25240
25983
|
* Random ID to avoid resending the same query
|
|
@@ -25285,6 +26028,7 @@ export class RpcError extends Error {
|
|
|
25285
26028
|
* Disable webpage preview
|
|
25286
26029
|
*/
|
|
25287
26030
|
noWebpage?: boolean;
|
|
26031
|
+
invertMedia?: boolean;
|
|
25288
26032
|
/**
|
|
25289
26033
|
* Where was the message sent
|
|
25290
26034
|
*/
|
|
@@ -25316,7 +26060,6 @@ export class RpcError extends Error {
|
|
|
25316
26060
|
* messages</a>
|
|
25317
26061
|
*/
|
|
25318
26062
|
scheduleDate?: number;
|
|
25319
|
-
invertMedia?: boolean;
|
|
25320
26063
|
}
|
|
25321
26064
|
/**
|
|
25322
26065
|
* Edit an inline bot message
|
|
@@ -25329,6 +26072,7 @@ export class RpcError extends Error {
|
|
|
25329
26072
|
* Disable webpage preview
|
|
25330
26073
|
*/
|
|
25331
26074
|
noWebpage?: boolean;
|
|
26075
|
+
invertMedia?: boolean;
|
|
25332
26076
|
/**
|
|
25333
26077
|
* Sent inline message ID
|
|
25334
26078
|
*/
|
|
@@ -25350,7 +26094,6 @@ export class RpcError extends Error {
|
|
|
25350
26094
|
* entities for styled text</a>
|
|
25351
26095
|
*/
|
|
25352
26096
|
entities?: tl.TypeMessageEntity[];
|
|
25353
|
-
invertMedia?: boolean;
|
|
25354
26097
|
}
|
|
25355
26098
|
/**
|
|
25356
26099
|
* Press an inline callback button and get a callback answer
|
|
@@ -25890,6 +26633,11 @@ export class RpcError extends Error {
|
|
|
25890
26633
|
* Other user
|
|
25891
26634
|
*/
|
|
25892
26635
|
peer: tl.TypeInputPeer;
|
|
26636
|
+
/**
|
|
26637
|
+
* Indicates the message that was screenshotted (the specified
|
|
26638
|
+
* message ID can also be <code>0</code> to avoid indicating
|
|
26639
|
+
* any specific message).
|
|
26640
|
+
*/
|
|
25893
26641
|
replyTo: tl.TypeInputReplyTo;
|
|
25894
26642
|
/**
|
|
25895
26643
|
* Random ID to avoid message resending
|
|
@@ -26053,6 +26801,10 @@ export class RpcError extends Error {
|
|
|
26053
26801
|
* The destination chat
|
|
26054
26802
|
*/
|
|
26055
26803
|
peer: tl.TypeInputPeer;
|
|
26804
|
+
/**
|
|
26805
|
+
* If set, indicates that the message should be sent in reply
|
|
26806
|
+
* to the specified message or story.
|
|
26807
|
+
*/
|
|
26056
26808
|
replyTo?: tl.TypeInputReplyTo;
|
|
26057
26809
|
/**
|
|
26058
26810
|
* The medias to send: note that they must be separately
|
|
@@ -26416,10 +27168,13 @@ export class RpcError extends Error {
|
|
|
26416
27168
|
url?: string;
|
|
26417
27169
|
}
|
|
26418
27170
|
/**
|
|
26419
|
-
* Should be called after the user hides the
|
|
26420
|
-
*
|
|
26421
|
-
*
|
|
26422
|
-
*
|
|
27171
|
+
* Should be called after the user hides the
|
|
27172
|
+
* <a href="https://corefork.telegram.org/api/action-bar">report
|
|
27173
|
+
* spam/add as contact bar</a> of a new chat, effectively
|
|
27174
|
+
* prevents the user from executing the actions specified in
|
|
27175
|
+
* the
|
|
27176
|
+
* <a href="https://corefork.telegram.org/api/action-bar">action
|
|
27177
|
+
* bar »</a>.
|
|
26423
27178
|
*
|
|
26424
27179
|
* RPC method returns boolean
|
|
26425
27180
|
*/
|
|
@@ -27317,7 +28072,7 @@ export class RpcError extends Error {
|
|
|
27317
28072
|
*/
|
|
27318
28073
|
big?: boolean;
|
|
27319
28074
|
/**
|
|
27320
|
-
*
|
|
28075
|
+
* Whether to add this reaction to the
|
|
27321
28076
|
* <a href="https://corefork.telegram.org/api/reactions#recent-reactions">recent
|
|
27322
28077
|
* reactions list »</a>.
|
|
27323
28078
|
*/
|
|
@@ -27670,6 +28425,13 @@ export class RpcError extends Error {
|
|
|
27670
28425
|
* and underscores
|
|
27671
28426
|
*/
|
|
27672
28427
|
platform: string;
|
|
28428
|
+
/**
|
|
28429
|
+
* If set, indicates that the inline message that will be sent
|
|
28430
|
+
* by the bot on behalf of the user once the web app
|
|
28431
|
+
* interaction is
|
|
28432
|
+
* {@link messages.RawSendWebViewResultMessageRequest} should
|
|
28433
|
+
* be sent in reply to the specified message or story.
|
|
28434
|
+
*/
|
|
27673
28435
|
replyTo?: tl.TypeInputReplyTo;
|
|
27674
28436
|
/**
|
|
27675
28437
|
* Open the web app as the specified peer, sending the
|
|
@@ -27710,6 +28472,13 @@ export class RpcError extends Error {
|
|
|
27710
28472
|
* {@link messages.RawRequestWebViewRequest}
|
|
27711
28473
|
*/
|
|
27712
28474
|
queryId: Long;
|
|
28475
|
+
/**
|
|
28476
|
+
* If set, indicates that the inline message that will be sent
|
|
28477
|
+
* by the bot on behalf of the user once the web app
|
|
28478
|
+
* interaction is
|
|
28479
|
+
* {@link messages.RawSendWebViewResultMessageRequest} should
|
|
28480
|
+
* be sent in reply to the specified message or story.
|
|
28481
|
+
*/
|
|
27713
28482
|
replyTo?: tl.TypeInputReplyTo;
|
|
27714
28483
|
/**
|
|
27715
28484
|
* Open the web app as the specified peer
|
|
@@ -28238,6 +29007,17 @@ export class RpcError extends Error {
|
|
|
28238
29007
|
* must contain the ID of that message.
|
|
28239
29008
|
*/
|
|
28240
29009
|
id?: number;
|
|
29010
|
+
forBoth?: boolean;
|
|
29011
|
+
revert?: boolean;
|
|
29012
|
+
}
|
|
29013
|
+
/**
|
|
29014
|
+
* RPC method returns {@link tl.messages.TypeFoundStickerSets}
|
|
29015
|
+
*/
|
|
29016
|
+
interface RawSearchEmojiStickerSetsRequest {
|
|
29017
|
+
_: 'messages.searchEmojiStickerSets';
|
|
29018
|
+
excludeFeatured?: boolean;
|
|
29019
|
+
q: string;
|
|
29020
|
+
hash: Long;
|
|
28241
29021
|
}
|
|
28242
29022
|
interface RpcCallReturn {
|
|
28243
29023
|
'messages.getMessages': tl.messages.TypeMessages
|
|
@@ -28427,6 +29207,7 @@ export class RpcError extends Error {
|
|
|
28427
29207
|
'messages.getBotApp': tl.messages.TypeBotApp
|
|
28428
29208
|
'messages.requestAppWebView': tl.TypeAppWebViewResult
|
|
28429
29209
|
'messages.setChatWallPaper': tl.TypeUpdates
|
|
29210
|
+
'messages.searchEmojiStickerSets': tl.messages.TypeFoundStickerSets
|
|
28430
29211
|
}
|
|
28431
29212
|
/**
|
|
28432
29213
|
* Object contains a list of chats with messages and auxiliary
|
|
@@ -31268,12 +32049,17 @@ export class RpcError extends Error {
|
|
|
31268
32049
|
authorizationTtlDays: number;
|
|
31269
32050
|
}
|
|
31270
32051
|
/**
|
|
31271
|
-
* Change settings related to
|
|
32052
|
+
* Change settings related to a session.
|
|
31272
32053
|
*
|
|
31273
32054
|
* RPC method returns boolean
|
|
31274
32055
|
*/
|
|
31275
32056
|
interface RawChangeAuthorizationSettingsRequest {
|
|
31276
32057
|
_: 'account.changeAuthorizationSettings';
|
|
32058
|
+
/**
|
|
32059
|
+
* If set,
|
|
32060
|
+
* <a href="https://corefork.telegram.org/api/auth#confirming-login">confirms
|
|
32061
|
+
* a newly logged in session »</a>.
|
|
32062
|
+
*/
|
|
31277
32063
|
confirmed?: boolean;
|
|
31278
32064
|
/**
|
|
31279
32065
|
* Session ID from the {@link RawAuthorization} constructor,
|
|
@@ -31532,7 +32318,8 @@ export class RpcError extends Error {
|
|
|
31532
32318
|
*/
|
|
31533
32319
|
interface RawUpdateColorRequest {
|
|
31534
32320
|
_: 'account.updateColor';
|
|
31535
|
-
|
|
32321
|
+
forProfile?: boolean;
|
|
32322
|
+
color?: number;
|
|
31536
32323
|
backgroundEmojiId?: Long;
|
|
31537
32324
|
}
|
|
31538
32325
|
/**
|
|
@@ -32024,11 +32811,15 @@ export class RpcError extends Error {
|
|
|
32024
32811
|
*/
|
|
32025
32812
|
about: string;
|
|
32026
32813
|
/**
|
|
32027
|
-
* Geogroup location
|
|
32814
|
+
* Geogroup location, see
|
|
32815
|
+
* <a href="https://corefork.telegram.org/api/nearby">here
|
|
32816
|
+
* »</a> for more info on geogroups.
|
|
32028
32817
|
*/
|
|
32029
32818
|
geoPoint?: tl.TypeInputGeoPoint;
|
|
32030
32819
|
/**
|
|
32031
|
-
* Geogroup address
|
|
32820
|
+
* Geogroup address, see
|
|
32821
|
+
* <a href="https://corefork.telegram.org/api/nearby">here
|
|
32822
|
+
* »</a> for more info on geogroups.
|
|
32032
32823
|
*/
|
|
32033
32824
|
address?: string;
|
|
32034
32825
|
/**
|
|
@@ -32485,7 +33276,9 @@ export class RpcError extends Error {
|
|
|
32485
33276
|
password: tl.TypeInputCheckPasswordSRP;
|
|
32486
33277
|
}
|
|
32487
33278
|
/**
|
|
32488
|
-
* Edit location of geo group
|
|
33279
|
+
* Edit location of geo group, see
|
|
33280
|
+
* <a href="https://corefork.telegram.org/api/nearby">here
|
|
33281
|
+
* »</a> for more info on geogroups.
|
|
32489
33282
|
*
|
|
32490
33283
|
* RPC method returns boolean
|
|
32491
33284
|
*/
|
|
@@ -33012,6 +33805,21 @@ export class RpcError extends Error {
|
|
|
33012
33805
|
color: number;
|
|
33013
33806
|
backgroundEmojiId?: Long;
|
|
33014
33807
|
}
|
|
33808
|
+
/**
|
|
33809
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
33810
|
+
*/
|
|
33811
|
+
interface RawToggleViewForumAsMessagesRequest {
|
|
33812
|
+
_: 'channels.toggleViewForumAsMessages';
|
|
33813
|
+
channel: tl.TypeInputChannel;
|
|
33814
|
+
enabled: boolean;
|
|
33815
|
+
}
|
|
33816
|
+
/**
|
|
33817
|
+
* RPC method returns {@link tl.messages.TypeChats}
|
|
33818
|
+
*/
|
|
33819
|
+
interface RawGetChannelRecommendationsRequest {
|
|
33820
|
+
_: 'channels.getChannelRecommendations';
|
|
33821
|
+
channel: tl.TypeInputChannel;
|
|
33822
|
+
}
|
|
33015
33823
|
interface RpcCallReturn {
|
|
33016
33824
|
'channels.readHistory': boolean
|
|
33017
33825
|
'channels.deleteMessages': tl.messages.TypeAffectedMessages
|
|
@@ -33070,6 +33878,8 @@ export class RpcError extends Error {
|
|
|
33070
33878
|
'channels.toggleParticipantsHidden': tl.TypeUpdates
|
|
33071
33879
|
'channels.clickSponsoredMessage': boolean
|
|
33072
33880
|
'channels.updateColor': tl.TypeUpdates
|
|
33881
|
+
'channels.toggleViewForumAsMessages': tl.TypeUpdates
|
|
33882
|
+
'channels.getChannelRecommendations': tl.messages.TypeChats
|
|
33073
33883
|
}
|
|
33074
33884
|
/**
|
|
33075
33885
|
* Channel/supergroup participants
|
|
@@ -34576,6 +35386,10 @@ export class RpcError extends Error {
|
|
|
34576
35386
|
* min_date))</code> till <code>min_date</code>)
|
|
34577
35387
|
*/
|
|
34578
35388
|
sharesPerPost: tl.TypeStatsAbsValueAndPrev;
|
|
35389
|
+
reactionsPerPost: tl.TypeStatsAbsValueAndPrev;
|
|
35390
|
+
viewsPerStory: tl.TypeStatsAbsValueAndPrev;
|
|
35391
|
+
sharesPerStory: tl.TypeStatsAbsValueAndPrev;
|
|
35392
|
+
reactionsPerStory: tl.TypeStatsAbsValueAndPrev;
|
|
34579
35393
|
/**
|
|
34580
35394
|
* Percentage of subscribers with enabled notifications
|
|
34581
35395
|
*/
|
|
@@ -34616,10 +35430,10 @@ export class RpcError extends Error {
|
|
|
34616
35430
|
* Subscriber language graph (pie chart)
|
|
34617
35431
|
*/
|
|
34618
35432
|
languagesGraph: tl.TypeStatsGraph;
|
|
34619
|
-
|
|
34620
|
-
|
|
34621
|
-
|
|
34622
|
-
|
|
35433
|
+
reactionsByEmotionGraph: tl.TypeStatsGraph;
|
|
35434
|
+
storyInteractionsGraph: tl.TypeStatsGraph;
|
|
35435
|
+
storyReactionsByEmotionGraph: tl.TypeStatsGraph;
|
|
35436
|
+
recentPostsInteractions: tl.TypePostInteractionCounters[];
|
|
34623
35437
|
}
|
|
34624
35438
|
/**
|
|
34625
35439
|
* Supergroup
|
|
@@ -34708,6 +35522,20 @@ export class RpcError extends Error {
|
|
|
34708
35522
|
* Message view graph
|
|
34709
35523
|
*/
|
|
34710
35524
|
viewsGraph: tl.TypeStatsGraph;
|
|
35525
|
+
reactionsByEmotionGraph: tl.TypeStatsGraph;
|
|
35526
|
+
}
|
|
35527
|
+
interface RawStoryStats {
|
|
35528
|
+
_: 'stats.storyStats';
|
|
35529
|
+
viewsGraph: tl.TypeStatsGraph;
|
|
35530
|
+
reactionsByEmotionGraph: tl.TypeStatsGraph;
|
|
35531
|
+
}
|
|
35532
|
+
interface RawPublicForwards {
|
|
35533
|
+
_: 'stats.publicForwards';
|
|
35534
|
+
count: number;
|
|
35535
|
+
forwards: tl.TypePublicForward[];
|
|
35536
|
+
nextOffset?: string;
|
|
35537
|
+
chats: tl.TypeChat[];
|
|
35538
|
+
users: tl.TypeUser[];
|
|
34711
35539
|
}
|
|
34712
35540
|
/**
|
|
34713
35541
|
* Get
|
|
@@ -34829,12 +35657,33 @@ export class RpcError extends Error {
|
|
|
34829
35657
|
*/
|
|
34830
35658
|
msgId: number;
|
|
34831
35659
|
}
|
|
35660
|
+
/**
|
|
35661
|
+
* RPC method returns {@link tl.stats.TypeStoryStats}
|
|
35662
|
+
*/
|
|
35663
|
+
interface RawGetStoryStatsRequest {
|
|
35664
|
+
_: 'stats.getStoryStats';
|
|
35665
|
+
dark?: boolean;
|
|
35666
|
+
peer: tl.TypeInputPeer;
|
|
35667
|
+
id: number;
|
|
35668
|
+
}
|
|
35669
|
+
/**
|
|
35670
|
+
* RPC method returns {@link tl.stats.TypePublicForwards}
|
|
35671
|
+
*/
|
|
35672
|
+
interface RawGetStoryPublicForwardsRequest {
|
|
35673
|
+
_: 'stats.getStoryPublicForwards';
|
|
35674
|
+
peer: tl.TypeInputPeer;
|
|
35675
|
+
id: number;
|
|
35676
|
+
offset: string;
|
|
35677
|
+
limit: number;
|
|
35678
|
+
}
|
|
34832
35679
|
interface RpcCallReturn {
|
|
34833
35680
|
'stats.getBroadcastStats': tl.stats.TypeBroadcastStats
|
|
34834
35681
|
'stats.loadAsyncGraph': tl.TypeStatsGraph
|
|
34835
35682
|
'stats.getMegagroupStats': tl.stats.TypeMegagroupStats
|
|
34836
35683
|
'stats.getMessagePublicForwards': tl.messages.TypeMessages
|
|
34837
35684
|
'stats.getMessageStats': tl.stats.TypeMessageStats
|
|
35685
|
+
'stats.getStoryStats': tl.stats.TypeStoryStats
|
|
35686
|
+
'stats.getStoryPublicForwards': tl.stats.TypePublicForwards
|
|
34838
35687
|
}
|
|
34839
35688
|
/**
|
|
34840
35689
|
* Channel statistics
|
|
@@ -34851,6 +35700,10 @@ export class RpcError extends Error {
|
|
|
34851
35700
|
*/
|
|
34852
35701
|
type TypeMessageStats = tl.stats.RawMessageStats
|
|
34853
35702
|
function isAnyMessageStats(o: object): o is TypeMessageStats
|
|
35703
|
+
type TypeStoryStats = tl.stats.RawStoryStats
|
|
35704
|
+
function isAnyStoryStats(o: object): o is TypeStoryStats
|
|
35705
|
+
type TypePublicForwards = tl.stats.RawPublicForwards
|
|
35706
|
+
function isAnyPublicForwards(o: object): o is TypePublicForwards
|
|
34854
35707
|
}
|
|
34855
35708
|
|
|
34856
35709
|
namespace stickers {
|
|
@@ -35879,147 +36732,440 @@ export class RpcError extends Error {
|
|
|
35879
36732
|
}
|
|
35880
36733
|
|
|
35881
36734
|
namespace stories {
|
|
36735
|
+
/**
|
|
36736
|
+
* The list of active (or active and hidden)
|
|
36737
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">stories</a>
|
|
36738
|
+
* has not changed.
|
|
36739
|
+
*/
|
|
35882
36740
|
interface RawAllStoriesNotModified {
|
|
35883
36741
|
_: 'stories.allStoriesNotModified';
|
|
36742
|
+
/**
|
|
36743
|
+
* State to use to ask for updates
|
|
36744
|
+
*/
|
|
35884
36745
|
state: string;
|
|
36746
|
+
/**
|
|
36747
|
+
* Current
|
|
36748
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stealth
|
|
36749
|
+
* mode</a> information
|
|
36750
|
+
*/
|
|
35885
36751
|
stealthMode: tl.TypeStoriesStealthMode;
|
|
35886
36752
|
}
|
|
36753
|
+
/**
|
|
36754
|
+
* Full list of active (or active and hidden)
|
|
36755
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">stories</a>.
|
|
36756
|
+
*/
|
|
35887
36757
|
interface RawAllStories {
|
|
35888
36758
|
_: 'stories.allStories';
|
|
36759
|
+
/**
|
|
36760
|
+
* Whether more results can be fetched as
|
|
36761
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">described
|
|
36762
|
+
* here »</a>.
|
|
36763
|
+
*/
|
|
35889
36764
|
hasMore?: boolean;
|
|
36765
|
+
/**
|
|
36766
|
+
* Total number of active (or active and hidden) stories
|
|
36767
|
+
*/
|
|
35890
36768
|
count: number;
|
|
36769
|
+
/**
|
|
36770
|
+
* State to use for pagination
|
|
36771
|
+
*/
|
|
35891
36772
|
state: string;
|
|
36773
|
+
/**
|
|
36774
|
+
* Stories
|
|
36775
|
+
*/
|
|
35892
36776
|
peerStories: tl.TypePeerStories[];
|
|
36777
|
+
/**
|
|
36778
|
+
* Mentioned chats
|
|
36779
|
+
*/
|
|
35893
36780
|
chats: tl.TypeChat[];
|
|
36781
|
+
/**
|
|
36782
|
+
* Mentioned users
|
|
36783
|
+
*/
|
|
35894
36784
|
users: tl.TypeUser[];
|
|
36785
|
+
/**
|
|
36786
|
+
* Current
|
|
36787
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stealth
|
|
36788
|
+
* mode</a> information
|
|
36789
|
+
*/
|
|
35895
36790
|
stealthMode: tl.TypeStoriesStealthMode;
|
|
35896
36791
|
}
|
|
36792
|
+
/**
|
|
36793
|
+
* List of
|
|
36794
|
+
* <a href="https://corefork.telegram.org/api/stories#pinnedarchived-stories">stories</a>
|
|
36795
|
+
*/
|
|
35897
36796
|
interface RawStories {
|
|
35898
36797
|
_: 'stories.stories';
|
|
36798
|
+
/**
|
|
36799
|
+
* Total number of stories that can be fetched
|
|
36800
|
+
*/
|
|
35899
36801
|
count: number;
|
|
36802
|
+
/**
|
|
36803
|
+
* Stories
|
|
36804
|
+
*/
|
|
35900
36805
|
stories: tl.TypeStoryItem[];
|
|
36806
|
+
/**
|
|
36807
|
+
* Mentioned chats
|
|
36808
|
+
*/
|
|
35901
36809
|
chats: tl.TypeChat[];
|
|
36810
|
+
/**
|
|
36811
|
+
* Mentioned users
|
|
36812
|
+
*/
|
|
35902
36813
|
users: tl.TypeUser[];
|
|
35903
36814
|
}
|
|
36815
|
+
/**
|
|
36816
|
+
* Reaction and view counters for a
|
|
36817
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
36818
|
+
*/
|
|
35904
36819
|
interface RawStoryViewsList {
|
|
35905
36820
|
_: 'stories.storyViewsList';
|
|
36821
|
+
/**
|
|
36822
|
+
* Total number of results that can be fetched
|
|
36823
|
+
*/
|
|
35906
36824
|
count: number;
|
|
35907
36825
|
reactionsCount: number;
|
|
36826
|
+
/**
|
|
36827
|
+
* Story view date and reaction information
|
|
36828
|
+
*/
|
|
35908
36829
|
views: tl.TypeStoryView[];
|
|
36830
|
+
/**
|
|
36831
|
+
* Mentioned users
|
|
36832
|
+
*/
|
|
35909
36833
|
users: tl.TypeUser[];
|
|
36834
|
+
/**
|
|
36835
|
+
* Offset for pagination
|
|
36836
|
+
*/
|
|
35910
36837
|
nextOffset?: string;
|
|
35911
36838
|
}
|
|
36839
|
+
/**
|
|
36840
|
+
* Reaction and view counters for a list of
|
|
36841
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
36842
|
+
*/
|
|
35912
36843
|
interface RawStoryViews {
|
|
35913
36844
|
_: 'stories.storyViews';
|
|
36845
|
+
/**
|
|
36846
|
+
* View date and reaction information of multiple stories
|
|
36847
|
+
*/
|
|
35914
36848
|
views: tl.TypeStoryViews[];
|
|
36849
|
+
/**
|
|
36850
|
+
* Mentioned users
|
|
36851
|
+
*/
|
|
35915
36852
|
users: tl.TypeUser[];
|
|
35916
36853
|
}
|
|
36854
|
+
/**
|
|
36855
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">Active
|
|
36856
|
+
* story list</a> of a specific peer.
|
|
36857
|
+
*/
|
|
35917
36858
|
interface RawPeerStories {
|
|
35918
36859
|
_: 'stories.peerStories';
|
|
36860
|
+
/**
|
|
36861
|
+
* Stories
|
|
36862
|
+
*/
|
|
35919
36863
|
stories: tl.TypePeerStories;
|
|
36864
|
+
/**
|
|
36865
|
+
* Mentioned chats
|
|
36866
|
+
*/
|
|
35920
36867
|
chats: tl.TypeChat[];
|
|
36868
|
+
/**
|
|
36869
|
+
* Mentioned users
|
|
36870
|
+
*/
|
|
35921
36871
|
users: tl.TypeUser[];
|
|
35922
36872
|
}
|
|
36873
|
+
/**
|
|
36874
|
+
* The current
|
|
36875
|
+
* <a href="https://corefork.telegram.org/api/boost">boost
|
|
36876
|
+
* status »</a> of a channel.
|
|
36877
|
+
*/
|
|
35923
36878
|
interface RawBoostsStatus {
|
|
35924
36879
|
_: 'stories.boostsStatus';
|
|
36880
|
+
/**
|
|
36881
|
+
* Whether we're currently boosting this channel.
|
|
36882
|
+
*/
|
|
35925
36883
|
myBoost?: boolean;
|
|
36884
|
+
/**
|
|
36885
|
+
* The current boost level of the channel.
|
|
36886
|
+
*/
|
|
35926
36887
|
level: number;
|
|
36888
|
+
/**
|
|
36889
|
+
* The number of boosts acquired so far in the current level.
|
|
36890
|
+
*/
|
|
35927
36891
|
currentLevelBoosts: number;
|
|
36892
|
+
/**
|
|
36893
|
+
* Total number of boosts acquired so far.
|
|
36894
|
+
*/
|
|
35928
36895
|
boosts: number;
|
|
36896
|
+
/**
|
|
36897
|
+
* Total number of boosts needed to reach the next level; if
|
|
36898
|
+
* absent, the next level isn't available.
|
|
36899
|
+
*/
|
|
35929
36900
|
nextLevelBoosts?: number;
|
|
36901
|
+
/**
|
|
36902
|
+
* Only returned to channel admins: contains the approximated
|
|
36903
|
+
* number of Premium users subscribed to the channel, related
|
|
36904
|
+
* to the total number of subscribers.
|
|
36905
|
+
*/
|
|
35930
36906
|
premiumAudience?: tl.TypeStatsPercentValue;
|
|
35931
|
-
boostUrl: string;
|
|
35932
36907
|
}
|
|
36908
|
+
/**
|
|
36909
|
+
* We're not boosting any channel, and we can freely boost the
|
|
36910
|
+
* specified channel.
|
|
36911
|
+
*/
|
|
35933
36912
|
interface RawCanApplyBoostOk {
|
|
35934
36913
|
_: 'stories.canApplyBoostOk';
|
|
35935
36914
|
}
|
|
36915
|
+
/**
|
|
36916
|
+
* We're boosting another channel, but we can freely boost the
|
|
36917
|
+
* specified channel.
|
|
36918
|
+
*/
|
|
35936
36919
|
interface RawCanApplyBoostReplace {
|
|
35937
36920
|
_: 'stories.canApplyBoostReplace';
|
|
36921
|
+
/**
|
|
36922
|
+
* The channel we're currently boosting.
|
|
36923
|
+
*/
|
|
35938
36924
|
currentBoost: tl.TypePeer;
|
|
36925
|
+
/**
|
|
36926
|
+
* Channel information.
|
|
36927
|
+
*/
|
|
35939
36928
|
chats: tl.TypeChat[];
|
|
35940
36929
|
}
|
|
36930
|
+
/**
|
|
36931
|
+
* Info about the users currently
|
|
36932
|
+
* <a href="https://corefork.telegram.org/api/boost">boosting</a>
|
|
36933
|
+
* the channel.
|
|
36934
|
+
*/
|
|
35941
36935
|
interface RawBoostersList {
|
|
35942
36936
|
_: 'stories.boostersList';
|
|
36937
|
+
/**
|
|
36938
|
+
* Total number of boosters.
|
|
36939
|
+
*/
|
|
35943
36940
|
count: number;
|
|
36941
|
+
/**
|
|
36942
|
+
* Info about the automatic expiration date of every user's
|
|
36943
|
+
* boost.
|
|
36944
|
+
*/
|
|
35944
36945
|
boosters: tl.TypeBooster[];
|
|
36946
|
+
/**
|
|
36947
|
+
* Next offset for
|
|
36948
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>.
|
|
36949
|
+
*/
|
|
35945
36950
|
nextOffset?: string;
|
|
36951
|
+
/**
|
|
36952
|
+
* Info about the users mentioned in the <code>boosters</code>
|
|
36953
|
+
* field.
|
|
36954
|
+
*/
|
|
35946
36955
|
users: tl.TypeUser[];
|
|
35947
36956
|
}
|
|
35948
36957
|
/**
|
|
36958
|
+
* Check whether we can post stories as the specified peer.
|
|
36959
|
+
*
|
|
35949
36960
|
* RPC method returns boolean
|
|
35950
36961
|
*/
|
|
35951
36962
|
interface RawCanSendStoryRequest {
|
|
35952
36963
|
_: 'stories.canSendStory';
|
|
36964
|
+
/**
|
|
36965
|
+
* The peer from which we wish to post stories.
|
|
36966
|
+
*/
|
|
35953
36967
|
peer: tl.TypeInputPeer;
|
|
35954
36968
|
}
|
|
35955
36969
|
/**
|
|
36970
|
+
* Uploads a
|
|
36971
|
+
* <a href="https://corefork.telegram.org/api/stories">Telegram
|
|
36972
|
+
* Story</a>.
|
|
36973
|
+
*
|
|
35956
36974
|
* RPC method returns {@link tl.TypeUpdates}
|
|
35957
36975
|
*/
|
|
35958
36976
|
interface RawSendStoryRequest {
|
|
35959
36977
|
_: 'stories.sendStory';
|
|
36978
|
+
/**
|
|
36979
|
+
* Whether to add the story to the profile automatically upon
|
|
36980
|
+
* expiration. If not set, the story will only be added to the
|
|
36981
|
+
* archive, see
|
|
36982
|
+
* <a href="https://corefork.telegram.org/api/stories">here
|
|
36983
|
+
* »</a> for more info.
|
|
36984
|
+
*/
|
|
35960
36985
|
pinned?: boolean;
|
|
36986
|
+
/**
|
|
36987
|
+
* If set, disables forwards, screenshots, and downloads.
|
|
36988
|
+
*/
|
|
35961
36989
|
noforwards?: boolean;
|
|
36990
|
+
fwdModified?: boolean;
|
|
36991
|
+
/**
|
|
36992
|
+
* The peer to send the story as.
|
|
36993
|
+
*/
|
|
35962
36994
|
peer: tl.TypeInputPeer;
|
|
36995
|
+
/**
|
|
36996
|
+
* The story media.
|
|
36997
|
+
*/
|
|
35963
36998
|
media: tl.TypeInputMedia;
|
|
36999
|
+
/**
|
|
37000
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">Media
|
|
37001
|
+
* areas</a> associated to the story, see
|
|
37002
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
37003
|
+
* »</a> for more info.
|
|
37004
|
+
*/
|
|
35964
37005
|
mediaAreas?: tl.TypeMediaArea[];
|
|
37006
|
+
/**
|
|
37007
|
+
* Story caption.
|
|
37008
|
+
*/
|
|
35965
37009
|
caption?: string;
|
|
35966
37010
|
/**
|
|
35967
37011
|
* <a href="https://corefork.telegram.org/api/entities">Message
|
|
35968
37012
|
* entities for styled text</a>
|
|
35969
37013
|
*/
|
|
35970
37014
|
entities?: tl.TypeMessageEntity[];
|
|
37015
|
+
/**
|
|
37016
|
+
* <a href="https://corefork.telegram.org/api/privacy">Privacy
|
|
37017
|
+
* rules</a> for the story, indicating who can or can't view
|
|
37018
|
+
* the story.
|
|
37019
|
+
*/
|
|
35971
37020
|
privacyRules: tl.TypeInputPrivacyRule[];
|
|
37021
|
+
/**
|
|
37022
|
+
* Unique client message ID required to prevent message
|
|
37023
|
+
* resending.
|
|
37024
|
+
*/
|
|
35972
37025
|
randomId: Long;
|
|
37026
|
+
/**
|
|
37027
|
+
* Period after which the story is moved to archive (and to the
|
|
37028
|
+
* profile if <code>pinned</code> is set), in seconds; must be
|
|
37029
|
+
* one of <code>6 * 3600</code>, <code>12 * 3600</code>,
|
|
37030
|
+
* <code>86400</code>, or <code>2 * 86400</code> for Telegram
|
|
37031
|
+
* Premium users, and <code>86400</code> otherwise.
|
|
37032
|
+
*/
|
|
35973
37033
|
period?: number;
|
|
37034
|
+
fwdFromId?: tl.TypeInputPeer;
|
|
37035
|
+
fwdFromStory?: number;
|
|
35974
37036
|
}
|
|
35975
37037
|
/**
|
|
37038
|
+
* Edit an uploaded
|
|
37039
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
37040
|
+
*
|
|
35976
37041
|
* RPC method returns {@link tl.TypeUpdates}
|
|
35977
37042
|
*/
|
|
35978
37043
|
interface RawEditStoryRequest {
|
|
35979
37044
|
_: 'stories.editStory';
|
|
37045
|
+
/**
|
|
37046
|
+
* Peer where the story was posted.
|
|
37047
|
+
*/
|
|
35980
37048
|
peer: tl.TypeInputPeer;
|
|
37049
|
+
/**
|
|
37050
|
+
* ID of story to edit.
|
|
37051
|
+
*/
|
|
35981
37052
|
id: number;
|
|
37053
|
+
/**
|
|
37054
|
+
* If specified, replaces the story media.
|
|
37055
|
+
*/
|
|
35982
37056
|
media?: tl.TypeInputMedia;
|
|
37057
|
+
/**
|
|
37058
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">Media
|
|
37059
|
+
* areas</a> associated to the story, see
|
|
37060
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
37061
|
+
* »</a> for more info.
|
|
37062
|
+
*/
|
|
35983
37063
|
mediaAreas?: tl.TypeMediaArea[];
|
|
37064
|
+
/**
|
|
37065
|
+
* If specified, replaces the story caption.
|
|
37066
|
+
*/
|
|
35984
37067
|
caption?: string;
|
|
35985
37068
|
/**
|
|
35986
37069
|
* <a href="https://corefork.telegram.org/api/entities">Message
|
|
35987
|
-
* entities for styled text</a>
|
|
37070
|
+
* entities for styled text in the caption</a>
|
|
35988
37071
|
*/
|
|
35989
37072
|
entities?: tl.TypeMessageEntity[];
|
|
37073
|
+
/**
|
|
37074
|
+
* If specified, alters the
|
|
37075
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
37076
|
+
* settings »</a> of the story, changing who can or can't view
|
|
37077
|
+
* the story.
|
|
37078
|
+
*/
|
|
35990
37079
|
privacyRules?: tl.TypeInputPrivacyRule[];
|
|
35991
37080
|
}
|
|
35992
37081
|
/**
|
|
37082
|
+
* Deletes some posted
|
|
37083
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>.
|
|
37084
|
+
*
|
|
35993
37085
|
* RPC method returns number array
|
|
35994
37086
|
*/
|
|
35995
37087
|
interface RawDeleteStoriesRequest {
|
|
35996
37088
|
_: 'stories.deleteStories';
|
|
37089
|
+
/**
|
|
37090
|
+
* Channel/user from where to delete stories.
|
|
37091
|
+
*/
|
|
35997
37092
|
peer: tl.TypeInputPeer;
|
|
37093
|
+
/**
|
|
37094
|
+
* IDs of stories to delete.
|
|
37095
|
+
*/
|
|
35998
37096
|
id: number[];
|
|
35999
37097
|
}
|
|
36000
37098
|
/**
|
|
37099
|
+
* Pin or unpin one or more stories
|
|
37100
|
+
*
|
|
36001
37101
|
* RPC method returns number array
|
|
36002
37102
|
*/
|
|
36003
37103
|
interface RawTogglePinnedRequest {
|
|
36004
37104
|
_: 'stories.togglePinned';
|
|
37105
|
+
/**
|
|
37106
|
+
* Peer where to pin or unpin stories
|
|
37107
|
+
*/
|
|
36005
37108
|
peer: tl.TypeInputPeer;
|
|
37109
|
+
/**
|
|
37110
|
+
* IDs of stories to pin or unpin
|
|
37111
|
+
*/
|
|
36006
37112
|
id: number[];
|
|
37113
|
+
/**
|
|
37114
|
+
* Whether to pin or unpin the stories
|
|
37115
|
+
*/
|
|
36007
37116
|
pinned: boolean;
|
|
36008
37117
|
}
|
|
36009
37118
|
/**
|
|
37119
|
+
* Fetch the List of active (or active and hidden) stories, see
|
|
37120
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
37121
|
+
* »</a> for more info on watching stories.
|
|
37122
|
+
*
|
|
36010
37123
|
* RPC method returns {@link tl.stories.TypeAllStories}
|
|
36011
37124
|
*/
|
|
36012
37125
|
interface RawGetAllStoriesRequest {
|
|
36013
37126
|
_: 'stories.getAllStories';
|
|
37127
|
+
/**
|
|
37128
|
+
* If <code>next</code> and <code>state</code> are both set,
|
|
37129
|
+
* uses the passed <code>state</code> to paginate to the next
|
|
37130
|
+
* results; if neither <code>state</code> nor <code>next</code>
|
|
37131
|
+
* are set, fetches the initial page; if <code>state</code> is
|
|
37132
|
+
* set and <code>next</code> is not set, check for changes in
|
|
37133
|
+
* the active/hidden peerset, see
|
|
37134
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
37135
|
+
* »</a> for more info on the full flow.
|
|
37136
|
+
*/
|
|
36014
37137
|
next?: boolean;
|
|
37138
|
+
/**
|
|
37139
|
+
* If set, fetches the hidden active story list, otherwise
|
|
37140
|
+
* fetches the active story list, see
|
|
37141
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
37142
|
+
* »</a> for more info on the full flow.
|
|
37143
|
+
*/
|
|
36015
37144
|
hidden?: boolean;
|
|
37145
|
+
/**
|
|
37146
|
+
* If <code>next</code> and <code>state</code> are both set,
|
|
37147
|
+
* uses the passed <code>state</code> to paginate to the next
|
|
37148
|
+
* results; if neither <code>state</code> nor <code>next</code>
|
|
37149
|
+
* are set, fetches the initial page; if <code>state</code> is
|
|
37150
|
+
* set and <code>next</code> is not set, check for changes in
|
|
37151
|
+
* the active/hidden peerset, see
|
|
37152
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
37153
|
+
* »</a> for more info on the full flow.
|
|
37154
|
+
*/
|
|
36016
37155
|
state?: string;
|
|
36017
37156
|
}
|
|
36018
37157
|
/**
|
|
37158
|
+
* Fetch the
|
|
37159
|
+
* <a href="https://corefork.telegram.org/api/stories#pinnedarchived-stories">stories</a>
|
|
37160
|
+
* pinned on a peer's profile.
|
|
37161
|
+
*
|
|
36019
37162
|
* RPC method returns {@link tl.stories.TypeStories}
|
|
36020
37163
|
*/
|
|
36021
37164
|
interface RawGetPinnedStoriesRequest {
|
|
36022
37165
|
_: 'stories.getPinnedStories';
|
|
37166
|
+
/**
|
|
37167
|
+
* Peer whose pinned stories should be fetched
|
|
37168
|
+
*/
|
|
36023
37169
|
peer: tl.TypeInputPeer;
|
|
36024
37170
|
/**
|
|
36025
37171
|
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
@@ -36034,10 +37180,17 @@ export class RpcError extends Error {
|
|
|
36034
37180
|
limit: number;
|
|
36035
37181
|
}
|
|
36036
37182
|
/**
|
|
37183
|
+
* Fetch the
|
|
37184
|
+
* <a href="https://corefork.telegram.org/api/stories#pinnedarchived-stories">story
|
|
37185
|
+
* archive »</a> of a peer we control.
|
|
37186
|
+
*
|
|
36037
37187
|
* RPC method returns {@link tl.stories.TypeStories}
|
|
36038
37188
|
*/
|
|
36039
37189
|
interface RawGetStoriesArchiveRequest {
|
|
36040
37190
|
_: 'stories.getStoriesArchive';
|
|
37191
|
+
/**
|
|
37192
|
+
* Peer whose archived stories should be fetched
|
|
37193
|
+
*/
|
|
36041
37194
|
peer: tl.TypeInputPeer;
|
|
36042
37195
|
/**
|
|
36043
37196
|
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
@@ -36052,46 +37205,101 @@ export class RpcError extends Error {
|
|
|
36052
37205
|
limit: number;
|
|
36053
37206
|
}
|
|
36054
37207
|
/**
|
|
37208
|
+
* Obtain full info about a set of
|
|
37209
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
37210
|
+
* by their IDs.
|
|
37211
|
+
*
|
|
36055
37212
|
* RPC method returns {@link tl.stories.TypeStories}
|
|
36056
37213
|
*/
|
|
36057
37214
|
interface RawGetStoriesByIDRequest {
|
|
36058
37215
|
_: 'stories.getStoriesByID';
|
|
37216
|
+
/**
|
|
37217
|
+
* Peer where the stories were posted
|
|
37218
|
+
*/
|
|
36059
37219
|
peer: tl.TypeInputPeer;
|
|
37220
|
+
/**
|
|
37221
|
+
* Story IDs
|
|
37222
|
+
*/
|
|
36060
37223
|
id: number[];
|
|
36061
37224
|
}
|
|
36062
37225
|
/**
|
|
37226
|
+
* Hide the active stories of a specific peer, preventing them
|
|
37227
|
+
* from being displayed on the action bar on the homescreen.
|
|
37228
|
+
*
|
|
36063
37229
|
* RPC method returns boolean
|
|
36064
37230
|
*/
|
|
36065
37231
|
interface RawToggleAllStoriesHiddenRequest {
|
|
36066
37232
|
_: 'stories.toggleAllStoriesHidden';
|
|
37233
|
+
/**
|
|
37234
|
+
* Whether to hide or unhide all active stories of the peer
|
|
37235
|
+
*/
|
|
36067
37236
|
hidden: boolean;
|
|
36068
37237
|
}
|
|
36069
37238
|
/**
|
|
37239
|
+
* Mark all stories up to a certain ID as read, for a given
|
|
37240
|
+
* peer; will emit an {@link RawUpdateReadStories} update to
|
|
37241
|
+
* all logged-in sessions.
|
|
37242
|
+
*
|
|
36070
37243
|
* RPC method returns number array
|
|
36071
37244
|
*/
|
|
36072
37245
|
interface RawReadStoriesRequest {
|
|
36073
37246
|
_: 'stories.readStories';
|
|
37247
|
+
/**
|
|
37248
|
+
* The peer whose stories should be marked as read.
|
|
37249
|
+
*/
|
|
36074
37250
|
peer: tl.TypeInputPeer;
|
|
37251
|
+
/**
|
|
37252
|
+
* Mark all stories up to and including this ID as read
|
|
37253
|
+
*/
|
|
36075
37254
|
maxId: number;
|
|
36076
37255
|
}
|
|
36077
37256
|
/**
|
|
37257
|
+
* Increment the view counter of one or more stories.
|
|
37258
|
+
*
|
|
36078
37259
|
* RPC method returns boolean
|
|
36079
37260
|
*/
|
|
36080
37261
|
interface RawIncrementStoryViewsRequest {
|
|
36081
37262
|
_: 'stories.incrementStoryViews';
|
|
37263
|
+
/**
|
|
37264
|
+
* Peer where the stories were posted.
|
|
37265
|
+
*/
|
|
36082
37266
|
peer: tl.TypeInputPeer;
|
|
37267
|
+
/**
|
|
37268
|
+
* IDs of the stories (maximum 200 at a time).
|
|
37269
|
+
*/
|
|
36083
37270
|
id: number[];
|
|
36084
37271
|
}
|
|
36085
37272
|
/**
|
|
37273
|
+
* Obtain the list of users that have viewed a specific
|
|
37274
|
+
* <a href="https://corefork.telegram.org/api/stories">story we
|
|
37275
|
+
* posted</a>
|
|
37276
|
+
*
|
|
36086
37277
|
* RPC method returns {@link tl.stories.TypeStoryViewsList}
|
|
36087
37278
|
*/
|
|
36088
37279
|
interface RawGetStoryViewsListRequest {
|
|
36089
37280
|
_: 'stories.getStoryViewsList';
|
|
37281
|
+
/**
|
|
37282
|
+
* Whether to only fetch view reaction/views made by our
|
|
37283
|
+
* <a href="https://corefork.telegram.org/api/contacts">contacts</a>
|
|
37284
|
+
*/
|
|
36090
37285
|
justContacts?: boolean;
|
|
36091
37286
|
reactionsFirst?: boolean;
|
|
37287
|
+
/**
|
|
37288
|
+
* Peer where the story was posted
|
|
37289
|
+
*/
|
|
36092
37290
|
peer: tl.TypeInputPeer;
|
|
37291
|
+
/**
|
|
37292
|
+
* Search for specific peers
|
|
37293
|
+
*/
|
|
36093
37294
|
q?: string;
|
|
37295
|
+
/**
|
|
37296
|
+
* Story ID
|
|
37297
|
+
*/
|
|
36094
37298
|
id: number;
|
|
37299
|
+
/**
|
|
37300
|
+
* Offset for pagination, obtained from
|
|
37301
|
+
* {@link stories.RawStoryViewsList}.<code>next_offset</code>
|
|
37302
|
+
*/
|
|
36095
37303
|
offset: string;
|
|
36096
37304
|
/**
|
|
36097
37305
|
* Maximum number of results to return,
|
|
@@ -36101,57 +37309,142 @@ export class RpcError extends Error {
|
|
|
36101
37309
|
limit: number;
|
|
36102
37310
|
}
|
|
36103
37311
|
/**
|
|
37312
|
+
* Obtain info about the view count, forward count, reactions
|
|
37313
|
+
* and recent viewers of one or more
|
|
37314
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>.
|
|
37315
|
+
*
|
|
36104
37316
|
* RPC method returns {@link tl.stories.TypeStoryViews}
|
|
36105
37317
|
*/
|
|
36106
37318
|
interface RawGetStoriesViewsRequest {
|
|
36107
37319
|
_: 'stories.getStoriesViews';
|
|
37320
|
+
/**
|
|
37321
|
+
* Peer whose stories should be fetched
|
|
37322
|
+
*/
|
|
36108
37323
|
peer: tl.TypeInputPeer;
|
|
37324
|
+
/**
|
|
37325
|
+
* Story IDs
|
|
37326
|
+
*/
|
|
36109
37327
|
id: number[];
|
|
36110
37328
|
}
|
|
36111
37329
|
/**
|
|
37330
|
+
* Generate a
|
|
37331
|
+
* <a href="https://corefork.telegram.org/api/links#story-links">story
|
|
37332
|
+
* deep link</a> for a specific story
|
|
37333
|
+
*
|
|
36112
37334
|
* RPC method returns {@link tl.TypeExportedStoryLink}
|
|
36113
37335
|
*/
|
|
36114
37336
|
interface RawExportStoryLinkRequest {
|
|
36115
37337
|
_: 'stories.exportStoryLink';
|
|
37338
|
+
/**
|
|
37339
|
+
* Peer where the story was posted
|
|
37340
|
+
*/
|
|
36116
37341
|
peer: tl.TypeInputPeer;
|
|
37342
|
+
/**
|
|
37343
|
+
* Story ID
|
|
37344
|
+
*/
|
|
36117
37345
|
id: number;
|
|
36118
37346
|
}
|
|
36119
37347
|
/**
|
|
37348
|
+
* Report a story.
|
|
37349
|
+
*
|
|
36120
37350
|
* RPC method returns boolean
|
|
36121
37351
|
*/
|
|
36122
37352
|
interface RawReportRequest {
|
|
36123
37353
|
_: 'stories.report';
|
|
37354
|
+
/**
|
|
37355
|
+
* The peer that uploaded the story.
|
|
37356
|
+
*/
|
|
36124
37357
|
peer: tl.TypeInputPeer;
|
|
37358
|
+
/**
|
|
37359
|
+
* IDs of the stories to report.
|
|
37360
|
+
*/
|
|
36125
37361
|
id: number[];
|
|
37362
|
+
/**
|
|
37363
|
+
* Why are these storeis being reported.
|
|
37364
|
+
*/
|
|
36126
37365
|
reason: tl.TypeReportReason;
|
|
37366
|
+
/**
|
|
37367
|
+
* Comment for report moderation
|
|
37368
|
+
*/
|
|
36127
37369
|
message: string;
|
|
36128
37370
|
}
|
|
36129
37371
|
/**
|
|
37372
|
+
* Activates
|
|
37373
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stories
|
|
37374
|
+
* stealth mode</a>, see
|
|
37375
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">here
|
|
37376
|
+
* »</a> for more info.
|
|
37377
|
+
*
|
|
37378
|
+
* Will return an {@link RawUpdateStoriesStealthMode}.
|
|
37379
|
+
*
|
|
36130
37380
|
* RPC method returns {@link tl.TypeUpdates}
|
|
36131
37381
|
*/
|
|
36132
37382
|
interface RawActivateStealthModeRequest {
|
|
36133
37383
|
_: 'stories.activateStealthMode';
|
|
37384
|
+
/**
|
|
37385
|
+
* Whether to erase views from any stories opened in the past
|
|
37386
|
+
* <a href="https://corefork.telegram.org/api/config#stories-stealth-past-period"><code>stories_stealth_past_period</code>
|
|
37387
|
+
* seconds »</a>, as specified by the
|
|
37388
|
+
* <a href="https://corefork.telegram.org/api/config#client-configuration">client
|
|
37389
|
+
* configuration</a>.
|
|
37390
|
+
*/
|
|
36134
37391
|
past?: boolean;
|
|
37392
|
+
/**
|
|
37393
|
+
* Whether to hide future story views for the next
|
|
37394
|
+
* <a href="https://corefork.telegram.org/api/config#stories-stealth-future-period"><code>stories_stealth_future_period</code>
|
|
37395
|
+
* seconds »</a>, as specified by the
|
|
37396
|
+
* <a href="https://corefork.telegram.org/api/config#client-configuration">client
|
|
37397
|
+
* configuration</a>.
|
|
37398
|
+
*/
|
|
36135
37399
|
future?: boolean;
|
|
36136
37400
|
}
|
|
36137
37401
|
/**
|
|
37402
|
+
* React to a story.
|
|
37403
|
+
*
|
|
36138
37404
|
* RPC method returns {@link tl.TypeUpdates}
|
|
36139
37405
|
*/
|
|
36140
37406
|
interface RawSendReactionRequest {
|
|
36141
37407
|
_: 'stories.sendReaction';
|
|
37408
|
+
/**
|
|
37409
|
+
* Whether to add this reaction to the
|
|
37410
|
+
* <a href="https://corefork.telegram.org/api/reactions#recent-reactions">recent
|
|
37411
|
+
* reactions list »</a>.
|
|
37412
|
+
*/
|
|
36142
37413
|
addToRecent?: boolean;
|
|
37414
|
+
/**
|
|
37415
|
+
* The peer that sent the story
|
|
37416
|
+
*/
|
|
36143
37417
|
peer: tl.TypeInputPeer;
|
|
37418
|
+
/**
|
|
37419
|
+
* ID of the story to react to
|
|
37420
|
+
*/
|
|
36144
37421
|
storyId: number;
|
|
37422
|
+
/**
|
|
37423
|
+
* Reaction
|
|
37424
|
+
*/
|
|
36145
37425
|
reaction: tl.TypeReaction;
|
|
36146
37426
|
}
|
|
36147
37427
|
/**
|
|
37428
|
+
* Fetch the full active
|
|
37429
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">story
|
|
37430
|
+
* list</a> of a specific peer.
|
|
37431
|
+
*
|
|
36148
37432
|
* RPC method returns {@link tl.stories.TypePeerStories}
|
|
36149
37433
|
*/
|
|
36150
37434
|
interface RawGetPeerStoriesRequest {
|
|
36151
37435
|
_: 'stories.getPeerStories';
|
|
37436
|
+
/**
|
|
37437
|
+
* Peer whose stories should be fetched
|
|
37438
|
+
*/
|
|
36152
37439
|
peer: tl.TypeInputPeer;
|
|
36153
37440
|
}
|
|
36154
37441
|
/**
|
|
37442
|
+
* Obtain the latest read story ID for all peers when first
|
|
37443
|
+
* logging in, returned as a list of
|
|
37444
|
+
* {@link RawUpdateReadStories} updates, see
|
|
37445
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
37446
|
+
* »</a> for more info.
|
|
37447
|
+
*
|
|
36155
37448
|
* RPC method returns {@link tl.TypeUpdates}
|
|
36156
37449
|
*/
|
|
36157
37450
|
interface RawGetAllReadPeerStoriesRequest {
|
|
@@ -36165,32 +37458,70 @@ export class RpcError extends Error {
|
|
|
36165
37458
|
id: tl.TypeInputPeer[];
|
|
36166
37459
|
}
|
|
36167
37460
|
/**
|
|
37461
|
+
* Obtain a list of channels where the user can post
|
|
37462
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
37463
|
+
*
|
|
36168
37464
|
* RPC method returns {@link tl.messages.TypeChats}
|
|
36169
37465
|
*/
|
|
36170
37466
|
interface RawGetChatsToSendRequest {
|
|
36171
37467
|
_: 'stories.getChatsToSend';
|
|
36172
37468
|
}
|
|
36173
37469
|
/**
|
|
37470
|
+
* Hide the active stories of a user, preventing them from
|
|
37471
|
+
* being displayed on the action bar on the homescreen, see
|
|
37472
|
+
* <a href="https://corefork.telegram.org/api/stories#hiding-stories-of-other-users">here
|
|
37473
|
+
* »</a> for more info.
|
|
37474
|
+
*
|
|
36174
37475
|
* RPC method returns boolean
|
|
36175
37476
|
*/
|
|
36176
37477
|
interface RawTogglePeerStoriesHiddenRequest {
|
|
36177
37478
|
_: 'stories.togglePeerStoriesHidden';
|
|
37479
|
+
/**
|
|
37480
|
+
* Peer whose stories should be (un)hidden.
|
|
37481
|
+
*/
|
|
36178
37482
|
peer: tl.TypeInputPeer;
|
|
37483
|
+
/**
|
|
37484
|
+
* Whether to hide or unhide stories.
|
|
37485
|
+
*/
|
|
36179
37486
|
hidden: boolean;
|
|
36180
37487
|
}
|
|
36181
37488
|
/**
|
|
37489
|
+
* Get the current
|
|
37490
|
+
* <a href="https://corefork.telegram.org/api/boost">boost
|
|
37491
|
+
* status</a> of a channel, see
|
|
37492
|
+
* <a href="https://corefork.telegram.org/api/boost">here »</a>
|
|
37493
|
+
* for more info on boosts.
|
|
37494
|
+
*
|
|
36182
37495
|
* RPC method returns {@link tl.stories.TypeBoostsStatus}
|
|
36183
37496
|
*/
|
|
36184
37497
|
interface RawGetBoostsStatusRequest {
|
|
36185
37498
|
_: 'stories.getBoostsStatus';
|
|
37499
|
+
/**
|
|
37500
|
+
* The channel
|
|
37501
|
+
*/
|
|
36186
37502
|
peer: tl.TypeInputPeer;
|
|
36187
37503
|
}
|
|
36188
37504
|
/**
|
|
37505
|
+
* Obtain info about the users currently
|
|
37506
|
+
* <a href="https://corefork.telegram.org/api/boost">boosting</a>
|
|
37507
|
+
* a channel, see
|
|
37508
|
+
* <a href="https://corefork.telegram.org/api/boost">here »</a>
|
|
37509
|
+
* for more info about boosts.
|
|
37510
|
+
*
|
|
36189
37511
|
* RPC method returns {@link tl.stories.TypeBoostersList}
|
|
36190
37512
|
*/
|
|
36191
37513
|
interface RawGetBoostersListRequest {
|
|
36192
37514
|
_: 'stories.getBoostersList';
|
|
37515
|
+
/**
|
|
37516
|
+
* The channel.
|
|
37517
|
+
*/
|
|
36193
37518
|
peer: tl.TypeInputPeer;
|
|
37519
|
+
/**
|
|
37520
|
+
* Next offset for
|
|
37521
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>,
|
|
37522
|
+
* obtained from the <code>next_offset</code> field of
|
|
37523
|
+
* {@link stories.RawBoostersList}.
|
|
37524
|
+
*/
|
|
36194
37525
|
offset: string;
|
|
36195
37526
|
/**
|
|
36196
37527
|
* Maximum number of results to return,
|
|
@@ -36200,18 +37531,35 @@ export class RpcError extends Error {
|
|
|
36200
37531
|
limit: number;
|
|
36201
37532
|
}
|
|
36202
37533
|
/**
|
|
37534
|
+
* Check whether a channel can be
|
|
37535
|
+
* <a href="https://corefork.telegram.org/api/boost">boosted,
|
|
37536
|
+
* see here for more info »</a>.
|
|
37537
|
+
*
|
|
36203
37538
|
* RPC method returns
|
|
36204
37539
|
* {@link tl.stories.TypeCanApplyBoostResult}
|
|
36205
37540
|
*/
|
|
36206
37541
|
interface RawCanApplyBoostRequest {
|
|
36207
37542
|
_: 'stories.canApplyBoost';
|
|
37543
|
+
/**
|
|
37544
|
+
* The channel to boost.
|
|
37545
|
+
*/
|
|
36208
37546
|
peer: tl.TypeInputPeer;
|
|
36209
37547
|
}
|
|
36210
37548
|
/**
|
|
37549
|
+
* <a href="https://corefork.telegram.org/api/boost">Boost
|
|
37550
|
+
* »</a> a
|
|
37551
|
+
* <a href="https://corefork.telegram.org/api/channel">channel</a>,
|
|
37552
|
+
* leveling it up and granting it permission to post
|
|
37553
|
+
* <a href="https://corefork.telegram.org/api/stories">stories
|
|
37554
|
+
* »</a>.
|
|
37555
|
+
*
|
|
36211
37556
|
* RPC method returns boolean
|
|
36212
37557
|
*/
|
|
36213
37558
|
interface RawApplyBoostRequest {
|
|
36214
37559
|
_: 'stories.applyBoost';
|
|
37560
|
+
/**
|
|
37561
|
+
* The channel to boost.
|
|
37562
|
+
*/
|
|
36215
37563
|
peer: tl.TypeInputPeer;
|
|
36216
37564
|
}
|
|
36217
37565
|
interface RpcCallReturn {
|
|
@@ -36243,20 +37591,55 @@ export class RpcError extends Error {
|
|
|
36243
37591
|
'stories.canApplyBoost': tl.stories.TypeCanApplyBoostResult
|
|
36244
37592
|
'stories.applyBoost': boolean
|
|
36245
37593
|
}
|
|
37594
|
+
/**
|
|
37595
|
+
* Full list of active (or active and hidden)
|
|
37596
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">stories</a>.
|
|
37597
|
+
*/
|
|
36246
37598
|
type TypeAllStories = tl.stories.RawAllStoriesNotModified | tl.stories.RawAllStories
|
|
36247
37599
|
function isAnyAllStories(o: object): o is TypeAllStories
|
|
37600
|
+
/**
|
|
37601
|
+
* List of
|
|
37602
|
+
* <a href="https://corefork.telegram.org/api/stories#pinnedarchived-stories">stories</a>
|
|
37603
|
+
*/
|
|
36248
37604
|
type TypeStories = tl.stories.RawStories
|
|
36249
37605
|
function isAnyStories(o: object): o is TypeStories
|
|
37606
|
+
/**
|
|
37607
|
+
* Reaction and view counters for a
|
|
37608
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
37609
|
+
*/
|
|
36250
37610
|
type TypeStoryViewsList = tl.stories.RawStoryViewsList
|
|
36251
37611
|
function isAnyStoryViewsList(o: object): o is TypeStoryViewsList
|
|
37612
|
+
/**
|
|
37613
|
+
* Reaction and view counters for a list of
|
|
37614
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
37615
|
+
*/
|
|
36252
37616
|
type TypeStoryViews = tl.stories.RawStoryViews
|
|
36253
37617
|
function isAnyStoryViews(o: object): o is TypeStoryViews
|
|
37618
|
+
/**
|
|
37619
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">Active
|
|
37620
|
+
* story list</a> of a specific peer.
|
|
37621
|
+
*/
|
|
36254
37622
|
type TypePeerStories = tl.stories.RawPeerStories
|
|
36255
37623
|
function isAnyPeerStories(o: object): o is TypePeerStories
|
|
37624
|
+
/**
|
|
37625
|
+
* The current
|
|
37626
|
+
* <a href="https://corefork.telegram.org/api/boost">boost
|
|
37627
|
+
* status »</a> of a channel.
|
|
37628
|
+
*/
|
|
36256
37629
|
type TypeBoostsStatus = tl.stories.RawBoostsStatus
|
|
36257
37630
|
function isAnyBoostsStatus(o: object): o is TypeBoostsStatus
|
|
37631
|
+
/**
|
|
37632
|
+
* Whether the specified channel can be
|
|
37633
|
+
* <a href="https://corefork.telegram.org/api/boost">boosted,
|
|
37634
|
+
* see here for more info »</a>.
|
|
37635
|
+
*/
|
|
36258
37636
|
type TypeCanApplyBoostResult = tl.stories.RawCanApplyBoostOk | tl.stories.RawCanApplyBoostReplace
|
|
36259
37637
|
function isAnyCanApplyBoostResult(o: object): o is TypeCanApplyBoostResult
|
|
37638
|
+
/**
|
|
37639
|
+
* Info about the users currently
|
|
37640
|
+
* <a href="https://corefork.telegram.org/api/boost">boosting</a>
|
|
37641
|
+
* the channel.
|
|
37642
|
+
*/
|
|
36260
37643
|
type TypeBoostersList = tl.stories.RawBoostersList
|
|
36261
37644
|
function isAnyBoostersList(o: object): o is TypeBoostersList
|
|
36262
37645
|
}
|
|
@@ -36319,11 +37702,20 @@ export class RpcError extends Error {
|
|
|
36319
37702
|
_: 'premium.getBoostsStatus';
|
|
36320
37703
|
peer: tl.TypeInputPeer;
|
|
36321
37704
|
}
|
|
37705
|
+
/**
|
|
37706
|
+
* RPC method returns {@link tl.premium.TypeBoostsList}
|
|
37707
|
+
*/
|
|
37708
|
+
interface RawGetUserBoostsRequest {
|
|
37709
|
+
_: 'premium.getUserBoosts';
|
|
37710
|
+
peer: tl.TypeInputPeer;
|
|
37711
|
+
userId: tl.TypeInputUser;
|
|
37712
|
+
}
|
|
36322
37713
|
interface RpcCallReturn {
|
|
36323
37714
|
'premium.getBoostsList': tl.premium.TypeBoostsList
|
|
36324
37715
|
'premium.getMyBoosts': tl.premium.TypeMyBoosts
|
|
36325
37716
|
'premium.applyBoost': tl.premium.TypeMyBoosts
|
|
36326
37717
|
'premium.getBoostsStatus': tl.premium.TypeBoostsStatus
|
|
37718
|
+
'premium.getUserBoosts': tl.premium.TypeBoostsList
|
|
36327
37719
|
}
|
|
36328
37720
|
type TypeBoostsList = tl.premium.RawBoostsList
|
|
36329
37721
|
function isAnyBoostsList(o: object): o is TypeBoostsList
|
|
@@ -36333,6 +37725,35 @@ export class RpcError extends Error {
|
|
|
36333
37725
|
function isAnyBoostsStatus(o: object): o is TypeBoostsStatus
|
|
36334
37726
|
}
|
|
36335
37727
|
|
|
37728
|
+
namespace mtcute {
|
|
37729
|
+
interface RawDummyUpdate {
|
|
37730
|
+
_: 'mtcute.dummyUpdate';
|
|
37731
|
+
pts: number;
|
|
37732
|
+
ptsCount: number;
|
|
37733
|
+
channelId: number;
|
|
37734
|
+
}
|
|
37735
|
+
interface RawDummyInputPeerMinUser {
|
|
37736
|
+
_: 'mtcute.dummyInputPeerMinUser';
|
|
37737
|
+
userId: number;
|
|
37738
|
+
}
|
|
37739
|
+
interface RawDummyInputPeerMinChannel {
|
|
37740
|
+
_: 'mtcute.dummyInputPeerMinChannel';
|
|
37741
|
+
channelId: number;
|
|
37742
|
+
}
|
|
37743
|
+
interface RpcCallReturn {
|
|
37744
|
+
}
|
|
37745
|
+
/**
|
|
37746
|
+
* Object contains info on events occurred.
|
|
37747
|
+
*/
|
|
37748
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.mtcute.RawDummyUpdate
|
|
37749
|
+
function isAnyUpdate(o: object): o is TypeUpdate
|
|
37750
|
+
/**
|
|
37751
|
+
* Peer
|
|
37752
|
+
*/
|
|
37753
|
+
type TypeInputPeer = tl.RawInputPeerEmpty | tl.RawInputPeerSelf | tl.RawInputPeerChat | tl.RawInputPeerUser | tl.RawInputPeerChannel | tl.RawInputPeerUserFromMessage | tl.RawInputPeerChannelFromMessage | tl.mtcute.RawDummyInputPeerMinUser | tl.mtcute.RawDummyInputPeerMinChannel
|
|
37754
|
+
function isAnyInputPeer(o: object): o is TypeInputPeer
|
|
37755
|
+
}
|
|
37756
|
+
|
|
36336
37757
|
namespace test {
|
|
36337
37758
|
/**
|
|
36338
37759
|
* RPC method returns {@link tl.TypeError}
|
|
@@ -36599,6 +38020,8 @@ export class RpcError extends Error {
|
|
|
36599
38020
|
| tl.account.RawSaveAutoSaveSettingsRequest
|
|
36600
38021
|
| tl.account.RawDeleteAutoSaveExceptionsRequest
|
|
36601
38022
|
| tl.account.RawInvalidateSignInCodesRequest
|
|
38023
|
+
| tl.account.RawUpdateColorRequest
|
|
38024
|
+
| tl.account.RawGetDefaultBackgroundEmojisRequest
|
|
36602
38025
|
| tl.users.RawGetUsersRequest
|
|
36603
38026
|
| tl.users.RawGetFullUserRequest
|
|
36604
38027
|
| tl.users.RawSetSecureValueErrorsRequest
|
|
@@ -36909,6 +38332,7 @@ export class RpcError extends Error {
|
|
|
36909
38332
|
| tl.channels.RawReportAntiSpamFalsePositiveRequest
|
|
36910
38333
|
| tl.channels.RawToggleParticipantsHiddenRequest
|
|
36911
38334
|
| tl.channels.RawClickSponsoredMessageRequest
|
|
38335
|
+
| tl.channels.RawUpdateColorRequest
|
|
36912
38336
|
| tl.bots.RawSendCustomRequestRequest
|
|
36913
38337
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
36914
38338
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -36936,6 +38360,11 @@ export class RpcError extends Error {
|
|
|
36936
38360
|
| tl.payments.RawAssignAppStoreTransactionRequest
|
|
36937
38361
|
| tl.payments.RawAssignPlayMarketTransactionRequest
|
|
36938
38362
|
| tl.payments.RawCanPurchasePremiumRequest
|
|
38363
|
+
| tl.payments.RawGetPremiumGiftCodeOptionsRequest
|
|
38364
|
+
| tl.payments.RawCheckGiftCodeRequest
|
|
38365
|
+
| tl.payments.RawApplyGiftCodeRequest
|
|
38366
|
+
| tl.payments.RawGetGiveawayInfoRequest
|
|
38367
|
+
| tl.payments.RawLaunchPrepaidGiveawayRequest
|
|
36939
38368
|
| tl.stickers.RawCreateStickerSetRequest
|
|
36940
38369
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
36941
38370
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -37022,22 +38451,22 @@ export class RpcError extends Error {
|
|
|
37022
38451
|
| tl.stories.RawGetPeerMaxIDsRequest
|
|
37023
38452
|
| tl.stories.RawGetChatsToSendRequest
|
|
37024
38453
|
| tl.stories.RawTogglePeerStoriesHiddenRequest
|
|
37025
|
-
| tl.stories.RawGetBoostsStatusRequest
|
|
37026
|
-
| tl.stories.RawGetBoostersListRequest
|
|
37027
|
-
| tl.stories.RawCanApplyBoostRequest
|
|
37028
|
-
| tl.stories.RawApplyBoostRequest
|
|
37029
|
-
| tl.account.RawUpdateColorRequest
|
|
37030
|
-
| tl.account.RawGetDefaultBackgroundEmojisRequest
|
|
37031
|
-
| tl.channels.RawUpdateColorRequest
|
|
37032
|
-
| tl.payments.RawGetPremiumGiftCodeOptionsRequest
|
|
37033
|
-
| tl.payments.RawCheckGiftCodeRequest
|
|
37034
|
-
| tl.payments.RawApplyGiftCodeRequest
|
|
37035
|
-
| tl.payments.RawGetGiveawayInfoRequest
|
|
37036
|
-
| tl.payments.RawLaunchPrepaidGiveawayRequest
|
|
37037
38454
|
| tl.premium.RawGetBoostsListRequest
|
|
37038
38455
|
| tl.premium.RawGetMyBoostsRequest
|
|
37039
38456
|
| tl.premium.RawApplyBoostRequest
|
|
37040
38457
|
| tl.premium.RawGetBoostsStatusRequest
|
|
38458
|
+
| tl.premium.RawGetUserBoostsRequest
|
|
38459
|
+
| tl.messages.RawSearchEmojiStickerSetsRequest
|
|
38460
|
+
| tl.help.RawGetPeerColorsRequest
|
|
38461
|
+
| tl.help.RawGetPeerProfileColorsRequest
|
|
38462
|
+
| tl.channels.RawToggleViewForumAsMessagesRequest
|
|
38463
|
+
| tl.channels.RawGetChannelRecommendationsRequest
|
|
38464
|
+
| tl.stats.RawGetStoryStatsRequest
|
|
38465
|
+
| tl.stats.RawGetStoryPublicForwardsRequest
|
|
38466
|
+
| tl.stories.RawGetBoostsStatusRequest
|
|
38467
|
+
| tl.stories.RawGetBoostersListRequest
|
|
38468
|
+
| tl.stories.RawCanApplyBoostRequest
|
|
38469
|
+
| tl.stories.RawApplyBoostRequest
|
|
37041
38470
|
|
|
37042
38471
|
type TlObject =
|
|
37043
38472
|
| tl.RawError
|
|
@@ -37077,6 +38506,7 @@ export class RpcError extends Error {
|
|
|
37077
38506
|
| tl.RawInputMediaPoll
|
|
37078
38507
|
| tl.RawInputMediaDice
|
|
37079
38508
|
| tl.RawInputMediaStory
|
|
38509
|
+
| tl.RawInputMediaWebPage
|
|
37080
38510
|
| tl.RawInputChatPhotoEmpty
|
|
37081
38511
|
| tl.RawInputChatUploadedPhoto
|
|
37082
38512
|
| tl.RawInputChatPhoto
|
|
@@ -37148,6 +38578,7 @@ export class RpcError extends Error {
|
|
|
37148
38578
|
| tl.RawMessageMediaPoll
|
|
37149
38579
|
| tl.RawMessageMediaDice
|
|
37150
38580
|
| tl.RawMessageMediaStory
|
|
38581
|
+
| tl.RawMessageMediaGiveaway
|
|
37151
38582
|
| tl.RawMessageActionEmpty
|
|
37152
38583
|
| tl.RawMessageActionChatCreate
|
|
37153
38584
|
| tl.RawMessageActionChatEditTitle
|
|
@@ -37187,6 +38618,8 @@ export class RpcError extends Error {
|
|
|
37187
38618
|
| tl.RawMessageActionRequestedPeer
|
|
37188
38619
|
| tl.RawMessageActionSetChatWallPaper
|
|
37189
38620
|
| tl.RawMessageActionSetSameChatWallPaper
|
|
38621
|
+
| tl.RawMessageActionGiftCode
|
|
38622
|
+
| tl.RawMessageActionGiveawayLaunch
|
|
37190
38623
|
| tl.RawDialog
|
|
37191
38624
|
| tl.RawDialogFolder
|
|
37192
38625
|
| tl.RawPhotoEmpty
|
|
@@ -37378,6 +38811,7 @@ export class RpcError extends Error {
|
|
|
37378
38811
|
| tl.RawUpdateStoryID
|
|
37379
38812
|
| tl.RawUpdateStoriesStealthMode
|
|
37380
38813
|
| tl.RawUpdateSentStoryReaction
|
|
38814
|
+
| tl.RawUpdateBotChatBoost
|
|
37381
38815
|
| tl.updates.RawState
|
|
37382
38816
|
| tl.updates.RawDifferenceEmpty
|
|
37383
38817
|
| tl.updates.RawDifference
|
|
@@ -37571,10 +39005,10 @@ export class RpcError extends Error {
|
|
|
37571
39005
|
| tl.RawMessageEntityCashtag
|
|
37572
39006
|
| tl.RawMessageEntityUnderline
|
|
37573
39007
|
| tl.RawMessageEntityStrike
|
|
37574
|
-
| tl.RawMessageEntityBlockquote
|
|
37575
39008
|
| tl.RawMessageEntityBankCard
|
|
37576
39009
|
| tl.RawMessageEntitySpoiler
|
|
37577
39010
|
| tl.RawMessageEntityCustomEmoji
|
|
39011
|
+
| tl.RawMessageEntityBlockquote
|
|
37578
39012
|
| tl.RawInputChannelEmpty
|
|
37579
39013
|
| tl.RawInputChannel
|
|
37580
39014
|
| tl.RawInputChannelFromMessage
|
|
@@ -37612,6 +39046,7 @@ export class RpcError extends Error {
|
|
|
37612
39046
|
| tl.RawInputBotInlineMessageMediaContact
|
|
37613
39047
|
| tl.RawInputBotInlineMessageGame
|
|
37614
39048
|
| tl.RawInputBotInlineMessageMediaInvoice
|
|
39049
|
+
| tl.RawInputBotInlineMessageMediaWebPage
|
|
37615
39050
|
| tl.RawInputBotInlineResult
|
|
37616
39051
|
| tl.RawInputBotInlineResultPhoto
|
|
37617
39052
|
| tl.RawInputBotInlineResultDocument
|
|
@@ -37622,6 +39057,7 @@ export class RpcError extends Error {
|
|
|
37622
39057
|
| tl.RawBotInlineMessageMediaVenue
|
|
37623
39058
|
| tl.RawBotInlineMessageMediaContact
|
|
37624
39059
|
| tl.RawBotInlineMessageMediaInvoice
|
|
39060
|
+
| tl.RawBotInlineMessageMediaWebPage
|
|
37625
39061
|
| tl.RawBotInlineResult
|
|
37626
39062
|
| tl.RawBotInlineMediaResult
|
|
37627
39063
|
| tl.messages.RawBotResults
|
|
@@ -37820,6 +39256,8 @@ export class RpcError extends Error {
|
|
|
37820
39256
|
| tl.RawChannelAdminLogEventActionDeleteTopic
|
|
37821
39257
|
| tl.RawChannelAdminLogEventActionPinTopic
|
|
37822
39258
|
| tl.RawChannelAdminLogEventActionToggleAntiSpam
|
|
39259
|
+
| tl.RawChannelAdminLogEventActionChangeColor
|
|
39260
|
+
| tl.RawChannelAdminLogEventActionChangeBackgroundEmoji
|
|
37823
39261
|
| tl.RawChannelAdminLogEvent
|
|
37824
39262
|
| tl.channels.RawAdminLogResults
|
|
37825
39263
|
| tl.RawChannelAdminLogEventsFilter
|
|
@@ -38096,11 +39534,14 @@ export class RpcError extends Error {
|
|
|
38096
39534
|
| tl.RawAttachMenuPeerTypeBroadcast
|
|
38097
39535
|
| tl.RawInputInvoiceMessage
|
|
38098
39536
|
| tl.RawInputInvoiceSlug
|
|
39537
|
+
| tl.RawInputInvoicePremiumGiftCode
|
|
38099
39538
|
| tl.payments.RawExportedInvoice
|
|
38100
39539
|
| tl.messages.RawTranscribedAudio
|
|
38101
39540
|
| tl.help.RawPremiumPromo
|
|
38102
39541
|
| tl.RawInputStorePaymentPremiumSubscription
|
|
38103
39542
|
| tl.RawInputStorePaymentGiftPremium
|
|
39543
|
+
| tl.RawInputStorePaymentPremiumGiftCode
|
|
39544
|
+
| tl.RawInputStorePaymentPremiumGiveaway
|
|
38104
39545
|
| tl.RawPremiumGiftOption
|
|
38105
39546
|
| tl.RawPaymentFormMethod
|
|
38106
39547
|
| tl.RawEmojiStatusEmpty
|
|
@@ -38191,23 +39632,7 @@ export class RpcError extends Error {
|
|
|
38191
39632
|
| tl.RawMediaAreaSuggestedReaction
|
|
38192
39633
|
| tl.RawPeerStories
|
|
38193
39634
|
| tl.stories.RawPeerStories
|
|
38194
|
-
| tl.stories.RawBoostsStatus
|
|
38195
|
-
| tl.stories.RawCanApplyBoostOk
|
|
38196
|
-
| tl.stories.RawCanApplyBoostReplace
|
|
38197
|
-
| tl.RawBooster
|
|
38198
|
-
| tl.stories.RawBoostersList
|
|
38199
39635
|
| tl.messages.RawWebPage
|
|
38200
|
-
| tl.RawInputMediaWebPage
|
|
38201
|
-
| tl.RawMessageMediaGiveaway
|
|
38202
|
-
| tl.RawMessageActionGiftCode
|
|
38203
|
-
| tl.RawMessageActionGiveawayLaunch
|
|
38204
|
-
| tl.RawInputBotInlineMessageMediaWebPage
|
|
38205
|
-
| tl.RawBotInlineMessageMediaWebPage
|
|
38206
|
-
| tl.RawChannelAdminLogEventActionChangeColor
|
|
38207
|
-
| tl.RawChannelAdminLogEventActionChangeBackgroundEmoji
|
|
38208
|
-
| tl.RawInputInvoicePremiumGiftCode
|
|
38209
|
-
| tl.RawInputStorePaymentPremiumGiftCode
|
|
38210
|
-
| tl.RawInputStorePaymentPremiumGiveaway
|
|
38211
39636
|
| tl.RawPremiumGiftCodeOption
|
|
38212
39637
|
| tl.payments.RawCheckedGiftCode
|
|
38213
39638
|
| tl.payments.RawGiveawayInfo
|
|
@@ -38218,10 +39643,33 @@ export class RpcError extends Error {
|
|
|
38218
39643
|
| tl.RawMyBoost
|
|
38219
39644
|
| tl.premium.RawMyBoosts
|
|
38220
39645
|
| tl.premium.RawBoostsStatus
|
|
39646
|
+
| tl.RawMessageActionGiveawayResults
|
|
39647
|
+
| tl.RawUpdateChannelViewForumAsMessages
|
|
39648
|
+
| tl.RawUpdatePeerWallpaper
|
|
39649
|
+
| tl.RawStoryFwdHeader
|
|
39650
|
+
| tl.RawPostInteractionCountersMessage
|
|
39651
|
+
| tl.RawPostInteractionCountersStory
|
|
39652
|
+
| tl.stats.RawStoryStats
|
|
39653
|
+
| tl.RawPublicForwardMessage
|
|
39654
|
+
| tl.RawPublicForwardStory
|
|
39655
|
+
| tl.stats.RawPublicForwards
|
|
39656
|
+
| tl.RawPeerColor
|
|
39657
|
+
| tl.help.RawPeerColorSet
|
|
39658
|
+
| tl.help.RawPeerColorProfileSet
|
|
39659
|
+
| tl.help.RawPeerColorOption
|
|
39660
|
+
| tl.help.RawPeerColorsNotModified
|
|
39661
|
+
| tl.help.RawPeerColors
|
|
38221
39662
|
| tl.RawMessageUserVote
|
|
38222
39663
|
| tl.RawMessageUserVoteInputOption
|
|
38223
39664
|
| tl.RawMessageUserVoteMultiple
|
|
38224
|
-
| tl.
|
|
39665
|
+
| tl.stories.RawBoostsStatus
|
|
39666
|
+
| tl.stories.RawCanApplyBoostOk
|
|
39667
|
+
| tl.stories.RawCanApplyBoostReplace
|
|
39668
|
+
| tl.RawBooster
|
|
39669
|
+
| tl.stories.RawBoostersList
|
|
39670
|
+
| tl.mtcute.RawDummyUpdate
|
|
39671
|
+
| tl.mtcute.RawDummyInputPeerMinUser
|
|
39672
|
+
| tl.mtcute.RawDummyInputPeerMinChannel
|
|
38225
39673
|
| tl.test.RawUseErrorRequest
|
|
38226
39674
|
| tl.test.RawUseConfigSimpleRequest
|
|
38227
39675
|
| tl.test.RawParseInputAppEventRequest
|
|
@@ -38342,6 +39790,8 @@ export class RpcError extends Error {
|
|
|
38342
39790
|
| tl.account.RawSaveAutoSaveSettingsRequest
|
|
38343
39791
|
| tl.account.RawDeleteAutoSaveExceptionsRequest
|
|
38344
39792
|
| tl.account.RawInvalidateSignInCodesRequest
|
|
39793
|
+
| tl.account.RawUpdateColorRequest
|
|
39794
|
+
| tl.account.RawGetDefaultBackgroundEmojisRequest
|
|
38345
39795
|
| tl.users.RawGetUsersRequest
|
|
38346
39796
|
| tl.users.RawGetFullUserRequest
|
|
38347
39797
|
| tl.users.RawSetSecureValueErrorsRequest
|
|
@@ -38652,6 +40102,7 @@ export class RpcError extends Error {
|
|
|
38652
40102
|
| tl.channels.RawReportAntiSpamFalsePositiveRequest
|
|
38653
40103
|
| tl.channels.RawToggleParticipantsHiddenRequest
|
|
38654
40104
|
| tl.channels.RawClickSponsoredMessageRequest
|
|
40105
|
+
| tl.channels.RawUpdateColorRequest
|
|
38655
40106
|
| tl.bots.RawSendCustomRequestRequest
|
|
38656
40107
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
38657
40108
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -38679,6 +40130,11 @@ export class RpcError extends Error {
|
|
|
38679
40130
|
| tl.payments.RawAssignAppStoreTransactionRequest
|
|
38680
40131
|
| tl.payments.RawAssignPlayMarketTransactionRequest
|
|
38681
40132
|
| tl.payments.RawCanPurchasePremiumRequest
|
|
40133
|
+
| tl.payments.RawGetPremiumGiftCodeOptionsRequest
|
|
40134
|
+
| tl.payments.RawCheckGiftCodeRequest
|
|
40135
|
+
| tl.payments.RawApplyGiftCodeRequest
|
|
40136
|
+
| tl.payments.RawGetGiveawayInfoRequest
|
|
40137
|
+
| tl.payments.RawLaunchPrepaidGiveawayRequest
|
|
38682
40138
|
| tl.stickers.RawCreateStickerSetRequest
|
|
38683
40139
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
38684
40140
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -38765,22 +40221,22 @@ export class RpcError extends Error {
|
|
|
38765
40221
|
| tl.stories.RawGetPeerMaxIDsRequest
|
|
38766
40222
|
| tl.stories.RawGetChatsToSendRequest
|
|
38767
40223
|
| tl.stories.RawTogglePeerStoriesHiddenRequest
|
|
38768
|
-
| tl.stories.RawGetBoostsStatusRequest
|
|
38769
|
-
| tl.stories.RawGetBoostersListRequest
|
|
38770
|
-
| tl.stories.RawCanApplyBoostRequest
|
|
38771
|
-
| tl.stories.RawApplyBoostRequest
|
|
38772
|
-
| tl.account.RawUpdateColorRequest
|
|
38773
|
-
| tl.account.RawGetDefaultBackgroundEmojisRequest
|
|
38774
|
-
| tl.channels.RawUpdateColorRequest
|
|
38775
|
-
| tl.payments.RawGetPremiumGiftCodeOptionsRequest
|
|
38776
|
-
| tl.payments.RawCheckGiftCodeRequest
|
|
38777
|
-
| tl.payments.RawApplyGiftCodeRequest
|
|
38778
|
-
| tl.payments.RawGetGiveawayInfoRequest
|
|
38779
|
-
| tl.payments.RawLaunchPrepaidGiveawayRequest
|
|
38780
40224
|
| tl.premium.RawGetBoostsListRequest
|
|
38781
40225
|
| tl.premium.RawGetMyBoostsRequest
|
|
38782
40226
|
| tl.premium.RawApplyBoostRequest
|
|
38783
40227
|
| tl.premium.RawGetBoostsStatusRequest
|
|
40228
|
+
| tl.premium.RawGetUserBoostsRequest
|
|
40229
|
+
| tl.messages.RawSearchEmojiStickerSetsRequest
|
|
40230
|
+
| tl.help.RawGetPeerColorsRequest
|
|
40231
|
+
| tl.help.RawGetPeerProfileColorsRequest
|
|
40232
|
+
| tl.channels.RawToggleViewForumAsMessagesRequest
|
|
40233
|
+
| tl.channels.RawGetChannelRecommendationsRequest
|
|
40234
|
+
| tl.stats.RawGetStoryStatsRequest
|
|
40235
|
+
| tl.stats.RawGetStoryPublicForwardsRequest
|
|
40236
|
+
| tl.stories.RawGetBoostsStatusRequest
|
|
40237
|
+
| tl.stories.RawGetBoostersListRequest
|
|
40238
|
+
| tl.stories.RawCanApplyBoostRequest
|
|
40239
|
+
| tl.stories.RawApplyBoostRequest
|
|
38784
40240
|
}
|
|
38785
40241
|
|
|
38786
40242
|
|