@elizaos/plugin-telegram 1.6.2 → 1.6.4

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/service.d.ts CHANGED
@@ -179,7 +179,6 @@ export declare class TelegramService extends Service {
179
179
  * @param {Entity[]} entities - The entities to process
180
180
  * @param {UUID} roomId - The ID of the room to connect entities to
181
181
  * @param {string} channelId - The channel ID
182
- * @param {string} serverId - The server ID
183
182
  * @param {ChannelType} roomType - The type of the room
184
183
  * @param {UUID} worldId - The ID of the world
185
184
  * @returns {Promise<void>}
package/dist/tests.d.ts CHANGED
@@ -41,7 +41,7 @@ export declare class TelegramTestSuite implements TestSuite {
41
41
  * @throws {Error} If TELEGRAM_TEST_CHAT_ID is not set in the runtime settings or environment variables.
42
42
  * @returns {string} The validated chat ID.
43
43
  */
44
- validateChatId(runtime: IAgentRuntime): any;
44
+ validateChatId(runtime: IAgentRuntime): string | number;
45
45
  getChatInfo(runtime: IAgentRuntime): Promise<Context['chat']>;
46
46
  testCreatingTelegramBot(runtime: IAgentRuntime): Promise<void>;
47
47
  testSendingTextMessage(runtime: IAgentRuntime): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-telegram",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@elizaos/core": "^1.6.2",
21
+ "@elizaos/core": "^1.7.2",
22
22
  "@telegraf/types": "7.1.0",
23
23
  "@types/node": "^24.0.10",
24
24
  "strip-literal": "^3.0.0",
@@ -27,6 +27,11 @@
27
27
  "typescript": "^5.8.3"
28
28
  },
29
29
  "devDependencies": {
30
+ "@elizaos/config": "^1.7.2",
31
+ "@eslint/js": "^9.17.0",
32
+ "@typescript-eslint/eslint-plugin": "^8.22.0",
33
+ "@typescript-eslint/parser": "^8.22.0",
34
+ "eslint": "^9.17.0",
30
35
  "prettier": "3.5.3",
31
36
  "tsup": "8.4.0",
32
37
  "vitest": "1.6.1"
@@ -36,7 +41,8 @@
36
41
  "dev": "tsup --watch",
37
42
  "test": "vitest run",
38
43
  "test:watch": "vitest",
39
- "lint": "prettier --write ./src",
44
+ "lint": "eslint ./src --fix && prettier --write ./src",
45
+ "lint:check": "eslint ./src",
40
46
  "clean": "rm -rf dist .turbo node_modules .turbo-tsconfig.json tsconfig.tsbuildinfo",
41
47
  "format": "prettier --write ./src",
42
48
  "format:check": "prettier --check ./src"