@mtcute/tl 166.0.0 → 166.1.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 +27 -26
- package/binary/writer.js +39 -37
- package/index.d.ts +1406 -197
- package/index.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -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: Long[];
|
|
3099
|
+
countriesIso2?: string[];
|
|
3100
|
+
quantity: number;
|
|
3101
|
+
months: number;
|
|
3102
|
+
untilDate: number;
|
|
3103
|
+
}
|
|
3068
3104
|
/**
|
|
3069
3105
|
* Empty constructor.
|
|
3070
3106
|
*/
|
|
@@ -3677,6 +3713,17 @@ export class RpcError extends Error {
|
|
|
3677
3713
|
*/
|
|
3678
3714
|
wallpaper: tl.TypeWallPaper;
|
|
3679
3715
|
}
|
|
3716
|
+
interface RawMessageActionGiftCode {
|
|
3717
|
+
_: 'messageActionGiftCode';
|
|
3718
|
+
viaGiveaway?: boolean;
|
|
3719
|
+
unclaimed?: boolean;
|
|
3720
|
+
boostPeer?: tl.TypePeer;
|
|
3721
|
+
months: number;
|
|
3722
|
+
slug: string;
|
|
3723
|
+
}
|
|
3724
|
+
interface RawMessageActionGiveawayLaunch {
|
|
3725
|
+
_: 'messageActionGiveawayLaunch';
|
|
3726
|
+
}
|
|
3680
3727
|
/**
|
|
3681
3728
|
* Chat
|
|
3682
3729
|
*/
|
|
@@ -3742,6 +3789,7 @@ export class RpcError extends Error {
|
|
|
3742
3789
|
* Time-to-live of all messages sent in this dialog
|
|
3743
3790
|
*/
|
|
3744
3791
|
ttlPeriod?: number;
|
|
3792
|
+
viewForumAsMessages?: boolean;
|
|
3745
3793
|
}
|
|
3746
3794
|
/**
|
|
3747
3795
|
* Dialog in folder
|
|
@@ -4087,7 +4135,11 @@ export class RpcError extends Error {
|
|
|
4087
4135
|
}
|
|
4088
4136
|
/**
|
|
4089
4137
|
* List of actions that are possible when interacting with this
|
|
4090
|
-
* user, to be shown as suggested actions in the
|
|
4138
|
+
* user, to be shown as suggested actions in the
|
|
4139
|
+
* <a href="https://corefork.telegram.org/api/action-bar">chat
|
|
4140
|
+
* action bar »</a>, see
|
|
4141
|
+
* <a href="https://corefork.telegram.org/api/action-bar">here
|
|
4142
|
+
* »</a> for more info.
|
|
4091
4143
|
*/
|
|
4092
4144
|
interface RawPeerSettings {
|
|
4093
4145
|
_: 'peerSettings';
|
|
@@ -4734,6 +4786,11 @@ export class RpcError extends Error {
|
|
|
4734
4786
|
*/
|
|
4735
4787
|
interface RawUpdateNewAuthorization {
|
|
4736
4788
|
_: 'updateNewAuthorization';
|
|
4789
|
+
/**
|
|
4790
|
+
* Whether the session is
|
|
4791
|
+
* <a href="https://corefork.telegram.org/api/auth#confirming-login">unconfirmed,
|
|
4792
|
+
* see here »</a> for more info.
|
|
4793
|
+
*/
|
|
4737
4794
|
unconfirmed?: boolean;
|
|
4738
4795
|
/**
|
|
4739
4796
|
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
@@ -4902,6 +4959,7 @@ export class RpcError extends Error {
|
|
|
4902
4959
|
* If set, the message must be displayed in a popup.
|
|
4903
4960
|
*/
|
|
4904
4961
|
popup?: boolean;
|
|
4962
|
+
invertMedia?: boolean;
|
|
4905
4963
|
/**
|
|
4906
4964
|
* When was the notification received
|
|
4907
4965
|
*
|
|
@@ -4910,7 +4968,6 @@ export class RpcError extends Error {
|
|
|
4910
4968
|
* (Telegram Notifications).
|
|
4911
4969
|
*/
|
|
4912
4970
|
inboxDate?: number;
|
|
4913
|
-
invertMedia?: boolean;
|
|
4914
4971
|
/**
|
|
4915
4972
|
* String, identical in format and contents to the
|
|
4916
4973
|
* <a href="https://corefork.telegram.org/api/errors#error-type"><strong>type</strong></a>
|
|
@@ -5085,7 +5142,8 @@ export class RpcError extends Error {
|
|
|
5085
5142
|
pts?: number;
|
|
5086
5143
|
}
|
|
5087
5144
|
/**
|
|
5088
|
-
* A new channel is available
|
|
5145
|
+
* A new channel or supergroup is available, or info about an
|
|
5146
|
+
* existing channel has changed and must be refeteched.
|
|
5089
5147
|
*/
|
|
5090
5148
|
interface RawUpdateChannel {
|
|
5091
5149
|
_: 'updateChannel';
|
|
@@ -6063,7 +6121,9 @@ export class RpcError extends Error {
|
|
|
6063
6121
|
readMaxId: number;
|
|
6064
6122
|
}
|
|
6065
6123
|
/**
|
|
6066
|
-
*
|
|
6124
|
+
* We blocked a peer, see
|
|
6125
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
6126
|
+
* for more info on blocklists.
|
|
6067
6127
|
*/
|
|
6068
6128
|
interface RawUpdatePeerBlocked {
|
|
6069
6129
|
_: 'updatePeerBlocked';
|
|
@@ -6071,9 +6131,16 @@ export class RpcError extends Error {
|
|
|
6071
6131
|
* Whether the peer was blocked or unblocked
|
|
6072
6132
|
*/
|
|
6073
6133
|
blocked?: boolean;
|
|
6134
|
+
/**
|
|
6135
|
+
* Whether the peer was added/removed to/from the story
|
|
6136
|
+
* blocklist; if not set, this update affects the main
|
|
6137
|
+
* blocklist, see
|
|
6138
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
6139
|
+
* for more info.
|
|
6140
|
+
*/
|
|
6074
6141
|
blockedMyStoriesFrom?: boolean;
|
|
6075
6142
|
/**
|
|
6076
|
-
* The blocked peer
|
|
6143
|
+
* The (un)blocked peer
|
|
6077
6144
|
*/
|
|
6078
6145
|
peerId: tl.TypePeer;
|
|
6079
6146
|
}
|
|
@@ -6686,31 +6753,99 @@ export class RpcError extends Error {
|
|
|
6686
6753
|
*/
|
|
6687
6754
|
userId: Long;
|
|
6688
6755
|
}
|
|
6756
|
+
/**
|
|
6757
|
+
* A new story was posted.
|
|
6758
|
+
*/
|
|
6689
6759
|
interface RawUpdateStory {
|
|
6690
6760
|
_: 'updateStory';
|
|
6761
|
+
/**
|
|
6762
|
+
* ID of the poster.
|
|
6763
|
+
*/
|
|
6691
6764
|
peer: tl.TypePeer;
|
|
6765
|
+
/**
|
|
6766
|
+
* The story that was posted.
|
|
6767
|
+
*/
|
|
6692
6768
|
story: tl.TypeStoryItem;
|
|
6693
6769
|
}
|
|
6770
|
+
/**
|
|
6771
|
+
* Stories of a specific peer were marked as read.
|
|
6772
|
+
*/
|
|
6694
6773
|
interface RawUpdateReadStories {
|
|
6695
6774
|
_: 'updateReadStories';
|
|
6775
|
+
/**
|
|
6776
|
+
* The peer
|
|
6777
|
+
*/
|
|
6696
6778
|
peer: tl.TypePeer;
|
|
6779
|
+
/**
|
|
6780
|
+
* ID of the last story that was marked as read
|
|
6781
|
+
*/
|
|
6697
6782
|
maxId: number;
|
|
6698
6783
|
}
|
|
6784
|
+
/**
|
|
6785
|
+
* A story was successfully uploaded.
|
|
6786
|
+
*
|
|
6787
|
+
* Once a story is successfully uploaded, an
|
|
6788
|
+
* {@link RawUpdateStoryID} will be returned, indicating the
|
|
6789
|
+
* story ID (<code>id</code>) that was attributed to the story
|
|
6790
|
+
* (like for messages, <code>random_id</code> indicates the
|
|
6791
|
+
* <code>random_id</code> that was passed to
|
|
6792
|
+
* {@link stories.RawSendStory}: this way, you can tell which
|
|
6793
|
+
* story was assigned a specific <code>id</code> by checking
|
|
6794
|
+
* which {@link stories.RawSendStory} call has the returned
|
|
6795
|
+
* <code>random_id</code>).
|
|
6796
|
+
*/
|
|
6699
6797
|
interface RawUpdateStoryID {
|
|
6700
6798
|
_: 'updateStoryID';
|
|
6799
|
+
/**
|
|
6800
|
+
* The <code>id</code> that was attributed to the story.
|
|
6801
|
+
*/
|
|
6701
6802
|
id: number;
|
|
6803
|
+
/**
|
|
6804
|
+
* The <code>random_id</code> that was passed to
|
|
6805
|
+
* {@link stories.RawSendStory}.
|
|
6806
|
+
*/
|
|
6702
6807
|
randomId: Long;
|
|
6703
6808
|
}
|
|
6809
|
+
/**
|
|
6810
|
+
* Indicates that
|
|
6811
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stories
|
|
6812
|
+
* stealth mode</a> was activated.
|
|
6813
|
+
*/
|
|
6704
6814
|
interface RawUpdateStoriesStealthMode {
|
|
6705
6815
|
_: 'updateStoriesStealthMode';
|
|
6816
|
+
/**
|
|
6817
|
+
* Information about the current
|
|
6818
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stealth
|
|
6819
|
+
* mode</a> session.
|
|
6820
|
+
*/
|
|
6706
6821
|
stealthMode: tl.TypeStoriesStealthMode;
|
|
6707
6822
|
}
|
|
6823
|
+
/**
|
|
6824
|
+
* Indicates we
|
|
6825
|
+
* <a href="https://corefork.telegram.org/api/stories#reactions">reacted
|
|
6826
|
+
* to a story »</a>.
|
|
6827
|
+
*/
|
|
6708
6828
|
interface RawUpdateSentStoryReaction {
|
|
6709
6829
|
_: 'updateSentStoryReaction';
|
|
6830
|
+
/**
|
|
6831
|
+
* The peer that sent the story
|
|
6832
|
+
*/
|
|
6710
6833
|
peer: tl.TypePeer;
|
|
6834
|
+
/**
|
|
6835
|
+
* ID of the story we reacted to
|
|
6836
|
+
*/
|
|
6711
6837
|
storyId: number;
|
|
6838
|
+
/**
|
|
6839
|
+
* The reaction that was sent
|
|
6840
|
+
*/
|
|
6712
6841
|
reaction: tl.TypeReaction;
|
|
6713
6842
|
}
|
|
6843
|
+
interface RawUpdateBotChatBoost {
|
|
6844
|
+
_: 'updateBotChatBoost';
|
|
6845
|
+
peer: tl.TypePeer;
|
|
6846
|
+
boost: tl.TypeBoost;
|
|
6847
|
+
qts: number;
|
|
6848
|
+
}
|
|
6714
6849
|
/**
|
|
6715
6850
|
* Too many updates, it is necessary to execute
|
|
6716
6851
|
* {@link updates.RawGetDifferenceRequest}.
|
|
@@ -7937,6 +8072,9 @@ export class RpcError extends Error {
|
|
|
7937
8072
|
interface RawInputPrivacyKeyVoiceMessages {
|
|
7938
8073
|
_: 'inputPrivacyKeyVoiceMessages';
|
|
7939
8074
|
}
|
|
8075
|
+
/**
|
|
8076
|
+
* Whether people can see your bio
|
|
8077
|
+
*/
|
|
7940
8078
|
interface RawInputPrivacyKeyAbout {
|
|
7941
8079
|
_: 'inputPrivacyKeyAbout';
|
|
7942
8080
|
}
|
|
@@ -7998,6 +8136,9 @@ export class RpcError extends Error {
|
|
|
7998
8136
|
interface RawPrivacyKeyVoiceMessages {
|
|
7999
8137
|
_: 'privacyKeyVoiceMessages';
|
|
8000
8138
|
}
|
|
8139
|
+
/**
|
|
8140
|
+
* Whether people can see your bio
|
|
8141
|
+
*/
|
|
8001
8142
|
interface RawPrivacyKeyAbout {
|
|
8002
8143
|
_: 'privacyKeyAbout';
|
|
8003
8144
|
}
|
|
@@ -8065,6 +8206,11 @@ export class RpcError extends Error {
|
|
|
8065
8206
|
*/
|
|
8066
8207
|
chats: number[];
|
|
8067
8208
|
}
|
|
8209
|
+
/**
|
|
8210
|
+
* Allow only
|
|
8211
|
+
* <a href="https://corefork.telegram.org/api/privacy">close
|
|
8212
|
+
* friends »</a>
|
|
8213
|
+
*/
|
|
8068
8214
|
interface RawInputPrivacyValueAllowCloseFriends {
|
|
8069
8215
|
_: 'inputPrivacyValueAllowCloseFriends';
|
|
8070
8216
|
}
|
|
@@ -8132,6 +8278,11 @@ export class RpcError extends Error {
|
|
|
8132
8278
|
*/
|
|
8133
8279
|
chats: number[];
|
|
8134
8280
|
}
|
|
8281
|
+
/**
|
|
8282
|
+
* Allow only
|
|
8283
|
+
* <a href="https://corefork.telegram.org/api/privacy">close
|
|
8284
|
+
* friends »</a>
|
|
8285
|
+
*/
|
|
8135
8286
|
interface RawPrivacyValueAllowCloseFriends {
|
|
8136
8287
|
_: 'privacyValueAllowCloseFriends';
|
|
8137
8288
|
}
|
|
@@ -8339,6 +8490,7 @@ export class RpcError extends Error {
|
|
|
8339
8490
|
*/
|
|
8340
8491
|
interface RawWebPage {
|
|
8341
8492
|
_: 'webPage';
|
|
8493
|
+
hasLargeMedia?: boolean;
|
|
8342
8494
|
/**
|
|
8343
8495
|
* Preview ID
|
|
8344
8496
|
*/
|
|
@@ -8416,7 +8568,6 @@ export class RpcError extends Error {
|
|
|
8416
8568
|
* Webpage attributes
|
|
8417
8569
|
*/
|
|
8418
8570
|
attributes?: tl.TypeWebPageAttribute[];
|
|
8419
|
-
hasLargeMedia?: boolean;
|
|
8420
8571
|
}
|
|
8421
8572
|
/**
|
|
8422
8573
|
* The preview of the webpage hasn't changed
|
|
@@ -8453,6 +8604,11 @@ export class RpcError extends Error {
|
|
|
8453
8604
|
* Whether this session will accept phone calls
|
|
8454
8605
|
*/
|
|
8455
8606
|
callRequestsDisabled?: boolean;
|
|
8607
|
+
/**
|
|
8608
|
+
* Whether the session is
|
|
8609
|
+
* <a href="https://corefork.telegram.org/api/auth#confirming-login">unconfirmed,
|
|
8610
|
+
* see here »</a> for more info.
|
|
8611
|
+
*/
|
|
8456
8612
|
unconfirmed?: boolean;
|
|
8457
8613
|
/**
|
|
8458
8614
|
* Identifier
|
|
@@ -8627,8 +8783,18 @@ export class RpcError extends Error {
|
|
|
8627
8783
|
* request »</a> must be first approved by an administrator
|
|
8628
8784
|
*/
|
|
8629
8785
|
requestNeeded?: boolean;
|
|
8786
|
+
/**
|
|
8787
|
+
* Is this chat or channel verified by Telegram?
|
|
8788
|
+
*/
|
|
8630
8789
|
verified?: boolean;
|
|
8790
|
+
/**
|
|
8791
|
+
* This chat is probably a scam
|
|
8792
|
+
*/
|
|
8631
8793
|
scam?: boolean;
|
|
8794
|
+
/**
|
|
8795
|
+
* If set, this chat was reported by many users as a fake or
|
|
8796
|
+
* scam: be careful when interacting with it.
|
|
8797
|
+
*/
|
|
8632
8798
|
fake?: boolean;
|
|
8633
8799
|
/**
|
|
8634
8800
|
* Chat/supergroup/channel title
|
|
@@ -8798,6 +8964,7 @@ export class RpcError extends Error {
|
|
|
8798
8964
|
* This is a custom emoji stickerset
|
|
8799
8965
|
*/
|
|
8800
8966
|
emojis?: boolean;
|
|
8967
|
+
textColor?: boolean;
|
|
8801
8968
|
/**
|
|
8802
8969
|
* When was this stickerset installed
|
|
8803
8970
|
*/
|
|
@@ -8837,7 +9004,6 @@ export class RpcError extends Error {
|
|
|
8837
9004
|
* using {@link messages.RawGetCustomEmojiDocumentsRequest}
|
|
8838
9005
|
*/
|
|
8839
9006
|
thumbDocumentId?: Long;
|
|
8840
|
-
textColor?: boolean;
|
|
8841
9007
|
/**
|
|
8842
9008
|
* Number of stickers in pack
|
|
8843
9009
|
*/
|
|
@@ -9696,24 +9862,6 @@ export class RpcError extends Error {
|
|
|
9696
9862
|
*/
|
|
9697
9863
|
length: number;
|
|
9698
9864
|
}
|
|
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
9865
|
/**
|
|
9718
9866
|
* Indicates a credit card number
|
|
9719
9867
|
*/
|
|
@@ -9782,6 +9930,24 @@ export class RpcError extends Error {
|
|
|
9782
9930
|
*/
|
|
9783
9931
|
documentId: Long;
|
|
9784
9932
|
}
|
|
9933
|
+
/**
|
|
9934
|
+
* Message entity representing a block quote.
|
|
9935
|
+
*/
|
|
9936
|
+
interface RawMessageEntityBlockquote {
|
|
9937
|
+
_: 'messageEntityBlockquote';
|
|
9938
|
+
/**
|
|
9939
|
+
* Offset of message entity within message (in
|
|
9940
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
9941
|
+
* code units</a>)
|
|
9942
|
+
*/
|
|
9943
|
+
offset: number;
|
|
9944
|
+
/**
|
|
9945
|
+
* Length of message entity within message (in
|
|
9946
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
9947
|
+
* code units</a>)
|
|
9948
|
+
*/
|
|
9949
|
+
length: number;
|
|
9950
|
+
}
|
|
9785
9951
|
/**
|
|
9786
9952
|
* Represents the absence of a channel
|
|
9787
9953
|
*/
|
|
@@ -10080,6 +10246,7 @@ export class RpcError extends Error {
|
|
|
10080
10246
|
*/
|
|
10081
10247
|
interface RawInputBotInlineMessageMediaAuto {
|
|
10082
10248
|
_: 'inputBotInlineMessageMediaAuto';
|
|
10249
|
+
invertMedia?: boolean;
|
|
10083
10250
|
/**
|
|
10084
10251
|
* Caption
|
|
10085
10252
|
*/
|
|
@@ -10093,7 +10260,6 @@ export class RpcError extends Error {
|
|
|
10093
10260
|
* Inline keyboard
|
|
10094
10261
|
*/
|
|
10095
10262
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10096
|
-
invertMedia?: boolean;
|
|
10097
10263
|
}
|
|
10098
10264
|
/**
|
|
10099
10265
|
* Simple text message
|
|
@@ -10104,6 +10270,7 @@ export class RpcError extends Error {
|
|
|
10104
10270
|
* Disable webpage preview
|
|
10105
10271
|
*/
|
|
10106
10272
|
noWebpage?: boolean;
|
|
10273
|
+
invertMedia?: boolean;
|
|
10107
10274
|
/**
|
|
10108
10275
|
* Message
|
|
10109
10276
|
*/
|
|
@@ -10117,7 +10284,6 @@ export class RpcError extends Error {
|
|
|
10117
10284
|
* Inline keyboard
|
|
10118
10285
|
*/
|
|
10119
10286
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10120
|
-
invertMedia?: boolean;
|
|
10121
10287
|
}
|
|
10122
10288
|
/**
|
|
10123
10289
|
* Geolocation
|
|
@@ -10170,7 +10336,7 @@ export class RpcError extends Error {
|
|
|
10170
10336
|
address: string;
|
|
10171
10337
|
/**
|
|
10172
10338
|
* Venue provider: currently only "foursquare" and "gplaces"
|
|
10173
|
-
* need to be supported
|
|
10339
|
+
* (Google Places) need to be supported
|
|
10174
10340
|
*/
|
|
10175
10341
|
provider: string;
|
|
10176
10342
|
/**
|
|
@@ -10265,6 +10431,17 @@ export class RpcError extends Error {
|
|
|
10265
10431
|
*/
|
|
10266
10432
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10267
10433
|
}
|
|
10434
|
+
interface RawInputBotInlineMessageMediaWebPage {
|
|
10435
|
+
_: 'inputBotInlineMessageMediaWebPage';
|
|
10436
|
+
invertMedia?: boolean;
|
|
10437
|
+
forceLargeMedia?: boolean;
|
|
10438
|
+
forceSmallMedia?: boolean;
|
|
10439
|
+
optional?: boolean;
|
|
10440
|
+
message: string;
|
|
10441
|
+
entities?: tl.TypeMessageEntity[];
|
|
10442
|
+
url: string;
|
|
10443
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
10444
|
+
}
|
|
10268
10445
|
/**
|
|
10269
10446
|
* An inline bot result
|
|
10270
10447
|
*/
|
|
@@ -10385,6 +10562,7 @@ export class RpcError extends Error {
|
|
|
10385
10562
|
*/
|
|
10386
10563
|
interface RawBotInlineMessageMediaAuto {
|
|
10387
10564
|
_: 'botInlineMessageMediaAuto';
|
|
10565
|
+
invertMedia?: boolean;
|
|
10388
10566
|
/**
|
|
10389
10567
|
* Caption
|
|
10390
10568
|
*/
|
|
@@ -10398,7 +10576,6 @@ export class RpcError extends Error {
|
|
|
10398
10576
|
* Inline keyboard
|
|
10399
10577
|
*/
|
|
10400
10578
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10401
|
-
invertMedia?: boolean;
|
|
10402
10579
|
}
|
|
10403
10580
|
/**
|
|
10404
10581
|
* Send a simple text message
|
|
@@ -10409,6 +10586,7 @@ export class RpcError extends Error {
|
|
|
10409
10586
|
* Disable webpage preview
|
|
10410
10587
|
*/
|
|
10411
10588
|
noWebpage?: boolean;
|
|
10589
|
+
invertMedia?: boolean;
|
|
10412
10590
|
/**
|
|
10413
10591
|
* The message
|
|
10414
10592
|
*/
|
|
@@ -10422,7 +10600,6 @@ export class RpcError extends Error {
|
|
|
10422
10600
|
* Inline keyboard
|
|
10423
10601
|
*/
|
|
10424
10602
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10425
|
-
invertMedia?: boolean;
|
|
10426
10603
|
}
|
|
10427
10604
|
/**
|
|
10428
10605
|
* Send a geolocation
|
|
@@ -10475,7 +10652,7 @@ export class RpcError extends Error {
|
|
|
10475
10652
|
address: string;
|
|
10476
10653
|
/**
|
|
10477
10654
|
* Venue provider: currently only "foursquare" and "gplaces"
|
|
10478
|
-
* need to be supported
|
|
10655
|
+
* (Google Places) need to be supported
|
|
10479
10656
|
*/
|
|
10480
10657
|
provider: string;
|
|
10481
10658
|
/**
|
|
@@ -10564,6 +10741,18 @@ export class RpcError extends Error {
|
|
|
10564
10741
|
*/
|
|
10565
10742
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
10566
10743
|
}
|
|
10744
|
+
interface RawBotInlineMessageMediaWebPage {
|
|
10745
|
+
_: 'botInlineMessageMediaWebPage';
|
|
10746
|
+
invertMedia?: boolean;
|
|
10747
|
+
forceLargeMedia?: boolean;
|
|
10748
|
+
forceSmallMedia?: boolean;
|
|
10749
|
+
manual?: boolean;
|
|
10750
|
+
safe?: boolean;
|
|
10751
|
+
message: string;
|
|
10752
|
+
entities?: tl.TypeMessageEntity[];
|
|
10753
|
+
url: string;
|
|
10754
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
10755
|
+
}
|
|
10567
10756
|
/**
|
|
10568
10757
|
* Generic result
|
|
10569
10758
|
*/
|
|
@@ -11837,6 +12026,9 @@ export class RpcError extends Error {
|
|
|
11837
12026
|
* order and must not exceed <code>max_tip_amount</code>.
|
|
11838
12027
|
*/
|
|
11839
12028
|
suggestedTipAmounts?: Long[];
|
|
12029
|
+
/**
|
|
12030
|
+
* Terms of service URL
|
|
12031
|
+
*/
|
|
11840
12032
|
termsUrl?: string;
|
|
11841
12033
|
}
|
|
11842
12034
|
/**
|
|
@@ -13203,6 +13395,16 @@ export class RpcError extends Error {
|
|
|
13203
13395
|
*/
|
|
13204
13396
|
newValue: boolean;
|
|
13205
13397
|
}
|
|
13398
|
+
interface RawChannelAdminLogEventActionChangeColor {
|
|
13399
|
+
_: 'channelAdminLogEventActionChangeColor';
|
|
13400
|
+
prevValue: number;
|
|
13401
|
+
newValue: number;
|
|
13402
|
+
}
|
|
13403
|
+
interface RawChannelAdminLogEventActionChangeBackgroundEmoji {
|
|
13404
|
+
_: 'channelAdminLogEventActionChangeBackgroundEmoji';
|
|
13405
|
+
prevValue: Long;
|
|
13406
|
+
newValue: Long;
|
|
13407
|
+
}
|
|
13206
13408
|
/**
|
|
13207
13409
|
* Admin log event
|
|
13208
13410
|
*/
|
|
@@ -14860,8 +15062,26 @@ export class RpcError extends Error {
|
|
|
14860
15062
|
* topics »</a>.
|
|
14861
15063
|
*/
|
|
14862
15064
|
manageTopics?: boolean;
|
|
15065
|
+
/**
|
|
15066
|
+
* If set, allows the admin to post
|
|
15067
|
+
* <a href="https://corefork.telegram.org/api/stories#channel-stories">stories</a>
|
|
15068
|
+
* as the
|
|
15069
|
+
* <a href="https://corefork.telegram.org/api/channel">channel</a>.
|
|
15070
|
+
*/
|
|
14863
15071
|
postStories?: boolean;
|
|
15072
|
+
/**
|
|
15073
|
+
* If set, allows the admin to edit
|
|
15074
|
+
* <a href="https://corefork.telegram.org/api/stories#channel-stories">stories</a>
|
|
15075
|
+
* posted by the other admins of the
|
|
15076
|
+
* <a href="https://corefork.telegram.org/api/channel">channel</a>.
|
|
15077
|
+
*/
|
|
14864
15078
|
editStories?: boolean;
|
|
15079
|
+
/**
|
|
15080
|
+
* If set, allows the admin to delete
|
|
15081
|
+
* <a href="https://corefork.telegram.org/api/stories#channel-stories">stories</a>
|
|
15082
|
+
* posted by the other admins of the
|
|
15083
|
+
* <a href="https://corefork.telegram.org/api/channel">channel</a>.
|
|
15084
|
+
*/
|
|
14865
15085
|
deleteStories?: boolean;
|
|
14866
15086
|
}
|
|
14867
15087
|
/**
|
|
@@ -16143,9 +16363,19 @@ export class RpcError extends Error {
|
|
|
16143
16363
|
quoteText?: string;
|
|
16144
16364
|
quoteEntities?: tl.TypeMessageEntity[];
|
|
16145
16365
|
}
|
|
16366
|
+
/**
|
|
16367
|
+
* Represents a reply to a
|
|
16368
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
16369
|
+
*/
|
|
16146
16370
|
interface RawMessageReplyStoryHeader {
|
|
16147
16371
|
_: 'messageReplyStoryHeader';
|
|
16372
|
+
/**
|
|
16373
|
+
* ID of the user that posted a story
|
|
16374
|
+
*/
|
|
16148
16375
|
userId: number;
|
|
16376
|
+
/**
|
|
16377
|
+
* Story ID
|
|
16378
|
+
*/
|
|
16149
16379
|
storyId: number;
|
|
16150
16380
|
}
|
|
16151
16381
|
/**
|
|
@@ -16755,11 +16985,11 @@ export class RpcError extends Error {
|
|
|
16755
16985
|
*/
|
|
16756
16986
|
chosenOrder?: number;
|
|
16757
16987
|
/**
|
|
16758
|
-
*
|
|
16988
|
+
* The reaction.
|
|
16759
16989
|
*/
|
|
16760
16990
|
reaction: tl.TypeReaction;
|
|
16761
16991
|
/**
|
|
16762
|
-
*
|
|
16992
|
+
* Number of users that reacted with this emoji.
|
|
16763
16993
|
*/
|
|
16764
16994
|
count: number;
|
|
16765
16995
|
}
|
|
@@ -17259,6 +17489,11 @@ export class RpcError extends Error {
|
|
|
17259
17489
|
*/
|
|
17260
17490
|
slug: string;
|
|
17261
17491
|
}
|
|
17492
|
+
interface RawInputInvoicePremiumGiftCode {
|
|
17493
|
+
_: 'inputInvoicePremiumGiftCode';
|
|
17494
|
+
purpose: tl.TypeInputStorePaymentPurpose;
|
|
17495
|
+
option: tl.TypePremiumGiftCodeOption;
|
|
17496
|
+
}
|
|
17262
17497
|
/**
|
|
17263
17498
|
* Info about a Telegram Premium purchase
|
|
17264
17499
|
*/
|
|
@@ -17302,6 +17537,24 @@ export class RpcError extends Error {
|
|
|
17302
17537
|
*/
|
|
17303
17538
|
amount: Long;
|
|
17304
17539
|
}
|
|
17540
|
+
interface RawInputStorePaymentPremiumGiftCode {
|
|
17541
|
+
_: 'inputStorePaymentPremiumGiftCode';
|
|
17542
|
+
users: tl.TypeInputUser[];
|
|
17543
|
+
boostPeer?: tl.TypeInputPeer;
|
|
17544
|
+
currency: string;
|
|
17545
|
+
amount: Long;
|
|
17546
|
+
}
|
|
17547
|
+
interface RawInputStorePaymentPremiumGiveaway {
|
|
17548
|
+
_: 'inputStorePaymentPremiumGiveaway';
|
|
17549
|
+
onlyNewSubscribers?: boolean;
|
|
17550
|
+
boostPeer: tl.TypeInputPeer;
|
|
17551
|
+
additionalPeers?: tl.TypeInputPeer[];
|
|
17552
|
+
countriesIso2?: string[];
|
|
17553
|
+
randomId: Long;
|
|
17554
|
+
untilDate: number;
|
|
17555
|
+
currency: string;
|
|
17556
|
+
amount: Long;
|
|
17557
|
+
}
|
|
17305
17558
|
/**
|
|
17306
17559
|
* Telegram Premium gift option
|
|
17307
17560
|
*/
|
|
@@ -17785,7 +18038,7 @@ export class RpcError extends Error {
|
|
|
17785
18038
|
*/
|
|
17786
18039
|
url: string;
|
|
17787
18040
|
/**
|
|
17788
|
-
* Its
|
|
18041
|
+
* Its expiration date
|
|
17789
18042
|
*/
|
|
17790
18043
|
expires: number;
|
|
17791
18044
|
}
|
|
@@ -18131,21 +18384,56 @@ export class RpcError extends Error {
|
|
|
18131
18384
|
*/
|
|
18132
18385
|
peers: tl.TypePeer[];
|
|
18133
18386
|
}
|
|
18387
|
+
/**
|
|
18388
|
+
* How a peer voted in a poll
|
|
18389
|
+
*/
|
|
18134
18390
|
interface RawMessagePeerVote {
|
|
18135
18391
|
_: 'messagePeerVote';
|
|
18392
|
+
/**
|
|
18393
|
+
* Peer ID
|
|
18394
|
+
*/
|
|
18136
18395
|
peer: tl.TypePeer;
|
|
18396
|
+
/**
|
|
18397
|
+
* The option chosen by the peer
|
|
18398
|
+
*/
|
|
18137
18399
|
option: Uint8Array;
|
|
18400
|
+
/**
|
|
18401
|
+
* When did the peer cast the vote
|
|
18402
|
+
*/
|
|
18138
18403
|
date: number;
|
|
18139
18404
|
}
|
|
18405
|
+
/**
|
|
18406
|
+
* How a peer voted in a poll (reduced constructor, returned if
|
|
18407
|
+
* an <code>option</code> was provided to
|
|
18408
|
+
* {@link messages.RawGetPollVotesRequest})
|
|
18409
|
+
*/
|
|
18140
18410
|
interface RawMessagePeerVoteInputOption {
|
|
18141
18411
|
_: 'messagePeerVoteInputOption';
|
|
18412
|
+
/**
|
|
18413
|
+
* The peer that voted for the queried <code>option</code>
|
|
18414
|
+
*/
|
|
18142
18415
|
peer: tl.TypePeer;
|
|
18416
|
+
/**
|
|
18417
|
+
* When did the peer cast the vote
|
|
18418
|
+
*/
|
|
18143
18419
|
date: number;
|
|
18144
18420
|
}
|
|
18421
|
+
/**
|
|
18422
|
+
* How a peer voted in a multiple-choice poll
|
|
18423
|
+
*/
|
|
18145
18424
|
interface RawMessagePeerVoteMultiple {
|
|
18146
18425
|
_: 'messagePeerVoteMultiple';
|
|
18426
|
+
/**
|
|
18427
|
+
* Peer ID
|
|
18428
|
+
*/
|
|
18147
18429
|
peer: tl.TypePeer;
|
|
18430
|
+
/**
|
|
18431
|
+
* Options chosen by the peer
|
|
18432
|
+
*/
|
|
18148
18433
|
options: Uint8Array[];
|
|
18434
|
+
/**
|
|
18435
|
+
* When did the peer cast their votes
|
|
18436
|
+
*/
|
|
18149
18437
|
date: number;
|
|
18150
18438
|
}
|
|
18151
18439
|
interface RawSponsoredWebPage {
|
|
@@ -18154,212 +18442,393 @@ export class RpcError extends Error {
|
|
|
18154
18442
|
siteName: string;
|
|
18155
18443
|
photo?: tl.TypePhoto;
|
|
18156
18444
|
}
|
|
18445
|
+
/**
|
|
18446
|
+
* Aggregated view and reaction information of a
|
|
18447
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>.
|
|
18448
|
+
*/
|
|
18157
18449
|
interface RawStoryViews {
|
|
18158
18450
|
_: 'storyViews';
|
|
18159
18451
|
hasViewers?: boolean;
|
|
18452
|
+
/**
|
|
18453
|
+
* View counter of the story
|
|
18454
|
+
*/
|
|
18160
18455
|
viewsCount: number;
|
|
18456
|
+
/**
|
|
18457
|
+
* Forward counter of the story
|
|
18458
|
+
*/
|
|
18161
18459
|
forwardsCount?: number;
|
|
18460
|
+
/**
|
|
18461
|
+
* All reactions sent to this story
|
|
18462
|
+
*/
|
|
18162
18463
|
reactions?: tl.TypeReactionCount[];
|
|
18163
18464
|
reactionsCount?: number;
|
|
18465
|
+
/**
|
|
18466
|
+
* User IDs of some recent viewers of the story
|
|
18467
|
+
*/
|
|
18164
18468
|
recentViewers?: number[];
|
|
18165
18469
|
}
|
|
18470
|
+
/**
|
|
18471
|
+
* Represents a previously active story, that was deleted
|
|
18472
|
+
*/
|
|
18166
18473
|
interface RawStoryItemDeleted {
|
|
18167
18474
|
_: 'storyItemDeleted';
|
|
18475
|
+
/**
|
|
18476
|
+
* Story ID
|
|
18477
|
+
*/
|
|
18168
18478
|
id: number;
|
|
18169
18479
|
}
|
|
18480
|
+
/**
|
|
18481
|
+
* Represents an active story, whose full information was
|
|
18482
|
+
* omitted for space and performance reasons; use
|
|
18483
|
+
* {@link stories.RawGetStoriesByIDRequest} to fetch full info
|
|
18484
|
+
* about the skipped story when and if needed.
|
|
18485
|
+
*/
|
|
18170
18486
|
interface RawStoryItemSkipped {
|
|
18171
18487
|
_: 'storyItemSkipped';
|
|
18172
18488
|
closeFriends?: boolean;
|
|
18489
|
+
/**
|
|
18490
|
+
* Story ID
|
|
18491
|
+
*/
|
|
18173
18492
|
id: number;
|
|
18493
|
+
/**
|
|
18494
|
+
* When was the story posted.
|
|
18495
|
+
*/
|
|
18174
18496
|
date: number;
|
|
18497
|
+
/**
|
|
18498
|
+
* When does the story expire.
|
|
18499
|
+
*/
|
|
18175
18500
|
expireDate: number;
|
|
18176
18501
|
}
|
|
18502
|
+
/**
|
|
18503
|
+
* Represents a
|
|
18504
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>.
|
|
18505
|
+
*/
|
|
18177
18506
|
interface RawStoryItem {
|
|
18178
18507
|
_: 'storyItem';
|
|
18508
|
+
/**
|
|
18509
|
+
* Whether this story is pinned on the user's profile
|
|
18510
|
+
*/
|
|
18179
18511
|
pinned?: boolean;
|
|
18512
|
+
/**
|
|
18513
|
+
* Whether this story is public
|
|
18514
|
+
*/
|
|
18180
18515
|
public?: boolean;
|
|
18181
18516
|
closeFriends?: boolean;
|
|
18182
18517
|
min?: boolean;
|
|
18518
|
+
/**
|
|
18519
|
+
* Whether this story is
|
|
18520
|
+
* <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a>
|
|
18521
|
+
* and thus cannot be forwarded; clients should also prevent
|
|
18522
|
+
* users from saving attached media (i.e. videos should only be
|
|
18523
|
+
* streamed, photos should be kept in RAM, et cetera).
|
|
18524
|
+
*/
|
|
18183
18525
|
noforwards?: boolean;
|
|
18526
|
+
/**
|
|
18527
|
+
* Indicates whether the story was edited.
|
|
18528
|
+
*/
|
|
18184
18529
|
edited?: boolean;
|
|
18185
18530
|
contacts?: boolean;
|
|
18186
18531
|
selectedContacts?: boolean;
|
|
18532
|
+
/**
|
|
18533
|
+
* indicates whether we sent this story.
|
|
18534
|
+
*/
|
|
18187
18535
|
out?: boolean;
|
|
18536
|
+
/**
|
|
18537
|
+
* ID of the story.
|
|
18538
|
+
*/
|
|
18188
18539
|
id: number;
|
|
18540
|
+
/**
|
|
18541
|
+
* When was the story posted.
|
|
18542
|
+
*/
|
|
18189
18543
|
date: number;
|
|
18544
|
+
/**
|
|
18545
|
+
* When does the story expire.
|
|
18546
|
+
*/
|
|
18190
18547
|
expireDate: number;
|
|
18548
|
+
/**
|
|
18549
|
+
* Story caption.
|
|
18550
|
+
*/
|
|
18191
18551
|
caption?: string;
|
|
18192
18552
|
/**
|
|
18193
18553
|
* <a href="https://corefork.telegram.org/api/entities">Message
|
|
18194
18554
|
* entities for styled text</a>
|
|
18195
18555
|
*/
|
|
18196
18556
|
entities?: tl.TypeMessageEntity[];
|
|
18557
|
+
/**
|
|
18558
|
+
* Story media.
|
|
18559
|
+
*/
|
|
18197
18560
|
media: tl.TypeMessageMedia;
|
|
18561
|
+
/**
|
|
18562
|
+
* List of media areas, see
|
|
18563
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
18564
|
+
* »</a> for more info on media areas.
|
|
18565
|
+
*/
|
|
18198
18566
|
mediaAreas?: tl.TypeMediaArea[];
|
|
18567
|
+
/**
|
|
18568
|
+
* <a href="https://corefork.telegram.org/api/privacy">Privacy
|
|
18569
|
+
* rules</a> indicating who can and can't view this story
|
|
18570
|
+
*/
|
|
18199
18571
|
privacy?: tl.TypePrivacyRule[];
|
|
18572
|
+
/**
|
|
18573
|
+
* View date and reaction information
|
|
18574
|
+
*/
|
|
18200
18575
|
views?: tl.TypeStoryViews;
|
|
18576
|
+
/**
|
|
18577
|
+
* The reaction we sent.
|
|
18578
|
+
*/
|
|
18201
18579
|
sentReaction?: tl.TypeReaction;
|
|
18202
18580
|
}
|
|
18581
|
+
/**
|
|
18582
|
+
* <a href="https://corefork.telegram.org/api/stories">Story</a>
|
|
18583
|
+
* view date and reaction information
|
|
18584
|
+
*/
|
|
18203
18585
|
interface RawStoryView {
|
|
18204
18586
|
_: 'storyView';
|
|
18205
18587
|
blocked?: boolean;
|
|
18206
18588
|
blockedMyStoriesFrom?: boolean;
|
|
18589
|
+
/**
|
|
18590
|
+
* The user that viewed the story
|
|
18591
|
+
*/
|
|
18207
18592
|
userId: number;
|
|
18593
|
+
/**
|
|
18594
|
+
* When did the user view the story
|
|
18595
|
+
*/
|
|
18208
18596
|
date: number;
|
|
18597
|
+
/**
|
|
18598
|
+
* If present, contains the reaction that the user left on the
|
|
18599
|
+
* story
|
|
18600
|
+
*/
|
|
18209
18601
|
reaction?: tl.TypeReaction;
|
|
18210
18602
|
}
|
|
18603
|
+
/**
|
|
18604
|
+
* Reply to a message.
|
|
18605
|
+
*/
|
|
18211
18606
|
interface RawInputReplyToMessage {
|
|
18212
18607
|
_: 'inputReplyToMessage';
|
|
18608
|
+
/**
|
|
18609
|
+
* The message ID to reply to.
|
|
18610
|
+
*/
|
|
18213
18611
|
replyToMsgId: number;
|
|
18612
|
+
/**
|
|
18613
|
+
* This field must contain the topic ID <strong>only</strong>
|
|
18614
|
+
* when replying to messages in forum topics different from the
|
|
18615
|
+
* "General" topic (i.e. <code>reply_to_msg_id</code> is set
|
|
18616
|
+
* and <code>reply_to_msg_id != topicID</code> and
|
|
18617
|
+
* <code>topicID != 1</code>).
|
|
18618
|
+
*
|
|
18619
|
+
* If the replied-to message is deleted before the method
|
|
18620
|
+
* finishes execution, the value in this field will be used to
|
|
18621
|
+
* send the message to the correct topic, instead of the
|
|
18622
|
+
* "General" topic.
|
|
18623
|
+
*/
|
|
18214
18624
|
topMsgId?: number;
|
|
18215
18625
|
replyToPeerId?: tl.TypeInputPeer;
|
|
18216
18626
|
quoteText?: string;
|
|
18217
18627
|
quoteEntities?: tl.TypeMessageEntity[];
|
|
18218
18628
|
}
|
|
18629
|
+
/**
|
|
18630
|
+
* Reply to a story.
|
|
18631
|
+
*/
|
|
18219
18632
|
interface RawInputReplyToStory {
|
|
18220
18633
|
_: 'inputReplyToStory';
|
|
18634
|
+
/**
|
|
18635
|
+
* ID of the user that posted the story.
|
|
18636
|
+
*/
|
|
18221
18637
|
userId: tl.TypeInputUser;
|
|
18638
|
+
/**
|
|
18639
|
+
* ID of the story to reply to.
|
|
18640
|
+
*/
|
|
18222
18641
|
storyId: number;
|
|
18223
18642
|
}
|
|
18643
|
+
/**
|
|
18644
|
+
* Represents a
|
|
18645
|
+
* <a href="https://corefork.telegram.org/api/stories#story-links">story
|
|
18646
|
+
* deep link</a>.
|
|
18647
|
+
*/
|
|
18224
18648
|
interface RawExportedStoryLink {
|
|
18225
18649
|
_: 'exportedStoryLink';
|
|
18650
|
+
/**
|
|
18651
|
+
* The
|
|
18652
|
+
* <a href="https://corefork.telegram.org/api/stories#story-links">story
|
|
18653
|
+
* deep link</a>.
|
|
18654
|
+
*/
|
|
18226
18655
|
link: string;
|
|
18227
18656
|
}
|
|
18657
|
+
/**
|
|
18658
|
+
* Information about the current
|
|
18659
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stealth
|
|
18660
|
+
* mode</a> session.
|
|
18661
|
+
*/
|
|
18228
18662
|
interface RawStoriesStealthMode {
|
|
18229
18663
|
_: 'storiesStealthMode';
|
|
18664
|
+
/**
|
|
18665
|
+
* The date up to which stealth mode will be active.
|
|
18666
|
+
*/
|
|
18230
18667
|
activeUntilDate?: number;
|
|
18668
|
+
/**
|
|
18669
|
+
* The date starting from which the user will be allowed to
|
|
18670
|
+
* re-enable stealth mode again.
|
|
18671
|
+
*/
|
|
18231
18672
|
cooldownUntilDate?: number;
|
|
18232
18673
|
}
|
|
18674
|
+
/**
|
|
18675
|
+
* Coordinates and size of a clicable rectangular area on top
|
|
18676
|
+
* of a story.
|
|
18677
|
+
*/
|
|
18233
18678
|
interface RawMediaAreaCoordinates {
|
|
18234
18679
|
_: 'mediaAreaCoordinates';
|
|
18680
|
+
/**
|
|
18681
|
+
* The abscissa of the rectangle's center, as a percentage of
|
|
18682
|
+
* the media width (0-100).
|
|
18683
|
+
*/
|
|
18235
18684
|
x: Double;
|
|
18685
|
+
/**
|
|
18686
|
+
* The ordinate of the rectangle's center, as a percentage of
|
|
18687
|
+
* the media height (0-100).
|
|
18688
|
+
*/
|
|
18236
18689
|
y: Double;
|
|
18690
|
+
/**
|
|
18691
|
+
* The width of the rectangle, as a percentage of the media
|
|
18692
|
+
* width (0-100).
|
|
18693
|
+
*/
|
|
18237
18694
|
w: Double;
|
|
18695
|
+
/**
|
|
18696
|
+
* The height of the rectangle, as a percentage of the media
|
|
18697
|
+
* height (0-100).
|
|
18698
|
+
*/
|
|
18238
18699
|
h: Double;
|
|
18700
|
+
/**
|
|
18701
|
+
* Clockwise rotation angle of the rectangle, in degrees
|
|
18702
|
+
* (0-360).
|
|
18703
|
+
*/
|
|
18239
18704
|
rotation: Double;
|
|
18240
18705
|
}
|
|
18706
|
+
/**
|
|
18707
|
+
* Represents a location tag attached to a
|
|
18708
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>,
|
|
18709
|
+
* with additional venue information.
|
|
18710
|
+
*/
|
|
18241
18711
|
interface RawMediaAreaVenue {
|
|
18242
18712
|
_: 'mediaAreaVenue';
|
|
18713
|
+
/**
|
|
18714
|
+
* The size and location of the media area corresponding to the
|
|
18715
|
+
* location sticker on top of the story media.
|
|
18716
|
+
*/
|
|
18243
18717
|
coordinates: tl.TypeMediaAreaCoordinates;
|
|
18718
|
+
/**
|
|
18719
|
+
* Coordinates of the venue
|
|
18720
|
+
*/
|
|
18244
18721
|
geo: tl.TypeGeoPoint;
|
|
18722
|
+
/**
|
|
18723
|
+
* Venue name
|
|
18724
|
+
*/
|
|
18245
18725
|
title: string;
|
|
18726
|
+
/**
|
|
18727
|
+
* Address
|
|
18728
|
+
*/
|
|
18246
18729
|
address: string;
|
|
18730
|
+
/**
|
|
18731
|
+
* Venue provider: currently only "foursquare" and "gplaces"
|
|
18732
|
+
* need to be supported.
|
|
18733
|
+
*/
|
|
18247
18734
|
provider: string;
|
|
18735
|
+
/**
|
|
18736
|
+
* Venue ID in the provider's database
|
|
18737
|
+
*/
|
|
18248
18738
|
venueId: string;
|
|
18739
|
+
/**
|
|
18740
|
+
* Venue type in the provider's database
|
|
18741
|
+
*/
|
|
18249
18742
|
venueType: string;
|
|
18250
18743
|
}
|
|
18744
|
+
/**
|
|
18745
|
+
* Represents a
|
|
18746
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">location
|
|
18747
|
+
* tag</a> attached to a
|
|
18748
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>,
|
|
18749
|
+
* with additional venue information.
|
|
18750
|
+
*/
|
|
18251
18751
|
interface RawInputMediaAreaVenue {
|
|
18252
18752
|
_: 'inputMediaAreaVenue';
|
|
18753
|
+
/**
|
|
18754
|
+
* The size and location of the media area corresponding to the
|
|
18755
|
+
* location sticker on top of the story media.
|
|
18756
|
+
*/
|
|
18253
18757
|
coordinates: tl.TypeMediaAreaCoordinates;
|
|
18758
|
+
/**
|
|
18759
|
+
* The <code>query_id</code> from
|
|
18760
|
+
* {@link messages.RawBotResults}, see
|
|
18761
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
18762
|
+
* »</a> for more info.
|
|
18763
|
+
*/
|
|
18254
18764
|
queryId: Long;
|
|
18765
|
+
/**
|
|
18766
|
+
* The <code>id</code> of the chosen result, see
|
|
18767
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
18768
|
+
* »</a> for more info.
|
|
18769
|
+
*/
|
|
18255
18770
|
resultId: string;
|
|
18256
18771
|
}
|
|
18772
|
+
/**
|
|
18773
|
+
* Represents a geolocation tag attached to a
|
|
18774
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>.
|
|
18775
|
+
*/
|
|
18257
18776
|
interface RawMediaAreaGeoPoint {
|
|
18258
18777
|
_: 'mediaAreaGeoPoint';
|
|
18778
|
+
/**
|
|
18779
|
+
* The size and position of the media area corresponding to the
|
|
18780
|
+
* location sticker on top of the story media.
|
|
18781
|
+
*/
|
|
18259
18782
|
coordinates: tl.TypeMediaAreaCoordinates;
|
|
18783
|
+
/**
|
|
18784
|
+
* Coordinates of the geolocation tag.
|
|
18785
|
+
*/
|
|
18260
18786
|
geo: tl.TypeGeoPoint;
|
|
18261
18787
|
}
|
|
18788
|
+
/**
|
|
18789
|
+
* Represents a reaction bubble.
|
|
18790
|
+
*/
|
|
18262
18791
|
interface RawMediaAreaSuggestedReaction {
|
|
18263
18792
|
_: 'mediaAreaSuggestedReaction';
|
|
18793
|
+
/**
|
|
18794
|
+
* Whether the reaction bubble has a dark background.
|
|
18795
|
+
*/
|
|
18264
18796
|
dark?: boolean;
|
|
18797
|
+
/**
|
|
18798
|
+
* Whether the reaction bubble is mirrored (see
|
|
18799
|
+
* <a href="https://corefork.telegram.org/api/stories#reactions">here
|
|
18800
|
+
* »</a> for more info).
|
|
18801
|
+
*/
|
|
18265
18802
|
flipped?: boolean;
|
|
18803
|
+
/**
|
|
18804
|
+
* The coordinates of the media area corresponding to the
|
|
18805
|
+
* reaction button.
|
|
18806
|
+
*/
|
|
18266
18807
|
coordinates: tl.TypeMediaAreaCoordinates;
|
|
18808
|
+
/**
|
|
18809
|
+
* The reaction that should be sent when this area is clicked.
|
|
18810
|
+
*/
|
|
18267
18811
|
reaction: tl.TypeReaction;
|
|
18268
18812
|
}
|
|
18813
|
+
/**
|
|
18814
|
+
* <a href="https://corefork.telegram.org/api/stories">Stories</a>
|
|
18815
|
+
* associated to a peer
|
|
18816
|
+
*/
|
|
18269
18817
|
interface RawPeerStories {
|
|
18270
18818
|
_: 'peerStories';
|
|
18819
|
+
/**
|
|
18820
|
+
* The peer
|
|
18821
|
+
*/
|
|
18271
18822
|
peer: tl.TypePeer;
|
|
18823
|
+
/**
|
|
18824
|
+
* If set, contains the ID of the maximum read story
|
|
18825
|
+
*/
|
|
18272
18826
|
maxReadId?: number;
|
|
18827
|
+
/**
|
|
18828
|
+
* Stories
|
|
18829
|
+
*/
|
|
18273
18830
|
stories: tl.TypeStoryItem[];
|
|
18274
18831
|
}
|
|
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
18832
|
interface RawPremiumGiftCodeOption {
|
|
18364
18833
|
_: 'premiumGiftCodeOption';
|
|
18365
18834
|
users: number;
|
|
@@ -18449,6 +18918,22 @@ export class RpcError extends Error {
|
|
|
18449
18918
|
*/
|
|
18450
18919
|
date: number;
|
|
18451
18920
|
}
|
|
18921
|
+
/**
|
|
18922
|
+
* Info about a
|
|
18923
|
+
* <a href="https://corefork.telegram.org/api/boost">boost</a>
|
|
18924
|
+
* made by a specific user.
|
|
18925
|
+
*/
|
|
18926
|
+
interface RawBooster {
|
|
18927
|
+
_: 'booster';
|
|
18928
|
+
/**
|
|
18929
|
+
* ID of the user that made the boost.
|
|
18930
|
+
*/
|
|
18931
|
+
userId: number;
|
|
18932
|
+
/**
|
|
18933
|
+
* Default expiration date of the boost.
|
|
18934
|
+
*/
|
|
18935
|
+
expires: number;
|
|
18936
|
+
}
|
|
18452
18937
|
interface RawDummyUpdate {
|
|
18453
18938
|
_: 'dummyUpdate';
|
|
18454
18939
|
pts: number;
|
|
@@ -18804,7 +19289,7 @@ export class RpcError extends Error {
|
|
|
18804
19289
|
/**
|
|
18805
19290
|
* Object contains info on events occurred.
|
|
18806
19291
|
*/
|
|
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
|
|
19292
|
+
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.RawDummyUpdate
|
|
18808
19293
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
18809
19294
|
/**
|
|
18810
19295
|
* Object which is perceived by the client without a call on
|
|
@@ -18876,22 +19361,60 @@ export class RpcError extends Error {
|
|
|
18876
19361
|
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
19362
|
function isAnySendMessageAction(o: object): o is TypeSendMessageAction
|
|
18878
19363
|
/**
|
|
18879
|
-
* Privacy
|
|
19364
|
+
* Privacy <strong>keys</strong> together with
|
|
19365
|
+
* <a href="https://corefork.telegram.org/api/privacy#privacy-rules">privacy
|
|
19366
|
+
* rules »</a> indicate <em>what</em> can or can't someone do
|
|
19367
|
+
* and are specified by a
|
|
19368
|
+
* <a href="https://corefork.telegram.org/type/PrivacyKey">PrivacyKey</a>
|
|
19369
|
+
* constructor, and its input counterpart
|
|
19370
|
+
* <a href="https://corefork.telegram.org/type/InputPrivacyKey">InputPrivacyKey</a>.
|
|
19371
|
+
*
|
|
19372
|
+
* See the
|
|
19373
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
19374
|
+
* documentation »</a> for more info.
|
|
18880
19375
|
*/
|
|
18881
19376
|
type TypeInputPrivacyKey = tl.RawInputPrivacyKeyStatusTimestamp | tl.RawInputPrivacyKeyChatInvite | tl.RawInputPrivacyKeyPhoneCall | tl.RawInputPrivacyKeyPhoneP2P | tl.RawInputPrivacyKeyForwards | tl.RawInputPrivacyKeyProfilePhoto | tl.RawInputPrivacyKeyPhoneNumber | tl.RawInputPrivacyKeyAddedByPhone | tl.RawInputPrivacyKeyVoiceMessages | tl.RawInputPrivacyKeyAbout
|
|
18882
19377
|
function isAnyInputPrivacyKey(o: object): o is TypeInputPrivacyKey
|
|
18883
19378
|
/**
|
|
18884
|
-
* Privacy
|
|
19379
|
+
* Privacy <strong>keys</strong> together with
|
|
19380
|
+
* <a href="https://corefork.telegram.org/api/privacy#privacy-rules">privacy
|
|
19381
|
+
* rules »</a> indicate <em>what</em> can or can't someone do
|
|
19382
|
+
* and are specified by a
|
|
19383
|
+
* <a href="https://corefork.telegram.org/type/PrivacyKey">PrivacyKey</a>
|
|
19384
|
+
* constructor, and its input counterpart
|
|
19385
|
+
* <a href="https://corefork.telegram.org/type/InputPrivacyKey">InputPrivacyKey</a>.
|
|
19386
|
+
*
|
|
19387
|
+
* See the
|
|
19388
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
19389
|
+
* documentation »</a> for more info.
|
|
18885
19390
|
*/
|
|
18886
19391
|
type TypePrivacyKey = tl.RawPrivacyKeyStatusTimestamp | tl.RawPrivacyKeyChatInvite | tl.RawPrivacyKeyPhoneCall | tl.RawPrivacyKeyPhoneP2P | tl.RawPrivacyKeyForwards | tl.RawPrivacyKeyProfilePhoto | tl.RawPrivacyKeyPhoneNumber | tl.RawPrivacyKeyAddedByPhone | tl.RawPrivacyKeyVoiceMessages | tl.RawPrivacyKeyAbout
|
|
18887
19392
|
function isAnyPrivacyKey(o: object): o is TypePrivacyKey
|
|
18888
19393
|
/**
|
|
18889
|
-
* Privacy
|
|
19394
|
+
* Privacy <strong>rules</strong> indicate <em>who</em> can or
|
|
19395
|
+
* can't do something and are specified by a
|
|
19396
|
+
* <a href="https://corefork.telegram.org/type/PrivacyRule">PrivacyRule</a>,
|
|
19397
|
+
* and its input counterpart
|
|
19398
|
+
* <a href="https://corefork.telegram.org/type/InputPrivacyRule">InputPrivacyRule</a>.
|
|
19399
|
+
*
|
|
19400
|
+
* See the
|
|
19401
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
19402
|
+
* documentation »</a> for more info.
|
|
18890
19403
|
*/
|
|
18891
19404
|
type TypeInputPrivacyRule = tl.RawInputPrivacyValueAllowContacts | tl.RawInputPrivacyValueAllowAll | tl.RawInputPrivacyValueAllowUsers | tl.RawInputPrivacyValueDisallowContacts | tl.RawInputPrivacyValueDisallowAll | tl.RawInputPrivacyValueDisallowUsers | tl.RawInputPrivacyValueAllowChatParticipants | tl.RawInputPrivacyValueDisallowChatParticipants | tl.RawInputPrivacyValueAllowCloseFriends
|
|
18892
19405
|
function isAnyInputPrivacyRule(o: object): o is TypeInputPrivacyRule
|
|
18893
19406
|
/**
|
|
18894
|
-
* Privacy
|
|
19407
|
+
* Privacy <strong>rules</strong> together with
|
|
19408
|
+
* <a href="https://corefork.telegram.org/api/privacy#privacy-keys">privacy
|
|
19409
|
+
* keys</a> indicate <em>what</em> can or can't someone do and
|
|
19410
|
+
* are specified by a
|
|
19411
|
+
* <a href="https://corefork.telegram.org/type/PrivacyRule">PrivacyRule</a>
|
|
19412
|
+
* constructor, and its input counterpart
|
|
19413
|
+
* <a href="https://corefork.telegram.org/type/InputPrivacyRule">InputPrivacyRule</a>.
|
|
19414
|
+
*
|
|
19415
|
+
* See the
|
|
19416
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
19417
|
+
* documentation »</a> for more info.
|
|
18895
19418
|
*/
|
|
18896
19419
|
type TypePrivacyRule = tl.RawPrivacyValueAllowContacts | tl.RawPrivacyValueAllowAll | tl.RawPrivacyValueAllowUsers | tl.RawPrivacyValueDisallowContacts | tl.RawPrivacyValueDisallowAll | tl.RawPrivacyValueDisallowUsers | tl.RawPrivacyValueAllowChatParticipants | tl.RawPrivacyValueDisallowChatParticipants | tl.RawPrivacyValueAllowCloseFriends
|
|
18897
19420
|
function isAnyPrivacyRule(o: object): o is TypePrivacyRule
|
|
@@ -18976,7 +19499,7 @@ export class RpcError extends Error {
|
|
|
18976
19499
|
/**
|
|
18977
19500
|
* Message entities, representing styled text in a message
|
|
18978
19501
|
*/
|
|
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.
|
|
19502
|
+
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
19503
|
function isAnyMessageEntity(o: object): o is TypeMessageEntity
|
|
18981
19504
|
/**
|
|
18982
19505
|
* Represents a channel
|
|
@@ -20036,30 +20559,69 @@ export class RpcError extends Error {
|
|
|
20036
20559
|
*/
|
|
20037
20560
|
type TypeExportedChatlistInvite = tl.RawExportedChatlistInvite
|
|
20038
20561
|
function isAnyExportedChatlistInvite(o: object): o is TypeExportedChatlistInvite
|
|
20562
|
+
/**
|
|
20563
|
+
* How a user voted in a poll
|
|
20564
|
+
*/
|
|
20039
20565
|
type TypeMessagePeerVote = tl.RawMessagePeerVote | tl.RawMessagePeerVoteInputOption | tl.RawMessagePeerVoteMultiple
|
|
20040
20566
|
function isAnyMessagePeerVote(o: object): o is TypeMessagePeerVote
|
|
20041
20567
|
type TypeSponsoredWebPage = tl.RawSponsoredWebPage
|
|
20042
20568
|
function isAnySponsoredWebPage(o: object): o is TypeSponsoredWebPage
|
|
20569
|
+
/**
|
|
20570
|
+
* Aggregated view and reaction information of a
|
|
20571
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
20572
|
+
*/
|
|
20043
20573
|
type TypeStoryViews = tl.RawStoryViews
|
|
20044
20574
|
function isAnyStoryViews(o: object): o is TypeStoryViews
|
|
20575
|
+
/**
|
|
20576
|
+
* Represents a
|
|
20577
|
+
* <a href="https://corefork.telegram.org/api/stories">Telegram
|
|
20578
|
+
* Story</a>
|
|
20579
|
+
*/
|
|
20045
20580
|
type TypeStoryItem = tl.RawStoryItemDeleted | tl.RawStoryItemSkipped | tl.RawStoryItem
|
|
20046
20581
|
function isAnyStoryItem(o: object): o is TypeStoryItem
|
|
20582
|
+
/**
|
|
20583
|
+
* <a href="https://corefork.telegram.org/api/stories">Story</a>
|
|
20584
|
+
* view date and reaction information
|
|
20585
|
+
*/
|
|
20047
20586
|
type TypeStoryView = tl.RawStoryView
|
|
20048
20587
|
function isAnyStoryView(o: object): o is TypeStoryView
|
|
20588
|
+
/**
|
|
20589
|
+
* Contains info about a message or story to reply to.
|
|
20590
|
+
*/
|
|
20049
20591
|
type TypeInputReplyTo = tl.RawInputReplyToMessage | tl.RawInputReplyToStory
|
|
20050
20592
|
function isAnyInputReplyTo(o: object): o is TypeInputReplyTo
|
|
20593
|
+
/**
|
|
20594
|
+
* Represents a
|
|
20595
|
+
* <a href="https://corefork.telegram.org/api/stories#story-links">story
|
|
20596
|
+
* deep link</a>
|
|
20597
|
+
*/
|
|
20051
20598
|
type TypeExportedStoryLink = tl.RawExportedStoryLink
|
|
20052
20599
|
function isAnyExportedStoryLink(o: object): o is TypeExportedStoryLink
|
|
20600
|
+
/**
|
|
20601
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">Story
|
|
20602
|
+
* stealth mode status</a>
|
|
20603
|
+
*/
|
|
20053
20604
|
type TypeStoriesStealthMode = tl.RawStoriesStealthMode
|
|
20054
20605
|
function isAnyStoriesStealthMode(o: object): o is TypeStoriesStealthMode
|
|
20606
|
+
/**
|
|
20607
|
+
* Coordinates and size of a clicable rectangular area on top
|
|
20608
|
+
* of a story.
|
|
20609
|
+
*/
|
|
20055
20610
|
type TypeMediaAreaCoordinates = tl.RawMediaAreaCoordinates
|
|
20056
20611
|
function isAnyMediaAreaCoordinates(o: object): o is TypeMediaAreaCoordinates
|
|
20612
|
+
/**
|
|
20613
|
+
* Represents a
|
|
20614
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">story
|
|
20615
|
+
* media area »</a>
|
|
20616
|
+
*/
|
|
20057
20617
|
type TypeMediaArea = tl.RawMediaAreaVenue | tl.RawInputMediaAreaVenue | tl.RawMediaAreaGeoPoint | tl.RawMediaAreaSuggestedReaction
|
|
20058
20618
|
function isAnyMediaArea(o: object): o is TypeMediaArea
|
|
20619
|
+
/**
|
|
20620
|
+
* <a href="https://corefork.telegram.org/api/stories">Stories</a>
|
|
20621
|
+
* associated to a peer
|
|
20622
|
+
*/
|
|
20059
20623
|
type TypePeerStories = tl.RawPeerStories
|
|
20060
20624
|
function isAnyPeerStories(o: object): o is TypePeerStories
|
|
20061
|
-
type TypeBooster = tl.RawBooster
|
|
20062
|
-
function isAnyBooster(o: object): o is TypeBooster
|
|
20063
20625
|
type TypePremiumGiftCodeOption = tl.RawPremiumGiftCodeOption
|
|
20064
20626
|
function isAnyPremiumGiftCodeOption(o: object): o is TypePremiumGiftCodeOption
|
|
20065
20627
|
type TypePrepaidGiveaway = tl.RawPrepaidGiveaway
|
|
@@ -20073,6 +20635,13 @@ export class RpcError extends Error {
|
|
|
20073
20635
|
*/
|
|
20074
20636
|
type TypeMessageUserVote = tl.RawMessageUserVote | tl.RawMessageUserVoteInputOption | tl.RawMessageUserVoteMultiple
|
|
20075
20637
|
function isAnyMessageUserVote(o: object): o is TypeMessageUserVote
|
|
20638
|
+
/**
|
|
20639
|
+
* Info about a
|
|
20640
|
+
* <a href="https://corefork.telegram.org/api/boost">boost</a>
|
|
20641
|
+
* made by a specific user.
|
|
20642
|
+
*/
|
|
20643
|
+
type TypeBooster = tl.RawBooster
|
|
20644
|
+
function isAnyBooster(o: object): o is TypeBooster
|
|
20076
20645
|
|
|
20077
20646
|
namespace help {
|
|
20078
20647
|
interface RawConfigSimple {
|
|
@@ -21323,7 +21892,7 @@ export class RpcError extends Error {
|
|
|
21323
21892
|
interface RawLoginToken {
|
|
21324
21893
|
_: 'auth.loginToken';
|
|
21325
21894
|
/**
|
|
21326
|
-
*
|
|
21895
|
+
* Expiration date of QR code
|
|
21327
21896
|
*/
|
|
21328
21897
|
expires: number;
|
|
21329
21898
|
/**
|
|
@@ -22130,28 +22699,45 @@ export class RpcError extends Error {
|
|
|
22130
22699
|
phones: string[];
|
|
22131
22700
|
}
|
|
22132
22701
|
/**
|
|
22133
|
-
* Adds
|
|
22702
|
+
* Adds a peer to a blocklist, see
|
|
22703
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22704
|
+
* for more info.
|
|
22134
22705
|
*
|
|
22135
22706
|
* RPC method returns boolean
|
|
22136
22707
|
*/
|
|
22137
22708
|
interface RawBlockRequest {
|
|
22138
22709
|
_: 'contacts.block';
|
|
22710
|
+
/**
|
|
22711
|
+
* Whether the peer should be added to the story blocklist; if
|
|
22712
|
+
* not set, the peer will be added to the main blocklist, see
|
|
22713
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22714
|
+
* for more info.
|
|
22715
|
+
*/
|
|
22139
22716
|
myStoriesFrom?: boolean;
|
|
22140
22717
|
/**
|
|
22141
|
-
*
|
|
22718
|
+
* Peer
|
|
22142
22719
|
*/
|
|
22143
22720
|
id: tl.TypeInputPeer;
|
|
22144
22721
|
}
|
|
22145
22722
|
/**
|
|
22146
|
-
* Deletes
|
|
22723
|
+
* Deletes a peer from a blocklist, see
|
|
22724
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22725
|
+
* for more info.
|
|
22147
22726
|
*
|
|
22148
22727
|
* RPC method returns boolean
|
|
22149
22728
|
*/
|
|
22150
22729
|
interface RawUnblockRequest {
|
|
22151
22730
|
_: 'contacts.unblock';
|
|
22731
|
+
/**
|
|
22732
|
+
* Whether the peer should be removed from the story blocklist;
|
|
22733
|
+
* if not set, the peer will be removed from the main
|
|
22734
|
+
* blocklist, see
|
|
22735
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22736
|
+
* for more info.
|
|
22737
|
+
*/
|
|
22152
22738
|
myStoriesFrom?: boolean;
|
|
22153
22739
|
/**
|
|
22154
|
-
*
|
|
22740
|
+
* Peer
|
|
22155
22741
|
*/
|
|
22156
22742
|
id: tl.TypeInputPeer;
|
|
22157
22743
|
}
|
|
@@ -22162,6 +22748,12 @@ export class RpcError extends Error {
|
|
|
22162
22748
|
*/
|
|
22163
22749
|
interface RawGetBlockedRequest {
|
|
22164
22750
|
_: 'contacts.getBlocked';
|
|
22751
|
+
/**
|
|
22752
|
+
* Whether to fetch the story blocklist; if not set, will fetch
|
|
22753
|
+
* the main blocklist. See
|
|
22754
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
22755
|
+
* for differences between the two.
|
|
22756
|
+
*/
|
|
22165
22757
|
myStoriesFrom?: boolean;
|
|
22166
22758
|
/**
|
|
22167
22759
|
* The number of list elements to be skipped
|
|
@@ -22331,13 +22923,15 @@ export class RpcError extends Error {
|
|
|
22331
22923
|
*/
|
|
22332
22924
|
lastName: string;
|
|
22333
22925
|
/**
|
|
22334
|
-
* User's phone number
|
|
22926
|
+
* User's phone number, may be omitted to simply add the user
|
|
22927
|
+
* to the contact list, without a phone number.
|
|
22335
22928
|
*/
|
|
22336
22929
|
phone: string;
|
|
22337
22930
|
}
|
|
22338
22931
|
/**
|
|
22339
|
-
* If the
|
|
22340
|
-
*
|
|
22932
|
+
* If the
|
|
22933
|
+
* <a href="https://corefork.telegram.org/api/action-bar#add-contact">add
|
|
22934
|
+
* contact action bar is active</a>, add that user as contact
|
|
22341
22935
|
*
|
|
22342
22936
|
* RPC method returns {@link tl.TypeUpdates}
|
|
22343
22937
|
*/
|
|
@@ -22349,7 +22943,9 @@ export class RpcError extends Error {
|
|
|
22349
22943
|
id: tl.TypeInputUser;
|
|
22350
22944
|
}
|
|
22351
22945
|
/**
|
|
22352
|
-
* Get
|
|
22946
|
+
* Get users and geochats near you, see
|
|
22947
|
+
* <a href="https://corefork.telegram.org/api/nearby">here
|
|
22948
|
+
* »</a> for more info.
|
|
22353
22949
|
*
|
|
22354
22950
|
* RPC method returns {@link tl.TypeUpdates}
|
|
22355
22951
|
*/
|
|
@@ -22448,18 +23044,40 @@ export class RpcError extends Error {
|
|
|
22448
23044
|
token: string;
|
|
22449
23045
|
}
|
|
22450
23046
|
/**
|
|
23047
|
+
* Edit the
|
|
23048
|
+
* <a href="https://corefork.telegram.org/api/privacy">close
|
|
23049
|
+
* friends list, see here »</a> for more info.
|
|
23050
|
+
*
|
|
22451
23051
|
* RPC method returns boolean
|
|
22452
23052
|
*/
|
|
22453
23053
|
interface RawEditCloseFriendsRequest {
|
|
22454
23054
|
_: 'contacts.editCloseFriends';
|
|
23055
|
+
/**
|
|
23056
|
+
* Full list of user IDs of close friends, see
|
|
23057
|
+
* <a href="https://corefork.telegram.org/api/privacy">here</a>
|
|
23058
|
+
* for more info.
|
|
23059
|
+
*/
|
|
22455
23060
|
id: number[];
|
|
22456
23061
|
}
|
|
22457
23062
|
/**
|
|
23063
|
+
* Replace the contents of an entire
|
|
23064
|
+
* <a href="https://corefork.telegram.org/api/contacts">blocklist,
|
|
23065
|
+
* see here for more info »</a>.
|
|
23066
|
+
*
|
|
22458
23067
|
* RPC method returns boolean
|
|
22459
23068
|
*/
|
|
22460
23069
|
interface RawSetBlockedRequest {
|
|
22461
23070
|
_: 'contacts.setBlocked';
|
|
23071
|
+
/**
|
|
23072
|
+
* Whether to edit the story blocklist; if not set, will edit
|
|
23073
|
+
* the main blocklist. See
|
|
23074
|
+
* <a href="https://corefork.telegram.org/api/block">here »</a>
|
|
23075
|
+
* for differences between the two.
|
|
23076
|
+
*/
|
|
22462
23077
|
myStoriesFrom?: boolean;
|
|
23078
|
+
/**
|
|
23079
|
+
* Full content of the blocklist.
|
|
23080
|
+
*/
|
|
22463
23081
|
id: tl.TypeInputPeer[];
|
|
22464
23082
|
/**
|
|
22465
23083
|
* Maximum number of results to return,
|
|
@@ -23266,6 +23884,9 @@ export class RpcError extends Error {
|
|
|
23266
23884
|
* Vote info for each user
|
|
23267
23885
|
*/
|
|
23268
23886
|
votes: tl.TypeMessagePeerVote[];
|
|
23887
|
+
/**
|
|
23888
|
+
* Mentioned chats
|
|
23889
|
+
*/
|
|
23269
23890
|
chats: tl.TypeChat[];
|
|
23270
23891
|
/**
|
|
23271
23892
|
* Info about users that voted in the poll
|
|
@@ -24144,6 +24765,10 @@ export class RpcError extends Error {
|
|
|
24144
24765
|
* The destination where the message will be sent
|
|
24145
24766
|
*/
|
|
24146
24767
|
peer: tl.TypeInputPeer;
|
|
24768
|
+
/**
|
|
24769
|
+
* If set, indicates that the message should be sent in reply
|
|
24770
|
+
* to the specified message or story.
|
|
24771
|
+
*/
|
|
24147
24772
|
replyTo?: tl.TypeInputReplyTo;
|
|
24148
24773
|
/**
|
|
24149
24774
|
* The message
|
|
@@ -24212,6 +24837,10 @@ export class RpcError extends Error {
|
|
|
24212
24837
|
* Destination
|
|
24213
24838
|
*/
|
|
24214
24839
|
peer: tl.TypeInputPeer;
|
|
24840
|
+
/**
|
|
24841
|
+
* If set, indicates that the message should be sent in reply
|
|
24842
|
+
* to the specified message or story.
|
|
24843
|
+
*/
|
|
24215
24844
|
replyTo?: tl.TypeInputReplyTo;
|
|
24216
24845
|
/**
|
|
24217
24846
|
* Attached media
|
|
@@ -25235,6 +25864,10 @@ export class RpcError extends Error {
|
|
|
25235
25864
|
* Destination
|
|
25236
25865
|
*/
|
|
25237
25866
|
peer: tl.TypeInputPeer;
|
|
25867
|
+
/**
|
|
25868
|
+
* If set, indicates that the message should be sent in reply
|
|
25869
|
+
* to the specified message or story.
|
|
25870
|
+
*/
|
|
25238
25871
|
replyTo?: tl.TypeInputReplyTo;
|
|
25239
25872
|
/**
|
|
25240
25873
|
* Random ID to avoid resending the same query
|
|
@@ -25285,6 +25918,7 @@ export class RpcError extends Error {
|
|
|
25285
25918
|
* Disable webpage preview
|
|
25286
25919
|
*/
|
|
25287
25920
|
noWebpage?: boolean;
|
|
25921
|
+
invertMedia?: boolean;
|
|
25288
25922
|
/**
|
|
25289
25923
|
* Where was the message sent
|
|
25290
25924
|
*/
|
|
@@ -25316,7 +25950,6 @@ export class RpcError extends Error {
|
|
|
25316
25950
|
* messages</a>
|
|
25317
25951
|
*/
|
|
25318
25952
|
scheduleDate?: number;
|
|
25319
|
-
invertMedia?: boolean;
|
|
25320
25953
|
}
|
|
25321
25954
|
/**
|
|
25322
25955
|
* Edit an inline bot message
|
|
@@ -25329,6 +25962,7 @@ export class RpcError extends Error {
|
|
|
25329
25962
|
* Disable webpage preview
|
|
25330
25963
|
*/
|
|
25331
25964
|
noWebpage?: boolean;
|
|
25965
|
+
invertMedia?: boolean;
|
|
25332
25966
|
/**
|
|
25333
25967
|
* Sent inline message ID
|
|
25334
25968
|
*/
|
|
@@ -25350,7 +25984,6 @@ export class RpcError extends Error {
|
|
|
25350
25984
|
* entities for styled text</a>
|
|
25351
25985
|
*/
|
|
25352
25986
|
entities?: tl.TypeMessageEntity[];
|
|
25353
|
-
invertMedia?: boolean;
|
|
25354
25987
|
}
|
|
25355
25988
|
/**
|
|
25356
25989
|
* Press an inline callback button and get a callback answer
|
|
@@ -25890,6 +26523,11 @@ export class RpcError extends Error {
|
|
|
25890
26523
|
* Other user
|
|
25891
26524
|
*/
|
|
25892
26525
|
peer: tl.TypeInputPeer;
|
|
26526
|
+
/**
|
|
26527
|
+
* Indicates the message that was screenshotted (the specified
|
|
26528
|
+
* message ID can also be <code>0</code> to avoid indicating
|
|
26529
|
+
* any specific message).
|
|
26530
|
+
*/
|
|
25893
26531
|
replyTo: tl.TypeInputReplyTo;
|
|
25894
26532
|
/**
|
|
25895
26533
|
* Random ID to avoid message resending
|
|
@@ -26053,6 +26691,10 @@ export class RpcError extends Error {
|
|
|
26053
26691
|
* The destination chat
|
|
26054
26692
|
*/
|
|
26055
26693
|
peer: tl.TypeInputPeer;
|
|
26694
|
+
/**
|
|
26695
|
+
* If set, indicates that the message should be sent in reply
|
|
26696
|
+
* to the specified message or story.
|
|
26697
|
+
*/
|
|
26056
26698
|
replyTo?: tl.TypeInputReplyTo;
|
|
26057
26699
|
/**
|
|
26058
26700
|
* The medias to send: note that they must be separately
|
|
@@ -26416,10 +27058,13 @@ export class RpcError extends Error {
|
|
|
26416
27058
|
url?: string;
|
|
26417
27059
|
}
|
|
26418
27060
|
/**
|
|
26419
|
-
* Should be called after the user hides the
|
|
26420
|
-
*
|
|
26421
|
-
*
|
|
26422
|
-
*
|
|
27061
|
+
* Should be called after the user hides the
|
|
27062
|
+
* <a href="https://corefork.telegram.org/api/action-bar">report
|
|
27063
|
+
* spam/add as contact bar</a> of a new chat, effectively
|
|
27064
|
+
* prevents the user from executing the actions specified in
|
|
27065
|
+
* the
|
|
27066
|
+
* <a href="https://corefork.telegram.org/api/action-bar">action
|
|
27067
|
+
* bar »</a>.
|
|
26423
27068
|
*
|
|
26424
27069
|
* RPC method returns boolean
|
|
26425
27070
|
*/
|
|
@@ -27317,7 +27962,7 @@ export class RpcError extends Error {
|
|
|
27317
27962
|
*/
|
|
27318
27963
|
big?: boolean;
|
|
27319
27964
|
/**
|
|
27320
|
-
*
|
|
27965
|
+
* Whether to add this reaction to the
|
|
27321
27966
|
* <a href="https://corefork.telegram.org/api/reactions#recent-reactions">recent
|
|
27322
27967
|
* reactions list »</a>.
|
|
27323
27968
|
*/
|
|
@@ -27670,6 +28315,13 @@ export class RpcError extends Error {
|
|
|
27670
28315
|
* and underscores
|
|
27671
28316
|
*/
|
|
27672
28317
|
platform: string;
|
|
28318
|
+
/**
|
|
28319
|
+
* If set, indicates that the inline message that will be sent
|
|
28320
|
+
* by the bot on behalf of the user once the web app
|
|
28321
|
+
* interaction is
|
|
28322
|
+
* {@link messages.RawSendWebViewResultMessageRequest} should
|
|
28323
|
+
* be sent in reply to the specified message or story.
|
|
28324
|
+
*/
|
|
27673
28325
|
replyTo?: tl.TypeInputReplyTo;
|
|
27674
28326
|
/**
|
|
27675
28327
|
* Open the web app as the specified peer, sending the
|
|
@@ -27710,6 +28362,13 @@ export class RpcError extends Error {
|
|
|
27710
28362
|
* {@link messages.RawRequestWebViewRequest}
|
|
27711
28363
|
*/
|
|
27712
28364
|
queryId: Long;
|
|
28365
|
+
/**
|
|
28366
|
+
* If set, indicates that the inline message that will be sent
|
|
28367
|
+
* by the bot on behalf of the user once the web app
|
|
28368
|
+
* interaction is
|
|
28369
|
+
* {@link messages.RawSendWebViewResultMessageRequest} should
|
|
28370
|
+
* be sent in reply to the specified message or story.
|
|
28371
|
+
*/
|
|
27713
28372
|
replyTo?: tl.TypeInputReplyTo;
|
|
27714
28373
|
/**
|
|
27715
28374
|
* Open the web app as the specified peer
|
|
@@ -31268,12 +31927,17 @@ export class RpcError extends Error {
|
|
|
31268
31927
|
authorizationTtlDays: number;
|
|
31269
31928
|
}
|
|
31270
31929
|
/**
|
|
31271
|
-
* Change settings related to
|
|
31930
|
+
* Change settings related to a session.
|
|
31272
31931
|
*
|
|
31273
31932
|
* RPC method returns boolean
|
|
31274
31933
|
*/
|
|
31275
31934
|
interface RawChangeAuthorizationSettingsRequest {
|
|
31276
31935
|
_: 'account.changeAuthorizationSettings';
|
|
31936
|
+
/**
|
|
31937
|
+
* If set,
|
|
31938
|
+
* <a href="https://corefork.telegram.org/api/auth#confirming-login">confirms
|
|
31939
|
+
* a newly logged in session »</a>.
|
|
31940
|
+
*/
|
|
31277
31941
|
confirmed?: boolean;
|
|
31278
31942
|
/**
|
|
31279
31943
|
* Session ID from the {@link RawAuthorization} constructor,
|
|
@@ -32024,11 +32688,15 @@ export class RpcError extends Error {
|
|
|
32024
32688
|
*/
|
|
32025
32689
|
about: string;
|
|
32026
32690
|
/**
|
|
32027
|
-
* Geogroup location
|
|
32691
|
+
* Geogroup location, see
|
|
32692
|
+
* <a href="https://corefork.telegram.org/api/nearby">here
|
|
32693
|
+
* »</a> for more info on geogroups.
|
|
32028
32694
|
*/
|
|
32029
32695
|
geoPoint?: tl.TypeInputGeoPoint;
|
|
32030
32696
|
/**
|
|
32031
|
-
* Geogroup address
|
|
32697
|
+
* Geogroup address, see
|
|
32698
|
+
* <a href="https://corefork.telegram.org/api/nearby">here
|
|
32699
|
+
* »</a> for more info on geogroups.
|
|
32032
32700
|
*/
|
|
32033
32701
|
address?: string;
|
|
32034
32702
|
/**
|
|
@@ -32485,7 +33153,9 @@ export class RpcError extends Error {
|
|
|
32485
33153
|
password: tl.TypeInputCheckPasswordSRP;
|
|
32486
33154
|
}
|
|
32487
33155
|
/**
|
|
32488
|
-
* Edit location of geo group
|
|
33156
|
+
* Edit location of geo group, see
|
|
33157
|
+
* <a href="https://corefork.telegram.org/api/nearby">here
|
|
33158
|
+
* »</a> for more info on geogroups.
|
|
32489
33159
|
*
|
|
32490
33160
|
* RPC method returns boolean
|
|
32491
33161
|
*/
|
|
@@ -35879,147 +36549,437 @@ export class RpcError extends Error {
|
|
|
35879
36549
|
}
|
|
35880
36550
|
|
|
35881
36551
|
namespace stories {
|
|
36552
|
+
/**
|
|
36553
|
+
* The list of active (or active and hidden)
|
|
36554
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">stories</a>
|
|
36555
|
+
* has not changed.
|
|
36556
|
+
*/
|
|
35882
36557
|
interface RawAllStoriesNotModified {
|
|
35883
36558
|
_: 'stories.allStoriesNotModified';
|
|
36559
|
+
/**
|
|
36560
|
+
* State to use to ask for updates
|
|
36561
|
+
*/
|
|
35884
36562
|
state: string;
|
|
36563
|
+
/**
|
|
36564
|
+
* Current
|
|
36565
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stealth
|
|
36566
|
+
* mode</a> information
|
|
36567
|
+
*/
|
|
35885
36568
|
stealthMode: tl.TypeStoriesStealthMode;
|
|
35886
36569
|
}
|
|
36570
|
+
/**
|
|
36571
|
+
* Full list of active (or active and hidden)
|
|
36572
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">stories</a>.
|
|
36573
|
+
*/
|
|
35887
36574
|
interface RawAllStories {
|
|
35888
36575
|
_: 'stories.allStories';
|
|
36576
|
+
/**
|
|
36577
|
+
* Whether more results can be fetched as
|
|
36578
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">described
|
|
36579
|
+
* here »</a>.
|
|
36580
|
+
*/
|
|
35889
36581
|
hasMore?: boolean;
|
|
36582
|
+
/**
|
|
36583
|
+
* Total number of active (or active and hidden) stories
|
|
36584
|
+
*/
|
|
35890
36585
|
count: number;
|
|
36586
|
+
/**
|
|
36587
|
+
* State to use for pagination
|
|
36588
|
+
*/
|
|
35891
36589
|
state: string;
|
|
36590
|
+
/**
|
|
36591
|
+
* Stories
|
|
36592
|
+
*/
|
|
35892
36593
|
peerStories: tl.TypePeerStories[];
|
|
36594
|
+
/**
|
|
36595
|
+
* Mentioned chats
|
|
36596
|
+
*/
|
|
35893
36597
|
chats: tl.TypeChat[];
|
|
36598
|
+
/**
|
|
36599
|
+
* Mentioned users
|
|
36600
|
+
*/
|
|
35894
36601
|
users: tl.TypeUser[];
|
|
36602
|
+
/**
|
|
36603
|
+
* Current
|
|
36604
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stealth
|
|
36605
|
+
* mode</a> information
|
|
36606
|
+
*/
|
|
35895
36607
|
stealthMode: tl.TypeStoriesStealthMode;
|
|
35896
36608
|
}
|
|
36609
|
+
/**
|
|
36610
|
+
* List of
|
|
36611
|
+
* <a href="https://corefork.telegram.org/api/stories#pinnedarchived-stories">stories</a>
|
|
36612
|
+
*/
|
|
35897
36613
|
interface RawStories {
|
|
35898
36614
|
_: 'stories.stories';
|
|
36615
|
+
/**
|
|
36616
|
+
* Total number of stories that can be fetched
|
|
36617
|
+
*/
|
|
35899
36618
|
count: number;
|
|
36619
|
+
/**
|
|
36620
|
+
* Stories
|
|
36621
|
+
*/
|
|
35900
36622
|
stories: tl.TypeStoryItem[];
|
|
36623
|
+
/**
|
|
36624
|
+
* Mentioned chats
|
|
36625
|
+
*/
|
|
35901
36626
|
chats: tl.TypeChat[];
|
|
36627
|
+
/**
|
|
36628
|
+
* Mentioned users
|
|
36629
|
+
*/
|
|
35902
36630
|
users: tl.TypeUser[];
|
|
35903
36631
|
}
|
|
36632
|
+
/**
|
|
36633
|
+
* Reaction and view counters for a
|
|
36634
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
36635
|
+
*/
|
|
35904
36636
|
interface RawStoryViewsList {
|
|
35905
36637
|
_: 'stories.storyViewsList';
|
|
36638
|
+
/**
|
|
36639
|
+
* Total number of results that can be fetched
|
|
36640
|
+
*/
|
|
35906
36641
|
count: number;
|
|
35907
36642
|
reactionsCount: number;
|
|
36643
|
+
/**
|
|
36644
|
+
* Story view date and reaction information
|
|
36645
|
+
*/
|
|
35908
36646
|
views: tl.TypeStoryView[];
|
|
36647
|
+
/**
|
|
36648
|
+
* Mentioned users
|
|
36649
|
+
*/
|
|
35909
36650
|
users: tl.TypeUser[];
|
|
36651
|
+
/**
|
|
36652
|
+
* Offset for pagination
|
|
36653
|
+
*/
|
|
35910
36654
|
nextOffset?: string;
|
|
35911
36655
|
}
|
|
36656
|
+
/**
|
|
36657
|
+
* Reaction and view counters for a list of
|
|
36658
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
36659
|
+
*/
|
|
35912
36660
|
interface RawStoryViews {
|
|
35913
36661
|
_: 'stories.storyViews';
|
|
36662
|
+
/**
|
|
36663
|
+
* View date and reaction information of multiple stories
|
|
36664
|
+
*/
|
|
35914
36665
|
views: tl.TypeStoryViews[];
|
|
36666
|
+
/**
|
|
36667
|
+
* Mentioned users
|
|
36668
|
+
*/
|
|
35915
36669
|
users: tl.TypeUser[];
|
|
35916
36670
|
}
|
|
36671
|
+
/**
|
|
36672
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">Active
|
|
36673
|
+
* story list</a> of a specific peer.
|
|
36674
|
+
*/
|
|
35917
36675
|
interface RawPeerStories {
|
|
35918
36676
|
_: 'stories.peerStories';
|
|
36677
|
+
/**
|
|
36678
|
+
* Stories
|
|
36679
|
+
*/
|
|
35919
36680
|
stories: tl.TypePeerStories;
|
|
36681
|
+
/**
|
|
36682
|
+
* Mentioned chats
|
|
36683
|
+
*/
|
|
35920
36684
|
chats: tl.TypeChat[];
|
|
36685
|
+
/**
|
|
36686
|
+
* Mentioned users
|
|
36687
|
+
*/
|
|
35921
36688
|
users: tl.TypeUser[];
|
|
35922
36689
|
}
|
|
36690
|
+
/**
|
|
36691
|
+
* The current
|
|
36692
|
+
* <a href="https://corefork.telegram.org/api/boost">boost
|
|
36693
|
+
* status »</a> of a channel.
|
|
36694
|
+
*/
|
|
35923
36695
|
interface RawBoostsStatus {
|
|
35924
36696
|
_: 'stories.boostsStatus';
|
|
36697
|
+
/**
|
|
36698
|
+
* Whether we're currently boosting this channel.
|
|
36699
|
+
*/
|
|
35925
36700
|
myBoost?: boolean;
|
|
36701
|
+
/**
|
|
36702
|
+
* The current boost level of the channel.
|
|
36703
|
+
*/
|
|
35926
36704
|
level: number;
|
|
36705
|
+
/**
|
|
36706
|
+
* The number of boosts acquired so far in the current level.
|
|
36707
|
+
*/
|
|
35927
36708
|
currentLevelBoosts: number;
|
|
36709
|
+
/**
|
|
36710
|
+
* Total number of boosts acquired so far.
|
|
36711
|
+
*/
|
|
35928
36712
|
boosts: number;
|
|
36713
|
+
/**
|
|
36714
|
+
* Total number of boosts needed to reach the next level; if
|
|
36715
|
+
* absent, the next level isn't available.
|
|
36716
|
+
*/
|
|
35929
36717
|
nextLevelBoosts?: number;
|
|
36718
|
+
/**
|
|
36719
|
+
* Only returned to channel admins: contains the approximated
|
|
36720
|
+
* number of Premium users subscribed to the channel, related
|
|
36721
|
+
* to the total number of subscribers.
|
|
36722
|
+
*/
|
|
35930
36723
|
premiumAudience?: tl.TypeStatsPercentValue;
|
|
35931
|
-
boostUrl: string;
|
|
35932
36724
|
}
|
|
36725
|
+
/**
|
|
36726
|
+
* We're not boosting any channel, and we can freely boost the
|
|
36727
|
+
* specified channel.
|
|
36728
|
+
*/
|
|
35933
36729
|
interface RawCanApplyBoostOk {
|
|
35934
36730
|
_: 'stories.canApplyBoostOk';
|
|
35935
36731
|
}
|
|
36732
|
+
/**
|
|
36733
|
+
* We're boosting another channel, but we can freely boost the
|
|
36734
|
+
* specified channel.
|
|
36735
|
+
*/
|
|
35936
36736
|
interface RawCanApplyBoostReplace {
|
|
35937
36737
|
_: 'stories.canApplyBoostReplace';
|
|
36738
|
+
/**
|
|
36739
|
+
* The channel we're currently boosting.
|
|
36740
|
+
*/
|
|
35938
36741
|
currentBoost: tl.TypePeer;
|
|
36742
|
+
/**
|
|
36743
|
+
* Channel information.
|
|
36744
|
+
*/
|
|
35939
36745
|
chats: tl.TypeChat[];
|
|
35940
36746
|
}
|
|
36747
|
+
/**
|
|
36748
|
+
* Info about the users currently
|
|
36749
|
+
* <a href="https://corefork.telegram.org/api/boost">boosting</a>
|
|
36750
|
+
* the channel.
|
|
36751
|
+
*/
|
|
35941
36752
|
interface RawBoostersList {
|
|
35942
36753
|
_: 'stories.boostersList';
|
|
36754
|
+
/**
|
|
36755
|
+
* Total number of boosters.
|
|
36756
|
+
*/
|
|
35943
36757
|
count: number;
|
|
36758
|
+
/**
|
|
36759
|
+
* Info about the automatic expiration date of every user's
|
|
36760
|
+
* boost.
|
|
36761
|
+
*/
|
|
35944
36762
|
boosters: tl.TypeBooster[];
|
|
36763
|
+
/**
|
|
36764
|
+
* Next offset for
|
|
36765
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>.
|
|
36766
|
+
*/
|
|
35945
36767
|
nextOffset?: string;
|
|
36768
|
+
/**
|
|
36769
|
+
* Info about the users mentioned in the <code>boosters</code>
|
|
36770
|
+
* field.
|
|
36771
|
+
*/
|
|
35946
36772
|
users: tl.TypeUser[];
|
|
35947
36773
|
}
|
|
35948
36774
|
/**
|
|
36775
|
+
* Check whether we can post stories as the specified peer.
|
|
36776
|
+
*
|
|
35949
36777
|
* RPC method returns boolean
|
|
35950
36778
|
*/
|
|
35951
36779
|
interface RawCanSendStoryRequest {
|
|
35952
36780
|
_: 'stories.canSendStory';
|
|
36781
|
+
/**
|
|
36782
|
+
* The peer from which we wish to post stories.
|
|
36783
|
+
*/
|
|
35953
36784
|
peer: tl.TypeInputPeer;
|
|
35954
36785
|
}
|
|
35955
36786
|
/**
|
|
36787
|
+
* Uploads a
|
|
36788
|
+
* <a href="https://corefork.telegram.org/api/stories">Telegram
|
|
36789
|
+
* Story</a>.
|
|
36790
|
+
*
|
|
35956
36791
|
* RPC method returns {@link tl.TypeUpdates}
|
|
35957
36792
|
*/
|
|
35958
36793
|
interface RawSendStoryRequest {
|
|
35959
36794
|
_: 'stories.sendStory';
|
|
36795
|
+
/**
|
|
36796
|
+
* Whether to add the story to the profile automatically upon
|
|
36797
|
+
* expiration. If not set, the story will only be added to the
|
|
36798
|
+
* archive, see
|
|
36799
|
+
* <a href="https://corefork.telegram.org/api/stories">here
|
|
36800
|
+
* »</a> for more info.
|
|
36801
|
+
*/
|
|
35960
36802
|
pinned?: boolean;
|
|
36803
|
+
/**
|
|
36804
|
+
* If set, disables forwards, screenshots, and downloads.
|
|
36805
|
+
*/
|
|
35961
36806
|
noforwards?: boolean;
|
|
36807
|
+
/**
|
|
36808
|
+
* The peer to send the story as.
|
|
36809
|
+
*/
|
|
35962
36810
|
peer: tl.TypeInputPeer;
|
|
36811
|
+
/**
|
|
36812
|
+
* The story media.
|
|
36813
|
+
*/
|
|
35963
36814
|
media: tl.TypeInputMedia;
|
|
36815
|
+
/**
|
|
36816
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">Media
|
|
36817
|
+
* areas</a> associated to the story, see
|
|
36818
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
36819
|
+
* »</a> for more info.
|
|
36820
|
+
*/
|
|
35964
36821
|
mediaAreas?: tl.TypeMediaArea[];
|
|
36822
|
+
/**
|
|
36823
|
+
* Story caption.
|
|
36824
|
+
*/
|
|
35965
36825
|
caption?: string;
|
|
35966
36826
|
/**
|
|
35967
36827
|
* <a href="https://corefork.telegram.org/api/entities">Message
|
|
35968
36828
|
* entities for styled text</a>
|
|
35969
36829
|
*/
|
|
35970
36830
|
entities?: tl.TypeMessageEntity[];
|
|
36831
|
+
/**
|
|
36832
|
+
* <a href="https://corefork.telegram.org/api/privacy">Privacy
|
|
36833
|
+
* rules</a> for the story, indicating who can or can't view
|
|
36834
|
+
* the story.
|
|
36835
|
+
*/
|
|
35971
36836
|
privacyRules: tl.TypeInputPrivacyRule[];
|
|
36837
|
+
/**
|
|
36838
|
+
* Unique client message ID required to prevent message
|
|
36839
|
+
* resending.
|
|
36840
|
+
*/
|
|
35972
36841
|
randomId: Long;
|
|
36842
|
+
/**
|
|
36843
|
+
* Period after which the story is moved to archive (and to the
|
|
36844
|
+
* profile if <code>pinned</code> is set), in seconds; must be
|
|
36845
|
+
* one of <code>6 * 3600</code>, <code>12 * 3600</code>,
|
|
36846
|
+
* <code>86400</code>, or <code>2 * 86400</code> for Telegram
|
|
36847
|
+
* Premium users, and <code>86400</code> otherwise.
|
|
36848
|
+
*/
|
|
35973
36849
|
period?: number;
|
|
35974
36850
|
}
|
|
35975
36851
|
/**
|
|
36852
|
+
* Edit an uploaded
|
|
36853
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
36854
|
+
*
|
|
35976
36855
|
* RPC method returns {@link tl.TypeUpdates}
|
|
35977
36856
|
*/
|
|
35978
36857
|
interface RawEditStoryRequest {
|
|
35979
36858
|
_: 'stories.editStory';
|
|
36859
|
+
/**
|
|
36860
|
+
* Peer where the story was posted.
|
|
36861
|
+
*/
|
|
35980
36862
|
peer: tl.TypeInputPeer;
|
|
36863
|
+
/**
|
|
36864
|
+
* ID of story to edit.
|
|
36865
|
+
*/
|
|
35981
36866
|
id: number;
|
|
36867
|
+
/**
|
|
36868
|
+
* If specified, replaces the story media.
|
|
36869
|
+
*/
|
|
35982
36870
|
media?: tl.TypeInputMedia;
|
|
36871
|
+
/**
|
|
36872
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">Media
|
|
36873
|
+
* areas</a> associated to the story, see
|
|
36874
|
+
* <a href="https://corefork.telegram.org/api/stories#media-areas">here
|
|
36875
|
+
* »</a> for more info.
|
|
36876
|
+
*/
|
|
35983
36877
|
mediaAreas?: tl.TypeMediaArea[];
|
|
36878
|
+
/**
|
|
36879
|
+
* If specified, replaces the story caption.
|
|
36880
|
+
*/
|
|
35984
36881
|
caption?: string;
|
|
35985
36882
|
/**
|
|
35986
36883
|
* <a href="https://corefork.telegram.org/api/entities">Message
|
|
35987
|
-
* entities for styled text</a>
|
|
36884
|
+
* entities for styled text in the caption</a>
|
|
35988
36885
|
*/
|
|
35989
36886
|
entities?: tl.TypeMessageEntity[];
|
|
36887
|
+
/**
|
|
36888
|
+
* If specified, alters the
|
|
36889
|
+
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
36890
|
+
* settings »</a> of the story, changing who can or can't view
|
|
36891
|
+
* the story.
|
|
36892
|
+
*/
|
|
35990
36893
|
privacyRules?: tl.TypeInputPrivacyRule[];
|
|
35991
36894
|
}
|
|
35992
36895
|
/**
|
|
36896
|
+
* Deletes some posted
|
|
36897
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>.
|
|
36898
|
+
*
|
|
35993
36899
|
* RPC method returns number array
|
|
35994
36900
|
*/
|
|
35995
36901
|
interface RawDeleteStoriesRequest {
|
|
35996
36902
|
_: 'stories.deleteStories';
|
|
36903
|
+
/**
|
|
36904
|
+
* Channel/user from where to delete stories.
|
|
36905
|
+
*/
|
|
35997
36906
|
peer: tl.TypeInputPeer;
|
|
36907
|
+
/**
|
|
36908
|
+
* IDs of stories to delete.
|
|
36909
|
+
*/
|
|
35998
36910
|
id: number[];
|
|
35999
36911
|
}
|
|
36000
36912
|
/**
|
|
36913
|
+
* Pin or unpin one or more stories
|
|
36914
|
+
*
|
|
36001
36915
|
* RPC method returns number array
|
|
36002
36916
|
*/
|
|
36003
36917
|
interface RawTogglePinnedRequest {
|
|
36004
36918
|
_: 'stories.togglePinned';
|
|
36919
|
+
/**
|
|
36920
|
+
* Peer where to pin or unpin stories
|
|
36921
|
+
*/
|
|
36005
36922
|
peer: tl.TypeInputPeer;
|
|
36923
|
+
/**
|
|
36924
|
+
* IDs of stories to pin or unpin
|
|
36925
|
+
*/
|
|
36006
36926
|
id: number[];
|
|
36927
|
+
/**
|
|
36928
|
+
* Whether to pin or unpin the stories
|
|
36929
|
+
*/
|
|
36007
36930
|
pinned: boolean;
|
|
36008
36931
|
}
|
|
36009
36932
|
/**
|
|
36933
|
+
* Fetch the List of active (or active and hidden) stories, see
|
|
36934
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
36935
|
+
* »</a> for more info on watching stories.
|
|
36936
|
+
*
|
|
36010
36937
|
* RPC method returns {@link tl.stories.TypeAllStories}
|
|
36011
36938
|
*/
|
|
36012
36939
|
interface RawGetAllStoriesRequest {
|
|
36013
36940
|
_: 'stories.getAllStories';
|
|
36941
|
+
/**
|
|
36942
|
+
* If <code>next</code> and <code>state</code> are both set,
|
|
36943
|
+
* uses the passed <code>state</code> to paginate to the next
|
|
36944
|
+
* results; if neither <code>state</code> nor <code>next</code>
|
|
36945
|
+
* are set, fetches the initial page; if <code>state</code> is
|
|
36946
|
+
* set and <code>next</code> is not set, check for changes in
|
|
36947
|
+
* the active/hidden peerset, see
|
|
36948
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
36949
|
+
* »</a> for more info on the full flow.
|
|
36950
|
+
*/
|
|
36014
36951
|
next?: boolean;
|
|
36952
|
+
/**
|
|
36953
|
+
* If set, fetches the hidden active story list, otherwise
|
|
36954
|
+
* fetches the active story list, see
|
|
36955
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
36956
|
+
* »</a> for more info on the full flow.
|
|
36957
|
+
*/
|
|
36015
36958
|
hidden?: boolean;
|
|
36959
|
+
/**
|
|
36960
|
+
* If <code>next</code> and <code>state</code> are both set,
|
|
36961
|
+
* uses the passed <code>state</code> to paginate to the next
|
|
36962
|
+
* results; if neither <code>state</code> nor <code>next</code>
|
|
36963
|
+
* are set, fetches the initial page; if <code>state</code> is
|
|
36964
|
+
* set and <code>next</code> is not set, check for changes in
|
|
36965
|
+
* the active/hidden peerset, see
|
|
36966
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
36967
|
+
* »</a> for more info on the full flow.
|
|
36968
|
+
*/
|
|
36016
36969
|
state?: string;
|
|
36017
36970
|
}
|
|
36018
36971
|
/**
|
|
36972
|
+
* Fetch the
|
|
36973
|
+
* <a href="https://corefork.telegram.org/api/stories#pinnedarchived-stories">stories</a>
|
|
36974
|
+
* pinned on a peer's profile.
|
|
36975
|
+
*
|
|
36019
36976
|
* RPC method returns {@link tl.stories.TypeStories}
|
|
36020
36977
|
*/
|
|
36021
36978
|
interface RawGetPinnedStoriesRequest {
|
|
36022
36979
|
_: 'stories.getPinnedStories';
|
|
36980
|
+
/**
|
|
36981
|
+
* Peer whose pinned stories should be fetched
|
|
36982
|
+
*/
|
|
36023
36983
|
peer: tl.TypeInputPeer;
|
|
36024
36984
|
/**
|
|
36025
36985
|
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
@@ -36034,10 +36994,17 @@ export class RpcError extends Error {
|
|
|
36034
36994
|
limit: number;
|
|
36035
36995
|
}
|
|
36036
36996
|
/**
|
|
36997
|
+
* Fetch the
|
|
36998
|
+
* <a href="https://corefork.telegram.org/api/stories#pinnedarchived-stories">story
|
|
36999
|
+
* archive »</a> of a peer we control.
|
|
37000
|
+
*
|
|
36037
37001
|
* RPC method returns {@link tl.stories.TypeStories}
|
|
36038
37002
|
*/
|
|
36039
37003
|
interface RawGetStoriesArchiveRequest {
|
|
36040
37004
|
_: 'stories.getStoriesArchive';
|
|
37005
|
+
/**
|
|
37006
|
+
* Peer whose archived stories should be fetched
|
|
37007
|
+
*/
|
|
36041
37008
|
peer: tl.TypeInputPeer;
|
|
36042
37009
|
/**
|
|
36043
37010
|
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
@@ -36052,46 +37019,101 @@ export class RpcError extends Error {
|
|
|
36052
37019
|
limit: number;
|
|
36053
37020
|
}
|
|
36054
37021
|
/**
|
|
37022
|
+
* Obtain full info about a set of
|
|
37023
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
37024
|
+
* by their IDs.
|
|
37025
|
+
*
|
|
36055
37026
|
* RPC method returns {@link tl.stories.TypeStories}
|
|
36056
37027
|
*/
|
|
36057
37028
|
interface RawGetStoriesByIDRequest {
|
|
36058
37029
|
_: 'stories.getStoriesByID';
|
|
37030
|
+
/**
|
|
37031
|
+
* Peer where the stories were posted
|
|
37032
|
+
*/
|
|
36059
37033
|
peer: tl.TypeInputPeer;
|
|
37034
|
+
/**
|
|
37035
|
+
* Story IDs
|
|
37036
|
+
*/
|
|
36060
37037
|
id: number[];
|
|
36061
37038
|
}
|
|
36062
37039
|
/**
|
|
37040
|
+
* Hide the active stories of a specific peer, preventing them
|
|
37041
|
+
* from being displayed on the action bar on the homescreen.
|
|
37042
|
+
*
|
|
36063
37043
|
* RPC method returns boolean
|
|
36064
37044
|
*/
|
|
36065
37045
|
interface RawToggleAllStoriesHiddenRequest {
|
|
36066
37046
|
_: 'stories.toggleAllStoriesHidden';
|
|
37047
|
+
/**
|
|
37048
|
+
* Whether to hide or unhide all active stories of the peer
|
|
37049
|
+
*/
|
|
36067
37050
|
hidden: boolean;
|
|
36068
37051
|
}
|
|
36069
37052
|
/**
|
|
37053
|
+
* Mark all stories up to a certain ID as read, for a given
|
|
37054
|
+
* peer; will emit an {@link RawUpdateReadStories} update to
|
|
37055
|
+
* all logged-in sessions.
|
|
37056
|
+
*
|
|
36070
37057
|
* RPC method returns number array
|
|
36071
37058
|
*/
|
|
36072
37059
|
interface RawReadStoriesRequest {
|
|
36073
37060
|
_: 'stories.readStories';
|
|
37061
|
+
/**
|
|
37062
|
+
* The peer whose stories should be marked as read.
|
|
37063
|
+
*/
|
|
36074
37064
|
peer: tl.TypeInputPeer;
|
|
37065
|
+
/**
|
|
37066
|
+
* Mark all stories up to and including this ID as read
|
|
37067
|
+
*/
|
|
36075
37068
|
maxId: number;
|
|
36076
37069
|
}
|
|
36077
37070
|
/**
|
|
37071
|
+
* Increment the view counter of one or more stories.
|
|
37072
|
+
*
|
|
36078
37073
|
* RPC method returns boolean
|
|
36079
37074
|
*/
|
|
36080
37075
|
interface RawIncrementStoryViewsRequest {
|
|
36081
37076
|
_: 'stories.incrementStoryViews';
|
|
37077
|
+
/**
|
|
37078
|
+
* Peer where the stories were posted.
|
|
37079
|
+
*/
|
|
36082
37080
|
peer: tl.TypeInputPeer;
|
|
37081
|
+
/**
|
|
37082
|
+
* IDs of the stories (maximum 200 at a time).
|
|
37083
|
+
*/
|
|
36083
37084
|
id: number[];
|
|
36084
37085
|
}
|
|
36085
37086
|
/**
|
|
37087
|
+
* Obtain the list of users that have viewed a specific
|
|
37088
|
+
* <a href="https://corefork.telegram.org/api/stories">story we
|
|
37089
|
+
* posted</a>
|
|
37090
|
+
*
|
|
36086
37091
|
* RPC method returns {@link tl.stories.TypeStoryViewsList}
|
|
36087
37092
|
*/
|
|
36088
37093
|
interface RawGetStoryViewsListRequest {
|
|
36089
37094
|
_: 'stories.getStoryViewsList';
|
|
37095
|
+
/**
|
|
37096
|
+
* Whether to only fetch view reaction/views made by our
|
|
37097
|
+
* <a href="https://corefork.telegram.org/api/contacts">contacts</a>
|
|
37098
|
+
*/
|
|
36090
37099
|
justContacts?: boolean;
|
|
36091
37100
|
reactionsFirst?: boolean;
|
|
37101
|
+
/**
|
|
37102
|
+
* Peer where the story was posted
|
|
37103
|
+
*/
|
|
36092
37104
|
peer: tl.TypeInputPeer;
|
|
37105
|
+
/**
|
|
37106
|
+
* Search for specific peers
|
|
37107
|
+
*/
|
|
36093
37108
|
q?: string;
|
|
37109
|
+
/**
|
|
37110
|
+
* Story ID
|
|
37111
|
+
*/
|
|
36094
37112
|
id: number;
|
|
37113
|
+
/**
|
|
37114
|
+
* Offset for pagination, obtained from
|
|
37115
|
+
* {@link stories.RawStoryViewsList}.<code>next_offset</code>
|
|
37116
|
+
*/
|
|
36095
37117
|
offset: string;
|
|
36096
37118
|
/**
|
|
36097
37119
|
* Maximum number of results to return,
|
|
@@ -36101,57 +37123,142 @@ export class RpcError extends Error {
|
|
|
36101
37123
|
limit: number;
|
|
36102
37124
|
}
|
|
36103
37125
|
/**
|
|
37126
|
+
* Obtain info about the view count, forward count, reactions
|
|
37127
|
+
* and recent viewers of one or more
|
|
37128
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>.
|
|
37129
|
+
*
|
|
36104
37130
|
* RPC method returns {@link tl.stories.TypeStoryViews}
|
|
36105
37131
|
*/
|
|
36106
37132
|
interface RawGetStoriesViewsRequest {
|
|
36107
37133
|
_: 'stories.getStoriesViews';
|
|
37134
|
+
/**
|
|
37135
|
+
* Peer whose stories should be fetched
|
|
37136
|
+
*/
|
|
36108
37137
|
peer: tl.TypeInputPeer;
|
|
37138
|
+
/**
|
|
37139
|
+
* Story IDs
|
|
37140
|
+
*/
|
|
36109
37141
|
id: number[];
|
|
36110
37142
|
}
|
|
36111
37143
|
/**
|
|
37144
|
+
* Generate a
|
|
37145
|
+
* <a href="https://corefork.telegram.org/api/links#story-links">story
|
|
37146
|
+
* deep link</a> for a specific story
|
|
37147
|
+
*
|
|
36112
37148
|
* RPC method returns {@link tl.TypeExportedStoryLink}
|
|
36113
37149
|
*/
|
|
36114
37150
|
interface RawExportStoryLinkRequest {
|
|
36115
37151
|
_: 'stories.exportStoryLink';
|
|
37152
|
+
/**
|
|
37153
|
+
* Peer where the story was posted
|
|
37154
|
+
*/
|
|
36116
37155
|
peer: tl.TypeInputPeer;
|
|
37156
|
+
/**
|
|
37157
|
+
* Story ID
|
|
37158
|
+
*/
|
|
36117
37159
|
id: number;
|
|
36118
37160
|
}
|
|
36119
37161
|
/**
|
|
37162
|
+
* Report a story.
|
|
37163
|
+
*
|
|
36120
37164
|
* RPC method returns boolean
|
|
36121
37165
|
*/
|
|
36122
37166
|
interface RawReportRequest {
|
|
36123
37167
|
_: 'stories.report';
|
|
37168
|
+
/**
|
|
37169
|
+
* The peer that uploaded the story.
|
|
37170
|
+
*/
|
|
36124
37171
|
peer: tl.TypeInputPeer;
|
|
37172
|
+
/**
|
|
37173
|
+
* IDs of the stories to report.
|
|
37174
|
+
*/
|
|
36125
37175
|
id: number[];
|
|
37176
|
+
/**
|
|
37177
|
+
* Why are these storeis being reported.
|
|
37178
|
+
*/
|
|
36126
37179
|
reason: tl.TypeReportReason;
|
|
37180
|
+
/**
|
|
37181
|
+
* Comment for report moderation
|
|
37182
|
+
*/
|
|
36127
37183
|
message: string;
|
|
36128
37184
|
}
|
|
36129
37185
|
/**
|
|
37186
|
+
* Activates
|
|
37187
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">stories
|
|
37188
|
+
* stealth mode</a>, see
|
|
37189
|
+
* <a href="https://corefork.telegram.org/api/stories#stealth-mode">here
|
|
37190
|
+
* »</a> for more info.
|
|
37191
|
+
*
|
|
37192
|
+
* Will return an {@link RawUpdateStoriesStealthMode}.
|
|
37193
|
+
*
|
|
36130
37194
|
* RPC method returns {@link tl.TypeUpdates}
|
|
36131
37195
|
*/
|
|
36132
37196
|
interface RawActivateStealthModeRequest {
|
|
36133
37197
|
_: 'stories.activateStealthMode';
|
|
37198
|
+
/**
|
|
37199
|
+
* Whether to erase views from any stories opened in the past
|
|
37200
|
+
* <a href="https://corefork.telegram.org/api/config#stories-stealth-past-period"><code>stories_stealth_past_period</code>
|
|
37201
|
+
* seconds »</a>, as specified by the
|
|
37202
|
+
* <a href="https://corefork.telegram.org/api/config#client-configuration">client
|
|
37203
|
+
* configuration</a>.
|
|
37204
|
+
*/
|
|
36134
37205
|
past?: boolean;
|
|
37206
|
+
/**
|
|
37207
|
+
* Whether to hide future story views for the next
|
|
37208
|
+
* <a href="https://corefork.telegram.org/api/config#stories-stealth-future-period"><code>stories_stealth_future_period</code>
|
|
37209
|
+
* seconds »</a>, as specified by the
|
|
37210
|
+
* <a href="https://corefork.telegram.org/api/config#client-configuration">client
|
|
37211
|
+
* configuration</a>.
|
|
37212
|
+
*/
|
|
36135
37213
|
future?: boolean;
|
|
36136
37214
|
}
|
|
36137
37215
|
/**
|
|
37216
|
+
* React to a story.
|
|
37217
|
+
*
|
|
36138
37218
|
* RPC method returns {@link tl.TypeUpdates}
|
|
36139
37219
|
*/
|
|
36140
37220
|
interface RawSendReactionRequest {
|
|
36141
37221
|
_: 'stories.sendReaction';
|
|
37222
|
+
/**
|
|
37223
|
+
* Whether to add this reaction to the
|
|
37224
|
+
* <a href="https://corefork.telegram.org/api/reactions#recent-reactions">recent
|
|
37225
|
+
* reactions list »</a>.
|
|
37226
|
+
*/
|
|
36142
37227
|
addToRecent?: boolean;
|
|
37228
|
+
/**
|
|
37229
|
+
* The peer that sent the story
|
|
37230
|
+
*/
|
|
36143
37231
|
peer: tl.TypeInputPeer;
|
|
37232
|
+
/**
|
|
37233
|
+
* ID of the story to react to
|
|
37234
|
+
*/
|
|
36144
37235
|
storyId: number;
|
|
37236
|
+
/**
|
|
37237
|
+
* Reaction
|
|
37238
|
+
*/
|
|
36145
37239
|
reaction: tl.TypeReaction;
|
|
36146
37240
|
}
|
|
36147
37241
|
/**
|
|
37242
|
+
* Fetch the full active
|
|
37243
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">story
|
|
37244
|
+
* list</a> of a specific peer.
|
|
37245
|
+
*
|
|
36148
37246
|
* RPC method returns {@link tl.stories.TypePeerStories}
|
|
36149
37247
|
*/
|
|
36150
37248
|
interface RawGetPeerStoriesRequest {
|
|
36151
37249
|
_: 'stories.getPeerStories';
|
|
37250
|
+
/**
|
|
37251
|
+
* Peer whose stories should be fetched
|
|
37252
|
+
*/
|
|
36152
37253
|
peer: tl.TypeInputPeer;
|
|
36153
37254
|
}
|
|
36154
37255
|
/**
|
|
37256
|
+
* Obtain the latest read story ID for all peers when first
|
|
37257
|
+
* logging in, returned as a list of
|
|
37258
|
+
* {@link RawUpdateReadStories} updates, see
|
|
37259
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">here
|
|
37260
|
+
* »</a> for more info.
|
|
37261
|
+
*
|
|
36155
37262
|
* RPC method returns {@link tl.TypeUpdates}
|
|
36156
37263
|
*/
|
|
36157
37264
|
interface RawGetAllReadPeerStoriesRequest {
|
|
@@ -36165,32 +37272,70 @@ export class RpcError extends Error {
|
|
|
36165
37272
|
id: tl.TypeInputPeer[];
|
|
36166
37273
|
}
|
|
36167
37274
|
/**
|
|
37275
|
+
* Obtain a list of channels where the user can post
|
|
37276
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
37277
|
+
*
|
|
36168
37278
|
* RPC method returns {@link tl.messages.TypeChats}
|
|
36169
37279
|
*/
|
|
36170
37280
|
interface RawGetChatsToSendRequest {
|
|
36171
37281
|
_: 'stories.getChatsToSend';
|
|
36172
37282
|
}
|
|
36173
37283
|
/**
|
|
37284
|
+
* Hide the active stories of a user, preventing them from
|
|
37285
|
+
* being displayed on the action bar on the homescreen, see
|
|
37286
|
+
* <a href="https://corefork.telegram.org/api/stories#hiding-stories-of-other-users">here
|
|
37287
|
+
* »</a> for more info.
|
|
37288
|
+
*
|
|
36174
37289
|
* RPC method returns boolean
|
|
36175
37290
|
*/
|
|
36176
37291
|
interface RawTogglePeerStoriesHiddenRequest {
|
|
36177
37292
|
_: 'stories.togglePeerStoriesHidden';
|
|
37293
|
+
/**
|
|
37294
|
+
* Peer whose stories should be (un)hidden.
|
|
37295
|
+
*/
|
|
36178
37296
|
peer: tl.TypeInputPeer;
|
|
37297
|
+
/**
|
|
37298
|
+
* Whether to hide or unhide stories.
|
|
37299
|
+
*/
|
|
36179
37300
|
hidden: boolean;
|
|
36180
37301
|
}
|
|
36181
37302
|
/**
|
|
37303
|
+
* Get the current
|
|
37304
|
+
* <a href="https://corefork.telegram.org/api/boost">boost
|
|
37305
|
+
* status</a> of a channel, see
|
|
37306
|
+
* <a href="https://corefork.telegram.org/api/boost">here »</a>
|
|
37307
|
+
* for more info on boosts.
|
|
37308
|
+
*
|
|
36182
37309
|
* RPC method returns {@link tl.stories.TypeBoostsStatus}
|
|
36183
37310
|
*/
|
|
36184
37311
|
interface RawGetBoostsStatusRequest {
|
|
36185
37312
|
_: 'stories.getBoostsStatus';
|
|
37313
|
+
/**
|
|
37314
|
+
* The channel
|
|
37315
|
+
*/
|
|
36186
37316
|
peer: tl.TypeInputPeer;
|
|
36187
37317
|
}
|
|
36188
37318
|
/**
|
|
37319
|
+
* Obtain info about the users currently
|
|
37320
|
+
* <a href="https://corefork.telegram.org/api/boost">boosting</a>
|
|
37321
|
+
* a channel, see
|
|
37322
|
+
* <a href="https://corefork.telegram.org/api/boost">here »</a>
|
|
37323
|
+
* for more info about boosts.
|
|
37324
|
+
*
|
|
36189
37325
|
* RPC method returns {@link tl.stories.TypeBoostersList}
|
|
36190
37326
|
*/
|
|
36191
37327
|
interface RawGetBoostersListRequest {
|
|
36192
37328
|
_: 'stories.getBoostersList';
|
|
37329
|
+
/**
|
|
37330
|
+
* The channel.
|
|
37331
|
+
*/
|
|
36193
37332
|
peer: tl.TypeInputPeer;
|
|
37333
|
+
/**
|
|
37334
|
+
* Next offset for
|
|
37335
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>,
|
|
37336
|
+
* obtained from the <code>next_offset</code> field of
|
|
37337
|
+
* {@link stories.RawBoostersList}.
|
|
37338
|
+
*/
|
|
36194
37339
|
offset: string;
|
|
36195
37340
|
/**
|
|
36196
37341
|
* Maximum number of results to return,
|
|
@@ -36200,18 +37345,35 @@ export class RpcError extends Error {
|
|
|
36200
37345
|
limit: number;
|
|
36201
37346
|
}
|
|
36202
37347
|
/**
|
|
37348
|
+
* Check whether a channel can be
|
|
37349
|
+
* <a href="https://corefork.telegram.org/api/boost">boosted,
|
|
37350
|
+
* see here for more info »</a>.
|
|
37351
|
+
*
|
|
36203
37352
|
* RPC method returns
|
|
36204
37353
|
* {@link tl.stories.TypeCanApplyBoostResult}
|
|
36205
37354
|
*/
|
|
36206
37355
|
interface RawCanApplyBoostRequest {
|
|
36207
37356
|
_: 'stories.canApplyBoost';
|
|
37357
|
+
/**
|
|
37358
|
+
* The channel to boost.
|
|
37359
|
+
*/
|
|
36208
37360
|
peer: tl.TypeInputPeer;
|
|
36209
37361
|
}
|
|
36210
37362
|
/**
|
|
37363
|
+
* <a href="https://corefork.telegram.org/api/boost">Boost
|
|
37364
|
+
* »</a> a
|
|
37365
|
+
* <a href="https://corefork.telegram.org/api/channel">channel</a>,
|
|
37366
|
+
* leveling it up and granting it permission to post
|
|
37367
|
+
* <a href="https://corefork.telegram.org/api/stories">stories
|
|
37368
|
+
* »</a>.
|
|
37369
|
+
*
|
|
36211
37370
|
* RPC method returns boolean
|
|
36212
37371
|
*/
|
|
36213
37372
|
interface RawApplyBoostRequest {
|
|
36214
37373
|
_: 'stories.applyBoost';
|
|
37374
|
+
/**
|
|
37375
|
+
* The channel to boost.
|
|
37376
|
+
*/
|
|
36215
37377
|
peer: tl.TypeInputPeer;
|
|
36216
37378
|
}
|
|
36217
37379
|
interface RpcCallReturn {
|
|
@@ -36243,20 +37405,55 @@ export class RpcError extends Error {
|
|
|
36243
37405
|
'stories.canApplyBoost': tl.stories.TypeCanApplyBoostResult
|
|
36244
37406
|
'stories.applyBoost': boolean
|
|
36245
37407
|
}
|
|
37408
|
+
/**
|
|
37409
|
+
* Full list of active (or active and hidden)
|
|
37410
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">stories</a>.
|
|
37411
|
+
*/
|
|
36246
37412
|
type TypeAllStories = tl.stories.RawAllStoriesNotModified | tl.stories.RawAllStories
|
|
36247
37413
|
function isAnyAllStories(o: object): o is TypeAllStories
|
|
37414
|
+
/**
|
|
37415
|
+
* List of
|
|
37416
|
+
* <a href="https://corefork.telegram.org/api/stories#pinnedarchived-stories">stories</a>
|
|
37417
|
+
*/
|
|
36248
37418
|
type TypeStories = tl.stories.RawStories
|
|
36249
37419
|
function isAnyStories(o: object): o is TypeStories
|
|
37420
|
+
/**
|
|
37421
|
+
* Reaction and view counters for a
|
|
37422
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
37423
|
+
*/
|
|
36250
37424
|
type TypeStoryViewsList = tl.stories.RawStoryViewsList
|
|
36251
37425
|
function isAnyStoryViewsList(o: object): o is TypeStoryViewsList
|
|
37426
|
+
/**
|
|
37427
|
+
* Reaction and view counters for a list of
|
|
37428
|
+
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
37429
|
+
*/
|
|
36252
37430
|
type TypeStoryViews = tl.stories.RawStoryViews
|
|
36253
37431
|
function isAnyStoryViews(o: object): o is TypeStoryViews
|
|
37432
|
+
/**
|
|
37433
|
+
* <a href="https://corefork.telegram.org/api/stories#watching-stories">Active
|
|
37434
|
+
* story list</a> of a specific peer.
|
|
37435
|
+
*/
|
|
36254
37436
|
type TypePeerStories = tl.stories.RawPeerStories
|
|
36255
37437
|
function isAnyPeerStories(o: object): o is TypePeerStories
|
|
37438
|
+
/**
|
|
37439
|
+
* The current
|
|
37440
|
+
* <a href="https://corefork.telegram.org/api/boost">boost
|
|
37441
|
+
* status »</a> of a channel.
|
|
37442
|
+
*/
|
|
36256
37443
|
type TypeBoostsStatus = tl.stories.RawBoostsStatus
|
|
36257
37444
|
function isAnyBoostsStatus(o: object): o is TypeBoostsStatus
|
|
37445
|
+
/**
|
|
37446
|
+
* Whether the specified channel can be
|
|
37447
|
+
* <a href="https://corefork.telegram.org/api/boost">boosted,
|
|
37448
|
+
* see here for more info »</a>.
|
|
37449
|
+
*/
|
|
36258
37450
|
type TypeCanApplyBoostResult = tl.stories.RawCanApplyBoostOk | tl.stories.RawCanApplyBoostReplace
|
|
36259
37451
|
function isAnyCanApplyBoostResult(o: object): o is TypeCanApplyBoostResult
|
|
37452
|
+
/**
|
|
37453
|
+
* Info about the users currently
|
|
37454
|
+
* <a href="https://corefork.telegram.org/api/boost">boosting</a>
|
|
37455
|
+
* the channel.
|
|
37456
|
+
*/
|
|
36260
37457
|
type TypeBoostersList = tl.stories.RawBoostersList
|
|
36261
37458
|
function isAnyBoostersList(o: object): o is TypeBoostersList
|
|
36262
37459
|
}
|
|
@@ -36319,11 +37516,20 @@ export class RpcError extends Error {
|
|
|
36319
37516
|
_: 'premium.getBoostsStatus';
|
|
36320
37517
|
peer: tl.TypeInputPeer;
|
|
36321
37518
|
}
|
|
37519
|
+
/**
|
|
37520
|
+
* RPC method returns {@link tl.premium.TypeBoostsList}
|
|
37521
|
+
*/
|
|
37522
|
+
interface RawGetUserBoostsRequest {
|
|
37523
|
+
_: 'premium.getUserBoosts';
|
|
37524
|
+
peer: tl.TypeInputPeer;
|
|
37525
|
+
userId: tl.TypeInputUser;
|
|
37526
|
+
}
|
|
36322
37527
|
interface RpcCallReturn {
|
|
36323
37528
|
'premium.getBoostsList': tl.premium.TypeBoostsList
|
|
36324
37529
|
'premium.getMyBoosts': tl.premium.TypeMyBoosts
|
|
36325
37530
|
'premium.applyBoost': tl.premium.TypeMyBoosts
|
|
36326
37531
|
'premium.getBoostsStatus': tl.premium.TypeBoostsStatus
|
|
37532
|
+
'premium.getUserBoosts': tl.premium.TypeBoostsList
|
|
36327
37533
|
}
|
|
36328
37534
|
type TypeBoostsList = tl.premium.RawBoostsList
|
|
36329
37535
|
function isAnyBoostsList(o: object): o is TypeBoostsList
|
|
@@ -36599,6 +37805,8 @@ export class RpcError extends Error {
|
|
|
36599
37805
|
| tl.account.RawSaveAutoSaveSettingsRequest
|
|
36600
37806
|
| tl.account.RawDeleteAutoSaveExceptionsRequest
|
|
36601
37807
|
| tl.account.RawInvalidateSignInCodesRequest
|
|
37808
|
+
| tl.account.RawUpdateColorRequest
|
|
37809
|
+
| tl.account.RawGetDefaultBackgroundEmojisRequest
|
|
36602
37810
|
| tl.users.RawGetUsersRequest
|
|
36603
37811
|
| tl.users.RawGetFullUserRequest
|
|
36604
37812
|
| tl.users.RawSetSecureValueErrorsRequest
|
|
@@ -36909,6 +38117,7 @@ export class RpcError extends Error {
|
|
|
36909
38117
|
| tl.channels.RawReportAntiSpamFalsePositiveRequest
|
|
36910
38118
|
| tl.channels.RawToggleParticipantsHiddenRequest
|
|
36911
38119
|
| tl.channels.RawClickSponsoredMessageRequest
|
|
38120
|
+
| tl.channels.RawUpdateColorRequest
|
|
36912
38121
|
| tl.bots.RawSendCustomRequestRequest
|
|
36913
38122
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
36914
38123
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -36936,6 +38145,11 @@ export class RpcError extends Error {
|
|
|
36936
38145
|
| tl.payments.RawAssignAppStoreTransactionRequest
|
|
36937
38146
|
| tl.payments.RawAssignPlayMarketTransactionRequest
|
|
36938
38147
|
| tl.payments.RawCanPurchasePremiumRequest
|
|
38148
|
+
| tl.payments.RawGetPremiumGiftCodeOptionsRequest
|
|
38149
|
+
| tl.payments.RawCheckGiftCodeRequest
|
|
38150
|
+
| tl.payments.RawApplyGiftCodeRequest
|
|
38151
|
+
| tl.payments.RawGetGiveawayInfoRequest
|
|
38152
|
+
| tl.payments.RawLaunchPrepaidGiveawayRequest
|
|
36939
38153
|
| tl.stickers.RawCreateStickerSetRequest
|
|
36940
38154
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
36941
38155
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -37022,22 +38236,15 @@ export class RpcError extends Error {
|
|
|
37022
38236
|
| tl.stories.RawGetPeerMaxIDsRequest
|
|
37023
38237
|
| tl.stories.RawGetChatsToSendRequest
|
|
37024
38238
|
| 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
38239
|
| tl.premium.RawGetBoostsListRequest
|
|
37038
38240
|
| tl.premium.RawGetMyBoostsRequest
|
|
37039
38241
|
| tl.premium.RawApplyBoostRequest
|
|
37040
38242
|
| tl.premium.RawGetBoostsStatusRequest
|
|
38243
|
+
| tl.premium.RawGetUserBoostsRequest
|
|
38244
|
+
| tl.stories.RawGetBoostsStatusRequest
|
|
38245
|
+
| tl.stories.RawGetBoostersListRequest
|
|
38246
|
+
| tl.stories.RawCanApplyBoostRequest
|
|
38247
|
+
| tl.stories.RawApplyBoostRequest
|
|
37041
38248
|
|
|
37042
38249
|
type TlObject =
|
|
37043
38250
|
| tl.RawError
|
|
@@ -37077,6 +38284,7 @@ export class RpcError extends Error {
|
|
|
37077
38284
|
| tl.RawInputMediaPoll
|
|
37078
38285
|
| tl.RawInputMediaDice
|
|
37079
38286
|
| tl.RawInputMediaStory
|
|
38287
|
+
| tl.RawInputMediaWebPage
|
|
37080
38288
|
| tl.RawInputChatPhotoEmpty
|
|
37081
38289
|
| tl.RawInputChatUploadedPhoto
|
|
37082
38290
|
| tl.RawInputChatPhoto
|
|
@@ -37148,6 +38356,7 @@ export class RpcError extends Error {
|
|
|
37148
38356
|
| tl.RawMessageMediaPoll
|
|
37149
38357
|
| tl.RawMessageMediaDice
|
|
37150
38358
|
| tl.RawMessageMediaStory
|
|
38359
|
+
| tl.RawMessageMediaGiveaway
|
|
37151
38360
|
| tl.RawMessageActionEmpty
|
|
37152
38361
|
| tl.RawMessageActionChatCreate
|
|
37153
38362
|
| tl.RawMessageActionChatEditTitle
|
|
@@ -37187,6 +38396,8 @@ export class RpcError extends Error {
|
|
|
37187
38396
|
| tl.RawMessageActionRequestedPeer
|
|
37188
38397
|
| tl.RawMessageActionSetChatWallPaper
|
|
37189
38398
|
| tl.RawMessageActionSetSameChatWallPaper
|
|
38399
|
+
| tl.RawMessageActionGiftCode
|
|
38400
|
+
| tl.RawMessageActionGiveawayLaunch
|
|
37190
38401
|
| tl.RawDialog
|
|
37191
38402
|
| tl.RawDialogFolder
|
|
37192
38403
|
| tl.RawPhotoEmpty
|
|
@@ -37378,6 +38589,7 @@ export class RpcError extends Error {
|
|
|
37378
38589
|
| tl.RawUpdateStoryID
|
|
37379
38590
|
| tl.RawUpdateStoriesStealthMode
|
|
37380
38591
|
| tl.RawUpdateSentStoryReaction
|
|
38592
|
+
| tl.RawUpdateBotChatBoost
|
|
37381
38593
|
| tl.updates.RawState
|
|
37382
38594
|
| tl.updates.RawDifferenceEmpty
|
|
37383
38595
|
| tl.updates.RawDifference
|
|
@@ -37571,10 +38783,10 @@ export class RpcError extends Error {
|
|
|
37571
38783
|
| tl.RawMessageEntityCashtag
|
|
37572
38784
|
| tl.RawMessageEntityUnderline
|
|
37573
38785
|
| tl.RawMessageEntityStrike
|
|
37574
|
-
| tl.RawMessageEntityBlockquote
|
|
37575
38786
|
| tl.RawMessageEntityBankCard
|
|
37576
38787
|
| tl.RawMessageEntitySpoiler
|
|
37577
38788
|
| tl.RawMessageEntityCustomEmoji
|
|
38789
|
+
| tl.RawMessageEntityBlockquote
|
|
37578
38790
|
| tl.RawInputChannelEmpty
|
|
37579
38791
|
| tl.RawInputChannel
|
|
37580
38792
|
| tl.RawInputChannelFromMessage
|
|
@@ -37612,6 +38824,7 @@ export class RpcError extends Error {
|
|
|
37612
38824
|
| tl.RawInputBotInlineMessageMediaContact
|
|
37613
38825
|
| tl.RawInputBotInlineMessageGame
|
|
37614
38826
|
| tl.RawInputBotInlineMessageMediaInvoice
|
|
38827
|
+
| tl.RawInputBotInlineMessageMediaWebPage
|
|
37615
38828
|
| tl.RawInputBotInlineResult
|
|
37616
38829
|
| tl.RawInputBotInlineResultPhoto
|
|
37617
38830
|
| tl.RawInputBotInlineResultDocument
|
|
@@ -37622,6 +38835,7 @@ export class RpcError extends Error {
|
|
|
37622
38835
|
| tl.RawBotInlineMessageMediaVenue
|
|
37623
38836
|
| tl.RawBotInlineMessageMediaContact
|
|
37624
38837
|
| tl.RawBotInlineMessageMediaInvoice
|
|
38838
|
+
| tl.RawBotInlineMessageMediaWebPage
|
|
37625
38839
|
| tl.RawBotInlineResult
|
|
37626
38840
|
| tl.RawBotInlineMediaResult
|
|
37627
38841
|
| tl.messages.RawBotResults
|
|
@@ -37820,6 +39034,8 @@ export class RpcError extends Error {
|
|
|
37820
39034
|
| tl.RawChannelAdminLogEventActionDeleteTopic
|
|
37821
39035
|
| tl.RawChannelAdminLogEventActionPinTopic
|
|
37822
39036
|
| tl.RawChannelAdminLogEventActionToggleAntiSpam
|
|
39037
|
+
| tl.RawChannelAdminLogEventActionChangeColor
|
|
39038
|
+
| tl.RawChannelAdminLogEventActionChangeBackgroundEmoji
|
|
37823
39039
|
| tl.RawChannelAdminLogEvent
|
|
37824
39040
|
| tl.channels.RawAdminLogResults
|
|
37825
39041
|
| tl.RawChannelAdminLogEventsFilter
|
|
@@ -38096,11 +39312,14 @@ export class RpcError extends Error {
|
|
|
38096
39312
|
| tl.RawAttachMenuPeerTypeBroadcast
|
|
38097
39313
|
| tl.RawInputInvoiceMessage
|
|
38098
39314
|
| tl.RawInputInvoiceSlug
|
|
39315
|
+
| tl.RawInputInvoicePremiumGiftCode
|
|
38099
39316
|
| tl.payments.RawExportedInvoice
|
|
38100
39317
|
| tl.messages.RawTranscribedAudio
|
|
38101
39318
|
| tl.help.RawPremiumPromo
|
|
38102
39319
|
| tl.RawInputStorePaymentPremiumSubscription
|
|
38103
39320
|
| tl.RawInputStorePaymentGiftPremium
|
|
39321
|
+
| tl.RawInputStorePaymentPremiumGiftCode
|
|
39322
|
+
| tl.RawInputStorePaymentPremiumGiveaway
|
|
38104
39323
|
| tl.RawPremiumGiftOption
|
|
38105
39324
|
| tl.RawPaymentFormMethod
|
|
38106
39325
|
| tl.RawEmojiStatusEmpty
|
|
@@ -38191,23 +39410,7 @@ export class RpcError extends Error {
|
|
|
38191
39410
|
| tl.RawMediaAreaSuggestedReaction
|
|
38192
39411
|
| tl.RawPeerStories
|
|
38193
39412
|
| tl.stories.RawPeerStories
|
|
38194
|
-
| tl.stories.RawBoostsStatus
|
|
38195
|
-
| tl.stories.RawCanApplyBoostOk
|
|
38196
|
-
| tl.stories.RawCanApplyBoostReplace
|
|
38197
|
-
| tl.RawBooster
|
|
38198
|
-
| tl.stories.RawBoostersList
|
|
38199
39413
|
| 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
39414
|
| tl.RawPremiumGiftCodeOption
|
|
38212
39415
|
| tl.payments.RawCheckedGiftCode
|
|
38213
39416
|
| tl.payments.RawGiveawayInfo
|
|
@@ -38221,6 +39424,11 @@ export class RpcError extends Error {
|
|
|
38221
39424
|
| tl.RawMessageUserVote
|
|
38222
39425
|
| tl.RawMessageUserVoteInputOption
|
|
38223
39426
|
| tl.RawMessageUserVoteMultiple
|
|
39427
|
+
| tl.stories.RawBoostsStatus
|
|
39428
|
+
| tl.stories.RawCanApplyBoostOk
|
|
39429
|
+
| tl.stories.RawCanApplyBoostReplace
|
|
39430
|
+
| tl.RawBooster
|
|
39431
|
+
| tl.stories.RawBoostersList
|
|
38224
39432
|
| tl.RawDummyUpdate
|
|
38225
39433
|
| tl.test.RawUseErrorRequest
|
|
38226
39434
|
| tl.test.RawUseConfigSimpleRequest
|
|
@@ -38342,6 +39550,8 @@ export class RpcError extends Error {
|
|
|
38342
39550
|
| tl.account.RawSaveAutoSaveSettingsRequest
|
|
38343
39551
|
| tl.account.RawDeleteAutoSaveExceptionsRequest
|
|
38344
39552
|
| tl.account.RawInvalidateSignInCodesRequest
|
|
39553
|
+
| tl.account.RawUpdateColorRequest
|
|
39554
|
+
| tl.account.RawGetDefaultBackgroundEmojisRequest
|
|
38345
39555
|
| tl.users.RawGetUsersRequest
|
|
38346
39556
|
| tl.users.RawGetFullUserRequest
|
|
38347
39557
|
| tl.users.RawSetSecureValueErrorsRequest
|
|
@@ -38652,6 +39862,7 @@ export class RpcError extends Error {
|
|
|
38652
39862
|
| tl.channels.RawReportAntiSpamFalsePositiveRequest
|
|
38653
39863
|
| tl.channels.RawToggleParticipantsHiddenRequest
|
|
38654
39864
|
| tl.channels.RawClickSponsoredMessageRequest
|
|
39865
|
+
| tl.channels.RawUpdateColorRequest
|
|
38655
39866
|
| tl.bots.RawSendCustomRequestRequest
|
|
38656
39867
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
38657
39868
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -38679,6 +39890,11 @@ export class RpcError extends Error {
|
|
|
38679
39890
|
| tl.payments.RawAssignAppStoreTransactionRequest
|
|
38680
39891
|
| tl.payments.RawAssignPlayMarketTransactionRequest
|
|
38681
39892
|
| tl.payments.RawCanPurchasePremiumRequest
|
|
39893
|
+
| tl.payments.RawGetPremiumGiftCodeOptionsRequest
|
|
39894
|
+
| tl.payments.RawCheckGiftCodeRequest
|
|
39895
|
+
| tl.payments.RawApplyGiftCodeRequest
|
|
39896
|
+
| tl.payments.RawGetGiveawayInfoRequest
|
|
39897
|
+
| tl.payments.RawLaunchPrepaidGiveawayRequest
|
|
38682
39898
|
| tl.stickers.RawCreateStickerSetRequest
|
|
38683
39899
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
38684
39900
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -38765,22 +39981,15 @@ export class RpcError extends Error {
|
|
|
38765
39981
|
| tl.stories.RawGetPeerMaxIDsRequest
|
|
38766
39982
|
| tl.stories.RawGetChatsToSendRequest
|
|
38767
39983
|
| 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
39984
|
| tl.premium.RawGetBoostsListRequest
|
|
38781
39985
|
| tl.premium.RawGetMyBoostsRequest
|
|
38782
39986
|
| tl.premium.RawApplyBoostRequest
|
|
38783
39987
|
| tl.premium.RawGetBoostsStatusRequest
|
|
39988
|
+
| tl.premium.RawGetUserBoostsRequest
|
|
39989
|
+
| tl.stories.RawGetBoostsStatusRequest
|
|
39990
|
+
| tl.stories.RawGetBoostersListRequest
|
|
39991
|
+
| tl.stories.RawCanApplyBoostRequest
|
|
39992
|
+
| tl.stories.RawApplyBoostRequest
|
|
38784
39993
|
}
|
|
38785
39994
|
|
|
38786
39995
|
|