@mtcute/tl 218.0.1 → 220.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 +33 -20
- package/binary/writer.js +61 -33
- package/compat/index.d.ts +153 -2
- package/compat/reader.js +4 -0
- package/index.d.ts +291 -72
- package/index.js +11 -2
- package/package.json +1 -1
package/compat/index.d.ts
CHANGED
|
@@ -30,9 +30,11 @@ export declare namespace tlCompat {
|
|
|
30
30
|
* released_by: flags.5?Peer
|
|
31
31
|
* value_amount: flags.8?long
|
|
32
32
|
* value_currency: flags.8?string
|
|
33
|
+
* value_usd_amount: flags.8?long
|
|
33
34
|
* theme_peer: flags.10?Peer
|
|
34
35
|
* peer_color: flags.11?PeerColor
|
|
35
36
|
* host_id: flags.12?Peer
|
|
37
|
+
* offer_min_stars: flags.13?int
|
|
36
38
|
* Changed arguments:
|
|
37
39
|
* owner_id: flags.0?int53 => flags.0?Peer
|
|
38
40
|
*/
|
|
@@ -157,6 +159,7 @@ export declare namespace tlCompat {
|
|
|
157
159
|
* Added arguments:
|
|
158
160
|
* prepaid_upgrade: flags.11?true
|
|
159
161
|
* assigned: flags.13?true
|
|
162
|
+
* from_offer: flags.14?true
|
|
160
163
|
* from_id: flags.6?Peer
|
|
161
164
|
* peer: flags.7?Peer
|
|
162
165
|
* saved_id: flags.7?long
|
|
@@ -188,6 +191,7 @@ export declare namespace tlCompat {
|
|
|
188
191
|
* prepaid_upgrade_hash: flags.14?string
|
|
189
192
|
* gift_msg_id: flags.15?int
|
|
190
193
|
* to_id: flags.18?Peer
|
|
194
|
+
* gift_num: flags.19?int
|
|
191
195
|
*/
|
|
192
196
|
interface RawMessageActionStarGift_layer197 {
|
|
193
197
|
_: 'messageActionStarGift_layer197';
|
|
@@ -216,9 +220,11 @@ export declare namespace tlCompat {
|
|
|
216
220
|
* released_by: flags.5?Peer
|
|
217
221
|
* value_amount: flags.8?long
|
|
218
222
|
* value_currency: flags.8?string
|
|
223
|
+
* value_usd_amount: flags.8?long
|
|
219
224
|
* theme_peer: flags.10?Peer
|
|
220
225
|
* peer_color: flags.11?PeerColor
|
|
221
226
|
* host_id: flags.12?Peer
|
|
227
|
+
* offer_min_stars: flags.13?int
|
|
222
228
|
*/
|
|
223
229
|
interface RawStarGiftUnique_layer198 {
|
|
224
230
|
_: 'starGiftUnique_layer198';
|
|
@@ -553,9 +559,11 @@ export declare namespace tlCompat {
|
|
|
553
559
|
* released_by: flags.5?Peer
|
|
554
560
|
* value_amount: flags.8?long
|
|
555
561
|
* value_currency: flags.8?string
|
|
562
|
+
* value_usd_amount: flags.8?long
|
|
556
563
|
* theme_peer: flags.10?Peer
|
|
557
564
|
* peer_color: flags.11?PeerColor
|
|
558
565
|
* host_id: flags.12?Peer
|
|
566
|
+
* offer_min_stars: flags.13?int
|
|
559
567
|
*/
|
|
560
568
|
interface RawStarGiftUnique_layer202 {
|
|
561
569
|
_: 'starGiftUnique_layer202';
|
|
@@ -588,6 +596,9 @@ export declare namespace tlCompat {
|
|
|
588
596
|
* locked_until_date: flags.9?int
|
|
589
597
|
* auction_slug: flags.11?string
|
|
590
598
|
* gifts_per_round: flags.11?int
|
|
599
|
+
* auction_start_date: flags.11?int
|
|
600
|
+
* upgrade_variants: flags.12?int
|
|
601
|
+
* background: flags.13?StarGiftBackground
|
|
591
602
|
*/
|
|
592
603
|
interface RawStarGift_layer202 {
|
|
593
604
|
_: 'starGift_layer202';
|
|
@@ -610,6 +621,7 @@ export declare namespace tlCompat {
|
|
|
610
621
|
* Added arguments:
|
|
611
622
|
* prepaid_upgrade: flags.11?true
|
|
612
623
|
* assigned: flags.13?true
|
|
624
|
+
* from_offer: flags.14?true
|
|
613
625
|
* resale_amount: flags.8?StarsAmount
|
|
614
626
|
* can_transfer_at: flags.9?int
|
|
615
627
|
* can_resell_at: flags.10?int
|
|
@@ -868,9 +880,11 @@ export declare namespace tlCompat {
|
|
|
868
880
|
* released_by: flags.5?Peer
|
|
869
881
|
* value_amount: flags.8?long
|
|
870
882
|
* value_currency: flags.8?string
|
|
883
|
+
* value_usd_amount: flags.8?long
|
|
871
884
|
* theme_peer: flags.10?Peer
|
|
872
885
|
* peer_color: flags.11?PeerColor
|
|
873
886
|
* host_id: flags.12?Peer
|
|
887
|
+
* offer_min_stars: flags.13?int
|
|
874
888
|
* Removed arguments: resell_stars
|
|
875
889
|
*/
|
|
876
890
|
interface RawStarGiftUnique_layer206 {
|
|
@@ -902,6 +916,9 @@ export declare namespace tlCompat {
|
|
|
902
916
|
* locked_until_date: flags.9?int
|
|
903
917
|
* auction_slug: flags.11?string
|
|
904
918
|
* gifts_per_round: flags.11?int
|
|
919
|
+
* auction_start_date: flags.11?int
|
|
920
|
+
* upgrade_variants: flags.12?int
|
|
921
|
+
* background: flags.13?StarGiftBackground
|
|
905
922
|
*/
|
|
906
923
|
interface RawStarGift_layer206 {
|
|
907
924
|
_: 'starGift_layer206';
|
|
@@ -1018,6 +1035,9 @@ export declare namespace tlCompat {
|
|
|
1018
1035
|
* locked_until_date: flags.9?int
|
|
1019
1036
|
* auction_slug: flags.11?string
|
|
1020
1037
|
* gifts_per_round: flags.11?int
|
|
1038
|
+
* auction_start_date: flags.11?int
|
|
1039
|
+
* upgrade_variants: flags.12?int
|
|
1040
|
+
* background: flags.13?StarGiftBackground
|
|
1021
1041
|
*/
|
|
1022
1042
|
interface RawStarGift_layer209 {
|
|
1023
1043
|
_: 'starGift_layer209';
|
|
@@ -1138,6 +1158,7 @@ export declare namespace tlCompat {
|
|
|
1138
1158
|
* Added arguments:
|
|
1139
1159
|
* prepaid_upgrade: flags.11?true
|
|
1140
1160
|
* assigned: flags.13?true
|
|
1161
|
+
* from_offer: flags.14?true
|
|
1141
1162
|
* resale_amount: flags.8?StarsAmount
|
|
1142
1163
|
* drop_original_details_stars: flags.12?long
|
|
1143
1164
|
* Removed arguments: resale_stars
|
|
@@ -1168,9 +1189,11 @@ export declare namespace tlCompat {
|
|
|
1168
1189
|
* resell_amount: flags.4?Vector<StarsAmount>
|
|
1169
1190
|
* value_amount: flags.8?long
|
|
1170
1191
|
* value_currency: flags.8?string
|
|
1192
|
+
* value_usd_amount: flags.8?long
|
|
1171
1193
|
* theme_peer: flags.10?Peer
|
|
1172
1194
|
* peer_color: flags.11?PeerColor
|
|
1173
1195
|
* host_id: flags.12?Peer
|
|
1196
|
+
* offer_min_stars: flags.13?int
|
|
1174
1197
|
* Removed arguments: resell_stars
|
|
1175
1198
|
*/
|
|
1176
1199
|
interface RawStarGiftUnique_layer210 {
|
|
@@ -1336,9 +1359,11 @@ export declare namespace tlCompat {
|
|
|
1336
1359
|
* gift_id: long
|
|
1337
1360
|
* value_amount: flags.8?long
|
|
1338
1361
|
* value_currency: flags.8?string
|
|
1362
|
+
* value_usd_amount: flags.8?long
|
|
1339
1363
|
* theme_peer: flags.10?Peer
|
|
1340
1364
|
* peer_color: flags.11?PeerColor
|
|
1341
1365
|
* host_id: flags.12?Peer
|
|
1366
|
+
* offer_min_stars: flags.13?int
|
|
1342
1367
|
*/
|
|
1343
1368
|
interface RawStarGiftUnique_layer211 {
|
|
1344
1369
|
_: 'starGiftUnique_layer211';
|
|
@@ -1367,6 +1392,9 @@ export declare namespace tlCompat {
|
|
|
1367
1392
|
* locked_until_date: flags.9?int
|
|
1368
1393
|
* auction_slug: flags.11?string
|
|
1369
1394
|
* gifts_per_round: flags.11?int
|
|
1395
|
+
* auction_start_date: flags.11?int
|
|
1396
|
+
* upgrade_variants: flags.12?int
|
|
1397
|
+
* background: flags.13?StarGiftBackground
|
|
1370
1398
|
*/
|
|
1371
1399
|
interface RawStarGift_layer211 {
|
|
1372
1400
|
_: 'starGift_layer211';
|
|
@@ -1401,6 +1429,7 @@ export declare namespace tlCompat {
|
|
|
1401
1429
|
* prepaid_upgrade_hash: flags.14?string
|
|
1402
1430
|
* gift_msg_id: flags.15?int
|
|
1403
1431
|
* to_id: flags.18?Peer
|
|
1432
|
+
* gift_num: flags.19?int
|
|
1404
1433
|
*/
|
|
1405
1434
|
interface RawMessageActionStarGift_layer211 {
|
|
1406
1435
|
_: 'messageActionStarGift_layer211';
|
|
@@ -1504,8 +1533,10 @@ export declare namespace tlCompat {
|
|
|
1504
1533
|
* Compared to the current schema, changes from this entry:
|
|
1505
1534
|
*
|
|
1506
1535
|
* Added arguments:
|
|
1536
|
+
* value_usd_amount: flags.8?long
|
|
1507
1537
|
* peer_color: flags.11?PeerColor
|
|
1508
1538
|
* host_id: flags.12?Peer
|
|
1539
|
+
* offer_min_stars: flags.13?int
|
|
1509
1540
|
*/
|
|
1510
1541
|
interface RawStarGiftUnique_layer214 {
|
|
1511
1542
|
_: 'starGiftUnique_layer214';
|
|
@@ -1535,6 +1566,7 @@ export declare namespace tlCompat {
|
|
|
1535
1566
|
*
|
|
1536
1567
|
* Added arguments:
|
|
1537
1568
|
* assigned: flags.13?true
|
|
1569
|
+
* from_offer: flags.14?true
|
|
1538
1570
|
* drop_original_details_stars: flags.12?long
|
|
1539
1571
|
*/
|
|
1540
1572
|
interface RawMessageActionStarGiftUnique_layer214 {
|
|
@@ -1573,6 +1605,9 @@ export declare namespace tlCompat {
|
|
|
1573
1605
|
* auction: flags.11?true
|
|
1574
1606
|
* auction_slug: flags.11?string
|
|
1575
1607
|
* gifts_per_round: flags.11?int
|
|
1608
|
+
* auction_start_date: flags.11?int
|
|
1609
|
+
* upgrade_variants: flags.12?int
|
|
1610
|
+
* background: flags.13?StarGiftBackground
|
|
1576
1611
|
*/
|
|
1577
1612
|
interface RawStarGift_layer216 {
|
|
1578
1613
|
_: 'starGift_layer216';
|
|
@@ -1718,6 +1753,7 @@ export declare namespace tlCompat {
|
|
|
1718
1753
|
* Added arguments:
|
|
1719
1754
|
* auction_acquired: flags.17?true
|
|
1720
1755
|
* to_id: flags.18?Peer
|
|
1756
|
+
* gift_num: flags.19?int
|
|
1721
1757
|
*/
|
|
1722
1758
|
interface RawMessageActionStarGift_layer216 {
|
|
1723
1759
|
_: 'messageActionStarGift_layer216';
|
|
@@ -1829,13 +1865,123 @@ export declare namespace tlCompat {
|
|
|
1829
1865
|
paidMessageStars?: Long;
|
|
1830
1866
|
suggestedPost?: tl.TypeSuggestedPost;
|
|
1831
1867
|
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Compared to the current schema, changes from this entry:
|
|
1870
|
+
*
|
|
1871
|
+
* Removed arguments: center_color, edge_color, text_color
|
|
1872
|
+
*/
|
|
1873
|
+
interface RawWebPageAttributeStarGiftAuction_layer218 {
|
|
1874
|
+
_: 'webPageAttributeStarGiftAuction_layer218';
|
|
1875
|
+
gift: tlCompat.TypeStarGift;
|
|
1876
|
+
endDate: number;
|
|
1877
|
+
centerColor: number;
|
|
1878
|
+
edgeColor: number;
|
|
1879
|
+
textColor: number;
|
|
1880
|
+
}
|
|
1881
|
+
/**
|
|
1882
|
+
* Compared to the current schema, changes from this entry:
|
|
1883
|
+
*
|
|
1884
|
+
* Added arguments:
|
|
1885
|
+
* value_usd_amount: flags.8?long
|
|
1886
|
+
* offer_min_stars: flags.13?int
|
|
1887
|
+
*/
|
|
1888
|
+
interface RawStarGiftUnique_layer218 {
|
|
1889
|
+
_: 'starGiftUnique_layer218';
|
|
1890
|
+
requirePremium?: boolean;
|
|
1891
|
+
resaleTonOnly?: boolean;
|
|
1892
|
+
themeAvailable?: boolean;
|
|
1893
|
+
id: Long;
|
|
1894
|
+
giftId: Long;
|
|
1895
|
+
title: string;
|
|
1896
|
+
slug: string;
|
|
1897
|
+
num: number;
|
|
1898
|
+
ownerId?: tl.TypePeer;
|
|
1899
|
+
ownerName?: string;
|
|
1900
|
+
ownerAddress?: string;
|
|
1901
|
+
attributes: tl.TypeStarGiftAttribute[];
|
|
1902
|
+
availabilityIssued: number;
|
|
1903
|
+
availabilityTotal: number;
|
|
1904
|
+
giftAddress?: string;
|
|
1905
|
+
resellAmount?: tl.TypeStarsAmount[];
|
|
1906
|
+
releasedBy?: tl.TypePeer;
|
|
1907
|
+
valueAmount?: Long;
|
|
1908
|
+
valueCurrency?: string;
|
|
1909
|
+
themePeer?: tl.TypePeer;
|
|
1910
|
+
peerColor?: tl.TypePeerColor;
|
|
1911
|
+
hostId?: tl.TypePeer;
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Compared to the current schema, changes from this entry:
|
|
1915
|
+
*
|
|
1916
|
+
* Added arguments:
|
|
1917
|
+
* auction_start_date: flags.11?int
|
|
1918
|
+
* upgrade_variants: flags.12?int
|
|
1919
|
+
* background: flags.13?StarGiftBackground
|
|
1920
|
+
*/
|
|
1921
|
+
interface RawStarGift_layer218 {
|
|
1922
|
+
_: 'starGift_layer218';
|
|
1923
|
+
limited?: boolean;
|
|
1924
|
+
soldOut?: boolean;
|
|
1925
|
+
birthday?: boolean;
|
|
1926
|
+
requirePremium?: boolean;
|
|
1927
|
+
limitedPerUser?: boolean;
|
|
1928
|
+
peerColorAvailable?: boolean;
|
|
1929
|
+
auction?: boolean;
|
|
1930
|
+
id: Long;
|
|
1931
|
+
sticker: tl.TypeDocument;
|
|
1932
|
+
stars: Long;
|
|
1933
|
+
availabilityRemains?: number;
|
|
1934
|
+
availabilityTotal?: number;
|
|
1935
|
+
availabilityResale?: Long;
|
|
1936
|
+
convertStars: Long;
|
|
1937
|
+
firstSaleDate?: number;
|
|
1938
|
+
lastSaleDate?: number;
|
|
1939
|
+
upgradeStars?: Long;
|
|
1940
|
+
resellMinStars?: Long;
|
|
1941
|
+
title?: string;
|
|
1942
|
+
releasedBy?: tl.TypePeer;
|
|
1943
|
+
perUserTotal?: number;
|
|
1944
|
+
perUserRemains?: number;
|
|
1945
|
+
lockedUntilDate?: number;
|
|
1946
|
+
auctionSlug?: string;
|
|
1947
|
+
giftsPerRound?: number;
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* Compared to the current schema, changes from this entry:
|
|
1951
|
+
*
|
|
1952
|
+
* Added arguments:
|
|
1953
|
+
* gift_num: flags.19?int
|
|
1954
|
+
*/
|
|
1955
|
+
interface RawMessageActionStarGift_layer218 {
|
|
1956
|
+
_: 'messageActionStarGift_layer218';
|
|
1957
|
+
nameHidden?: boolean;
|
|
1958
|
+
saved?: boolean;
|
|
1959
|
+
converted?: boolean;
|
|
1960
|
+
upgraded?: boolean;
|
|
1961
|
+
refunded?: boolean;
|
|
1962
|
+
canUpgrade?: boolean;
|
|
1963
|
+
prepaidUpgrade?: boolean;
|
|
1964
|
+
upgradeSeparate?: boolean;
|
|
1965
|
+
auctionAcquired?: boolean;
|
|
1966
|
+
gift: tlCompat.TypeStarGift;
|
|
1967
|
+
message?: tl.TypeTextWithEntities;
|
|
1968
|
+
convertStars?: Long;
|
|
1969
|
+
upgradeMsgId?: number;
|
|
1970
|
+
upgradeStars?: Long;
|
|
1971
|
+
fromId?: tl.TypePeer;
|
|
1972
|
+
peer?: tl.TypePeer;
|
|
1973
|
+
savedId?: Long;
|
|
1974
|
+
prepaidUpgradeHash?: string;
|
|
1975
|
+
giftMsgId?: number;
|
|
1976
|
+
toId?: tl.TypePeer;
|
|
1977
|
+
}
|
|
1832
1978
|
interface RpcCallReturn {
|
|
1833
1979
|
}
|
|
1834
|
-
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 | tlCompat.RawStarGift_layer216 | tl.TypeStarGift
|
|
1980
|
+
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 | tlCompat.RawStarGift_layer216 | tlCompat.RawStarGiftUnique_layer218 | tlCompat.RawStarGift_layer218 | tl.TypeStarGift
|
|
1835
1981
|
type TypeEmojiStatus = tlCompat.RawEmojiStatus_layer197 | tlCompat.RawEmojiStatusUntil_layer214 | tl.TypeEmojiStatus
|
|
1836
1982
|
type TypeMessageMedia = tlCompat.RawMessageMediaDocument_layer197 | tl.TypeMessageMedia
|
|
1837
1983
|
type TypeChatFull = tlCompat.RawChannelFull_layer197 | tlCompat.RawChannelFull_layer204 | tlCompat.RawChannelFull_layer211 | tl.TypeChatFull
|
|
1838
|
-
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 | tlCompat.RawMessageActionStarGift_layer216 | tlCompat.RawMessageActionGiftCode_layer216 | tlCompat.RawMessageActionGiftPremium_layer216 | tl.TypeMessageAction
|
|
1984
|
+
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 | tlCompat.RawMessageActionStarGift_layer216 | tlCompat.RawMessageActionGiftCode_layer216 | tlCompat.RawMessageActionGiftPremium_layer216 | tlCompat.RawMessageActionStarGift_layer218 | tl.TypeMessageAction
|
|
1839
1985
|
type TypeUserFull = tlCompat.RawUserFull_layer199 | tlCompat.RawUserFull_layer200 | tlCompat.RawUserFull_layer209 | tlCompat.RawUserFull_layer210 | tlCompat.RawUserFull_layer211 | tlCompat.RawUserFull_layer214 | tl.TypeUserFull
|
|
1840
1986
|
type TypePremiumGiftOption = tlCompat.RawPremiumGiftOption_layer199
|
|
1841
1987
|
type TypeUser = tlCompat.RawUser_layer199 | tlCompat.RawUser_layer216 | tl.TypeUser
|
|
@@ -1845,6 +1991,7 @@ export declare namespace tlCompat {
|
|
|
1845
1991
|
type TypeMessageReplyHeader = tlCompat.RawMessageReplyHeader_layer206 | tl.TypeMessageReplyHeader
|
|
1846
1992
|
type TypeStoryItem = tlCompat.RawStoryItem_layer210 | tl.TypeStoryItem
|
|
1847
1993
|
type TypeTodoCompletion = tlCompat.RawTodoCompletion_layer216 | tl.TypeTodoCompletion
|
|
1994
|
+
type TypeWebPageAttribute = tlCompat.RawWebPageAttributeStarGiftAuction_layer218 | tl.TypeWebPageAttribute
|
|
1848
1995
|
|
|
1849
1996
|
type TlObject =
|
|
1850
1997
|
| tlCompat.RawStarGiftUnique_layer197
|
|
@@ -1896,5 +2043,9 @@ export declare namespace tlCompat {
|
|
|
1896
2043
|
| tlCompat.RawMessageActionGiftCode_layer216
|
|
1897
2044
|
| tlCompat.RawMessageActionGiftPremium_layer216
|
|
1898
2045
|
| tlCompat.RawMessage_layer216
|
|
2046
|
+
| tlCompat.RawWebPageAttributeStarGiftAuction_layer218
|
|
2047
|
+
| tlCompat.RawStarGiftUnique_layer218
|
|
2048
|
+
| tlCompat.RawStarGift_layer218
|
|
2049
|
+
| tlCompat.RawMessageActionStarGift_layer218
|
|
1899
2050
|
| tl.TlObject
|
|
1900
2051
|
}
|
package/compat/reader.js
CHANGED
|
@@ -51,5 +51,9 @@ var m={
|
|
|
51
51
|
1456486804:function(r){var flags=r.uint();return{_:'messageActionGiftCode_layer216',viaGiveaway:!!(flags&1),unclaimed:!!(flags&32),boostPeer:flags&2?r.object():void 0,months:r.int(),slug:r.string(),currency:flags&4?r.string():void 0,amount:flags&4?r.long():void 0,cryptoCurrency:flags&8?r.string():void 0,cryptoAmount:flags&8?r.long():void 0,message:flags&16?r.object():void 0,}},
|
|
52
52
|
1818391802:function(r){var flags=r.uint();return{_:'messageActionGiftPremium_layer216',currency:r.string(),amount:r.long(),months:r.int(),cryptoCurrency:flags&1?r.string():void 0,cryptoAmount:flags&1?r.long():void 0,message:flags&2?r.object():void 0,}},
|
|
53
53
|
2551566024:function(r){var flags=r.uint(),flags2=r.uint();return{_:'message_layer216',out:!!(flags&2),mentioned:!!(flags&16),mediaUnread:!!(flags&32),silent:!!(flags&8192),post:!!(flags&16384),fromScheduled:!!(flags&262144),legacy:!!(flags&524288),editHide:!!(flags&2097152),pinned:!!(flags&16777216),noforwards:!!(flags&67108864),invertMedia:!!(flags&134217728),offline:!!(flags2&2),videoProcessingPending:!!(flags2&16),paidSuggestedPostStars:!!(flags2&256),paidSuggestedPostTon:!!(flags2&512),id:r.int(),fromId:flags&256?r.object():void 0,fromBoostsApplied:flags&536870912?r.int():void 0,peerId:r.object(),savedPeerId:flags&268435456?r.object():void 0,fwdFrom:flags&4?r.object():void 0,viaBotId:flags&2048?r.int53():void 0,viaBusinessBotId:flags2&1?r.int53():void 0,replyTo:flags&8?r.object():void 0,date:r.int(),message:r.string(),media:flags&512?r.object():void 0,replyMarkup:flags&64?r.object():void 0,entities:flags&128?r.vector(r.object):void 0,views:flags&1024?r.int():void 0,forwards:flags&1024?r.int():void 0,replies:flags&8388608?r.object():void 0,editDate:flags&32768?r.int():void 0,postAuthor:flags&65536?r.string():void 0,groupedId:flags&131072?r.long():void 0,reactions:flags&1048576?r.object():void 0,restrictionReason:flags&4194304?r.vector(r.object):void 0,ttlPeriod:flags&33554432?r.int():void 0,quickReplyShortcutId:flags&1073741824?r.int():void 0,effect:flags2&4?r.long():void 0,factcheck:flags2&8?r.object():void 0,reportDeliveryUntilDate:flags2&32?r.int():void 0,paidMessageStars:flags2&64?r.long():void 0,suggestedPost:flags2&128?r.object():void 0,}},
|
|
54
|
+
55150251:function(r){return{_:'webPageAttributeStarGiftAuction_layer218',gift:r.object(),endDate:r.int(),centerColor:r.int(),edgeColor:r.int(),textColor:r.int(),}},
|
|
55
|
+
2965337115:function(r){var flags=r.uint();return{_:'starGiftUnique_layer218',requirePremium:!!(flags&64),resaleTonOnly:!!(flags&128),themeAvailable:!!(flags&512),id:r.long(),giftId:r.long(),title:r.string(),slug:r.string(),num:r.int(),ownerId:flags&1?r.object():void 0,ownerName:flags&2?r.string():void 0,ownerAddress:flags&4?r.string():void 0,attributes:r.vector(r.object),availabilityIssued:r.int(),availabilityTotal:r.int(),giftAddress:flags&8?r.string():void 0,resellAmount:flags&16?r.vector(r.object):void 0,releasedBy:flags&32?r.object():void 0,valueAmount:flags&256?r.long():void 0,valueCurrency:flags&256?r.string():void 0,themePeer:flags&1024?r.object():void 0,peerColor:flags&2048?r.object():void 0,hostId:flags&4096?r.object():void 0,}},
|
|
56
|
+
463097215:function(r){var flags=r.uint();return{_:'starGift_layer218',limited:!!(flags&1),soldOut:!!(flags&2),birthday:!!(flags&4),requirePremium:!!(flags&128),limitedPerUser:!!(flags&256),peerColorAvailable:!!(flags&1024),auction:!!(flags&2048),id:r.long(),sticker:r.object(),stars:r.long(),availabilityRemains:flags&1?r.int():void 0,availabilityTotal:flags&1?r.int():void 0,availabilityResale:flags&16?r.long():void 0,convertStars:r.long(),firstSaleDate:flags&2?r.int():void 0,lastSaleDate:flags&2?r.int():void 0,upgradeStars:flags&8?r.long():void 0,resellMinStars:flags&16?r.long():void 0,title:flags&32?r.string():void 0,releasedBy:flags&64?r.object():void 0,perUserTotal:flags&256?r.int():void 0,perUserRemains:flags&256?r.int():void 0,lockedUntilDate:flags&512?r.int():void 0,auctionSlug:flags&2048?r.string():void 0,giftsPerRound:flags&2048?r.int():void 0,}},
|
|
57
|
+
3680068944:function(r){var flags=r.uint();return{_:'messageActionStarGift_layer218',nameHidden:!!(flags&1),saved:!!(flags&4),converted:!!(flags&8),upgraded:!!(flags&32),refunded:!!(flags&512),canUpgrade:!!(flags&1024),prepaidUpgrade:!!(flags&8192),upgradeSeparate:!!(flags&65536),auctionAcquired:!!(flags&131072),gift:r.object(),message:flags&2?r.object():void 0,convertStars:flags&16?r.long():void 0,upgradeMsgId:flags&32?r.int():void 0,upgradeStars:flags&256?r.long():void 0,fromId:flags&2048?r.object():void 0,peer:flags&4096?r.object():void 0,savedId:flags&4096?r.long():void 0,prepaidUpgradeHash:flags&16384?r.string():void 0,giftMsgId:flags&32768?r.int():void 0,toId:flags&262144?r.object():void 0,}},
|
|
54
58
|
}
|
|
55
59
|
exports.__tlReaderMapCompat = m;
|