rubika 1.0.2 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rubika",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "author": "Hadi Rostami",
5
5
  "main": "src/index.ts",
6
6
  "description": "A modern library for Rubika built with Bun.",
@@ -0,0 +1,7 @@
1
+ import Bot from '../..';
2
+
3
+ async function banChatMember(this: Bot, chat_id: string , user_id: string) {
4
+ return await this.builder('banChatMember', { chat_id , user_id});
5
+ }
6
+
7
+ export default banChatMember;
@@ -0,0 +1,7 @@
1
+ import Bot from '../..';
2
+
3
+ async function unbanChatMember(this: Bot, chat_id: string , user_id: string) {
4
+ return await this.builder('unbanChatMember', { chat_id , user_id});
5
+ }
6
+
7
+ export default unbanChatMember;
@@ -15,13 +15,15 @@ import {
15
15
  } from "./enums";
16
16
 
17
17
  export interface Chat {
18
- chat_id: string;
19
- chat_type: ChatTypeEnum;
20
- user_id: string;
21
- first_name: string;
22
- last_name: string;
23
- title: string;
24
- username: string;
18
+ chat: {
19
+ chat_id: string;
20
+ chat_type: ChatTypeEnum;
21
+ user_id: string;
22
+ first_name: string;
23
+ last_name: string;
24
+ title: string;
25
+ username: string;
26
+ };
25
27
  }
26
28
 
27
29
  export interface File {