grammy 1.20.1 → 1.20.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021-2023 KnorpelSenf
3
+ Copyright (c) 2021-2024 KnorpelSenf
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -281,6 +281,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
281
281
  <td align="center" valign="top" width="11.11%"><a href="https://sergeysolovev.com"><img src="https://avatars.githubusercontent.com/u/5831301?v=4?s=100" width="100px;" alt="Sergey Solovev"/><br /><sub><b>Sergey Solovev</b></sub></a><br /><a href="#ideas-sergeysolovev" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Asergeysolovev" title="Reviewed Pull Requests">👀</a></td>
282
282
  <td align="center" valign="top" width="11.11%"><a href="https://github.com/HeySreelal"><img src="https://avatars.githubusercontent.com/u/94184909?v=4?s=100" width="100px;" alt="Sree (Taylor's Version)"/><br /><sub><b>Sree (Taylor's Version)</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3AHeySreelal" title="Bug reports">🐛</a> <a href="https://github.com/grammyjs/grammY/commits?author=HeySreelal" title="Code">💻</a></td>
283
283
  <td align="center" valign="top" width="11.11%"><a href="http://linkedin.com/in/thecoorum"><img src="https://avatars.githubusercontent.com/u/32096016?v=4?s=100" width="100px;" alt="Yaroslav Vovchenko"/><br /><sub><b>Yaroslav Vovchenko</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3Athecoorum" title="Bug reports">🐛</a></td>
284
+ <td align="center" valign="top" width="11.11%"><a href="https://github.com/gabeklavans"><img src="https://avatars.githubusercontent.com/u/32149200?v=4?s=100" width="100px;" alt="gabe"/><br /><sub><b>gabe</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Agabeklavans" title="Reviewed Pull Requests">👀</a></td>
284
285
  </tr>
285
286
  </tbody>
286
287
  </table>
package/out/context.d.ts CHANGED
@@ -646,7 +646,7 @@ export declare class Context implements RenamedUpdate {
646
646
  *
647
647
  * **Official reference:** https://core.telegram.org/bots/api#getfile
648
648
  */
649
- getFile(signal?: AbortSignal): Promise<File>;
649
+ getFile(signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").File>;
650
650
  /** @deprecated Use `banAuthor` instead. */
651
651
  kickAuthor(...args: Parameters<Context["banAuthor"]>): Promise<true>;
652
652
  /**
package/out/core/api.d.ts CHANGED
@@ -454,7 +454,7 @@ export declare class Api<R extends RawApi = RawApi> {
454
454
  *
455
455
  * **Official reference:** https://core.telegram.org/bots/api#getfile
456
456
  */
457
- getFile(file_id: string, signal?: AbortSignal): Promise<File>;
457
+ getFile(file_id: string, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").File>;
458
458
  /** @deprecated Use `banChatMember` instead. */
459
459
  kickChatMember(...args: Parameters<Api["banChatMember"]>): Promise<true>;
460
460
  /**
@@ -1169,7 +1169,7 @@ export declare class Api<R extends RawApi = RawApi> {
1169
1169
  *
1170
1170
  * **Official reference:** https://core.telegram.org/bots/api#uploadstickerfile
1171
1171
  */
1172
- uploadStickerFile(user_id: number, sticker_format: "static" | "animated" | "video", sticker: InputFile, signal?: AbortSignal): Promise<File>;
1172
+ uploadStickerFile(user_id: number, sticker_format: "static" | "animated" | "video", sticker: InputFile, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").File>;
1173
1173
  /**
1174
1174
  * Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success.
1175
1175
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "grammy",
3
3
  "description": "The Telegram Bot Framework.",
4
- "version": "1.20.1",
4
+ "version": "1.20.3",
5
5
  "author": "KnorpelSenf",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -17,7 +17,7 @@
17
17
  "backport": "deno2node tsconfig.json"
18
18
  },
19
19
  "dependencies": {
20
- "@grammyjs/types": "3.4.4",
20
+ "@grammyjs/types": "^3.4.6",
21
21
  "abort-controller": "^3.0.0",
22
22
  "debug": "^4.3.4",
23
23
  "node-fetch": "^2.7.0"
@@ -41,7 +41,8 @@
41
41
  "default": "./out/web.mjs"
42
42
  },
43
43
  "./types": {
44
- "types": "./out/types.d.ts"
44
+ "types": "./out/types.d.ts",
45
+ "default": "./out/types.js"
45
46
  },
46
47
  "./web": {
47
48
  "types": "./out/web.d.ts",