@mtkruto/node 0.1.111 → 0.1.113
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/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/5_client.d.ts +2 -1
- package/esm/5_client.js +2 -1
- package/esm/client/3_types.d.ts +21 -7
- package/esm/client/3_types.js +1 -1
- package/esm/client/4_composer.d.ts +22 -0
- package/esm/client/4_composer.js +81 -0
- package/esm/client/{4_client.d.ts → 5_client.d.ts} +47 -10
- package/esm/client/{4_client.js → 5_client.js} +244 -109
- package/esm/client/6_composer.d.ts +4 -0
- package/esm/client/6_composer.js +3 -0
- package/esm/tl/0_tl_raw_reader.d.ts +1 -0
- package/esm/tl/0_tl_raw_reader.js +3 -0
- package/esm/tl/3_deserialize.js +7 -2
- package/esm/types/5_inline_query_result.js +7 -0
- package/package.json +1 -1
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/5_client.d.ts +2 -1
- package/script/5_client.js +2 -1
- package/script/client/3_types.d.ts +21 -7
- package/script/client/3_types.js +0 -3
- package/script/client/4_composer.d.ts +22 -0
- package/script/client/4_composer.js +88 -0
- package/script/client/{4_client.d.ts → 5_client.d.ts} +47 -10
- package/script/client/{4_client.js → 5_client.js} +247 -111
- package/script/client/6_composer.d.ts +4 -0
- package/script/client/6_composer.js +7 -0
- package/script/tl/0_tl_raw_reader.d.ts +1 -0
- package/script/tl/0_tl_raw_reader.js +3 -0
- package/script/tl/3_deserialize.js +7 -2
- package/script/types/5_inline_query_result.js +7 -0
|
@@ -161,11 +161,13 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
161
161
|
replyMarkup,
|
|
162
162
|
});
|
|
163
163
|
const title = "title" in result_ ? result_.title : undefined;
|
|
164
|
+
const description = "description" in result_ ? result_.description : undefined;
|
|
164
165
|
if (document != null) {
|
|
165
166
|
return new _2_tl_js_1.types.InputBotInlineResult({
|
|
166
167
|
id,
|
|
167
168
|
type,
|
|
168
169
|
title,
|
|
170
|
+
description,
|
|
169
171
|
thumb: thumb == null ? undefined : thumb,
|
|
170
172
|
content: document,
|
|
171
173
|
sendMessage: new _2_tl_js_1.types.InputBotInlineMessageMediaAuto({
|
|
@@ -181,6 +183,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
181
183
|
id,
|
|
182
184
|
type,
|
|
183
185
|
title,
|
|
186
|
+
description,
|
|
184
187
|
document: new _2_tl_js_1.types.InputDocument({
|
|
185
188
|
id: fileId.params.mediaId,
|
|
186
189
|
accessHash: fileId.params.accessHash,
|
|
@@ -194,6 +197,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
194
197
|
id,
|
|
195
198
|
type,
|
|
196
199
|
title,
|
|
200
|
+
description,
|
|
197
201
|
sendMessage: new _2_tl_js_1.types.InputBotInlineMessageMediaGeo({
|
|
198
202
|
geoPoint: new _2_tl_js_1.types.InputGeoPoint({
|
|
199
203
|
lat: result_.latitude,
|
|
@@ -212,6 +216,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
212
216
|
id,
|
|
213
217
|
type,
|
|
214
218
|
title,
|
|
219
|
+
description,
|
|
215
220
|
sendMessage: new _2_tl_js_1.types.InputBotInlineMessageGame({
|
|
216
221
|
replyMarkup,
|
|
217
222
|
}),
|
|
@@ -226,6 +231,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
226
231
|
id,
|
|
227
232
|
type,
|
|
228
233
|
title,
|
|
234
|
+
description,
|
|
229
235
|
sendMessage: new _2_tl_js_1.types.InputBotInlineMessageText({
|
|
230
236
|
message,
|
|
231
237
|
entities,
|
|
@@ -242,6 +248,7 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
242
248
|
id,
|
|
243
249
|
type,
|
|
244
250
|
title,
|
|
251
|
+
description,
|
|
245
252
|
sendMessage: new _2_tl_js_1.types.InputBotInlineMessageMediaVenue({
|
|
246
253
|
geoPoint: new _2_tl_js_1.types.InputGeoPoint({ long: result_.longitude, lat: result_.latitude }),
|
|
247
254
|
address: result_.address,
|