grammy 1.5.1 → 1.5.2
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/out/context.d.ts +1 -1
- package/out/context.js +1 -1
- package/out/core/api.d.ts +1 -1
- package/out/core/api.js +1 -1
- package/package.json +2 -2
package/out/context.d.ts
CHANGED
|
@@ -448,7 +448,7 @@ export declare class Context implements RenamedUpdate {
|
|
|
448
448
|
*/
|
|
449
449
|
setChatAdministratorCustomTitle(user_id: number, custom_title: string, signal?: AbortSignal): Promise<true>;
|
|
450
450
|
/**
|
|
451
|
-
* Context-aware alias for `api.banChatSenderChat`. Use this method to ban a channel chat in a supergroup or a channel.
|
|
451
|
+
* Context-aware alias for `api.banChatSenderChat`. Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. 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
454
|
* @param signal Optional `AbortSignal` to cancel the request
|
package/out/context.js
CHANGED
|
@@ -577,7 +577,7 @@ class Context {
|
|
|
577
577
|
return this.api.setChatAdministratorCustomTitle(orThrow(this.chat, "setChatAdministratorCustomTitle").id, user_id, custom_title, signal);
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
|
-
* Context-aware alias for `api.banChatSenderChat`. Use this method to ban a channel chat in a supergroup or a channel.
|
|
580
|
+
* Context-aware alias for `api.banChatSenderChat`. Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. 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
583
|
* @param signal Optional `AbortSignal` to cancel the request
|
package/out/core/api.d.ts
CHANGED
|
@@ -460,7 +460,7 @@ export declare class Api<R extends RawApi = RawApi> {
|
|
|
460
460
|
*/
|
|
461
461
|
setChatAdministratorCustomTitle(chat_id: number | string, user_id: number, custom_title: string, signal?: AbortSignal): Promise<true>;
|
|
462
462
|
/**
|
|
463
|
-
* Use this method to ban a channel chat in a supergroup or a channel.
|
|
463
|
+
* Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. 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.
|
|
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
|
package/out/core/api.js
CHANGED
|
@@ -526,7 +526,7 @@ class Api {
|
|
|
526
526
|
return this.raw.setChatAdministratorCustomTitle({ chat_id, user_id, custom_title }, signal);
|
|
527
527
|
}
|
|
528
528
|
/**
|
|
529
|
-
* Use this method to ban a channel chat in a supergroup or a channel.
|
|
529
|
+
* Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. 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.
|
|
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
|
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.
|
|
4
|
+
"version": "1.5.2",
|
|
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.
|
|
26
|
+
"@grammyjs/types": "^2.4.3",
|
|
27
27
|
"abort-controller": "^3.0.0",
|
|
28
28
|
"debug": "^4.3.3",
|
|
29
29
|
"node-fetch": "^2.6.5"
|