@codebam/cf-workers-telegram-bot 7.23.0 → 7.25.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/README.md CHANGED
@@ -5,7 +5,12 @@ CF Workers Telegram Bot
5
5
  <br/>
6
6
  </h3>
7
7
 
8
- <p align="center">
8
+ <h6 align="center">
9
+ <a href="https://codebam.github.io/cf-workers-telegram-bot/">Docs</a>
10
+ <a href="https://github.com/codebam/cf-workers-telegram-bot/wiki">Wiki</a>
11
+ </h6>
12
+
13
+ <p align="center">
9
14
  <a href="https://github.com/codebam/cf-workers-telegram-bot/stargazers"> <img src="https://img.shields.io/github/stars/codebam/cf-workers-telegram-bot?style=for-the-badge&logo=starship&color=111111&logoColor=ffffff&labelColor=000000" alt="GitHub stars"/></a>
10
15
  <a href="https://github.com/codebam/cf-workers-telegram-bot/issues">
11
16
  <img src="https://img.shields.io/github/issues/codebam/cf-workers-telegram-bot?style=for-the-badge&logo=gitbook&color=111111&logoColor=ffffff&labelColor=000000" alt="GitHub issues"/></a>
@@ -46,7 +46,7 @@ export default class TelegramBot {
46
46
  case 'POST': {
47
47
  this.update = await request.json();
48
48
  console.log(this.update);
49
- let command = 'default';
49
+ let command = ':message';
50
50
  let args = [];
51
51
  const ctx = new TelegramExecutionContext(this, this.update);
52
52
  this.currentContext = ctx;
@@ -71,10 +71,10 @@ export default class TelegramBot {
71
71
  break;
72
72
  }
73
73
  if (args.at(0)?.startsWith('/')) {
74
- command = args.at(0)?.slice(1) ?? 'default';
74
+ command = args.at(0)?.slice(1) ?? ':message';
75
75
  }
76
76
  if (!(command in this.commands)) {
77
- command = 'default';
77
+ command = ':message';
78
78
  }
79
79
  return await this.commands[command](ctx);
80
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebam/cf-workers-telegram-bot",
3
- "version": "7.23.0",
3
+ "version": "7.25.0",
4
4
  "description": "serverless telegram bot on cf workers",
5
5
  "main": "./dist/main.js",
6
6
  "module": "./dist/main.js",
@@ -31,16 +31,16 @@
31
31
  "url": "https://github.com/codebam/cf-workers-telegram-bot.git"
32
32
  },
33
33
  "devDependencies": {
34
- "@cloudflare/workers-types": "^4.20240512.0",
35
- "@eslint/js": "^9.3.0",
36
- "@typescript-eslint/eslint-plugin": "^7.10.0",
37
- "@typescript-eslint/parser": "^7.10.0",
38
- "eslint": "^9.3.0",
34
+ "@cloudflare/workers-types": "^4.20240605.0",
35
+ "@eslint/js": "^9.4.0",
36
+ "@typescript-eslint/eslint-plugin": "^7.12.0",
37
+ "@typescript-eslint/parser": "^7.12.0",
38
+ "eslint": "^8.56.0",
39
39
  "eslint-config-prettier": "^9.1.0",
40
- "globals": "^15.3.0",
41
- "prettier": "^3.2.5",
40
+ "globals": "^15.4.0",
41
+ "prettier": "^3.3.1",
42
42
  "typescript": "^5.4.5",
43
- "typescript-eslint": "^7.10.0",
43
+ "typescript-eslint": "^7.12.0",
44
44
  "vitest": "^1.6.0"
45
45
  }
46
46
  }