@grammyjs/commands 0.11.0 → 1.0.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/LICENSE +1 -1
- package/README.md +5 -5
- package/out/deps.node.d.ts +2 -2
- package/out/deps.node.js +1 -1
- package/package.json +13 -7
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
# grammY commands
|
|
2
2
|
|
|
3
|
-
This plugin provides a convenient way to define and manage commands for your grammY bot.
|
|
4
|
-
setting up commands with scopes and localization.
|
|
3
|
+
This plugin provides a convenient way to define and manage commands for your grammY bot.
|
|
4
|
+
It simplifies the process of setting up commands with scopes and localization.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ npm i @grammyjs/commands
|
|
|
14
14
|
The main functionality of this plugin is to define your commands, localize them, and give them handlers for each
|
|
15
15
|
[scope](https://core.telegram.org/bots/api#botcommandscope), like so:
|
|
16
16
|
|
|
17
|
-
```
|
|
17
|
+
```ts
|
|
18
18
|
import { Bot } from "grammy";
|
|
19
19
|
import { CommandGroup } from "@grammyjs/commands";
|
|
20
20
|
|
|
@@ -50,7 +50,7 @@ will not be registered, and your bot will not respond to those commands.
|
|
|
50
50
|
This plugin provides a shortcut for setting the commands for the current chat. To use it, you need to install the
|
|
51
51
|
commands flavor and the plugin itself, like so:
|
|
52
52
|
|
|
53
|
-
```
|
|
53
|
+
```ts
|
|
54
54
|
import { Bot, Context } from "grammy";
|
|
55
55
|
import { CommandGroup, commands, CommandsFlavor } from "@grammyjs/commands";
|
|
56
56
|
|
package/out/deps.node.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Api, Bot, type ChatTypeContext, type ChatTypeMiddleware, type CommandContext, type CommandMiddleware, Composer, Context, type Middleware, type MiddlewareObj, type NextFunction, } from "grammy";
|
|
2
|
-
export type { BotCommand, BotCommandScope, BotCommandScopeAllChatAdministrators, BotCommandScopeAllGroupChats, BotCommandScopeAllPrivateChats, BotCommandScopeChat, Chat, LanguageCode, MessageEntity } from "
|
|
3
|
-
export { LanguageCodes } from "
|
|
2
|
+
export type { BotCommand, BotCommandScope, BotCommandScopeAllChatAdministrators, BotCommandScopeAllGroupChats, BotCommandScopeAllPrivateChats, BotCommandScopeChat, Chat, LanguageCode, MessageEntity } from "grammy/types";
|
|
3
|
+
export { LanguageCodes } from "grammy/types";
|
package/out/deps.node.js
CHANGED
|
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "Api", { enumerable: true, get: function () { ret
|
|
|
6
6
|
Object.defineProperty(exports, "Bot", { enumerable: true, get: function () { return grammy_1.Bot; } });
|
|
7
7
|
Object.defineProperty(exports, "Composer", { enumerable: true, get: function () { return grammy_1.Composer; } });
|
|
8
8
|
Object.defineProperty(exports, "Context", { enumerable: true, get: function () { return grammy_1.Context; } });
|
|
9
|
-
var types_1 = require("
|
|
9
|
+
var types_1 = require("grammy/types");
|
|
10
10
|
Object.defineProperty(exports, "LanguageCodes", { enumerable: true, get: function () { return types_1.LanguageCodes; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grammyjs/commands",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "grammY Commands Plugin",
|
|
5
5
|
"main": "out/mod.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,14 +15,20 @@
|
|
|
15
15
|
],
|
|
16
16
|
"author": "Roz <roz@rjmunhoz.me>",
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
18
|
+
"homepage": "https://grammy.dev/plugins/commands",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/grammyjs/commands.git"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/grammyjs/commands/issues"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"grammy": "^1.17.1"
|
|
22
28
|
},
|
|
23
29
|
"devDependencies": {
|
|
24
|
-
"deno-bin": "^
|
|
25
|
-
"typescript": "^5.
|
|
30
|
+
"deno-bin": "^2.0.6",
|
|
31
|
+
"typescript": "^5.6.3"
|
|
26
32
|
},
|
|
27
33
|
"files": [
|
|
28
34
|
"out"
|