@mtcute/tl 218.0.1 → 221.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 +42 -23
- package/binary/writer.js +75 -37
- package/compat/index.d.ts +227 -4
- package/compat/reader.js +6 -0
- package/index.d.ts +358 -75
- package/index.js +13 -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';
|
|
@@ -433,6 +439,7 @@ export declare namespace tlCompat {
|
|
|
433
439
|
* paid_message_stars: flags2.6?long
|
|
434
440
|
* suggested_post: flags2.7?SuggestedPost
|
|
435
441
|
* schedule_repeat_period: flags2.10?int
|
|
442
|
+
* summary_from_language: flags2.11?string
|
|
436
443
|
*/
|
|
437
444
|
interface RawMessage_layer199 {
|
|
438
445
|
_: 'message_layer199';
|
|
@@ -553,9 +560,11 @@ export declare namespace tlCompat {
|
|
|
553
560
|
* released_by: flags.5?Peer
|
|
554
561
|
* value_amount: flags.8?long
|
|
555
562
|
* value_currency: flags.8?string
|
|
563
|
+
* value_usd_amount: flags.8?long
|
|
556
564
|
* theme_peer: flags.10?Peer
|
|
557
565
|
* peer_color: flags.11?PeerColor
|
|
558
566
|
* host_id: flags.12?Peer
|
|
567
|
+
* offer_min_stars: flags.13?int
|
|
559
568
|
*/
|
|
560
569
|
interface RawStarGiftUnique_layer202 {
|
|
561
570
|
_: 'starGiftUnique_layer202';
|
|
@@ -588,6 +597,9 @@ export declare namespace tlCompat {
|
|
|
588
597
|
* locked_until_date: flags.9?int
|
|
589
598
|
* auction_slug: flags.11?string
|
|
590
599
|
* gifts_per_round: flags.11?int
|
|
600
|
+
* auction_start_date: flags.11?int
|
|
601
|
+
* upgrade_variants: flags.12?int
|
|
602
|
+
* background: flags.13?StarGiftBackground
|
|
591
603
|
*/
|
|
592
604
|
interface RawStarGift_layer202 {
|
|
593
605
|
_: 'starGift_layer202';
|
|
@@ -610,6 +622,7 @@ export declare namespace tlCompat {
|
|
|
610
622
|
* Added arguments:
|
|
611
623
|
* prepaid_upgrade: flags.11?true
|
|
612
624
|
* assigned: flags.13?true
|
|
625
|
+
* from_offer: flags.14?true
|
|
613
626
|
* resale_amount: flags.8?StarsAmount
|
|
614
627
|
* can_transfer_at: flags.9?int
|
|
615
628
|
* can_resell_at: flags.10?int
|
|
@@ -784,6 +797,7 @@ export declare namespace tlCompat {
|
|
|
784
797
|
*
|
|
785
798
|
* Added arguments:
|
|
786
799
|
* saved_peer_id: flags.28?Peer
|
|
800
|
+
* legacy_ios: flags.17?true
|
|
787
801
|
*/
|
|
788
802
|
interface RawMessageService_layer204 {
|
|
789
803
|
_: 'messageService_layer204';
|
|
@@ -811,6 +825,7 @@ export declare namespace tlCompat {
|
|
|
811
825
|
* paid_suggested_post_ton: flags2.9?true
|
|
812
826
|
* suggested_post: flags2.7?SuggestedPost
|
|
813
827
|
* schedule_repeat_period: flags2.10?int
|
|
828
|
+
* summary_from_language: flags2.11?string
|
|
814
829
|
*/
|
|
815
830
|
interface RawMessage_layer204 {
|
|
816
831
|
_: 'message_layer204';
|
|
@@ -868,9 +883,11 @@ export declare namespace tlCompat {
|
|
|
868
883
|
* released_by: flags.5?Peer
|
|
869
884
|
* value_amount: flags.8?long
|
|
870
885
|
* value_currency: flags.8?string
|
|
886
|
+
* value_usd_amount: flags.8?long
|
|
871
887
|
* theme_peer: flags.10?Peer
|
|
872
888
|
* peer_color: flags.11?PeerColor
|
|
873
889
|
* host_id: flags.12?Peer
|
|
890
|
+
* offer_min_stars: flags.13?int
|
|
874
891
|
* Removed arguments: resell_stars
|
|
875
892
|
*/
|
|
876
893
|
interface RawStarGiftUnique_layer206 {
|
|
@@ -902,6 +919,9 @@ export declare namespace tlCompat {
|
|
|
902
919
|
* locked_until_date: flags.9?int
|
|
903
920
|
* auction_slug: flags.11?string
|
|
904
921
|
* gifts_per_round: flags.11?int
|
|
922
|
+
* auction_start_date: flags.11?int
|
|
923
|
+
* upgrade_variants: flags.12?int
|
|
924
|
+
* background: flags.13?StarGiftBackground
|
|
905
925
|
*/
|
|
906
926
|
interface RawStarGift_layer206 {
|
|
907
927
|
_: 'starGift_layer206';
|
|
@@ -1018,6 +1038,9 @@ export declare namespace tlCompat {
|
|
|
1018
1038
|
* locked_until_date: flags.9?int
|
|
1019
1039
|
* auction_slug: flags.11?string
|
|
1020
1040
|
* gifts_per_round: flags.11?int
|
|
1041
|
+
* auction_start_date: flags.11?int
|
|
1042
|
+
* upgrade_variants: flags.12?int
|
|
1043
|
+
* background: flags.13?StarGiftBackground
|
|
1021
1044
|
*/
|
|
1022
1045
|
interface RawStarGift_layer209 {
|
|
1023
1046
|
_: 'starGift_layer209';
|
|
@@ -1138,6 +1161,7 @@ export declare namespace tlCompat {
|
|
|
1138
1161
|
* Added arguments:
|
|
1139
1162
|
* prepaid_upgrade: flags.11?true
|
|
1140
1163
|
* assigned: flags.13?true
|
|
1164
|
+
* from_offer: flags.14?true
|
|
1141
1165
|
* resale_amount: flags.8?StarsAmount
|
|
1142
1166
|
* drop_original_details_stars: flags.12?long
|
|
1143
1167
|
* Removed arguments: resale_stars
|
|
@@ -1168,9 +1192,11 @@ export declare namespace tlCompat {
|
|
|
1168
1192
|
* resell_amount: flags.4?Vector<StarsAmount>
|
|
1169
1193
|
* value_amount: flags.8?long
|
|
1170
1194
|
* value_currency: flags.8?string
|
|
1195
|
+
* value_usd_amount: flags.8?long
|
|
1171
1196
|
* theme_peer: flags.10?Peer
|
|
1172
1197
|
* peer_color: flags.11?PeerColor
|
|
1173
1198
|
* host_id: flags.12?Peer
|
|
1199
|
+
* offer_min_stars: flags.13?int
|
|
1174
1200
|
* Removed arguments: resell_stars
|
|
1175
1201
|
*/
|
|
1176
1202
|
interface RawStarGiftUnique_layer210 {
|
|
@@ -1336,9 +1362,11 @@ export declare namespace tlCompat {
|
|
|
1336
1362
|
* gift_id: long
|
|
1337
1363
|
* value_amount: flags.8?long
|
|
1338
1364
|
* value_currency: flags.8?string
|
|
1365
|
+
* value_usd_amount: flags.8?long
|
|
1339
1366
|
* theme_peer: flags.10?Peer
|
|
1340
1367
|
* peer_color: flags.11?PeerColor
|
|
1341
1368
|
* host_id: flags.12?Peer
|
|
1369
|
+
* offer_min_stars: flags.13?int
|
|
1342
1370
|
*/
|
|
1343
1371
|
interface RawStarGiftUnique_layer211 {
|
|
1344
1372
|
_: 'starGiftUnique_layer211';
|
|
@@ -1367,6 +1395,9 @@ export declare namespace tlCompat {
|
|
|
1367
1395
|
* locked_until_date: flags.9?int
|
|
1368
1396
|
* auction_slug: flags.11?string
|
|
1369
1397
|
* gifts_per_round: flags.11?int
|
|
1398
|
+
* auction_start_date: flags.11?int
|
|
1399
|
+
* upgrade_variants: flags.12?int
|
|
1400
|
+
* background: flags.13?StarGiftBackground
|
|
1370
1401
|
*/
|
|
1371
1402
|
interface RawStarGift_layer211 {
|
|
1372
1403
|
_: 'starGift_layer211';
|
|
@@ -1401,6 +1432,7 @@ export declare namespace tlCompat {
|
|
|
1401
1432
|
* prepaid_upgrade_hash: flags.14?string
|
|
1402
1433
|
* gift_msg_id: flags.15?int
|
|
1403
1434
|
* to_id: flags.18?Peer
|
|
1435
|
+
* gift_num: flags.19?int
|
|
1404
1436
|
*/
|
|
1405
1437
|
interface RawMessageActionStarGift_layer211 {
|
|
1406
1438
|
_: 'messageActionStarGift_layer211';
|
|
@@ -1504,8 +1536,10 @@ export declare namespace tlCompat {
|
|
|
1504
1536
|
* Compared to the current schema, changes from this entry:
|
|
1505
1537
|
*
|
|
1506
1538
|
* Added arguments:
|
|
1539
|
+
* value_usd_amount: flags.8?long
|
|
1507
1540
|
* peer_color: flags.11?PeerColor
|
|
1508
1541
|
* host_id: flags.12?Peer
|
|
1542
|
+
* offer_min_stars: flags.13?int
|
|
1509
1543
|
*/
|
|
1510
1544
|
interface RawStarGiftUnique_layer214 {
|
|
1511
1545
|
_: 'starGiftUnique_layer214';
|
|
@@ -1535,6 +1569,7 @@ export declare namespace tlCompat {
|
|
|
1535
1569
|
*
|
|
1536
1570
|
* Added arguments:
|
|
1537
1571
|
* assigned: flags.13?true
|
|
1572
|
+
* from_offer: flags.14?true
|
|
1538
1573
|
* drop_original_details_stars: flags.12?long
|
|
1539
1574
|
*/
|
|
1540
1575
|
interface RawMessageActionStarGiftUnique_layer214 {
|
|
@@ -1573,6 +1608,9 @@ export declare namespace tlCompat {
|
|
|
1573
1608
|
* auction: flags.11?true
|
|
1574
1609
|
* auction_slug: flags.11?string
|
|
1575
1610
|
* gifts_per_round: flags.11?int
|
|
1611
|
+
* auction_start_date: flags.11?int
|
|
1612
|
+
* upgrade_variants: flags.12?int
|
|
1613
|
+
* background: flags.13?StarGiftBackground
|
|
1576
1614
|
*/
|
|
1577
1615
|
interface RawStarGift_layer216 {
|
|
1578
1616
|
_: 'starGift_layer216';
|
|
@@ -1718,6 +1756,7 @@ export declare namespace tlCompat {
|
|
|
1718
1756
|
* Added arguments:
|
|
1719
1757
|
* auction_acquired: flags.17?true
|
|
1720
1758
|
* to_id: flags.18?Peer
|
|
1759
|
+
* gift_num: flags.19?int
|
|
1721
1760
|
*/
|
|
1722
1761
|
interface RawMessageActionStarGift_layer216 {
|
|
1723
1762
|
_: 'messageActionStarGift_layer216';
|
|
@@ -1781,6 +1820,7 @@ export declare namespace tlCompat {
|
|
|
1781
1820
|
*
|
|
1782
1821
|
* Added arguments:
|
|
1783
1822
|
* schedule_repeat_period: flags2.10?int
|
|
1823
|
+
* summary_from_language: flags2.11?string
|
|
1784
1824
|
*/
|
|
1785
1825
|
interface RawMessage_layer216 {
|
|
1786
1826
|
_: 'message_layer216';
|
|
@@ -1829,22 +1869,199 @@ export declare namespace tlCompat {
|
|
|
1829
1869
|
paidMessageStars?: Long;
|
|
1830
1870
|
suggestedPost?: tl.TypeSuggestedPost;
|
|
1831
1871
|
}
|
|
1872
|
+
/**
|
|
1873
|
+
* Compared to the current schema, changes from this entry:
|
|
1874
|
+
*
|
|
1875
|
+
* Removed arguments: center_color, edge_color, text_color
|
|
1876
|
+
*/
|
|
1877
|
+
interface RawWebPageAttributeStarGiftAuction_layer218 {
|
|
1878
|
+
_: 'webPageAttributeStarGiftAuction_layer218';
|
|
1879
|
+
gift: tlCompat.TypeStarGift;
|
|
1880
|
+
endDate: number;
|
|
1881
|
+
centerColor: number;
|
|
1882
|
+
edgeColor: number;
|
|
1883
|
+
textColor: number;
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Compared to the current schema, changes from this entry:
|
|
1887
|
+
*
|
|
1888
|
+
* Added arguments:
|
|
1889
|
+
* value_usd_amount: flags.8?long
|
|
1890
|
+
* offer_min_stars: flags.13?int
|
|
1891
|
+
*/
|
|
1892
|
+
interface RawStarGiftUnique_layer218 {
|
|
1893
|
+
_: 'starGiftUnique_layer218';
|
|
1894
|
+
requirePremium?: boolean;
|
|
1895
|
+
resaleTonOnly?: boolean;
|
|
1896
|
+
themeAvailable?: boolean;
|
|
1897
|
+
id: Long;
|
|
1898
|
+
giftId: Long;
|
|
1899
|
+
title: string;
|
|
1900
|
+
slug: string;
|
|
1901
|
+
num: number;
|
|
1902
|
+
ownerId?: tl.TypePeer;
|
|
1903
|
+
ownerName?: string;
|
|
1904
|
+
ownerAddress?: string;
|
|
1905
|
+
attributes: tl.TypeStarGiftAttribute[];
|
|
1906
|
+
availabilityIssued: number;
|
|
1907
|
+
availabilityTotal: number;
|
|
1908
|
+
giftAddress?: string;
|
|
1909
|
+
resellAmount?: tl.TypeStarsAmount[];
|
|
1910
|
+
releasedBy?: tl.TypePeer;
|
|
1911
|
+
valueAmount?: Long;
|
|
1912
|
+
valueCurrency?: string;
|
|
1913
|
+
themePeer?: tl.TypePeer;
|
|
1914
|
+
peerColor?: tl.TypePeerColor;
|
|
1915
|
+
hostId?: tl.TypePeer;
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* Compared to the current schema, changes from this entry:
|
|
1919
|
+
*
|
|
1920
|
+
* Added arguments:
|
|
1921
|
+
* auction_start_date: flags.11?int
|
|
1922
|
+
* upgrade_variants: flags.12?int
|
|
1923
|
+
* background: flags.13?StarGiftBackground
|
|
1924
|
+
*/
|
|
1925
|
+
interface RawStarGift_layer218 {
|
|
1926
|
+
_: 'starGift_layer218';
|
|
1927
|
+
limited?: boolean;
|
|
1928
|
+
soldOut?: boolean;
|
|
1929
|
+
birthday?: boolean;
|
|
1930
|
+
requirePremium?: boolean;
|
|
1931
|
+
limitedPerUser?: boolean;
|
|
1932
|
+
peerColorAvailable?: boolean;
|
|
1933
|
+
auction?: boolean;
|
|
1934
|
+
id: Long;
|
|
1935
|
+
sticker: tl.TypeDocument;
|
|
1936
|
+
stars: Long;
|
|
1937
|
+
availabilityRemains?: number;
|
|
1938
|
+
availabilityTotal?: number;
|
|
1939
|
+
availabilityResale?: Long;
|
|
1940
|
+
convertStars: Long;
|
|
1941
|
+
firstSaleDate?: number;
|
|
1942
|
+
lastSaleDate?: number;
|
|
1943
|
+
upgradeStars?: Long;
|
|
1944
|
+
resellMinStars?: Long;
|
|
1945
|
+
title?: string;
|
|
1946
|
+
releasedBy?: tl.TypePeer;
|
|
1947
|
+
perUserTotal?: number;
|
|
1948
|
+
perUserRemains?: number;
|
|
1949
|
+
lockedUntilDate?: number;
|
|
1950
|
+
auctionSlug?: string;
|
|
1951
|
+
giftsPerRound?: number;
|
|
1952
|
+
}
|
|
1953
|
+
/**
|
|
1954
|
+
* Compared to the current schema, changes from this entry:
|
|
1955
|
+
*
|
|
1956
|
+
* Added arguments:
|
|
1957
|
+
* gift_num: flags.19?int
|
|
1958
|
+
*/
|
|
1959
|
+
interface RawMessageActionStarGift_layer218 {
|
|
1960
|
+
_: 'messageActionStarGift_layer218';
|
|
1961
|
+
nameHidden?: boolean;
|
|
1962
|
+
saved?: boolean;
|
|
1963
|
+
converted?: boolean;
|
|
1964
|
+
upgraded?: boolean;
|
|
1965
|
+
refunded?: boolean;
|
|
1966
|
+
canUpgrade?: boolean;
|
|
1967
|
+
prepaidUpgrade?: boolean;
|
|
1968
|
+
upgradeSeparate?: boolean;
|
|
1969
|
+
auctionAcquired?: boolean;
|
|
1970
|
+
gift: tlCompat.TypeStarGift;
|
|
1971
|
+
message?: tl.TypeTextWithEntities;
|
|
1972
|
+
convertStars?: Long;
|
|
1973
|
+
upgradeMsgId?: number;
|
|
1974
|
+
upgradeStars?: Long;
|
|
1975
|
+
fromId?: tl.TypePeer;
|
|
1976
|
+
peer?: tl.TypePeer;
|
|
1977
|
+
savedId?: Long;
|
|
1978
|
+
prepaidUpgradeHash?: string;
|
|
1979
|
+
giftMsgId?: number;
|
|
1980
|
+
toId?: tl.TypePeer;
|
|
1981
|
+
}
|
|
1982
|
+
/**
|
|
1983
|
+
* Compared to the current schema, changes from this entry:
|
|
1984
|
+
*
|
|
1985
|
+
* Added arguments:
|
|
1986
|
+
* flags: #
|
|
1987
|
+
* game_outcome: flags.0?messages.EmojiGameOutcome
|
|
1988
|
+
*/
|
|
1989
|
+
interface RawMessageMediaDice_layer220 {
|
|
1990
|
+
_: 'messageMediaDice_layer220';
|
|
1991
|
+
value: number;
|
|
1992
|
+
emoticon: string;
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* Compared to the current schema, changes from this entry:
|
|
1996
|
+
*
|
|
1997
|
+
* Added arguments:
|
|
1998
|
+
* summary_from_language: flags2.11?string
|
|
1999
|
+
*/
|
|
2000
|
+
interface RawMessage_layer220 {
|
|
2001
|
+
_: 'message_layer220';
|
|
2002
|
+
out?: boolean;
|
|
2003
|
+
mentioned?: boolean;
|
|
2004
|
+
mediaUnread?: boolean;
|
|
2005
|
+
silent?: boolean;
|
|
2006
|
+
post?: boolean;
|
|
2007
|
+
fromScheduled?: boolean;
|
|
2008
|
+
legacy?: boolean;
|
|
2009
|
+
editHide?: boolean;
|
|
2010
|
+
pinned?: boolean;
|
|
2011
|
+
noforwards?: boolean;
|
|
2012
|
+
invertMedia?: boolean;
|
|
2013
|
+
offline?: boolean;
|
|
2014
|
+
videoProcessingPending?: boolean;
|
|
2015
|
+
paidSuggestedPostStars?: boolean;
|
|
2016
|
+
paidSuggestedPostTon?: boolean;
|
|
2017
|
+
id: number;
|
|
2018
|
+
fromId?: tl.TypePeer;
|
|
2019
|
+
fromBoostsApplied?: number;
|
|
2020
|
+
peerId: tl.TypePeer;
|
|
2021
|
+
savedPeerId?: tl.TypePeer;
|
|
2022
|
+
fwdFrom?: tl.TypeMessageFwdHeader;
|
|
2023
|
+
viaBotId?: number;
|
|
2024
|
+
viaBusinessBotId?: number;
|
|
2025
|
+
replyTo?: tlCompat.TypeMessageReplyHeader;
|
|
2026
|
+
date: number;
|
|
2027
|
+
message: string;
|
|
2028
|
+
media?: tlCompat.TypeMessageMedia;
|
|
2029
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
2030
|
+
entities?: tl.TypeMessageEntity[];
|
|
2031
|
+
views?: number;
|
|
2032
|
+
forwards?: number;
|
|
2033
|
+
replies?: tl.TypeMessageReplies;
|
|
2034
|
+
editDate?: number;
|
|
2035
|
+
postAuthor?: string;
|
|
2036
|
+
groupedId?: Long;
|
|
2037
|
+
reactions?: tl.TypeMessageReactions;
|
|
2038
|
+
restrictionReason?: tl.TypeRestrictionReason[];
|
|
2039
|
+
ttlPeriod?: number;
|
|
2040
|
+
quickReplyShortcutId?: number;
|
|
2041
|
+
effect?: Long;
|
|
2042
|
+
factcheck?: tl.TypeFactCheck;
|
|
2043
|
+
reportDeliveryUntilDate?: number;
|
|
2044
|
+
paidMessageStars?: Long;
|
|
2045
|
+
suggestedPost?: tl.TypeSuggestedPost;
|
|
2046
|
+
scheduleRepeatPeriod?: number;
|
|
2047
|
+
}
|
|
1832
2048
|
interface RpcCallReturn {
|
|
1833
2049
|
}
|
|
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
|
|
2050
|
+
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
2051
|
type TypeEmojiStatus = tlCompat.RawEmojiStatus_layer197 | tlCompat.RawEmojiStatusUntil_layer214 | tl.TypeEmojiStatus
|
|
1836
|
-
type TypeMessageMedia = tlCompat.RawMessageMediaDocument_layer197 | tl.TypeMessageMedia
|
|
2052
|
+
type TypeMessageMedia = tlCompat.RawMessageMediaDocument_layer197 | tlCompat.RawMessageMediaDice_layer220 | tl.TypeMessageMedia
|
|
1837
2053
|
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
|
|
2054
|
+
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
2055
|
type TypeUserFull = tlCompat.RawUserFull_layer199 | tlCompat.RawUserFull_layer200 | tlCompat.RawUserFull_layer209 | tlCompat.RawUserFull_layer210 | tlCompat.RawUserFull_layer211 | tlCompat.RawUserFull_layer214 | tl.TypeUserFull
|
|
1840
2056
|
type TypePremiumGiftOption = tlCompat.RawPremiumGiftOption_layer199
|
|
1841
2057
|
type TypeUser = tlCompat.RawUser_layer199 | tlCompat.RawUser_layer216 | tl.TypeUser
|
|
1842
2058
|
type TypeChat = tlCompat.RawChannel_layer199 | tlCompat.RawChannel_layer203 | tlCompat.RawChannel_layer216 | tl.TypeChat
|
|
1843
|
-
type TypeMessage = tlCompat.RawMessage_layer199 | tlCompat.RawMessageService_layer204 | tlCompat.RawMessage_layer204 | tlCompat.RawMessage_layer216 | tl.TypeMessage
|
|
2059
|
+
type TypeMessage = tlCompat.RawMessage_layer199 | tlCompat.RawMessageService_layer204 | tlCompat.RawMessage_layer204 | tlCompat.RawMessage_layer216 | tlCompat.RawMessage_layer220 | tl.TypeMessage
|
|
1844
2060
|
type TypePhoneCallDiscardReason = tlCompat.RawPhoneCallDiscardReasonAllowGroupCall_layer202 | tl.TypePhoneCallDiscardReason
|
|
1845
2061
|
type TypeMessageReplyHeader = tlCompat.RawMessageReplyHeader_layer206 | tl.TypeMessageReplyHeader
|
|
1846
2062
|
type TypeStoryItem = tlCompat.RawStoryItem_layer210 | tl.TypeStoryItem
|
|
1847
2063
|
type TypeTodoCompletion = tlCompat.RawTodoCompletion_layer216 | tl.TypeTodoCompletion
|
|
2064
|
+
type TypeWebPageAttribute = tlCompat.RawWebPageAttributeStarGiftAuction_layer218 | tl.TypeWebPageAttribute
|
|
1848
2065
|
|
|
1849
2066
|
type TlObject =
|
|
1850
2067
|
| tlCompat.RawStarGiftUnique_layer197
|
|
@@ -1896,5 +2113,11 @@ export declare namespace tlCompat {
|
|
|
1896
2113
|
| tlCompat.RawMessageActionGiftCode_layer216
|
|
1897
2114
|
| tlCompat.RawMessageActionGiftPremium_layer216
|
|
1898
2115
|
| tlCompat.RawMessage_layer216
|
|
2116
|
+
| tlCompat.RawWebPageAttributeStarGiftAuction_layer218
|
|
2117
|
+
| tlCompat.RawStarGiftUnique_layer218
|
|
2118
|
+
| tlCompat.RawStarGift_layer218
|
|
2119
|
+
| tlCompat.RawMessageActionStarGift_layer218
|
|
2120
|
+
| tlCompat.RawMessageMediaDice_layer220
|
|
2121
|
+
| tlCompat.RawMessage_layer220
|
|
1899
2122
|
| tl.TlObject
|
|
1900
2123
|
}
|
package/compat/reader.js
CHANGED
|
@@ -51,5 +51,11 @@ 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,}},
|
|
58
|
+
1065280907:function(r){return{_:'messageMediaDice_layer220',value:r.int(),emoticon:r.string(),}},
|
|
59
|
+
3106895567:function(r){var flags=r.uint(),flags2=r.uint();return{_:'message_layer220',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,scheduleRepeatPeriod:flags2&1024?r.int():void 0,}},
|
|
54
60
|
}
|
|
55
61
|
exports.__tlReaderMapCompat = m;
|