grammy 1.5.0 → 1.5.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 CHANGED
@@ -12,7 +12,7 @@ _<h2 align="center"> [:mag: Documentation](https://grammy.dev) | [:page_with_cur
12
12
 
13
13
  [![Bot API](https://img.shields.io/badge/Bot%20API-5.5-blue?logo=telegram&style=flat-square)](https://core.telegram.org/bots/api)
14
14
  [![npm](https://img.shields.io/npm/v/grammy?logo=npm&style=flat-square)](https://www.npmjs.org/package/grammy) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
15
- [![All Contributors](https://img.shields.io/badge/all_contributors-44-orange.svg?style=flat-square)](#contributors-)
15
+ [![All Contributors](https://img.shields.io/badge/all_contributors-45-orange.svg?style=flat-square)](#contributors-)
16
16
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
17
17
 
18
18
  <!-- deno-fmt-ignore-end -->
@@ -175,6 +175,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
175
175
  <tr>
176
176
  <td align="center"><a href="http://///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////kraftwerk28.pp.ua"><img src="https://avatars.githubusercontent.com/u/31807671?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vsevolod</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=kraftwerk28" title="Code">💻</a> <a href="#ideas-kraftwerk28" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Akraftwerk28" title="Reviewed Pull Requests">👀</a></td>
177
177
  <td align="center"><a href="https://github.com/habemuscode"><img src="https://avatars.githubusercontent.com/u/34692207?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Habemuscode</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Ahabemuscode" title="Reviewed Pull Requests">👀</a></td>
178
+ <td align="center"><a href="https://borodutch.com/"><img src="https://avatars.githubusercontent.com/u/3192028?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nikita Kolmogorov</b></sub></a><br /><a href="#plugin-backmeupplz" title="Plugin/utility libraries">🔌</a></td>
178
179
  </tr>
179
180
  </table>
180
181
 
package/out/context.d.ts CHANGED
@@ -451,12 +451,11 @@ export declare class Context implements RenamedUpdate {
451
451
  * Context-aware alias for `api.banChatSenderChat`. Use this method to ban a channel chat in a supergroup or a channel. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.
452
452
  *
453
453
  * @param sender_chat_id Unique identifier of the target sender chat
454
- * @param other Optional remaining parameters, confer the official reference below
455
454
  * @param signal Optional `AbortSignal` to cancel the request
456
455
  *
457
456
  * **Official reference:** https://core.telegram.org/bots/api#banchatsenderchat
458
457
  */
459
- banChatSenderChat(sender_chat_id: number, other?: Other<"banChatSenderChat", "sender_chat_id">, signal?: AbortSignal): Promise<true>;
458
+ banChatSenderChat(sender_chat_id: number, signal?: AbortSignal): Promise<true>;
460
459
  /**
461
460
  * Context-aware alias for `api.unbanChatSenderChat`. Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.
462
461
  *
package/out/context.js CHANGED
@@ -580,13 +580,12 @@ class Context {
580
580
  * Context-aware alias for `api.banChatSenderChat`. Use this method to ban a channel chat in a supergroup or a channel. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.
581
581
  *
582
582
  * @param sender_chat_id Unique identifier of the target sender chat
583
- * @param other Optional remaining parameters, confer the official reference below
584
583
  * @param signal Optional `AbortSignal` to cancel the request
585
584
  *
586
585
  * **Official reference:** https://core.telegram.org/bots/api#banchatsenderchat
587
586
  */
588
- banChatSenderChat(sender_chat_id, other, signal) {
589
- return this.api.banChatSenderChat(orThrow(this.chat, "banChatSenderChat").id, sender_chat_id, other, signal);
587
+ banChatSenderChat(sender_chat_id, signal) {
588
+ return this.api.banChatSenderChat(orThrow(this.chat, "banChatSenderChat").id, sender_chat_id, signal);
590
589
  }
591
590
  /**
592
591
  * Context-aware alias for `api.unbanChatSenderChat`. Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.
package/out/core/api.d.ts CHANGED
@@ -464,12 +464,11 @@ export declare class Api<R extends RawApi = RawApi> {
464
464
  *
465
465
  * @param chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername)
466
466
  * @param sender_chat_id Unique identifier of the target sender chat
467
- * @param other Optional remaining parameters, confer the official reference below
468
467
  * @param signal Optional `AbortSignal` to cancel the request
469
468
  *
470
469
  * **Official reference:** https://core.telegram.org/bots/api#banchatsenderchat
471
470
  */
472
- banChatSenderChat(chat_id: number | string, sender_chat_id: number, other?: Other<R, "banChatSenderChat", "sender_chat_id">, signal?: AbortSignal): Promise<true>;
471
+ banChatSenderChat(chat_id: number | string, sender_chat_id: number, signal?: AbortSignal): Promise<true>;
473
472
  /**
474
473
  * Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.
475
474
  *
package/out/core/api.js CHANGED
@@ -530,13 +530,12 @@ class Api {
530
530
  *
531
531
  * @param chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername)
532
532
  * @param sender_chat_id Unique identifier of the target sender chat
533
- * @param other Optional remaining parameters, confer the official reference below
534
533
  * @param signal Optional `AbortSignal` to cancel the request
535
534
  *
536
535
  * **Official reference:** https://core.telegram.org/bots/api#banchatsenderchat
537
536
  */
538
- banChatSenderChat(chat_id, sender_chat_id, other, signal) {
539
- return this.raw.banChatSenderChat({ chat_id, sender_chat_id, ...other }, signal);
537
+ banChatSenderChat(chat_id, sender_chat_id, signal) {
538
+ return this.raw.banChatSenderChat({ chat_id, sender_chat_id }, signal);
540
539
  }
541
540
  /**
542
541
  * Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "grammy",
3
3
  "description": "The Telegram Bot Framework.",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "author": "KnorpelSenf",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -23,7 +23,7 @@
23
23
  "contribs": "all-contributors"
24
24
  },
25
25
  "dependencies": {
26
- "@grammyjs/types": "^2.4.0",
26
+ "@grammyjs/types": "^2.4.1",
27
27
  "abort-controller": "^3.0.0",
28
28
  "debug": "^4.3.3",
29
29
  "node-fetch": "^2.6.5"