@mtcute/tl 211.0.0 → 216.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api-schema.json +1 -1
- package/binary/reader.js +63 -41
- package/binary/writer.js +124 -74
- package/compat/index.d.ts +472 -15
- package/compat/reader.js +11 -0
- package/index.d.ts +577 -401
- package/index.js +11 -10
- package/package.json +1 -1
package/compat/index.d.ts
CHANGED
|
@@ -16,17 +16,23 @@ export declare namespace tlCompat {
|
|
|
16
16
|
type Mutable<T> = {
|
|
17
17
|
-readonly [P in keyof T]: T[P]
|
|
18
18
|
}
|
|
19
|
-
type AnyToNever<T> = any extends T ? never : T;
|
|
20
19
|
/**
|
|
21
20
|
* Compared to the current schema, changes from this entry:
|
|
22
21
|
*
|
|
23
22
|
* Added arguments:
|
|
24
23
|
* require_premium: flags.6?true
|
|
25
24
|
* resale_ton_only: flags.7?true
|
|
25
|
+
* theme_available: flags.9?true
|
|
26
|
+
* gift_id: long
|
|
26
27
|
* owner_address: flags.2?string
|
|
27
28
|
* gift_address: flags.3?string
|
|
28
29
|
* resell_amount: flags.4?Vector<StarsAmount>
|
|
29
30
|
* released_by: flags.5?Peer
|
|
31
|
+
* value_amount: flags.8?long
|
|
32
|
+
* value_currency: flags.8?string
|
|
33
|
+
* theme_peer: flags.10?Peer
|
|
34
|
+
* peer_color: flags.11?PeerColor
|
|
35
|
+
* host_id: flags.12?Peer
|
|
30
36
|
* Changed arguments:
|
|
31
37
|
* owner_id: flags.0?int53 => flags.0?Peer
|
|
32
38
|
*/
|
|
@@ -79,6 +85,7 @@ export declare namespace tlCompat {
|
|
|
79
85
|
* paid_messages_available: flags2.20?true
|
|
80
86
|
* stargifts_count: flags2.18?int
|
|
81
87
|
* send_paid_messages_stars: flags2.21?long
|
|
88
|
+
* main_tab: flags2.22?ProfileTab
|
|
82
89
|
*/
|
|
83
90
|
interface RawChannelFull_layer197 {
|
|
84
91
|
_: 'channelFull_layer197';
|
|
@@ -148,12 +155,15 @@ export declare namespace tlCompat {
|
|
|
148
155
|
* Compared to the current schema, changes from this entry:
|
|
149
156
|
*
|
|
150
157
|
* Added arguments:
|
|
158
|
+
* prepaid_upgrade: flags.11?true
|
|
159
|
+
* assigned: flags.13?true
|
|
151
160
|
* from_id: flags.6?Peer
|
|
152
161
|
* peer: flags.7?Peer
|
|
153
162
|
* saved_id: flags.7?long
|
|
154
163
|
* resale_amount: flags.8?StarsAmount
|
|
155
164
|
* can_transfer_at: flags.9?int
|
|
156
165
|
* can_resell_at: flags.10?int
|
|
166
|
+
* drop_original_details_stars: flags.12?long
|
|
157
167
|
*/
|
|
158
168
|
interface RawMessageActionStarGiftUnique_layer197 {
|
|
159
169
|
_: 'messageActionStarGiftUnique_layer197';
|
|
@@ -169,9 +179,13 @@ export declare namespace tlCompat {
|
|
|
169
179
|
* Compared to the current schema, changes from this entry:
|
|
170
180
|
*
|
|
171
181
|
* Added arguments:
|
|
182
|
+
* prepaid_upgrade: flags.13?true
|
|
183
|
+
* upgrade_separate: flags.16?true
|
|
172
184
|
* from_id: flags.11?Peer
|
|
173
185
|
* peer: flags.12?Peer
|
|
174
186
|
* saved_id: flags.12?long
|
|
187
|
+
* prepaid_upgrade_hash: flags.14?string
|
|
188
|
+
* gift_msg_id: flags.15?int
|
|
175
189
|
*/
|
|
176
190
|
interface RawMessageActionStarGift_layer197 {
|
|
177
191
|
_: 'messageActionStarGift_layer197';
|
|
@@ -193,9 +207,16 @@ export declare namespace tlCompat {
|
|
|
193
207
|
* Added arguments:
|
|
194
208
|
* require_premium: flags.6?true
|
|
195
209
|
* resale_ton_only: flags.7?true
|
|
210
|
+
* theme_available: flags.9?true
|
|
211
|
+
* gift_id: long
|
|
196
212
|
* gift_address: flags.3?string
|
|
197
213
|
* resell_amount: flags.4?Vector<StarsAmount>
|
|
198
214
|
* released_by: flags.5?Peer
|
|
215
|
+
* value_amount: flags.8?long
|
|
216
|
+
* value_currency: flags.8?string
|
|
217
|
+
* theme_peer: flags.10?Peer
|
|
218
|
+
* peer_color: flags.11?PeerColor
|
|
219
|
+
* host_id: flags.12?Peer
|
|
199
220
|
*/
|
|
200
221
|
interface RawStarGiftUnique_layer198 {
|
|
201
222
|
_: 'starGiftUnique_layer198';
|
|
@@ -215,12 +236,16 @@ export declare namespace tlCompat {
|
|
|
215
236
|
*
|
|
216
237
|
* Added arguments:
|
|
217
238
|
* display_gifts_button: flags2.16?true
|
|
239
|
+
* theme: flags.15?ChatTheme
|
|
218
240
|
* send_paid_messages_stars: flags2.14?long
|
|
219
241
|
* disallowed_gifts: flags2.15?DisallowedGiftsSettings
|
|
220
242
|
* stars_rating: flags2.17?StarsRating
|
|
221
243
|
* stars_my_pending_rating: flags2.18?StarsRating
|
|
222
244
|
* stars_my_pending_rating_date: flags2.18?int
|
|
223
|
-
*
|
|
245
|
+
* main_tab: flags2.20?ProfileTab
|
|
246
|
+
* saved_music: flags2.21?Document
|
|
247
|
+
* note: flags2.22?TextWithEntities
|
|
248
|
+
* Removed arguments: theme_emoticon, premium_gifts
|
|
224
249
|
*/
|
|
225
250
|
interface RawUserFull_layer199 {
|
|
226
251
|
_: 'userFull_layer199';
|
|
@@ -256,7 +281,7 @@ export declare namespace tlCompat {
|
|
|
256
281
|
privateForwardName?: string;
|
|
257
282
|
botGroupAdminRights?: tl.TypeChatAdminRights;
|
|
258
283
|
botBroadcastAdminRights?: tl.TypeChatAdminRights;
|
|
259
|
-
premiumGifts?:
|
|
284
|
+
premiumGifts?: tlCompat.TypePremiumGiftOption[];
|
|
260
285
|
wallpaper?: tl.TypeWallPaper;
|
|
261
286
|
stories?: tl.TypePeerStories;
|
|
262
287
|
businessWorkHours?: tl.TypeBusinessWorkHours;
|
|
@@ -271,11 +296,23 @@ export declare namespace tlCompat {
|
|
|
271
296
|
starrefProgram?: tl.TypeStarRefProgram;
|
|
272
297
|
botVerification?: tl.TypeBotVerification;
|
|
273
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Entry was removed from the schema
|
|
301
|
+
*/
|
|
302
|
+
interface RawPremiumGiftOption_layer199 {
|
|
303
|
+
_: 'premiumGiftOption_layer199';
|
|
304
|
+
months: number;
|
|
305
|
+
currency: string;
|
|
306
|
+
amount: Long;
|
|
307
|
+
botUrl: string;
|
|
308
|
+
storeProduct?: string;
|
|
309
|
+
}
|
|
274
310
|
/**
|
|
275
311
|
* Compared to the current schema, changes from this entry:
|
|
276
312
|
*
|
|
277
313
|
* Added arguments:
|
|
278
314
|
* send_paid_messages_stars: flags2.15?long
|
|
315
|
+
* bot_forum_view: flags2.16?true
|
|
279
316
|
*/
|
|
280
317
|
interface RawUser_layer199 {
|
|
281
318
|
_: 'user_layer199';
|
|
@@ -438,10 +475,15 @@ export declare namespace tlCompat {
|
|
|
438
475
|
*
|
|
439
476
|
* Added arguments:
|
|
440
477
|
* display_gifts_button: flags2.16?true
|
|
478
|
+
* theme: flags.15?ChatTheme
|
|
441
479
|
* disallowed_gifts: flags2.15?DisallowedGiftsSettings
|
|
442
480
|
* stars_rating: flags2.17?StarsRating
|
|
443
481
|
* stars_my_pending_rating: flags2.18?StarsRating
|
|
444
482
|
* stars_my_pending_rating_date: flags2.18?int
|
|
483
|
+
* main_tab: flags2.20?ProfileTab
|
|
484
|
+
* saved_music: flags2.21?Document
|
|
485
|
+
* note: flags2.22?TextWithEntities
|
|
486
|
+
* Removed arguments: theme_emoticon
|
|
445
487
|
*/
|
|
446
488
|
interface RawUserFull_layer200 {
|
|
447
489
|
_: 'userFull_layer200';
|
|
@@ -498,8 +540,15 @@ export declare namespace tlCompat {
|
|
|
498
540
|
* Added arguments:
|
|
499
541
|
* require_premium: flags.6?true
|
|
500
542
|
* resale_ton_only: flags.7?true
|
|
543
|
+
* theme_available: flags.9?true
|
|
544
|
+
* gift_id: long
|
|
501
545
|
* resell_amount: flags.4?Vector<StarsAmount>
|
|
502
546
|
* released_by: flags.5?Peer
|
|
547
|
+
* value_amount: flags.8?long
|
|
548
|
+
* value_currency: flags.8?string
|
|
549
|
+
* theme_peer: flags.10?Peer
|
|
550
|
+
* peer_color: flags.11?PeerColor
|
|
551
|
+
* host_id: flags.12?Peer
|
|
503
552
|
*/
|
|
504
553
|
interface RawStarGiftUnique_layer202 {
|
|
505
554
|
_: 'starGiftUnique_layer202';
|
|
@@ -527,6 +576,8 @@ export declare namespace tlCompat {
|
|
|
527
576
|
* released_by: flags.6?Peer
|
|
528
577
|
* per_user_total: flags.8?int
|
|
529
578
|
* per_user_remains: flags.8?int
|
|
579
|
+
* locked_until_date: flags.9?int
|
|
580
|
+
* peer_color_available: flags.10?true
|
|
530
581
|
*/
|
|
531
582
|
interface RawStarGift_layer202 {
|
|
532
583
|
_: 'starGift_layer202';
|
|
@@ -547,9 +598,12 @@ export declare namespace tlCompat {
|
|
|
547
598
|
* Compared to the current schema, changes from this entry:
|
|
548
599
|
*
|
|
549
600
|
* Added arguments:
|
|
601
|
+
* prepaid_upgrade: flags.11?true
|
|
602
|
+
* assigned: flags.13?true
|
|
550
603
|
* resale_amount: flags.8?StarsAmount
|
|
551
604
|
* can_transfer_at: flags.9?int
|
|
552
605
|
* can_resell_at: flags.10?int
|
|
606
|
+
* drop_original_details_stars: flags.12?long
|
|
553
607
|
*/
|
|
554
608
|
interface RawMessageActionStarGiftUnique_layer202 {
|
|
555
609
|
_: 'messageActionStarGiftUnique_layer202';
|
|
@@ -644,6 +698,7 @@ export declare namespace tlCompat {
|
|
|
644
698
|
*
|
|
645
699
|
* Added arguments:
|
|
646
700
|
* send_paid_messages_stars: flags2.21?long
|
|
701
|
+
* main_tab: flags2.22?ProfileTab
|
|
647
702
|
*/
|
|
648
703
|
interface RawChannelFull_layer204 {
|
|
649
704
|
_: 'channelFull_layer204';
|
|
@@ -794,8 +849,15 @@ export declare namespace tlCompat {
|
|
|
794
849
|
* Added arguments:
|
|
795
850
|
* require_premium: flags.6?true
|
|
796
851
|
* resale_ton_only: flags.7?true
|
|
852
|
+
* theme_available: flags.9?true
|
|
853
|
+
* gift_id: long
|
|
797
854
|
* resell_amount: flags.4?Vector<StarsAmount>
|
|
798
855
|
* released_by: flags.5?Peer
|
|
856
|
+
* value_amount: flags.8?long
|
|
857
|
+
* value_currency: flags.8?string
|
|
858
|
+
* theme_peer: flags.10?Peer
|
|
859
|
+
* peer_color: flags.11?PeerColor
|
|
860
|
+
* host_id: flags.12?Peer
|
|
799
861
|
* Removed arguments: resell_stars
|
|
800
862
|
*/
|
|
801
863
|
interface RawStarGiftUnique_layer206 {
|
|
@@ -822,6 +884,8 @@ export declare namespace tlCompat {
|
|
|
822
884
|
* released_by: flags.6?Peer
|
|
823
885
|
* per_user_total: flags.8?int
|
|
824
886
|
* per_user_remains: flags.8?int
|
|
887
|
+
* locked_until_date: flags.9?int
|
|
888
|
+
* peer_color_available: flags.10?true
|
|
825
889
|
*/
|
|
826
890
|
interface RawStarGift_layer206 {
|
|
827
891
|
_: 'starGift_layer206';
|
|
@@ -865,9 +929,14 @@ export declare namespace tlCompat {
|
|
|
865
929
|
* Compared to the current schema, changes from this entry:
|
|
866
930
|
*
|
|
867
931
|
* Added arguments:
|
|
932
|
+
* theme: flags.15?ChatTheme
|
|
868
933
|
* stars_rating: flags2.17?StarsRating
|
|
869
934
|
* stars_my_pending_rating: flags2.18?StarsRating
|
|
870
935
|
* stars_my_pending_rating_date: flags2.18?int
|
|
936
|
+
* main_tab: flags2.20?ProfileTab
|
|
937
|
+
* saved_music: flags2.21?Document
|
|
938
|
+
* note: flags2.22?TextWithEntities
|
|
939
|
+
* Removed arguments: theme_emoticon
|
|
871
940
|
*/
|
|
872
941
|
interface RawUserFull_layer209 {
|
|
873
942
|
_: 'userFull_layer209';
|
|
@@ -928,6 +997,8 @@ export declare namespace tlCompat {
|
|
|
928
997
|
* limited_per_user: flags.8?true
|
|
929
998
|
* per_user_total: flags.8?int
|
|
930
999
|
* per_user_remains: flags.8?int
|
|
1000
|
+
* locked_until_date: flags.9?int
|
|
1001
|
+
* peer_color_available: flags.10?true
|
|
931
1002
|
*/
|
|
932
1003
|
interface RawStarGift_layer209 {
|
|
933
1004
|
_: 'starGift_layer209';
|
|
@@ -952,8 +1023,13 @@ export declare namespace tlCompat {
|
|
|
952
1023
|
* Compared to the current schema, changes from this entry:
|
|
953
1024
|
*
|
|
954
1025
|
* Added arguments:
|
|
1026
|
+
* theme: flags.15?ChatTheme
|
|
955
1027
|
* stars_my_pending_rating: flags2.18?StarsRating
|
|
956
1028
|
* stars_my_pending_rating_date: flags2.18?int
|
|
1029
|
+
* main_tab: flags2.20?ProfileTab
|
|
1030
|
+
* saved_music: flags2.21?Document
|
|
1031
|
+
* note: flags2.22?TextWithEntities
|
|
1032
|
+
* Removed arguments: theme_emoticon
|
|
957
1033
|
*/
|
|
958
1034
|
interface RawUserFull_layer210 {
|
|
959
1035
|
_: 'userFull_layer210';
|
|
@@ -1041,7 +1117,10 @@ export declare namespace tlCompat {
|
|
|
1041
1117
|
* Compared to the current schema, changes from this entry:
|
|
1042
1118
|
*
|
|
1043
1119
|
* Added arguments:
|
|
1120
|
+
* prepaid_upgrade: flags.11?true
|
|
1121
|
+
* assigned: flags.13?true
|
|
1044
1122
|
* resale_amount: flags.8?StarsAmount
|
|
1123
|
+
* drop_original_details_stars: flags.12?long
|
|
1045
1124
|
* Removed arguments: resale_stars
|
|
1046
1125
|
*/
|
|
1047
1126
|
interface RawMessageActionStarGiftUnique_layer210 {
|
|
@@ -1065,7 +1144,14 @@ export declare namespace tlCompat {
|
|
|
1065
1144
|
*
|
|
1066
1145
|
* Added arguments:
|
|
1067
1146
|
* resale_ton_only: flags.7?true
|
|
1147
|
+
* theme_available: flags.9?true
|
|
1148
|
+
* gift_id: long
|
|
1068
1149
|
* resell_amount: flags.4?Vector<StarsAmount>
|
|
1150
|
+
* value_amount: flags.8?long
|
|
1151
|
+
* value_currency: flags.8?string
|
|
1152
|
+
* theme_peer: flags.10?Peer
|
|
1153
|
+
* peer_color: flags.11?PeerColor
|
|
1154
|
+
* host_id: flags.12?Peer
|
|
1069
1155
|
* Removed arguments: resell_stars
|
|
1070
1156
|
*/
|
|
1071
1157
|
interface RawStarGiftUnique_layer210 {
|
|
@@ -1085,20 +1171,380 @@ export declare namespace tlCompat {
|
|
|
1085
1171
|
resellStars?: Long;
|
|
1086
1172
|
releasedBy?: tl.TypePeer;
|
|
1087
1173
|
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Compared to the current schema, changes from this entry:
|
|
1176
|
+
*
|
|
1177
|
+
* Added arguments:
|
|
1178
|
+
* theme: flags.15?ChatTheme
|
|
1179
|
+
* main_tab: flags2.20?ProfileTab
|
|
1180
|
+
* saved_music: flags2.21?Document
|
|
1181
|
+
* note: flags2.22?TextWithEntities
|
|
1182
|
+
* Removed arguments: theme_emoticon
|
|
1183
|
+
*/
|
|
1184
|
+
interface RawUserFull_layer211 {
|
|
1185
|
+
_: 'userFull_layer211';
|
|
1186
|
+
blocked?: boolean;
|
|
1187
|
+
phoneCallsAvailable?: boolean;
|
|
1188
|
+
phoneCallsPrivate?: boolean;
|
|
1189
|
+
canPinMessage?: boolean;
|
|
1190
|
+
hasScheduled?: boolean;
|
|
1191
|
+
videoCallsAvailable?: boolean;
|
|
1192
|
+
voiceMessagesForbidden?: boolean;
|
|
1193
|
+
translationsDisabled?: boolean;
|
|
1194
|
+
storiesPinnedAvailable?: boolean;
|
|
1195
|
+
blockedMyStoriesFrom?: boolean;
|
|
1196
|
+
wallpaperOverridden?: boolean;
|
|
1197
|
+
contactRequirePremium?: boolean;
|
|
1198
|
+
readDatesPrivate?: boolean;
|
|
1199
|
+
sponsoredEnabled?: boolean;
|
|
1200
|
+
canViewRevenue?: boolean;
|
|
1201
|
+
botCanManageEmojiStatus?: boolean;
|
|
1202
|
+
displayGiftsButton?: boolean;
|
|
1203
|
+
id: number;
|
|
1204
|
+
about?: string;
|
|
1205
|
+
settings: tl.TypePeerSettings;
|
|
1206
|
+
personalPhoto?: tl.TypePhoto;
|
|
1207
|
+
profilePhoto?: tl.TypePhoto;
|
|
1208
|
+
fallbackPhoto?: tl.TypePhoto;
|
|
1209
|
+
notifySettings: tl.TypePeerNotifySettings;
|
|
1210
|
+
botInfo?: tl.TypeBotInfo;
|
|
1211
|
+
pinnedMsgId?: number;
|
|
1212
|
+
commonChatsCount: number;
|
|
1213
|
+
folderId?: number;
|
|
1214
|
+
ttlPeriod?: number;
|
|
1215
|
+
themeEmoticon?: string;
|
|
1216
|
+
privateForwardName?: string;
|
|
1217
|
+
botGroupAdminRights?: tl.TypeChatAdminRights;
|
|
1218
|
+
botBroadcastAdminRights?: tl.TypeChatAdminRights;
|
|
1219
|
+
wallpaper?: tl.TypeWallPaper;
|
|
1220
|
+
stories?: tl.TypePeerStories;
|
|
1221
|
+
businessWorkHours?: tl.TypeBusinessWorkHours;
|
|
1222
|
+
businessLocation?: tl.TypeBusinessLocation;
|
|
1223
|
+
businessGreetingMessage?: tl.TypeBusinessGreetingMessage;
|
|
1224
|
+
businessAwayMessage?: tl.TypeBusinessAwayMessage;
|
|
1225
|
+
businessIntro?: tl.TypeBusinessIntro;
|
|
1226
|
+
birthday?: tl.TypeBirthday;
|
|
1227
|
+
personalChannelId?: number;
|
|
1228
|
+
personalChannelMessage?: number;
|
|
1229
|
+
stargiftsCount?: number;
|
|
1230
|
+
starrefProgram?: tl.TypeStarRefProgram;
|
|
1231
|
+
botVerification?: tl.TypeBotVerification;
|
|
1232
|
+
sendPaidMessagesStars?: Long;
|
|
1233
|
+
disallowedGifts?: tl.TypeDisallowedGiftsSettings;
|
|
1234
|
+
starsRating?: tl.TypeStarsRating;
|
|
1235
|
+
starsMyPendingRating?: tl.TypeStarsRating;
|
|
1236
|
+
starsMyPendingRatingDate?: number;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Compared to the current schema, changes from this entry:
|
|
1240
|
+
*
|
|
1241
|
+
* Added arguments:
|
|
1242
|
+
* main_tab: flags2.22?ProfileTab
|
|
1243
|
+
*/
|
|
1244
|
+
interface RawChannelFull_layer211 {
|
|
1245
|
+
_: 'channelFull_layer211';
|
|
1246
|
+
canViewParticipants?: boolean;
|
|
1247
|
+
canSetUsername?: boolean;
|
|
1248
|
+
canSetStickers?: boolean;
|
|
1249
|
+
hiddenPrehistory?: boolean;
|
|
1250
|
+
canSetLocation?: boolean;
|
|
1251
|
+
hasScheduled?: boolean;
|
|
1252
|
+
canViewStats?: boolean;
|
|
1253
|
+
blocked?: boolean;
|
|
1254
|
+
canDeleteChannel?: boolean;
|
|
1255
|
+
antispam?: boolean;
|
|
1256
|
+
participantsHidden?: boolean;
|
|
1257
|
+
translationsDisabled?: boolean;
|
|
1258
|
+
storiesPinnedAvailable?: boolean;
|
|
1259
|
+
viewForumAsMessages?: boolean;
|
|
1260
|
+
restrictedSponsored?: boolean;
|
|
1261
|
+
canViewRevenue?: boolean;
|
|
1262
|
+
paidMediaAllowed?: boolean;
|
|
1263
|
+
canViewStarsRevenue?: boolean;
|
|
1264
|
+
paidReactionsAvailable?: boolean;
|
|
1265
|
+
stargiftsAvailable?: boolean;
|
|
1266
|
+
paidMessagesAvailable?: boolean;
|
|
1267
|
+
id: number;
|
|
1268
|
+
about: string;
|
|
1269
|
+
participantsCount?: number;
|
|
1270
|
+
adminsCount?: number;
|
|
1271
|
+
kickedCount?: number;
|
|
1272
|
+
bannedCount?: number;
|
|
1273
|
+
onlineCount?: number;
|
|
1274
|
+
readInboxMaxId: number;
|
|
1275
|
+
readOutboxMaxId: number;
|
|
1276
|
+
unreadCount: number;
|
|
1277
|
+
chatPhoto: tl.TypePhoto;
|
|
1278
|
+
notifySettings: tl.TypePeerNotifySettings;
|
|
1279
|
+
exportedInvite?: tl.TypeExportedChatInvite;
|
|
1280
|
+
botInfo: tl.TypeBotInfo[];
|
|
1281
|
+
migratedFromChatId?: Long;
|
|
1282
|
+
migratedFromMaxId?: number;
|
|
1283
|
+
pinnedMsgId?: number;
|
|
1284
|
+
stickerset?: tl.TypeStickerSet;
|
|
1285
|
+
availableMinId?: number;
|
|
1286
|
+
folderId?: number;
|
|
1287
|
+
linkedChatId?: number;
|
|
1288
|
+
location?: tl.TypeChannelLocation;
|
|
1289
|
+
slowmodeSeconds?: number;
|
|
1290
|
+
slowmodeNextSendDate?: number;
|
|
1291
|
+
statsDc?: number;
|
|
1292
|
+
pts: number;
|
|
1293
|
+
call?: tl.TypeInputGroupCall;
|
|
1294
|
+
ttlPeriod?: number;
|
|
1295
|
+
pendingSuggestions?: string[];
|
|
1296
|
+
groupcallDefaultJoinAs?: tl.TypePeer;
|
|
1297
|
+
themeEmoticon?: string;
|
|
1298
|
+
requestsPending?: number;
|
|
1299
|
+
recentRequesters?: number[];
|
|
1300
|
+
defaultSendAs?: tl.TypePeer;
|
|
1301
|
+
availableReactions?: tl.TypeChatReactions;
|
|
1302
|
+
reactionsLimit?: number;
|
|
1303
|
+
stories?: tl.TypePeerStories;
|
|
1304
|
+
wallpaper?: tl.TypeWallPaper;
|
|
1305
|
+
boostsApplied?: number;
|
|
1306
|
+
boostsUnrestrict?: number;
|
|
1307
|
+
emojiset?: tl.TypeStickerSet;
|
|
1308
|
+
botVerification?: tl.TypeBotVerification;
|
|
1309
|
+
stargiftsCount?: number;
|
|
1310
|
+
sendPaidMessagesStars?: Long;
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Compared to the current schema, changes from this entry:
|
|
1314
|
+
*
|
|
1315
|
+
* Added arguments:
|
|
1316
|
+
* theme_available: flags.9?true
|
|
1317
|
+
* gift_id: long
|
|
1318
|
+
* value_amount: flags.8?long
|
|
1319
|
+
* value_currency: flags.8?string
|
|
1320
|
+
* theme_peer: flags.10?Peer
|
|
1321
|
+
* peer_color: flags.11?PeerColor
|
|
1322
|
+
* host_id: flags.12?Peer
|
|
1323
|
+
*/
|
|
1324
|
+
interface RawStarGiftUnique_layer211 {
|
|
1325
|
+
_: 'starGiftUnique_layer211';
|
|
1326
|
+
requirePremium?: boolean;
|
|
1327
|
+
resaleTonOnly?: boolean;
|
|
1328
|
+
id: Long;
|
|
1329
|
+
title: string;
|
|
1330
|
+
slug: string;
|
|
1331
|
+
num: number;
|
|
1332
|
+
ownerId?: tl.TypePeer;
|
|
1333
|
+
ownerName?: string;
|
|
1334
|
+
ownerAddress?: string;
|
|
1335
|
+
attributes: tl.TypeStarGiftAttribute[];
|
|
1336
|
+
availabilityIssued: number;
|
|
1337
|
+
availabilityTotal: number;
|
|
1338
|
+
giftAddress?: string;
|
|
1339
|
+
resellAmount?: tl.TypeStarsAmount[];
|
|
1340
|
+
releasedBy?: tl.TypePeer;
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Compared to the current schema, changes from this entry:
|
|
1344
|
+
*
|
|
1345
|
+
* Added arguments:
|
|
1346
|
+
* locked_until_date: flags.9?int
|
|
1347
|
+
* peer_color_available: flags.10?true
|
|
1348
|
+
*/
|
|
1349
|
+
interface RawStarGift_layer211 {
|
|
1350
|
+
_: 'starGift_layer211';
|
|
1351
|
+
limited?: boolean;
|
|
1352
|
+
soldOut?: boolean;
|
|
1353
|
+
birthday?: boolean;
|
|
1354
|
+
requirePremium?: boolean;
|
|
1355
|
+
limitedPerUser?: boolean;
|
|
1356
|
+
id: Long;
|
|
1357
|
+
sticker: tl.TypeDocument;
|
|
1358
|
+
stars: Long;
|
|
1359
|
+
availabilityRemains?: number;
|
|
1360
|
+
availabilityTotal?: number;
|
|
1361
|
+
availabilityResale?: Long;
|
|
1362
|
+
convertStars: Long;
|
|
1363
|
+
firstSaleDate?: number;
|
|
1364
|
+
lastSaleDate?: number;
|
|
1365
|
+
upgradeStars?: Long;
|
|
1366
|
+
resellMinStars?: Long;
|
|
1367
|
+
title?: string;
|
|
1368
|
+
releasedBy?: tl.TypePeer;
|
|
1369
|
+
perUserTotal?: number;
|
|
1370
|
+
perUserRemains?: number;
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* Compared to the current schema, changes from this entry:
|
|
1374
|
+
*
|
|
1375
|
+
* Added arguments:
|
|
1376
|
+
* prepaid_upgrade: flags.13?true
|
|
1377
|
+
* upgrade_separate: flags.16?true
|
|
1378
|
+
* prepaid_upgrade_hash: flags.14?string
|
|
1379
|
+
* gift_msg_id: flags.15?int
|
|
1380
|
+
*/
|
|
1381
|
+
interface RawMessageActionStarGift_layer211 {
|
|
1382
|
+
_: 'messageActionStarGift_layer211';
|
|
1383
|
+
nameHidden?: boolean;
|
|
1384
|
+
saved?: boolean;
|
|
1385
|
+
converted?: boolean;
|
|
1386
|
+
upgraded?: boolean;
|
|
1387
|
+
refunded?: boolean;
|
|
1388
|
+
canUpgrade?: boolean;
|
|
1389
|
+
gift: tlCompat.TypeStarGift;
|
|
1390
|
+
message?: tl.TypeTextWithEntities;
|
|
1391
|
+
convertStars?: Long;
|
|
1392
|
+
upgradeMsgId?: number;
|
|
1393
|
+
upgradeStars?: Long;
|
|
1394
|
+
fromId?: tl.TypePeer;
|
|
1395
|
+
peer?: tl.TypePeer;
|
|
1396
|
+
savedId?: Long;
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Compared to the current schema, changes from this entry:
|
|
1400
|
+
*
|
|
1401
|
+
* Added arguments:
|
|
1402
|
+
* theme: ChatTheme
|
|
1403
|
+
* Removed arguments: emoticon
|
|
1404
|
+
*/
|
|
1405
|
+
interface RawMessageActionSetChatTheme_layer211 {
|
|
1406
|
+
_: 'messageActionSetChatTheme_layer211';
|
|
1407
|
+
emoticon: string;
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* Compared to the current schema, changes from this entry:
|
|
1411
|
+
*
|
|
1412
|
+
* Added arguments:
|
|
1413
|
+
* note: flags2.22?TextWithEntities
|
|
1414
|
+
*/
|
|
1415
|
+
interface RawUserFull_layer214 {
|
|
1416
|
+
_: 'userFull_layer214';
|
|
1417
|
+
blocked?: boolean;
|
|
1418
|
+
phoneCallsAvailable?: boolean;
|
|
1419
|
+
phoneCallsPrivate?: boolean;
|
|
1420
|
+
canPinMessage?: boolean;
|
|
1421
|
+
hasScheduled?: boolean;
|
|
1422
|
+
videoCallsAvailable?: boolean;
|
|
1423
|
+
voiceMessagesForbidden?: boolean;
|
|
1424
|
+
translationsDisabled?: boolean;
|
|
1425
|
+
storiesPinnedAvailable?: boolean;
|
|
1426
|
+
blockedMyStoriesFrom?: boolean;
|
|
1427
|
+
wallpaperOverridden?: boolean;
|
|
1428
|
+
contactRequirePremium?: boolean;
|
|
1429
|
+
readDatesPrivate?: boolean;
|
|
1430
|
+
sponsoredEnabled?: boolean;
|
|
1431
|
+
canViewRevenue?: boolean;
|
|
1432
|
+
botCanManageEmojiStatus?: boolean;
|
|
1433
|
+
displayGiftsButton?: boolean;
|
|
1434
|
+
id: number;
|
|
1435
|
+
about?: string;
|
|
1436
|
+
settings: tl.TypePeerSettings;
|
|
1437
|
+
personalPhoto?: tl.TypePhoto;
|
|
1438
|
+
profilePhoto?: tl.TypePhoto;
|
|
1439
|
+
fallbackPhoto?: tl.TypePhoto;
|
|
1440
|
+
notifySettings: tl.TypePeerNotifySettings;
|
|
1441
|
+
botInfo?: tl.TypeBotInfo;
|
|
1442
|
+
pinnedMsgId?: number;
|
|
1443
|
+
commonChatsCount: number;
|
|
1444
|
+
folderId?: number;
|
|
1445
|
+
ttlPeriod?: number;
|
|
1446
|
+
theme?: tl.TypeChatTheme;
|
|
1447
|
+
privateForwardName?: string;
|
|
1448
|
+
botGroupAdminRights?: tl.TypeChatAdminRights;
|
|
1449
|
+
botBroadcastAdminRights?: tl.TypeChatAdminRights;
|
|
1450
|
+
wallpaper?: tl.TypeWallPaper;
|
|
1451
|
+
stories?: tl.TypePeerStories;
|
|
1452
|
+
businessWorkHours?: tl.TypeBusinessWorkHours;
|
|
1453
|
+
businessLocation?: tl.TypeBusinessLocation;
|
|
1454
|
+
businessGreetingMessage?: tl.TypeBusinessGreetingMessage;
|
|
1455
|
+
businessAwayMessage?: tl.TypeBusinessAwayMessage;
|
|
1456
|
+
businessIntro?: tl.TypeBusinessIntro;
|
|
1457
|
+
birthday?: tl.TypeBirthday;
|
|
1458
|
+
personalChannelId?: number;
|
|
1459
|
+
personalChannelMessage?: number;
|
|
1460
|
+
stargiftsCount?: number;
|
|
1461
|
+
starrefProgram?: tl.TypeStarRefProgram;
|
|
1462
|
+
botVerification?: tl.TypeBotVerification;
|
|
1463
|
+
sendPaidMessagesStars?: Long;
|
|
1464
|
+
disallowedGifts?: tl.TypeDisallowedGiftsSettings;
|
|
1465
|
+
starsRating?: tl.TypeStarsRating;
|
|
1466
|
+
starsMyPendingRating?: tl.TypeStarsRating;
|
|
1467
|
+
starsMyPendingRatingDate?: number;
|
|
1468
|
+
mainTab?: tl.TypeProfileTab;
|
|
1469
|
+
savedMusic?: tl.TypeDocument;
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* Entry was removed from the schema
|
|
1473
|
+
*/
|
|
1474
|
+
interface RawEmojiStatusUntil_layer214 {
|
|
1475
|
+
_: 'emojiStatusUntil_layer214';
|
|
1476
|
+
documentId: Long;
|
|
1477
|
+
until: number;
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Compared to the current schema, changes from this entry:
|
|
1481
|
+
*
|
|
1482
|
+
* Added arguments:
|
|
1483
|
+
* peer_color: flags.11?PeerColor
|
|
1484
|
+
* host_id: flags.12?Peer
|
|
1485
|
+
*/
|
|
1486
|
+
interface RawStarGiftUnique_layer214 {
|
|
1487
|
+
_: 'starGiftUnique_layer214';
|
|
1488
|
+
requirePremium?: boolean;
|
|
1489
|
+
resaleTonOnly?: boolean;
|
|
1490
|
+
themeAvailable?: boolean;
|
|
1491
|
+
id: Long;
|
|
1492
|
+
giftId: Long;
|
|
1493
|
+
title: string;
|
|
1494
|
+
slug: string;
|
|
1495
|
+
num: number;
|
|
1496
|
+
ownerId?: tl.TypePeer;
|
|
1497
|
+
ownerName?: string;
|
|
1498
|
+
ownerAddress?: string;
|
|
1499
|
+
attributes: tl.TypeStarGiftAttribute[];
|
|
1500
|
+
availabilityIssued: number;
|
|
1501
|
+
availabilityTotal: number;
|
|
1502
|
+
giftAddress?: string;
|
|
1503
|
+
resellAmount?: tl.TypeStarsAmount[];
|
|
1504
|
+
releasedBy?: tl.TypePeer;
|
|
1505
|
+
valueAmount?: Long;
|
|
1506
|
+
valueCurrency?: string;
|
|
1507
|
+
themePeer?: tl.TypePeer;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Compared to the current schema, changes from this entry:
|
|
1511
|
+
*
|
|
1512
|
+
* Added arguments:
|
|
1513
|
+
* assigned: flags.13?true
|
|
1514
|
+
* drop_original_details_stars: flags.12?long
|
|
1515
|
+
*/
|
|
1516
|
+
interface RawMessageActionStarGiftUnique_layer214 {
|
|
1517
|
+
_: 'messageActionStarGiftUnique_layer214';
|
|
1518
|
+
upgrade?: boolean;
|
|
1519
|
+
transferred?: boolean;
|
|
1520
|
+
saved?: boolean;
|
|
1521
|
+
refunded?: boolean;
|
|
1522
|
+
prepaidUpgrade?: boolean;
|
|
1523
|
+
gift: tlCompat.TypeStarGift;
|
|
1524
|
+
canExportAt?: number;
|
|
1525
|
+
transferStars?: Long;
|
|
1526
|
+
fromId?: tl.TypePeer;
|
|
1527
|
+
peer?: tl.TypePeer;
|
|
1528
|
+
savedId?: Long;
|
|
1529
|
+
resaleAmount?: tl.TypeStarsAmount;
|
|
1530
|
+
canTransferAt?: number;
|
|
1531
|
+
canResellAt?: number;
|
|
1532
|
+
}
|
|
1088
1533
|
interface RpcCallReturn {
|
|
1089
1534
|
}
|
|
1090
|
-
type TypeStarGift = tlCompat.RawStarGiftUnique_layer197 | tlCompat.RawStarGiftUnique_layer198 | tlCompat.RawStarGiftUnique_layer202 | tlCompat.RawStarGift_layer202 | tlCompat.RawStarGiftUnique_layer206 | tlCompat.RawStarGift_layer206 | tlCompat.RawStarGift_layer209 | tlCompat.RawStarGiftUnique_layer210 |
|
|
1091
|
-
type TypeEmojiStatus = tlCompat.RawEmojiStatus_layer197 |
|
|
1092
|
-
type TypeMessageMedia = tlCompat.RawMessageMediaDocument_layer197 |
|
|
1093
|
-
type TypeChatFull = tlCompat.RawChannelFull_layer197 | tlCompat.RawChannelFull_layer204 |
|
|
1094
|
-
type TypeMessageAction = tlCompat.RawMessageActionStarGiftUnique_layer197 | tlCompat.RawMessageActionStarGift_layer197 | tlCompat.RawMessageActionStarGiftUnique_layer202 | tlCompat.RawMessageActionPaidMessagesPrice_layer203 | tlCompat.RawMessageActionStarGiftUnique_layer210 |
|
|
1095
|
-
type TypeUserFull = tlCompat.RawUserFull_layer199 | tlCompat.RawUserFull_layer200 | tlCompat.RawUserFull_layer209 | tlCompat.RawUserFull_layer210 |
|
|
1096
|
-
type
|
|
1097
|
-
type
|
|
1098
|
-
type
|
|
1099
|
-
type
|
|
1100
|
-
type
|
|
1101
|
-
type
|
|
1535
|
+
type TypeStarGift = tlCompat.RawStarGiftUnique_layer197 | tlCompat.RawStarGiftUnique_layer198 | tlCompat.RawStarGiftUnique_layer202 | tlCompat.RawStarGift_layer202 | tlCompat.RawStarGiftUnique_layer206 | tlCompat.RawStarGift_layer206 | tlCompat.RawStarGift_layer209 | tlCompat.RawStarGiftUnique_layer210 | tlCompat.RawStarGiftUnique_layer211 | tlCompat.RawStarGift_layer211 | tlCompat.RawStarGiftUnique_layer214 | tl.TypeStarGift
|
|
1536
|
+
type TypeEmojiStatus = tlCompat.RawEmojiStatus_layer197 | tlCompat.RawEmojiStatusUntil_layer214 | tl.TypeEmojiStatus
|
|
1537
|
+
type TypeMessageMedia = tlCompat.RawMessageMediaDocument_layer197 | tl.TypeMessageMedia
|
|
1538
|
+
type TypeChatFull = tlCompat.RawChannelFull_layer197 | tlCompat.RawChannelFull_layer204 | tlCompat.RawChannelFull_layer211 | tl.TypeChatFull
|
|
1539
|
+
type TypeMessageAction = tlCompat.RawMessageActionStarGiftUnique_layer197 | tlCompat.RawMessageActionStarGift_layer197 | tlCompat.RawMessageActionStarGiftUnique_layer202 | tlCompat.RawMessageActionPaidMessagesPrice_layer203 | tlCompat.RawMessageActionStarGiftUnique_layer210 | tlCompat.RawMessageActionStarGift_layer211 | tlCompat.RawMessageActionSetChatTheme_layer211 | tlCompat.RawMessageActionStarGiftUnique_layer214 | tl.TypeMessageAction
|
|
1540
|
+
type TypeUserFull = tlCompat.RawUserFull_layer199 | tlCompat.RawUserFull_layer200 | tlCompat.RawUserFull_layer209 | tlCompat.RawUserFull_layer210 | tlCompat.RawUserFull_layer211 | tlCompat.RawUserFull_layer214 | tl.TypeUserFull
|
|
1541
|
+
type TypePremiumGiftOption = tlCompat.RawPremiumGiftOption_layer199
|
|
1542
|
+
type TypeUser = tlCompat.RawUser_layer199 | tl.TypeUser
|
|
1543
|
+
type TypeChat = tlCompat.RawChannel_layer199 | tlCompat.RawChannel_layer203 | tl.TypeChat
|
|
1544
|
+
type TypeMessage = tlCompat.RawMessage_layer199 | tlCompat.RawMessageService_layer204 | tlCompat.RawMessage_layer204 | tl.TypeMessage
|
|
1545
|
+
type TypePhoneCallDiscardReason = tlCompat.RawPhoneCallDiscardReasonAllowGroupCall_layer202 | tl.TypePhoneCallDiscardReason
|
|
1546
|
+
type TypeMessageReplyHeader = tlCompat.RawMessageReplyHeader_layer206 | tl.TypeMessageReplyHeader
|
|
1547
|
+
type TypeStoryItem = tlCompat.RawStoryItem_layer210 | tl.TypeStoryItem
|
|
1102
1548
|
|
|
1103
1549
|
type TlObject =
|
|
1104
1550
|
| tlCompat.RawStarGiftUnique_layer197
|
|
@@ -1109,6 +1555,7 @@ export declare namespace tlCompat {
|
|
|
1109
1555
|
| tlCompat.RawMessageActionStarGift_layer197
|
|
1110
1556
|
| tlCompat.RawStarGiftUnique_layer198
|
|
1111
1557
|
| tlCompat.RawUserFull_layer199
|
|
1558
|
+
| tlCompat.RawPremiumGiftOption_layer199
|
|
1112
1559
|
| tlCompat.RawUser_layer199
|
|
1113
1560
|
| tlCompat.RawChannel_layer199
|
|
1114
1561
|
| tlCompat.RawMessage_layer199
|
|
@@ -1131,5 +1578,15 @@ export declare namespace tlCompat {
|
|
|
1131
1578
|
| tlCompat.RawStoryItem_layer210
|
|
1132
1579
|
| tlCompat.RawMessageActionStarGiftUnique_layer210
|
|
1133
1580
|
| tlCompat.RawStarGiftUnique_layer210
|
|
1581
|
+
| tlCompat.RawUserFull_layer211
|
|
1582
|
+
| tlCompat.RawChannelFull_layer211
|
|
1583
|
+
| tlCompat.RawStarGiftUnique_layer211
|
|
1584
|
+
| tlCompat.RawStarGift_layer211
|
|
1585
|
+
| tlCompat.RawMessageActionStarGift_layer211
|
|
1586
|
+
| tlCompat.RawMessageActionSetChatTheme_layer211
|
|
1587
|
+
| tlCompat.RawUserFull_layer214
|
|
1588
|
+
| tlCompat.RawEmojiStatusUntil_layer214
|
|
1589
|
+
| tlCompat.RawStarGiftUnique_layer214
|
|
1590
|
+
| tlCompat.RawMessageActionStarGiftUnique_layer214
|
|
1134
1591
|
| tl.TlObject
|
|
1135
1592
|
}
|