@codebam/cf-workers-telegram-bot 4.2.0 → 4.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.
|
@@ -42,8 +42,9 @@ export default class TelegramApi extends BotApi {
|
|
|
42
42
|
.split(" "))
|
|
43
43
|
: this.updates.default;
|
|
44
44
|
// execute the inline custom bot commands from bot configurations
|
|
45
|
-
executeInlineCommand = async (update) => this._executeCommand(update, update.inline_query?.query ?? "").then(async (command_response) => command_response
|
|
46
|
-
this._executeCommand(update, "inline", update.inline_query?.query.trimStart().split(" ")).then((_command_response) => _command_response)
|
|
45
|
+
executeInlineCommand = async (update) => this._executeCommand(update, update.inline_query?.query ?? "").then(async (command_response) => command_response
|
|
46
|
+
? this._executeCommand(update, "inline", update.inline_query?.query.trimStart().split(" ")).then((_command_response) => _command_response)
|
|
47
|
+
: this.updates.default);
|
|
47
48
|
// execute the custom bot commands from bot configurations
|
|
48
49
|
executeCommand = async (update) => this._executeCommand(update, update.message?.text ?? "") ??
|
|
49
50
|
this.updates.default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TelegramCommands, Handler, TelegramWebhook, TelegramBot,
|
|
1
|
+
import { TelegramCommands, Handler, TelegramWebhook, TelegramBot, } from "../../main/src/main";
|
|
2
2
|
export default {
|
|
3
3
|
fetch: async (request, env) => new Handler([
|
|
4
4
|
{
|
|
@@ -49,7 +49,5 @@ export default {
|
|
|
49
49
|
"/start": TelegramCommands.commandList,
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
|
-
])
|
|
53
|
-
.handle(request)
|
|
54
|
-
.then(Libs.log),
|
|
52
|
+
]).handle(request),
|
|
55
53
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codebam/cf-workers-telegram-bot",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "serverless telegram bot on cf workers",
|
|
5
5
|
"main": "./dist/main/src/main.js",
|
|
6
6
|
"module": "./dist/main/src/main.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"url": "https://github.com/codebam/cf-workers-telegram-bot.git"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"worker": "^4.
|
|
32
|
+
"worker": "^4.3.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@cloudflare/workers-types": "^4.20230221.0",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
37
|
-
"@typescript-eslint/parser": "^5.
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
|
37
|
+
"@typescript-eslint/parser": "^5.54.0",
|
|
38
38
|
"eslint": "^8.35.0",
|
|
39
39
|
"eslint-config-prettier": "^8.6.0",
|
|
40
40
|
"lerna": "^6.5.1",
|
|
41
41
|
"prettier": "^2.8.4",
|
|
42
42
|
"typescript": "^4.9.5"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "50f18f12801dd88245757cb2ecca932cae3066ae"
|
|
45
45
|
}
|