grammy 1.11.0 → 1.11.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.
- package/README.md +2 -2
- package/out/composer.d.ts +1 -1
- package/out/convenience/keyboard.d.ts +3 -2
- package/out/convenience/keyboard.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<!-- deno-fmt-ignore-start -->
|
|
12
12
|
|
|
13
|
-
[](https://core.telegram.org/bots/api)
|
|
14
14
|
[](https://deno.land/x/grammy)
|
|
15
15
|
[](https://www.npmjs.org/package/grammy)
|
|
16
16
|
[](#contributors-)
|
|
@@ -217,7 +217,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
217
217
|
<td align="center"><a href="https://oott123.com"><img src="https://avatars.githubusercontent.com/u/905663?v=4?s=100" width="100px;" alt=""/><br /><sub><b>三三</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3Aoott123" title="Bug reports">🐛</a> <a href="https://github.com/grammyjs/grammY/commits?author=oott123" title="Code">💻</a></td>
|
|
218
218
|
</tr>
|
|
219
219
|
<tr>
|
|
220
|
-
<td align="center"><a href="http://roz.ninja"><img src="https://avatars.githubusercontent.com/u/3948961?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Roz</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3Aroziscoding" title="Bug reports">🐛</a> <a href="https://github.com/grammyjs/grammY/commits?author=roziscoding" title="Code">💻</a> <a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Aroziscoding" title="Reviewed Pull Requests">👀</a></td>
|
|
220
|
+
<td align="center"><a href="http://roz.ninja"><img src="https://avatars.githubusercontent.com/u/3948961?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Roz</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3Aroziscoding" title="Bug reports">🐛</a> <a href="https://github.com/grammyjs/grammY/commits?author=roziscoding" title="Code">💻</a> <a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Aroziscoding" title="Reviewed Pull Requests">👀</a> <a href="#infra-roziscoding" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#ideas-roziscoding" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
221
221
|
<td align="center"><a href="https://github.com/daniharo"><img src="https://avatars.githubusercontent.com/u/47931084?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dani Haro</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=daniharo" title="Code">💻</a> <a href="#plugin-daniharo" title="Plugin/utility libraries">🔌</a> <a href="https://github.com/grammyjs/grammY/commits?author=daniharo" title="Documentation">📖</a></td>
|
|
222
222
|
<td align="center"><a href="https://github.com/Ryukaizen"><img src="https://avatars.githubusercontent.com/u/55140313?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ryukaizen</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=Ryukaizen" title="Documentation">📖</a></td>
|
|
223
223
|
<td align="center"><a href="https://github.com/mcpeblocker"><img src="https://avatars.githubusercontent.com/u/59408255?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alisher Ortiqov</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=mcpeblocker" title="Documentation">📖</a></td>
|
package/out/composer.d.ts
CHANGED
|
@@ -527,7 +527,7 @@ export declare class Composer<C extends Context> implements MiddlewareObj<C> {
|
|
|
527
527
|
* @param routeHandlers Handlers for every route
|
|
528
528
|
* @param fallback Optional fallback middleware if no route matches
|
|
529
529
|
*/
|
|
530
|
-
route<R extends Record<
|
|
530
|
+
route<R extends Record<PropertyKey, Middleware<C>>>(router: (ctx: C) => MaybePromise<undefined | keyof R>, routeHandlers: R, fallback?: Middleware<C>): Composer<C>;
|
|
531
531
|
/**
|
|
532
532
|
* > This is an advanced method of grammY.
|
|
533
533
|
*
|
|
@@ -158,8 +158,9 @@ export declare class Keyboard {
|
|
|
158
158
|
*/
|
|
159
159
|
placeholder(value: string): this;
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
161
|
+
* Returns the keyboard that was build. Note that it doesn't return
|
|
162
|
+
* `resize_keyboard` or other options that may be set. You don't usually
|
|
163
|
+
* need to call this method. It is no longer useful.
|
|
163
164
|
*/
|
|
164
165
|
build(): KeyboardButton[][];
|
|
165
166
|
}
|
|
@@ -172,8 +172,9 @@ class Keyboard {
|
|
|
172
172
|
return this;
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
175
|
+
* Returns the keyboard that was build. Note that it doesn't return
|
|
176
|
+
* `resize_keyboard` or other options that may be set. You don't usually
|
|
177
|
+
* need to call this method. It is no longer useful.
|
|
177
178
|
*/
|
|
178
179
|
build() {
|
|
179
180
|
return this.keyboard;
|