@mtkruto/node 0.20.0 → 0.20.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.
@@ -1178,7 +1178,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
1178
1178
  * @method ch
1179
1179
  * @param chatId The identifier of the chat to get the settings for.
1180
1180
  */
1181
- getChatSettings(userId: ID): Promise<ChatSettings>;
1181
+ getChatSettings(chatId: ID): Promise<ChatSettings>;
1182
1182
  /**
1183
1183
  * Send a callback query. User-only.
1184
1184
  *
@@ -2564,8 +2564,8 @@ export class Client extends Composer {
2564
2564
  * @method ch
2565
2565
  * @param chatId The identifier of the chat to get the settings for.
2566
2566
  */
2567
- async getChatSettings(userId) {
2568
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatSettings(userId);
2567
+ async getChatSettings(chatId) {
2568
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatSettings(chatId);
2569
2569
  }
2570
2570
  //
2571
2571
  // ========================= CALLBACK QUERIES ========================= //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -1178,7 +1178,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
1178
1178
  * @method ch
1179
1179
  * @param chatId The identifier of the chat to get the settings for.
1180
1180
  */
1181
- getChatSettings(userId: ID): Promise<ChatSettings>;
1181
+ getChatSettings(chatId: ID): Promise<ChatSettings>;
1182
1182
  /**
1183
1183
  * Send a callback query. User-only.
1184
1184
  *
@@ -2568,8 +2568,8 @@ class Client extends Composer {
2568
2568
  * @method ch
2569
2569
  * @param chatId The identifier of the chat to get the settings for.
2570
2570
  */
2571
- async getChatSettings(userId) {
2572
- return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatSettings(userId);
2571
+ async getChatSettings(chatId) {
2572
+ return await __classPrivateFieldGet(this, _Client_chatListManager, "f").getChatSettings(chatId);
2573
2573
  }
2574
2574
  //
2575
2575
  // ========================= CALLBACK QUERIES ========================= //