@grammyjs/commands 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/README.md +4 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,23 +4,19 @@ This plugin provides a convenient way to define and manage commands for your gra
4
4
 
5
5
  ## Installation
6
6
 
7
- On NPM, this plugin is available as `@grammyjs/commands`, and on Deno it's available at [deno.land/x/grammy_commands](https://deno.land/x/grammy_commands).
8
-
9
- You can install it for Node.js with this command:
10
7
 
11
8
  ```sh
12
9
  npm i @grammyjs/commands
13
10
  ```
14
11
 
15
-
16
12
  ## Usage
17
13
 
18
14
  The main functionality of this plugin is to define your commands, localize them, and give them handlers for each [scope](https://core.telegram.org/bots/api#botcommandscope), like so:
19
15
 
20
16
 
21
17
  ```typescript
22
- import { Bot } from "https://deno.land/x/grammy/mod.ts";
23
- import { Commands } from "https://deno.land/x/grammy_commands/mod.ts";
18
+ import { Bot } from "grammy";
19
+ import { Commands } from "@grammyjs/commands";
24
20
 
25
21
  const bot = new Bot("<telegram token>");
26
22
 
@@ -49,8 +45,8 @@ This plugin provides a shortcut for setting the commands for the current chat.
49
45
  To use it, you need to install the commands flavor and the plugin itself, like so:
50
46
 
51
47
  ```typescript
52
- import { Bot, Context } from "https://deno.land/x/grammy/mod.ts";
53
- import { Commands, CommandsFlavor, commands } from "https://deno.land/x/grammy_commands/mod.ts";
48
+ import { Bot, Context } from "grammy";
49
+ import { Commands, CommandsFlavor, commands } from "@grammyjs/commands";
54
50
 
55
51
  type BotContext = CommandsFlavor;
56
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/commands",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "grammY Commands Plugin",
5
5
  "main": "out/mod.js",
6
6
  "scripts": {