nyx-bot-client 0.0.4 → 0.0.6

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/biome.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.3.6/schema.json",
3
3
  "formatter": {
4
4
  "enabled": true,
5
5
  "indentStyle": "tab",
package/bun.lock CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "lockfileVersion": 1,
3
+ "configVersion": 0,
3
4
  "workspaces": {
4
5
  "": {
5
6
  "name": "nyx-bot-client",
6
7
  "dependencies": {
7
- "@biomejs/biome": "^2.2.6",
8
- "@types/node": "^24.7.2",
8
+ "@biomejs/biome": "^2.3.6",
9
+ "@types/node": "^24.10.1",
9
10
  "dotenv": "^17.2.3",
10
11
  "kysely": "^0.28.8",
11
- "mysql2": "^3.15.2",
12
+ "mysql2": "^3.15.3",
12
13
  "ts-debounce": "^4.0.0",
13
14
  "zod": "^4.1.12",
14
15
  },
@@ -21,27 +22,27 @@
21
22
  },
22
23
  },
23
24
  "packages": {
24
- "@biomejs/biome": ["@biomejs/biome@2.2.6", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.2.6", "@biomejs/cli-darwin-x64": "2.2.6", "@biomejs/cli-linux-arm64": "2.2.6", "@biomejs/cli-linux-arm64-musl": "2.2.6", "@biomejs/cli-linux-x64": "2.2.6", "@biomejs/cli-linux-x64-musl": "2.2.6", "@biomejs/cli-win32-arm64": "2.2.6", "@biomejs/cli-win32-x64": "2.2.6" }, "bin": { "biome": "bin/biome" } }, "sha512-yKTCNGhek0rL5OEW1jbLeZX8LHaM8yk7+3JRGv08my+gkpmtb5dDE+54r2ZjZx0ediFEn1pYBOJSmOdDP9xtFw=="],
25
+ "@biomejs/biome": ["@biomejs/biome@2.3.6", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.6", "@biomejs/cli-darwin-x64": "2.3.6", "@biomejs/cli-linux-arm64": "2.3.6", "@biomejs/cli-linux-arm64-musl": "2.3.6", "@biomejs/cli-linux-x64": "2.3.6", "@biomejs/cli-linux-x64-musl": "2.3.6", "@biomejs/cli-win32-arm64": "2.3.6", "@biomejs/cli-win32-x64": "2.3.6" }, "bin": { "biome": "bin/biome" } }, "sha512-oqUhWyU6tae0MFsr/7iLe++QWRg+6jtUhlx9/0GmCWDYFFrK366sBLamNM7D9Y+c7YSynUFKr8lpEp1r6Sk7eA=="],
25
26
 
26
- "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.2.6", "", { "os": "darwin", "cpu": "arm64" }, "sha512-UZPmn3M45CjTYulgcrFJFZv7YmK3pTxTJDrFYlNElT2FNnkkX4fsxjExTSMeWKQYoZjvekpH5cvrYZZlWu3yfA=="],
27
+ "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.3.6", "", { "os": "darwin", "cpu": "arm64" }, "sha512-P4JWE5d8UayBxYe197QJwyW4ZHp0B+zvRIGCusOm1WbxmlhpAQA1zEqQuunHgSIzvyEEp4TVxiKGXNFZPg7r9Q=="],
27
28
 
28
- "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.2.6", "", { "os": "darwin", "cpu": "x64" }, "sha512-HOUIquhHVgh/jvxyClpwlpl/oeMqntlteL89YqjuFDiZ091P0vhHccwz+8muu3nTyHWM5FQslt+4Jdcd67+xWQ=="],
29
+ "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.3.6", "", { "os": "darwin", "cpu": "x64" }, "sha512-I4rTebj+F/L9K93IU7yTFs8nQ6EhaCOivxduRha4w4WEZK80yoZ8OAdR1F33m4yJ/NfUuTUbP/Wjs+vKjlCoWA=="],
29
30
 
30
- "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.2.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-BpGtuMJGN+o8pQjvYsUKZ+4JEErxdSmcRD/JG3mXoWc6zrcA7OkuyGFN1mDggO0Q1n7qXxo/PcupHk8gzijt5g=="],
31
+ "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.3.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-JjYy83eVBnvuINZiqyFO7xx72v8Srh4hsgaacSBCjC22DwM6+ZvnX1/fj8/SBiLuUOfZ8YhU2pfq2Dzakeyg1A=="],
31
32
 
32
- "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.2.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-TjCenQq3N6g1C+5UT3jE1bIiJb5MWQvulpUngTIpFsL4StVAUXucWD0SL9MCW89Tm6awWfeXBbZBAhJwjyFbRQ=="],
33
+ "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.3.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-oK1NpIXIixbJ/4Tcx40cwiieqah6rRUtMGOHDeK2ToT7yUFVEvXUGRKqH0O4hqZ9tW8TcXNZKfgRH6xrsjVtGg=="],
33
34
 
34
- "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.2.6", "", { "os": "linux", "cpu": "x64" }, "sha512-1HaM/dpI/1Z68zp8ZdT6EiBq+/O/z97a2AiHMl+VAdv5/ELckFt9EvRb8hDHpk8hUMoz03gXkC7VPXOVtU7faA=="],
35
+ "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.3.6", "", { "os": "linux", "cpu": "x64" }, "sha512-ZjPXzy5yN9wusIoX+8Zp4p6cL8r0NzJCXg/4r1KLVveIPXd2jKVlqZ6ZyzEq385WwU3OX5KOwQYLQsOc788waQ=="],
35
36
 
36
- "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.2.6", "", { "os": "linux", "cpu": "x64" }, "sha512-1ZcBux8zVM3JhWN2ZCPaYf0+ogxXG316uaoXJdgoPZcdK/rmRcRY7PqHdAos2ExzvjIdvhQp72UcveI98hgOog=="],
37
+ "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.3.6", "", { "os": "linux", "cpu": "x64" }, "sha512-QvxB8GHQeaO4FCtwJpJjCgJkbHBbWxRHUxQlod+xeaYE6gtJdSkYkuxdKAQUZEOIsec+PeaDAhW9xjzYbwmOFA=="],
37
38
 
38
- "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.2.6", "", { "os": "win32", "cpu": "arm64" }, "sha512-h3A88G8PGM1ryTeZyLlSdfC/gz3e95EJw9BZmA6Po412DRqwqPBa2Y9U+4ZSGUAXCsnSQE00jLV8Pyrh0d+jQw=="],
39
+ "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.3.6", "", { "os": "win32", "cpu": "arm64" }, "sha512-YM7hLHpwjdt8R7+O2zS1Vo2cKgqEeptiXB1tWW1rgjN5LlpZovBVKtg7zfwfRrFx3i08aNZThYpTcowpTlczug=="],
39
40
 
40
- "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.2.6", "", { "os": "win32", "cpu": "x64" }, "sha512-yx0CqeOhPjYQ5ZXgPfu8QYkgBhVJyvWe36as7jRuPrKPO5ylVDfwVtPQ+K/mooNTADW0IhxOZm3aPu16dP8yNQ=="],
41
+ "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.3.6", "", { "os": "win32", "cpu": "x64" }, "sha512-psgNEYgMAobY5h+QHRBVR9xvg2KocFuBKm6axZWB/aD12NWhQjiVFQUjV6wMXhlH4iT0Q9c3yK5JFRiDC/rzHA=="],
41
42
 
42
43
  "@types/bun": ["@types/bun@1.2.17", "", { "dependencies": { "bun-types": "1.2.17" } }, "sha512-l/BYs/JYt+cXA/0+wUhulYJB6a6p//GTPiJ7nV+QHa8iiId4HZmnu/3J/SowP5g0rTiERY2kfGKXEK5Ehltx4Q=="],
43
44
 
44
- "@types/node": ["@types/node@24.7.2", "", { "dependencies": { "undici-types": "~7.14.0" } }, "sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA=="],
45
+ "@types/node": ["@types/node@24.10.1", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ=="],
45
46
 
46
47
  "aws-ssl-profiles": ["aws-ssl-profiles@1.1.2", "", {}, "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g=="],
47
48
 
@@ -65,7 +66,7 @@
65
66
 
66
67
  "lru.min": ["lru.min@1.1.2", "", {}, "sha512-Nv9KddBcQSlQopmBHXSsZVY5xsdlZkdH/Iey0BlcBYggMd4two7cZnKOK9vmy3nY0O5RGH99z1PCeTpPqszUYg=="],
67
68
 
68
- "mysql2": ["mysql2@3.15.2", "", { "dependencies": { "aws-ssl-profiles": "^1.1.1", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.7.0", "long": "^5.2.1", "lru.min": "^1.0.0", "named-placeholders": "^1.1.3", "seq-queue": "^0.0.5", "sqlstring": "^2.3.2" } }, "sha512-kFm5+jbwR5mC+lo+3Cy46eHiykWSpUtTLOH3GE+AR7GeLq8PgfJcvpMiyVWk9/O53DjQsqm6a3VOOfq7gYWFRg=="],
69
+ "mysql2": ["mysql2@3.15.3", "", { "dependencies": { "aws-ssl-profiles": "^1.1.1", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.7.0", "long": "^5.2.1", "lru.min": "^1.0.0", "named-placeholders": "^1.1.3", "seq-queue": "^0.0.5", "sqlstring": "^2.3.2" } }, "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg=="],
69
70
 
70
71
  "named-placeholders": ["named-placeholders@1.1.3", "", { "dependencies": { "lru-cache": "^7.14.1" } }, "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w=="],
71
72
 
@@ -79,7 +80,7 @@
79
80
 
80
81
  "typescript": ["typescript@5.8.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="],
81
82
 
82
- "undici-types": ["undici-types@7.14.0", "", {}, "sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA=="],
83
+ "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="],
83
84
 
84
85
  "zod": ["zod@4.1.12", "", {}, "sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ=="],
85
86
 
@@ -84,6 +84,7 @@ setInterval(async () => {
84
84
  for (const task of tasks) {
85
85
  const params: NyxAction = JSON.parse(task.params as any);
86
86
 
87
+ // biome-ignore lint: performance/noDynamicNamespaceImportAccess
87
88
  methods[params.type]({
88
89
  bot_token: params.bot_token,
89
90
  ...params.params,
package/nyx-client.ts CHANGED
@@ -21,6 +21,7 @@ type NyxConfig = {
21
21
  redis?: {
22
22
  host?: string;
23
23
  port?: number;
24
+ skip?: boolean;
24
25
  };
25
26
  };
26
27
 
@@ -34,10 +35,6 @@ class NyxClient {
34
35
  private redis: RedisClient | undefined;
35
36
 
36
37
  public async initialize(config: NyxConfig) {
37
- this.redis = new RedisClient(
38
- `redis://${config.redis?.host ?? "127.0.0.1"}:${config.redis?.port ?? 6379}`,
39
- );
40
-
41
38
  this.botConfig = z
42
39
  .object({
43
40
  username: z.string().nonempty(),
@@ -50,11 +47,17 @@ class NyxClient {
50
47
  this.injections = config.injections;
51
48
  this.benchmark = config.benchmark;
52
49
 
53
- await this.redis.connect();
54
- this.redis.subscribe(
55
- this.botConfig.username,
56
- this.handleUpdateRequest.bind(this),
57
- );
50
+ if (!config.redis?.skip) {
51
+ this.redis = new RedisClient(
52
+ `redis://${config.redis?.host ?? "127.0.0.1"}:${config.redis?.port ?? 6379}`,
53
+ );
54
+
55
+ await this.redis.connect();
56
+ this.redis.subscribe(
57
+ this.botConfig.username,
58
+ this.handleUpdateRequest.bind(this),
59
+ );
60
+ }
58
61
 
59
62
  config.onStartup?.();
60
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nyx-bot-client",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {
@@ -10,11 +10,11 @@
10
10
  "typescript": "^5"
11
11
  },
12
12
  "dependencies": {
13
- "@biomejs/biome": "^2.2.6",
14
- "@types/node": "^24.7.2",
13
+ "@biomejs/biome": "^2.3.6",
14
+ "@types/node": "^24.10.1",
15
15
  "dotenv": "^17.2.3",
16
16
  "kysely": "^0.28.8",
17
- "mysql2": "^3.15.2",
17
+ "mysql2": "^3.15.3",
18
18
  "ts-debounce": "^4.0.0",
19
19
  "zod": "^4.1.12"
20
20
  }
package/utils/methods.ts CHANGED
@@ -108,7 +108,8 @@ export const sendMessage = (
108
108
  params.text = JSON.stringify(params.text);
109
109
  }
110
110
 
111
- params.parse_mode ||= "HTML";
111
+ params.parse_mode =
112
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
112
113
 
113
114
  return requestTelegramAPI("sendMessage", params);
114
115
  };
@@ -205,7 +206,8 @@ export type copyMessageParams = {
205
206
  export const copyMessage = (
206
207
  params: copyMessageParams,
207
208
  ): APIResponse<MessageId> => {
208
- params.parse_mode ||= "HTML";
209
+ params.parse_mode =
210
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
209
211
  return requestTelegramAPI("copyMessage", params);
210
212
  };
211
213
 
@@ -246,7 +248,8 @@ export type sendPhotoParams = {
246
248
  } & methodParams;
247
249
 
248
250
  export const sendPhoto = (params: sendPhotoParams): APIResponse<Message> => {
249
- params.parse_mode ||= "HTML";
251
+ params.parse_mode =
252
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
250
253
  return requestTelegramAPI("sendPhoto", params);
251
254
  };
252
255
 
@@ -275,7 +278,8 @@ export type sendAudioParams = {
275
278
  } & methodParams;
276
279
 
277
280
  export const sendAudio = (params: sendAudioParams): APIResponse<Message> => {
278
- params.parse_mode ||= "HTML";
281
+ params.parse_mode =
282
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
279
283
  return requestTelegramAPI("sendAudio", params);
280
284
  };
281
285
 
@@ -304,7 +308,8 @@ export type sendDocumentParams = {
304
308
  export const sendDocument = (
305
309
  params: sendDocumentParams,
306
310
  ): APIResponse<Message> => {
307
- params.parse_mode ||= "HTML";
311
+ params.parse_mode =
312
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
308
313
  return requestTelegramAPI("sendDocument", params);
309
314
  };
310
315
 
@@ -338,7 +343,8 @@ export type sendVideoParams = {
338
343
  } & methodParams;
339
344
 
340
345
  export const sendVideo = (params: sendVideoParams): APIResponse<Message> => {
341
- params.parse_mode ||= "HTML";
346
+ params.parse_mode =
347
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
342
348
  return requestTelegramAPI("sendVideo", params);
343
349
  };
344
350
 
@@ -371,7 +377,8 @@ export type sendAnimationParams = {
371
377
  export const sendAnimation = (
372
378
  params: sendAnimationParams,
373
379
  ): APIResponse<Message> => {
374
- params.parse_mode ||= "HTML";
380
+ params.parse_mode =
381
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
375
382
  return requestTelegramAPI("sendAnimation", params);
376
383
  };
377
384
 
@@ -397,7 +404,8 @@ export type sendVoiceParams = {
397
404
  } & methodParams;
398
405
 
399
406
  export const sendVoice = (params: sendVoiceParams): APIResponse<Message> => {
400
- params.parse_mode ||= "HTML";
407
+ params.parse_mode =
408
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
401
409
  return requestTelegramAPI("sendVoice", params);
402
410
  };
403
411
 
@@ -451,7 +459,8 @@ export type sendPaidMediaParams = {
451
459
  export const sendPaidMedia = (
452
460
  params: sendPaidMediaParams,
453
461
  ): APIResponse<Message> => {
454
- params.parse_mode ||= "HTML";
462
+ params.parse_mode =
463
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
455
464
  return requestTelegramAPI("sendPaidMedia", params);
456
465
  };
457
466
 
@@ -587,8 +596,12 @@ export type sendPollParams = {
587
596
  } & methodParams;
588
597
 
589
598
  export const sendPoll = (params: sendPollParams): APIResponse<Message> => {
590
- params.question_parse_mode ||= "HTML";
591
- params.explanation_parse_mode ||= "HTML";
599
+ params.question_parse_mode =
600
+ params.question_parse_mode ??
601
+ (params.question_parse_mode === "none" ? undefined : "HTML");
602
+ params.explanation_parse_mode =
603
+ params.explanation_parse_mode ??
604
+ (params.explanation_parse_mode === "none" ? undefined : "HTML");
592
605
  return requestTelegramAPI("sendPoll", params);
593
606
  };
594
607
 
@@ -1223,7 +1236,8 @@ export type editMessageTextParams = {
1223
1236
  export const editMessageText = (
1224
1237
  params: editMessageTextParams,
1225
1238
  ): APIResponse<Message | true> => {
1226
- params.parse_mode ||= "HTML";
1239
+ params.parse_mode =
1240
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
1227
1241
  return requestTelegramAPI("editMessageText", params);
1228
1242
  };
1229
1243
 
@@ -1242,7 +1256,8 @@ export type editMessageCaptionParams = {
1242
1256
  export const editMessageCaption = (
1243
1257
  params: editMessageCaptionParams,
1244
1258
  ): APIResponse<Message | true> => {
1245
- params.parse_mode ||= "HTML";
1259
+ params.parse_mode =
1260
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
1246
1261
  return requestTelegramAPI("editMessageCaption", params);
1247
1262
  };
1248
1263
 
@@ -1348,7 +1363,9 @@ export type sendGiftParams = {
1348
1363
  } & methodParams;
1349
1364
 
1350
1365
  export const sendGift = (params: sendGiftParams): APIResponse => {
1351
- params.text_parse_mode ||= "HTML";
1366
+ params.text_parse_mode =
1367
+ params.text_parse_mode ??
1368
+ (params.text_parse_mode === "none" ? undefined : "HTML");
1352
1369
  return requestTelegramAPI("sendGift", params);
1353
1370
  };
1354
1371
 
@@ -1364,7 +1381,9 @@ export type giftPremiumSubscriptionParams = {
1364
1381
  export const giftPremiumSubscription = (
1365
1382
  params: giftPremiumSubscriptionParams,
1366
1383
  ): APIResponse => {
1367
- params.text_parse_mode ||= "HTML";
1384
+ params.text_parse_mode =
1385
+ params.text_parse_mode ??
1386
+ (params.text_parse_mode === "none" ? undefined : "HTML");
1368
1387
  return requestTelegramAPI("giftPremiumSubscription", params);
1369
1388
  };
1370
1389
 
@@ -1551,7 +1570,8 @@ export type postStoryParams = {
1551
1570
  } & methodParams;
1552
1571
 
1553
1572
  export const postStory = (params: postStoryParams): APIResponse<Story> => {
1554
- params.parse_mode ||= "HTML";
1573
+ params.parse_mode =
1574
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
1555
1575
  return requestTelegramAPI("postStory", params);
1556
1576
  };
1557
1577
 
@@ -1566,7 +1586,8 @@ export type editStoryParams = {
1566
1586
  } & methodParams;
1567
1587
 
1568
1588
  export const editStory = (params: editStoryParams): APIResponse<Story> => {
1569
- params.parse_mode ||= "HTML";
1589
+ params.parse_mode =
1590
+ params.parse_mode ?? (params.parse_mode === "none" ? undefined : "HTML");
1570
1591
  return requestTelegramAPI("editStory", params);
1571
1592
  };
1572
1593