@melandlabs/integrations-telegram 0.2.0 → 0.3.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/dist/adapter.js CHANGED
@@ -916,6 +916,7 @@ var TelegramAdapter = class extends MessagePlatformAdapter {
916
916
  * @param messages - Message chain to send as reply
917
917
  * @param quoteOrigin - Whether to quote the original message (default: false)
918
918
  */
919
+ // biome-ignore lint/correctness/noUnusedVariables: intentional unused variable
919
920
  async sendMessages(target, id, messages) {
920
921
  await this.runWithAdapterError("sendMessages", async () => {
921
922
  if (!this.client.connected) {
@@ -939,6 +940,7 @@ var TelegramAdapter = class extends MessagePlatformAdapter {
939
940
  await this.dispatchMessages("sendMessages", id, textParts, images);
940
941
  });
941
942
  }
943
+ // biome-ignore lint/correctness/noUnusedVariables: intentional unused variable
942
944
  async replyMessages(event, messages, quoteOrigin = false) {
943
945
  await this.runWithAdapterError("replyMessages", async () => {
944
946
  if (!this.client.connected) {
@@ -1227,7 +1229,7 @@ var TelegramAdapter = class extends MessagePlatformAdapter {
1227
1229
  if (quotedMsgList.length > 0 && quotedMsgList[0] instanceof Api.Message) {
1228
1230
  quoted = await this.extractMessageInfo(quotedMsgList[0], depth + 1, maxDepth);
1229
1231
  }
1230
- } catch (error) {
1232
+ } catch (_error) {
1231
1233
  }
1232
1234
  }
1233
1235
  const result = isEmptyMessage(quoted) ? msgInfo : { ...msgInfo, quoted };
@@ -1508,7 +1510,7 @@ var TelegramAdapter = class extends MessagePlatformAdapter {
1508
1510
  * Try to resolve entity from Telegram API and build InputPeer
1509
1511
  * Updates contactMetadata cache after successful resolution
1510
1512
  */
1511
- async resolveEntityToInputPeer(contactId, fallbackPeerId, fallbackType) {
1513
+ async resolveEntityToInputPeer(contactId, _fallbackPeerId, _fallbackType) {
1512
1514
  try {
1513
1515
  if (!this.client.connected) {
1514
1516
  await this.client.connect();
package/dist/index.js CHANGED
@@ -918,6 +918,7 @@ var TelegramAdapter = class extends MessagePlatformAdapter {
918
918
  * @param messages - Message chain to send as reply
919
919
  * @param quoteOrigin - Whether to quote the original message (default: false)
920
920
  */
921
+ // biome-ignore lint/correctness/noUnusedVariables: intentional unused variable
921
922
  async sendMessages(target, id, messages) {
922
923
  await this.runWithAdapterError("sendMessages", async () => {
923
924
  if (!this.client.connected) {
@@ -941,6 +942,7 @@ var TelegramAdapter = class extends MessagePlatformAdapter {
941
942
  await this.dispatchMessages("sendMessages", id, textParts, images);
942
943
  });
943
944
  }
945
+ // biome-ignore lint/correctness/noUnusedVariables: intentional unused variable
944
946
  async replyMessages(event, messages, quoteOrigin = false) {
945
947
  await this.runWithAdapterError("replyMessages", async () => {
946
948
  if (!this.client.connected) {
@@ -1229,7 +1231,7 @@ var TelegramAdapter = class extends MessagePlatformAdapter {
1229
1231
  if (quotedMsgList.length > 0 && quotedMsgList[0] instanceof Api.Message) {
1230
1232
  quoted = await this.extractMessageInfo(quotedMsgList[0], depth + 1, maxDepth);
1231
1233
  }
1232
- } catch (error) {
1234
+ } catch (_error) {
1233
1235
  }
1234
1236
  }
1235
1237
  const result = isEmptyMessage(quoted) ? msgInfo : { ...msgInfo, quoted };
@@ -1510,7 +1512,7 @@ var TelegramAdapter = class extends MessagePlatformAdapter {
1510
1512
  * Try to resolve entity from Telegram API and build InputPeer
1511
1513
  * Updates contactMetadata cache after successful resolution
1512
1514
  */
1513
- async resolveEntityToInputPeer(contactId, fallbackPeerId, fallbackType) {
1515
+ async resolveEntityToInputPeer(contactId, _fallbackPeerId, _fallbackType) {
1514
1516
  try {
1515
1517
  if (!this.client.connected) {
1516
1518
  await this.client.connect();
@@ -143,7 +143,7 @@ var init_qt = __esm({
143
143
  });
144
144
 
145
145
  // src/tdata-decrypter/settings.ts
146
- function readSettingsBlock(version, buffer, offset, blockId) {
146
+ function readSettingsBlock(_version, buffer, offset, blockId) {
147
147
  switch (blockId) {
148
148
  case 6 /* dbiAutoStart */:
149
149
  case 7 /* dbiStartMinimized */:
@@ -281,7 +281,7 @@ declare enum SettingsBlocks {
281
281
  /**
282
282
  * Read settings block value based on block ID
283
283
  */
284
- declare function readSettingsBlock(version: number, buffer: Buffer, offset: number, blockId: SettingsBlocks): {
284
+ declare function readSettingsBlock(_version: number, buffer: Buffer, offset: number, blockId: SettingsBlocks): {
285
285
  value: unknown;
286
286
  newOffset: number;
287
287
  };
@@ -163,7 +163,7 @@ var init_qt = __esm({
163
163
  });
164
164
 
165
165
  // src/tdata-decrypter/settings.ts
166
- function readSettingsBlock(version, buffer, offset, blockId) {
166
+ function readSettingsBlock(_version, buffer, offset, blockId) {
167
167
  switch (blockId) {
168
168
  case 6 /* dbiAutoStart */:
169
169
  case 7 /* dbiStartMinimized */:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melandlabs/integrations-telegram",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -39,15 +39,15 @@
39
39
  "big-integer": "^1.6.52",
40
40
  "markdown-it": "^14.1.1",
41
41
  "telegram": "^2.26.22",
42
- "@melandlabs/ai": "0.2.0",
43
- "@melandlabs/integrations": "0.2.0",
44
- "@melandlabs/integrations-channels": "0.2.0",
45
- "@melandlabs/shared": "0.2.0"
42
+ "@melandlabs/ai": "0.3.0",
43
+ "@melandlabs/integrations": "0.3.0",
44
+ "@melandlabs/integrations-channels": "0.3.0",
45
+ "@melandlabs/shared": "0.3.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "typescript": "^5.6.3",
49
49
  "vitest": "^4.0.6",
50
- "@melandlabs/config": "0.2.0"
50
+ "@melandlabs/config": "0.3.0"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsup",