@mtkruto/node 0.148.0 → 0.151.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/esm/3_types.d.ts +4 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +4 -0
- package/esm/client/0_params.d.ts +18 -4
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_utilities.d.ts +1 -1
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +34 -6
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +20 -0
- package/esm/client/3_filters.d.ts.map +1 -1
- package/esm/client/3_filters.js +4 -1
- package/esm/client/3_message_manager.d.ts +5 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +326 -76
- package/esm/client/4_context.d.ts.map +1 -1
- package/esm/client/4_context.js +5 -1
- package/esm/client/6_client.d.ts +34 -6
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +43 -5
- package/esm/client/6_client_dispatcher.d.ts +34 -6
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +38 -4
- package/esm/tl/1_telegram_api.d.ts +120 -29
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +124 -26
- package/esm/types/0_message_counters.d.ts +1 -1
- package/esm/types/0_message_counters.d.ts.map +1 -1
- package/esm/types/0_upload_progress.d.ts +2 -0
- package/esm/types/0_upload_progress.d.ts.map +1 -1
- package/esm/types/1_chat_p.d.ts +2 -0
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_chat_p.js +3 -2
- package/esm/types/1_input_poll_media.d.ts +128 -0
- package/esm/types/1_input_poll_media.d.ts.map +1 -0
- package/esm/types/1_input_poll_media.js +20 -0
- package/esm/types/2_message_entity.d.ts +16 -0
- package/esm/types/2_message_entity.d.ts.map +1 -1
- package/esm/types/2_message_entity.js +51 -45
- package/esm/types/3_checklist_item.d.ts +1 -1
- package/esm/types/3_checklist_item.d.ts.map +1 -1
- package/esm/types/3_input_poll_option.d.ts +3 -0
- package/esm/types/3_input_poll_option.d.ts.map +1 -1
- package/esm/types/3_message_reactions.d.ts +1 -1
- package/esm/types/3_message_reactions.d.ts.map +1 -1
- package/esm/types/3_rich_text_component.d.ts +268 -0
- package/esm/types/3_rich_text_component.d.ts.map +1 -0
- package/esm/types/3_rich_text_component.js +161 -0
- package/esm/types/4_gift.d.ts +1 -1
- package/esm/types/4_page_block.d.ts +479 -0
- package/esm/types/4_page_block.d.ts.map +1 -0
- package/esm/types/4_page_block.js +552 -0
- package/esm/types/4_poll.d.ts +1 -1
- package/esm/types/4_poll.d.ts.map +1 -1
- package/esm/types/4_reply_to.d.ts +4 -0
- package/esm/types/4_reply_to.d.ts.map +1 -1
- package/esm/types/5_input_rich_text.d.ts +38 -0
- package/esm/types/5_input_rich_text.d.ts.map +1 -0
- package/esm/types/5_input_rich_text.js +20 -0
- package/esm/types/6_message.d.ts +22 -1
- package/esm/types/6_message.d.ts.map +1 -1
- package/esm/types/6_message.js +30 -0
- package/esm/utilities/0_misc.d.ts +1 -0
- package/esm/utilities/0_misc.d.ts.map +1 -1
- package/esm/utilities/0_misc.js +1 -0
- package/package.json +1 -1
- package/script/3_types.d.ts +4 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +4 -0
- package/script/client/0_params.d.ts +18 -4
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_utilities.d.ts +1 -1
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +34 -6
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +20 -0
- package/script/client/3_filters.d.ts.map +1 -1
- package/script/client/3_filters.js +4 -1
- package/script/client/3_message_manager.d.ts +5 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +325 -75
- package/script/client/4_context.d.ts.map +1 -1
- package/script/client/4_context.js +5 -1
- package/script/client/6_client.d.ts +34 -6
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +42 -4
- package/script/client/6_client_dispatcher.d.ts +34 -6
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +38 -4
- package/script/tl/1_telegram_api.d.ts +120 -29
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +124 -26
- package/script/types/0_message_counters.d.ts +1 -1
- package/script/types/0_message_counters.d.ts.map +1 -1
- package/script/types/0_upload_progress.d.ts +2 -0
- package/script/types/0_upload_progress.d.ts.map +1 -1
- package/script/types/1_chat_p.d.ts +2 -0
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_chat_p.js +3 -2
- package/script/types/1_input_poll_media.d.ts +128 -0
- package/script/types/1_input_poll_media.d.ts.map +1 -0
- package/script/types/1_input_poll_media.js +21 -0
- package/script/types/2_message_entity.d.ts +16 -0
- package/script/types/2_message_entity.d.ts.map +1 -1
- package/script/types/2_message_entity.js +53 -45
- package/script/types/3_checklist_item.d.ts +1 -1
- package/script/types/3_checklist_item.d.ts.map +1 -1
- package/script/types/3_input_poll_option.d.ts +3 -0
- package/script/types/3_input_poll_option.d.ts.map +1 -1
- package/script/types/3_message_reactions.d.ts +1 -1
- package/script/types/3_message_reactions.d.ts.map +1 -1
- package/script/types/3_rich_text_component.d.ts +268 -0
- package/script/types/3_rich_text_component.d.ts.map +1 -0
- package/script/types/3_rich_text_component.js +165 -0
- package/script/types/4_gift.d.ts +1 -1
- package/script/types/4_page_block.d.ts +479 -0
- package/script/types/4_page_block.d.ts.map +1 -0
- package/script/types/4_page_block.js +569 -0
- package/script/types/4_poll.d.ts +1 -1
- package/script/types/4_poll.d.ts.map +1 -1
- package/script/types/4_reply_to.d.ts +4 -0
- package/script/types/4_reply_to.d.ts.map +1 -1
- package/script/types/5_input_rich_text.d.ts +38 -0
- package/script/types/5_input_rich_text.d.ts.map +1 -0
- package/script/types/5_input_rich_text.js +21 -0
- package/script/types/6_message.d.ts +22 -1
- package/script/types/6_message.d.ts.map +1 -1
- package/script/types/6_message.js +30 -0
- package/script/utilities/0_misc.d.ts +1 -0
- package/script/utilities/0_misc.d.ts.map +1 -1
- package/script/utilities/0_misc.js +2 -1
|
@@ -35,10 +35,60 @@ exports.schema = Object.freeze({
|
|
|
35
35
|
],
|
|
36
36
|
"Error",
|
|
37
37
|
],
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
[
|
|
41
|
-
|
|
38
|
+
ipPort: [
|
|
39
|
+
0xD433AD73,
|
|
40
|
+
[
|
|
41
|
+
["ipv4", "int"],
|
|
42
|
+
["port", "int"],
|
|
43
|
+
],
|
|
44
|
+
"IpPort",
|
|
45
|
+
],
|
|
46
|
+
ipPortSecret: [
|
|
47
|
+
0x37982646,
|
|
48
|
+
[
|
|
49
|
+
["ipv4", "int"],
|
|
50
|
+
["port", "int"],
|
|
51
|
+
["secret", "bytes"],
|
|
52
|
+
],
|
|
53
|
+
"IpPort",
|
|
54
|
+
],
|
|
55
|
+
accessPointRule: [
|
|
56
|
+
0x4679B65F,
|
|
57
|
+
[
|
|
58
|
+
["phone_prefix_rules", "string"],
|
|
59
|
+
["dc_id", "int"],
|
|
60
|
+
["ips", "vector<IpPort>"],
|
|
61
|
+
],
|
|
62
|
+
"AccessPointRule",
|
|
63
|
+
],
|
|
64
|
+
"help.configSimple": [
|
|
65
|
+
0x5A592A6C,
|
|
66
|
+
[
|
|
67
|
+
["date", "int"],
|
|
68
|
+
["expires", "int"],
|
|
69
|
+
["rules", "vector<AccessPointRule>"],
|
|
70
|
+
],
|
|
71
|
+
"help.ConfigSimple",
|
|
72
|
+
],
|
|
73
|
+
inputPeerPhotoFileLocationLegacy: [
|
|
74
|
+
0x27D69997,
|
|
75
|
+
[
|
|
76
|
+
["flags", "#"],
|
|
77
|
+
["big", "flags.0?true"],
|
|
78
|
+
["peer", "InputPeer"],
|
|
79
|
+
["volume_id", "long"],
|
|
80
|
+
["local_id", "int"],
|
|
81
|
+
],
|
|
82
|
+
"InputFileLocation",
|
|
83
|
+
],
|
|
84
|
+
inputStickerSetThumbLegacy: [
|
|
85
|
+
0x0DBAEAE9,
|
|
86
|
+
[
|
|
87
|
+
["stickerset", "InputStickerSet"],
|
|
88
|
+
["volume_id", "long"],
|
|
89
|
+
["local_id", "int"],
|
|
90
|
+
],
|
|
91
|
+
"InputFileLocation",
|
|
42
92
|
],
|
|
43
93
|
inputPeerEmpty: [
|
|
44
94
|
0x7F3B18EA,
|
|
@@ -10184,7 +10234,6 @@ exports.schema = Object.freeze({
|
|
|
10184
10234
|
["reply_to_scheduled", "flags.2?true"],
|
|
10185
10235
|
["forum_topic", "flags.3?true"],
|
|
10186
10236
|
["quote", "flags.9?true"],
|
|
10187
|
-
["reply_to_ephemeral", "flags.13?true"],
|
|
10188
10237
|
["reply_to_msg_id", "flags.4?int"],
|
|
10189
10238
|
["reply_to_peer_id", "flags.0?Peer"],
|
|
10190
10239
|
["reply_from", "flags.5?MessageFwdHeader"],
|
|
@@ -14763,17 +14812,21 @@ exports.schema = Object.freeze({
|
|
|
14763
14812
|
],
|
|
14764
14813
|
"account.WebBrowserSettings",
|
|
14765
14814
|
],
|
|
14766
|
-
|
|
14767
|
-
|
|
14815
|
+
inputRichFilePhoto: [
|
|
14816
|
+
0x9B00622B,
|
|
14768
14817
|
[
|
|
14769
|
-
["
|
|
14770
|
-
["
|
|
14771
|
-
["part", "flags.1?true"],
|
|
14772
|
-
["blocks", "Vector<PageBlock>"],
|
|
14773
|
-
["photos", "Vector<Photo>"],
|
|
14774
|
-
["documents", "Vector<Document>"],
|
|
14818
|
+
["id", "string"],
|
|
14819
|
+
["photo", "InputPhoto"],
|
|
14775
14820
|
],
|
|
14776
|
-
"
|
|
14821
|
+
"InputRichFile",
|
|
14822
|
+
],
|
|
14823
|
+
inputRichFileDocument: [
|
|
14824
|
+
0x83281DBD,
|
|
14825
|
+
[
|
|
14826
|
+
["id", "string"],
|
|
14827
|
+
["document", "InputDocument"],
|
|
14828
|
+
],
|
|
14829
|
+
"InputRichFile",
|
|
14777
14830
|
],
|
|
14778
14831
|
inputRichMessage: [
|
|
14779
14832
|
0xE4C449FC,
|
|
@@ -14789,31 +14842,69 @@ exports.schema = Object.freeze({
|
|
|
14789
14842
|
"InputRichMessage",
|
|
14790
14843
|
],
|
|
14791
14844
|
inputRichMessageHTML: [
|
|
14792
|
-
|
|
14845
|
+
0xDACB836A,
|
|
14793
14846
|
[
|
|
14794
14847
|
["flags", "#"],
|
|
14795
14848
|
["rtl", "flags.0?true"],
|
|
14796
14849
|
["noautolink", "flags.1?true"],
|
|
14797
14850
|
["html", "string"],
|
|
14798
|
-
["
|
|
14799
|
-
["documents", "flags.3?Vector<InputDocument>"],
|
|
14800
|
-
["users", "flags.4?Vector<InputUser>"],
|
|
14851
|
+
["files", "flags.2?Vector<InputRichFile>"],
|
|
14801
14852
|
],
|
|
14802
14853
|
"InputRichMessage",
|
|
14803
14854
|
],
|
|
14804
14855
|
inputRichMessageMarkdown: [
|
|
14805
|
-
|
|
14856
|
+
0x004B572C,
|
|
14806
14857
|
[
|
|
14807
14858
|
["flags", "#"],
|
|
14808
14859
|
["rtl", "flags.0?true"],
|
|
14809
14860
|
["noautolink", "flags.1?true"],
|
|
14810
14861
|
["markdown", "string"],
|
|
14811
|
-
["
|
|
14812
|
-
["documents", "flags.3?Vector<InputDocument>"],
|
|
14813
|
-
["users", "flags.4?Vector<InputUser>"],
|
|
14862
|
+
["files", "flags.2?Vector<InputRichFile>"],
|
|
14814
14863
|
],
|
|
14815
14864
|
"InputRichMessage",
|
|
14816
14865
|
],
|
|
14866
|
+
richMessage: [
|
|
14867
|
+
0xBAF39D8B,
|
|
14868
|
+
[
|
|
14869
|
+
["flags", "#"],
|
|
14870
|
+
["rtl", "flags.0?true"],
|
|
14871
|
+
["part", "flags.1?true"],
|
|
14872
|
+
["blocks", "Vector<PageBlock>"],
|
|
14873
|
+
["photos", "Vector<Photo>"],
|
|
14874
|
+
["documents", "Vector<Document>"],
|
|
14875
|
+
],
|
|
14876
|
+
"RichMessage",
|
|
14877
|
+
],
|
|
14878
|
+
invokeWithBusinessConnectionPrefix: [
|
|
14879
|
+
0xDD289F8E,
|
|
14880
|
+
[
|
|
14881
|
+
["connection_id", "string"],
|
|
14882
|
+
],
|
|
14883
|
+
"Error",
|
|
14884
|
+
],
|
|
14885
|
+
invokeWithGooglePlayIntegrityPrefix: [
|
|
14886
|
+
0x1DF92984,
|
|
14887
|
+
[
|
|
14888
|
+
["nonce", "string"],
|
|
14889
|
+
["token", "string"],
|
|
14890
|
+
],
|
|
14891
|
+
"Error",
|
|
14892
|
+
],
|
|
14893
|
+
invokeWithApnsSecretPrefix: [
|
|
14894
|
+
0x0DAE54F8,
|
|
14895
|
+
[
|
|
14896
|
+
["nonce", "string"],
|
|
14897
|
+
["secret", "string"],
|
|
14898
|
+
],
|
|
14899
|
+
"Error",
|
|
14900
|
+
],
|
|
14901
|
+
invokeWithReCaptchaPrefix: [
|
|
14902
|
+
0xADBB0F94,
|
|
14903
|
+
[
|
|
14904
|
+
["token", "string"],
|
|
14905
|
+
],
|
|
14906
|
+
"Error",
|
|
14907
|
+
],
|
|
14817
14908
|
invokeAfterMsg: [
|
|
14818
14909
|
0xCB9F372D,
|
|
14819
14910
|
[
|
|
@@ -21739,7 +21830,12 @@ exports.schema = Object.freeze({
|
|
|
21739
21830
|
identifierToName: {
|
|
21740
21831
|
[0x3FEDD339]: "true",
|
|
21741
21832
|
[0xC4B9F9BB]: "error",
|
|
21742
|
-
[
|
|
21833
|
+
[0xD433AD73]: "ipPort",
|
|
21834
|
+
[0x37982646]: "ipPortSecret",
|
|
21835
|
+
[0x4679B65F]: "accessPointRule",
|
|
21836
|
+
[0x5A592A6C]: "help.configSimple",
|
|
21837
|
+
[0x27D69997]: "inputPeerPhotoFileLocationLegacy",
|
|
21838
|
+
[0x0DBAEAE9]: "inputStickerSetThumbLegacy",
|
|
21743
21839
|
[0x7F3B18EA]: "inputPeerEmpty",
|
|
21744
21840
|
[0x7DA07EC9]: "inputPeerSelf",
|
|
21745
21841
|
[0x35A95CB9]: "inputPeerChat",
|
|
@@ -23348,10 +23444,12 @@ exports.schema = Object.freeze({
|
|
|
23348
23444
|
[0x933CA597]: "webDomainException",
|
|
23349
23445
|
[0xC31C8F4E]: "account.webBrowserSettingsNotModified",
|
|
23350
23446
|
[0x79EB8CB3]: "account.webBrowserSettings",
|
|
23351
|
-
[
|
|
23447
|
+
[0x9B00622B]: "inputRichFilePhoto",
|
|
23448
|
+
[0x83281DBD]: "inputRichFileDocument",
|
|
23352
23449
|
[0xE4C449FC]: "inputRichMessage",
|
|
23353
|
-
[
|
|
23354
|
-
[
|
|
23450
|
+
[0xDACB836A]: "inputRichMessageHTML",
|
|
23451
|
+
[0x004B572C]: "inputRichMessageMarkdown",
|
|
23452
|
+
[0xBAF39D8B]: "richMessage",
|
|
23355
23453
|
},
|
|
23356
23454
|
});
|
|
23357
23455
|
exports.LAYER = 227;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
export interface MessageCounters {
|
|
22
22
|
/** The number of times the message was viewed. */
|
|
23
23
|
views: number;
|
|
24
|
-
/** The number of replies made to the
|
|
24
|
+
/** The number of replies made to the message. */
|
|
25
25
|
replies: number;
|
|
26
26
|
/** The number of times the message was forwarded. */
|
|
27
27
|
forwards: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_message_counters.d.ts","sourceRoot":"","sources":["../../src/types/0_message_counters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,iCAAiC;AACjC,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"0_message_counters.d.ts","sourceRoot":"","sources":["../../src/types/0_message_counters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,iCAAiC;AACjC,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_upload_progress.d.ts","sourceRoot":"","sources":["../../src/types/0_upload_progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,iCAAiC;AACjC,MAAM,WAAW,cAAc;IAC7B,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"0_upload_progress.d.ts","sourceRoot":"","sources":["../../src/types/0_upload_progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,iCAAiC;AACjC,MAAM,WAAW,cAAc;IAC7B,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -125,6 +125,8 @@ export interface ChatPSupergroup extends ChatPChannelBase {
|
|
|
125
125
|
type: "supergroup";
|
|
126
126
|
/** Whether the chat is a forum. */
|
|
127
127
|
isForum: boolean;
|
|
128
|
+
/** Whether the chat is a channel's direct messages. */
|
|
129
|
+
isDirectMessagesChat: boolean;
|
|
128
130
|
}
|
|
129
131
|
/** A chat with lesser fields. */
|
|
130
132
|
export type ChatP = ChatPPrivate | ChatPGroup | Ch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C,IAAI,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,gBAAgB,GAAG,eAAe,GAAG,YAAY,CAAC;AACzG,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC;AA0HjE,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACpD,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD,CAAC,IAAI,EAAE,GAAG,CAAC,WAAW,GAAG,CAAC,YAAY,GAAG,eAAe,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACzE,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC/E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,YAAY,CAE/D"}
|
package/script/types/1_chat_p.js
CHANGED
|
@@ -90,7 +90,7 @@ function constructChatP(chat) {
|
|
|
90
90
|
if (_2_tl_js_1.Api.is("channelForbidden", chat)) {
|
|
91
91
|
const { title } = chat;
|
|
92
92
|
if (chat.megagroup) {
|
|
93
|
-
return { id, color: (0, _1_utilities_js_1.getColorFromPeerId)(id), title, type: "supergroup", isScam: false, isFake: false, isVerified: false, isRestricted: false, isForum: false };
|
|
93
|
+
return { id, color: (0, _1_utilities_js_1.getColorFromPeerId)(id), title, type: "supergroup", isScam: false, isFake: false, isVerified: false, isRestricted: false, isForum: false, isDirectMessagesChat: !!chat.monoforum };
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
96
|
return { id, color: (0, _1_utilities_js_1.getColorFromPeerId)(id), title, type: "channel", isScam: false, isFake: false, isVerified: false, isRestricted: false };
|
|
@@ -107,7 +107,8 @@ function constructChatP(chat) {
|
|
|
107
107
|
isFake,
|
|
108
108
|
isVerified,
|
|
109
109
|
isRestricted,
|
|
110
|
-
isForum: chat.forum
|
|
110
|
+
isForum: !!chat.forum,
|
|
111
|
+
isDirectMessagesChat: !!chat.monoforum,
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
114
|
else {
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import type { FileSource } from "./0_file_source.js";
|
|
21
|
+
/** @unlisted */
|
|
22
|
+
export interface _InputPollOptionMediaCommon {
|
|
23
|
+
/** The file name to assign if applicable. */
|
|
24
|
+
fileName?: string;
|
|
25
|
+
/** The mime type to assign if applicable. */
|
|
26
|
+
mimeType?: string;
|
|
27
|
+
/** Size of each upload chunk in bytes. */
|
|
28
|
+
chunkSize?: number;
|
|
29
|
+
/** Upload abort signal. */
|
|
30
|
+
signal?: AbortSignal;
|
|
31
|
+
}
|
|
32
|
+
/** @unlisted */
|
|
33
|
+
export interface InputPollMediaAnimation extends _InputPollOptionMediaCommon {
|
|
34
|
+
type: "animation";
|
|
35
|
+
/** The animation. */
|
|
36
|
+
animation: FileSource;
|
|
37
|
+
/** A thumbnail to assign. Cannot be a URL. */
|
|
38
|
+
thumbnail?: FileSource;
|
|
39
|
+
/** The duration of the animation in seconds. */
|
|
40
|
+
duration?: number;
|
|
41
|
+
/** The width of the animation file. */
|
|
42
|
+
width?: number;
|
|
43
|
+
/** The height of the animation file. */
|
|
44
|
+
height?: number;
|
|
45
|
+
/** Whether to mark the media as a spoiler. */
|
|
46
|
+
hasSpoiler?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/** @unlisted */
|
|
49
|
+
export interface InputPollMediaPhoto extends _InputPollOptionMediaCommon {
|
|
50
|
+
type: "photo";
|
|
51
|
+
/** The photo. */
|
|
52
|
+
photo: FileSource;
|
|
53
|
+
/** The width of the photo in pixels. */
|
|
54
|
+
width?: number;
|
|
55
|
+
/** The height of the photo in pixels. */
|
|
56
|
+
height?: number;
|
|
57
|
+
/** Whether to mark the media as a spoiler. */
|
|
58
|
+
hasSpoiler?: boolean;
|
|
59
|
+
}
|
|
60
|
+
/** @unlisted */
|
|
61
|
+
export interface InputPollMediaVideo extends _InputPollOptionMediaCommon {
|
|
62
|
+
type: "video";
|
|
63
|
+
/** The video. */
|
|
64
|
+
video: FileSource;
|
|
65
|
+
/** A thumbnail to assign. Cannot be a URL. */
|
|
66
|
+
thumbnail?: FileSource;
|
|
67
|
+
/** The duration of the video in seconds. */
|
|
68
|
+
duration?: number;
|
|
69
|
+
/** The width of the photo in pixels. */
|
|
70
|
+
width?: number;
|
|
71
|
+
/** The height of the photo in pixels. */
|
|
72
|
+
height?: number;
|
|
73
|
+
/** Whether the video is suitable for streaming. */
|
|
74
|
+
supportsStreaming?: boolean;
|
|
75
|
+
/** Whether to mark the media as a spoiler. */
|
|
76
|
+
hasSpoiler?: boolean;
|
|
77
|
+
}
|
|
78
|
+
/** @unlisted */
|
|
79
|
+
export interface InputPollMediaSticker extends _InputPollOptionMediaCommon {
|
|
80
|
+
type: "sticker";
|
|
81
|
+
/** The sticker. */
|
|
82
|
+
sticker: FileSource;
|
|
83
|
+
/** Emoji to bind to the sticker. */
|
|
84
|
+
emoji?: string;
|
|
85
|
+
}
|
|
86
|
+
/** @unlisted */
|
|
87
|
+
export interface InputPollMediaVenue {
|
|
88
|
+
type: "venue";
|
|
89
|
+
/** The latitude of the venue. */
|
|
90
|
+
latitude: number;
|
|
91
|
+
/** The longitude of the venue. */
|
|
92
|
+
longitude: number;
|
|
93
|
+
/** The title of the venue. */
|
|
94
|
+
title: string;
|
|
95
|
+
/** The written address of the venue. */
|
|
96
|
+
address: string;
|
|
97
|
+
/** Foursquare identifier of the venue. */
|
|
98
|
+
foursquareId?: string;
|
|
99
|
+
/** Foursquare type of the venue, if known. For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream". */
|
|
100
|
+
foursquareType?: string;
|
|
101
|
+
}
|
|
102
|
+
/** @unlisted */
|
|
103
|
+
export interface InputPollMediaLink {
|
|
104
|
+
type: "link";
|
|
105
|
+
/** The URL. */
|
|
106
|
+
url: string;
|
|
107
|
+
}
|
|
108
|
+
/** @unlisted */
|
|
109
|
+
export interface InputPollMediaLivePhoto extends _InputPollOptionMediaCommon {
|
|
110
|
+
type: "livePhoto";
|
|
111
|
+
/** The photo. */
|
|
112
|
+
photo: FileSource;
|
|
113
|
+
/** The video version of the photo. */
|
|
114
|
+
video: FileSource;
|
|
115
|
+
}
|
|
116
|
+
/** @unlisted */
|
|
117
|
+
export interface InputPollMediaLocation {
|
|
118
|
+
type: "location";
|
|
119
|
+
/** The latitude of the location. */
|
|
120
|
+
latitude: number;
|
|
121
|
+
/** The longitude of the location. */
|
|
122
|
+
longitude: number;
|
|
123
|
+
/** The accuracy radius of the location in meters. Must be in the range of 0-1500. */
|
|
124
|
+
horizontalAccuracy?: number;
|
|
125
|
+
}
|
|
126
|
+
/** A poll option input media. */
|
|
127
|
+
export type InputPollMedia = InputPollMediaAnimation | InputPollMediaPhoto | InputPollMediaVideo | InputPollMediaSticker | InputPollMediaLivePhoto | InputPollMediaLocation | InputPollMediaVenue | InputPollMediaLink;
|
|
128
|
+
//# sourceMappingURL=1_input_poll_media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1_input_poll_media.d.ts","sourceRoot":"","sources":["../../src/types/1_input_poll_media.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,gBAAgB;AAChB,MAAM,WAAW,2BAA2B;IAC1C,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC1E,IAAI,EAAE,WAAW,CAAC;IAClB,qBAAqB;IACrB,SAAS,EAAE,UAAU,CAAC;IACtB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,mBAAoB,SAAQ,2BAA2B;IACtE,IAAI,EAAE,OAAO,CAAC;IACd,iBAAiB;IACjB,KAAK,EAAE,UAAU,CAAC;IAClB,wCAAwC;IACxC,KAAK,CAAC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ED,gBAAgB;AAChB,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC1E,IAAI,EAAE,WAAW,CAAC;IAClB,iBAAiB;IACjB,KAAK,EAAE,UAAU,CAAC;IAClB,sCAAsC;IACtC,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,iCAAiC;AACjC,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,uBAAuB,GAAG,sBAAsB,GAAG,mBAAmB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
4
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
5
|
+
*
|
|
6
|
+
* This file is part of MTKruto.
|
|
7
|
+
*
|
|
8
|
+
* This program is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU Lesser General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
19
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -122,6 +122,22 @@ export interface MessageEntityDateTime extends _MessageEntityBase {
|
|
|
122
122
|
}
|
|
123
123
|
/** A single entity of a message's text or caption. */
|
|
124
124
|
export type MessageEntity = MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji | MessageEntityDateTime;
|
|
125
|
+
export declare function constructDateTimeFormat(obj: {
|
|
126
|
+
relative?: true;
|
|
127
|
+
day_of_week?: true;
|
|
128
|
+
short_date?: true;
|
|
129
|
+
long_date?: true;
|
|
130
|
+
short_time?: true;
|
|
131
|
+
long_time?: true;
|
|
132
|
+
}): string;
|
|
133
|
+
export declare function timeFormatToTlObject(format: string, obj: {
|
|
134
|
+
relative?: true;
|
|
135
|
+
day_of_week?: true;
|
|
136
|
+
short_date?: true;
|
|
137
|
+
long_date?: true;
|
|
138
|
+
short_time?: true;
|
|
139
|
+
long_time?: true;
|
|
140
|
+
}): void;
|
|
125
141
|
export declare function constructMessageEntity(obj: Api.MessageEntity): MessageEntity | null;
|
|
126
142
|
export declare function messageEntityToTlObject(entity: MessageEntity, getPeer: PeerGetter): Api.MessageEntity;
|
|
127
143
|
export declare function sortMessageEntities(entities: MessageEntity[]): MessageEntity[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_message_entity.d.ts","sourceRoot":"","sources":["../../src/types/2_message_entity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,gBAAgB;AA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AAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,sDAAsD;AACtD,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,gBAAgB,GAChB,yBAAyB,GACzB,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GACjB,gBAAgB,GAChB,qBAAqB,GACrB,wBAAwB,GACxB,oBAAoB,GACpB,wBAAwB,GACxB,sBAAsB,GACtB,0BAA0B,GAC1B,uBAAuB,GACvB,qBAAqB,GACrB,oBAAoB,GACpB,wBAAwB,GACxB,qBAAqB,CAAC;AAE1B,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,aAAa,GAAG,aAAa,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"2_message_entity.d.ts","sourceRoot":"","sources":["../../src/types/2_message_entity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,KAAK,GACL,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,KAAK,GACL,UAAU,GACV,aAAa,GACb,SAAS,GACT,aAAa,GACb,WAAW,GACX,eAAe,GACf,YAAY,GACZ,UAAU,GACV,SAAS,GACT,aAAa,GACb,UAAU,CAAC;AAEf,gBAAgB;AAChB,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC9D,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,gBA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AC;IAChB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB,GAAG,MAAM,CAmBT;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE;IACxD,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB,QAyBA;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,aAAa,GAAG,aAAa,GAAG,IAAI,CAoDnF;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,GAAG,GAAG,CAAC,aAAa,CAsErG;AAwBD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,aAAa,EAAE,CAY9E"}
|
|
@@ -19,12 +19,63 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.constructDateTimeFormat = constructDateTimeFormat;
|
|
23
|
+
exports.timeFormatToTlObject = timeFormatToTlObject;
|
|
22
24
|
exports.constructMessageEntity = constructMessageEntity;
|
|
23
25
|
exports.messageEntityToTlObject = messageEntityToTlObject;
|
|
24
26
|
exports.sortMessageEntities = sortMessageEntities;
|
|
25
27
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
26
28
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
27
29
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
30
|
+
function constructDateTimeFormat(obj) {
|
|
31
|
+
let format = "";
|
|
32
|
+
if (obj.relative) {
|
|
33
|
+
format += "r";
|
|
34
|
+
}
|
|
35
|
+
if (obj.day_of_week) {
|
|
36
|
+
format += "w";
|
|
37
|
+
}
|
|
38
|
+
if (obj.short_date) {
|
|
39
|
+
format += "d";
|
|
40
|
+
}
|
|
41
|
+
else if (obj.long_date) {
|
|
42
|
+
format += "D";
|
|
43
|
+
}
|
|
44
|
+
if (obj.short_time) {
|
|
45
|
+
format += "t";
|
|
46
|
+
}
|
|
47
|
+
else if (obj.long_time) {
|
|
48
|
+
format += "T";
|
|
49
|
+
}
|
|
50
|
+
return format;
|
|
51
|
+
}
|
|
52
|
+
function timeFormatToTlObject(format, obj) {
|
|
53
|
+
if (format === "r" || format === "R") {
|
|
54
|
+
obj.relative = true;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
for (const character of format) {
|
|
58
|
+
switch (character) {
|
|
59
|
+
case "t":
|
|
60
|
+
obj.short_time = true;
|
|
61
|
+
break;
|
|
62
|
+
case "T":
|
|
63
|
+
obj.long_time = true;
|
|
64
|
+
break;
|
|
65
|
+
case "d":
|
|
66
|
+
obj.short_date = true;
|
|
67
|
+
break;
|
|
68
|
+
case "D":
|
|
69
|
+
obj.long_date = true;
|
|
70
|
+
break;
|
|
71
|
+
case "w":
|
|
72
|
+
case "W":
|
|
73
|
+
obj.day_of_week = true;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
28
79
|
function constructMessageEntity(obj) {
|
|
29
80
|
if (_2_tl_js_1.Api.is("messageEntityMention", obj)) {
|
|
30
81
|
return { type: "mention", offset: obj.offset, length: obj.length };
|
|
@@ -84,30 +135,11 @@ function constructMessageEntity(obj) {
|
|
|
84
135
|
return { type: "customEmoji", offset: obj.offset, length: obj.length, customEmojiId: String(obj.document_id) };
|
|
85
136
|
}
|
|
86
137
|
else if (_2_tl_js_1.Api.is("messageEntityFormattedDate", obj)) {
|
|
87
|
-
let format = "";
|
|
88
|
-
if (obj.relative) {
|
|
89
|
-
format += "r";
|
|
90
|
-
}
|
|
91
|
-
if (obj.day_of_week) {
|
|
92
|
-
format += "w";
|
|
93
|
-
}
|
|
94
|
-
if (obj.short_date) {
|
|
95
|
-
format += "d";
|
|
96
|
-
}
|
|
97
|
-
else if (obj.long_date) {
|
|
98
|
-
format += "D";
|
|
99
|
-
}
|
|
100
|
-
if (obj.short_time) {
|
|
101
|
-
format += "t";
|
|
102
|
-
}
|
|
103
|
-
else if (obj.long_time) {
|
|
104
|
-
format += "T";
|
|
105
|
-
}
|
|
106
138
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
107
139
|
type: "dateTime",
|
|
108
140
|
offset: obj.offset,
|
|
109
141
|
length: obj.length,
|
|
110
|
-
format:
|
|
142
|
+
format: constructDateTimeFormat(obj) || undefined,
|
|
111
143
|
dateTime: obj.date,
|
|
112
144
|
});
|
|
113
145
|
}
|
|
@@ -181,31 +213,7 @@ function messageEntityToTlObject(entity, getPeer) {
|
|
|
181
213
|
case "dateTime": {
|
|
182
214
|
const entity_ = { _: "messageEntityFormattedDate", offset, length, date: entity.dateTime };
|
|
183
215
|
if (entity.format) {
|
|
184
|
-
|
|
185
|
-
entity_.relative = true;
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
for (const character of entity.format) {
|
|
189
|
-
switch (character) {
|
|
190
|
-
case "t":
|
|
191
|
-
entity_.short_time = true;
|
|
192
|
-
break;
|
|
193
|
-
case "T":
|
|
194
|
-
entity_.long_time = true;
|
|
195
|
-
break;
|
|
196
|
-
case "d":
|
|
197
|
-
entity_.short_date = true;
|
|
198
|
-
break;
|
|
199
|
-
case "D":
|
|
200
|
-
entity_.long_date = true;
|
|
201
|
-
break;
|
|
202
|
-
case "w":
|
|
203
|
-
case "W":
|
|
204
|
-
entity_.day_of_week = true;
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
216
|
+
timeFormatToTlObject(entity.format, entity_);
|
|
209
217
|
}
|
|
210
218
|
return entity_;
|
|
211
219
|
}
|
|
@@ -42,7 +42,7 @@ export interface ChecklistItemUnchecked {
|
|
|
42
42
|
export interface ChecklistItemChecked {
|
|
43
43
|
/** The type of the checklist item. */
|
|
44
44
|
type: "checked";
|
|
45
|
-
/** The identifier of the
|
|
45
|
+
/** The identifier of the checklist item. */
|
|
46
46
|
id: number;
|
|
47
47
|
/** The item's text. */
|
|
48
48
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_checklist_item.d.ts","sourceRoot":"","sources":["../../src/types/3_checklist_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"3_checklist_item.d.ts","sourceRoot":"","sources":["../../src/types/3_checklist_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,oBAAoB,CAAC;AAE1E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,UAAU,GAAG,aAAa,CA4BpI"}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
import type { ParseMode } from "./0_parse_mode.js";
|
|
21
|
+
import type { InputPollMedia } from "./1_input_poll_media.js";
|
|
21
22
|
import type { MessageEntity } from "./2_message_entity.js";
|
|
22
23
|
/** A poll option to be provided as an input. */
|
|
23
24
|
export interface InputPollOption {
|
|
@@ -27,5 +28,7 @@ export interface InputPollOption {
|
|
|
27
28
|
parseMode?: ParseMode;
|
|
28
29
|
/** The entities of the option's text. */
|
|
29
30
|
entities?: MessageEntity[];
|
|
31
|
+
/** The option's attached media. */
|
|
32
|
+
media?: InputPollMedia;
|
|
30
33
|
}
|
|
31
34
|
//# sourceMappingURL=3_input_poll_option.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_input_poll_option.d.ts","sourceRoot":"","sources":["../../src/types/3_input_poll_option.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,oGAAoG;IACpG,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"3_input_poll_option.d.ts","sourceRoot":"","sources":["../../src/types/3_input_poll_option.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,oGAAoG;IACpG,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,mCAAmC;IACnC,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB"}
|