nyx-bot-client 0.0.9 → 1.0.0
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/@types/ChatAdministratorRights.ts +10 -2
- package/@types/ChatMemberAdministrator.ts +10 -3
- package/@types/ChatMemberMember.ts +5 -0
- package/@types/ChatMemberRestricted.ts +11 -1
- package/@types/ChatPermissions.ts +6 -1
- package/@types/Gift.ts +2 -2
- package/@types/Message.ts +7 -1
- package/@types/MessageEntity.ts +23 -4
- package/@types/PreparedInlineMessage.ts +16 -0
- package/@types/SuggestedPostApprovalFailed.ts +1 -1
- package/@types/SuggestedPostPaid.ts +1 -1
- package/@types/SuggestedPostRefunded.ts +1 -1
- package/@types/UserChatBoosts.ts +13 -0
- package/@types/index.ts +7 -0
- package/biome.json +1 -1
- package/bun.lock +18 -20
- package/package.json +5 -5
- package/utils/methods.ts +9 -0
|
@@ -10,7 +10,8 @@ export type ChatAdministratorRights = {
|
|
|
10
10
|
is_anonymous: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel
|
|
13
|
-
* members, report spam messages
|
|
13
|
+
* members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars.
|
|
14
|
+
* Implied by any other administrator privilege.
|
|
14
15
|
*/
|
|
15
16
|
can_manage_chat: boolean;
|
|
16
17
|
|
|
@@ -63,7 +64,8 @@ export type ChatAdministratorRights = {
|
|
|
63
64
|
can_delete_stories: boolean;
|
|
64
65
|
|
|
65
66
|
/**
|
|
66
|
-
* True, if the administrator can post messages in the channel, or access channel
|
|
67
|
+
* Optional. True, if the administrator can post messages in the channel, approve suggested posts, or access channel
|
|
68
|
+
* statistics; for channels only
|
|
67
69
|
*/
|
|
68
70
|
can_post_messages?: boolean;
|
|
69
71
|
|
|
@@ -87,4 +89,10 @@ export type ChatAdministratorRights = {
|
|
|
87
89
|
* channels only
|
|
88
90
|
*/
|
|
89
91
|
can_manage_direct_messages?: boolean;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups only. If
|
|
95
|
+
* omitted defaults to the value of can_pin_messages.
|
|
96
|
+
*/
|
|
97
|
+
can_manage_tags?: boolean;
|
|
90
98
|
};
|
|
@@ -27,7 +27,8 @@ export type ChatMemberAdministrator = {
|
|
|
27
27
|
is_anonymous: boolean;
|
|
28
28
|
/**
|
|
29
29
|
* True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel
|
|
30
|
-
* members, report spam messages
|
|
30
|
+
* members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars.
|
|
31
|
+
* Implied by any other administrator privilege.
|
|
31
32
|
*/
|
|
32
33
|
can_manage_chat: boolean;
|
|
33
34
|
|
|
@@ -80,8 +81,8 @@ export type ChatMemberAdministrator = {
|
|
|
80
81
|
can_delete_stories: boolean;
|
|
81
82
|
|
|
82
83
|
/**
|
|
83
|
-
* Optional. True, if the administrator can post messages in the channel, or access channel
|
|
84
|
-
* only
|
|
84
|
+
* Optional. True, if the administrator can post messages in the channel, approve suggested posts, or access channel
|
|
85
|
+
* statistics; for channels only
|
|
85
86
|
*/
|
|
86
87
|
can_post_messages?: boolean;
|
|
87
88
|
|
|
@@ -106,6 +107,12 @@ export type ChatMemberAdministrator = {
|
|
|
106
107
|
*/
|
|
107
108
|
can_manage_direct_messages?: boolean;
|
|
108
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups only. If
|
|
112
|
+
* omitted defaults to the value of can_pin_messages.
|
|
113
|
+
*/
|
|
114
|
+
can_manage_tags?: boolean;
|
|
115
|
+
|
|
109
116
|
/**
|
|
110
117
|
* Optional. Custom title for this user
|
|
111
118
|
*/
|
|
@@ -11,6 +11,11 @@ export type ChatMemberRestricted = {
|
|
|
11
11
|
*/
|
|
12
12
|
status: "restricted";
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Optional. Tag of the member
|
|
16
|
+
*/
|
|
17
|
+
tag?: string;
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* Information about the user
|
|
16
21
|
*/
|
|
@@ -58,7 +63,7 @@ export type ChatMemberRestricted = {
|
|
|
58
63
|
can_send_voice_notes: boolean;
|
|
59
64
|
|
|
60
65
|
/**
|
|
61
|
-
* True, if the user is allowed to send polls
|
|
66
|
+
* True, if the user is allowed to send polls and checklists
|
|
62
67
|
*/
|
|
63
68
|
can_send_polls: boolean;
|
|
64
69
|
|
|
@@ -72,6 +77,11 @@ export type ChatMemberRestricted = {
|
|
|
72
77
|
*/
|
|
73
78
|
can_add_web_page_previews: boolean;
|
|
74
79
|
|
|
80
|
+
/**
|
|
81
|
+
* True, if the user is allowed to edit their own tag
|
|
82
|
+
*/
|
|
83
|
+
can_edit_tag: boolean;
|
|
84
|
+
|
|
75
85
|
/**
|
|
76
86
|
* True, if the user is allowed to change the chat title, photo and other settings
|
|
77
87
|
*/
|
|
@@ -41,7 +41,7 @@ export type ChatPermissions = {
|
|
|
41
41
|
can_send_voice_notes?: boolean;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* Optional. True, if the user is allowed to send polls
|
|
44
|
+
* Optional. True, if the user is allowed to send polls and checklists
|
|
45
45
|
*/
|
|
46
46
|
can_send_polls?: boolean;
|
|
47
47
|
|
|
@@ -55,6 +55,11 @@ export type ChatPermissions = {
|
|
|
55
55
|
*/
|
|
56
56
|
can_add_web_page_previews?: boolean;
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Optional. True, if the user is allowed to edit their own tag
|
|
60
|
+
*/
|
|
61
|
+
can_edit_tag?: boolean;
|
|
62
|
+
|
|
58
63
|
/**
|
|
59
64
|
* Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public
|
|
60
65
|
* supergroups
|
package/@types/Gift.ts
CHANGED
|
@@ -37,12 +37,12 @@ export type Gift = {
|
|
|
37
37
|
has_colors?: true;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Optional. The total number of
|
|
40
|
+
* Optional. The total number of gifts of this type that can be sent by all users; for limited gifts only
|
|
41
41
|
*/
|
|
42
42
|
total_count?: number;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Optional. The number of remaining gifts of this type that can be sent; for limited gifts only
|
|
45
|
+
* Optional. The number of remaining gifts of this type that can be sent by all users; for limited gifts only
|
|
46
46
|
*/
|
|
47
47
|
remaining_count?: number;
|
|
48
48
|
|
package/@types/Message.ts
CHANGED
|
@@ -47,6 +47,7 @@ import type {
|
|
|
47
47
|
Story,
|
|
48
48
|
SuccessfulPayment,
|
|
49
49
|
SuggestedPostApprovalFailed,
|
|
50
|
+
SuggestedPostApproved,
|
|
50
51
|
SuggestedPostDeclined,
|
|
51
52
|
SuggestedPostInfo,
|
|
52
53
|
SuggestedPostPaid,
|
|
@@ -114,6 +115,11 @@ export type Message = {
|
|
|
114
115
|
*/
|
|
115
116
|
sender_business_bot?: User;
|
|
116
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Optional. Tag or custom title of the sender of the message; for supergroups only
|
|
120
|
+
*/
|
|
121
|
+
sender_tag?: string;
|
|
122
|
+
|
|
117
123
|
/**
|
|
118
124
|
* Date the message was sent in Unix time. It is always a positive number, representing a valid date.
|
|
119
125
|
*/
|
|
@@ -579,7 +585,7 @@ export type Message = {
|
|
|
579
585
|
/**
|
|
580
586
|
* Optional. Service message: a suggested post was approved
|
|
581
587
|
*/
|
|
582
|
-
suggested_post_approved?:
|
|
588
|
+
suggested_post_approved?: SuggestedPostApproved;
|
|
583
589
|
|
|
584
590
|
/**
|
|
585
591
|
* Optional. Service message: approval of a suggested post has failed
|
package/@types/MessageEntity.ts
CHANGED
|
@@ -37,7 +37,8 @@ export type MessageEntity = {
|
|
|
37
37
|
* “pre” (monowidth block),
|
|
38
38
|
* “text_link” (for clickable text URLs),
|
|
39
39
|
* “text_mention” (for users without usernames),
|
|
40
|
-
* “custom_emoji” (for inline custom emoji stickers)
|
|
40
|
+
* “custom_emoji” (for inline custom emoji stickers),
|
|
41
|
+
* “date_time” (for formatted date and time)
|
|
41
42
|
*/
|
|
42
43
|
type:
|
|
43
44
|
| "mention"
|
|
@@ -54,14 +55,14 @@ export type MessageEntity = {
|
|
|
54
55
|
| "blockquote"
|
|
55
56
|
| "expandable_blockquote"
|
|
56
57
|
| "code"
|
|
57
|
-
| "
|
|
58
|
+
| "url";
|
|
58
59
|
}
|
|
59
60
|
| {
|
|
60
61
|
/**
|
|
61
62
|
* Type of the entity.
|
|
62
|
-
* “
|
|
63
|
+
* “text_link” (for clickable text URLs),
|
|
63
64
|
*/
|
|
64
|
-
type: "
|
|
65
|
+
type: "text_link";
|
|
65
66
|
|
|
66
67
|
/**
|
|
67
68
|
* Optional. For “text_link” only, URL that will be opened after user taps on the text
|
|
@@ -106,4 +107,22 @@ export type MessageEntity = {
|
|
|
106
107
|
*/
|
|
107
108
|
custom_emoji_id: string;
|
|
108
109
|
}
|
|
110
|
+
| {
|
|
111
|
+
/**
|
|
112
|
+
* Type of the entity.
|
|
113
|
+
* "date_time" (for formatted date and time)
|
|
114
|
+
*/
|
|
115
|
+
type: "date_time";
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Optional. For "date_time" only, the Unix time associated with the entity
|
|
119
|
+
*/
|
|
120
|
+
unix_time?: number;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Optional. For "date_time" only, the string that defines the formatting of the date and time.
|
|
124
|
+
* See date-time entity formatting for more details.
|
|
125
|
+
*/
|
|
126
|
+
date_time_format?: string;
|
|
127
|
+
}
|
|
109
128
|
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## PreparedInlineMessage
|
|
3
|
+
* Describes an inline message to be sent by a user of a Mini App.
|
|
4
|
+
* @see https://core.telegram.org/bots/api#preparedinlinemessage
|
|
5
|
+
*/
|
|
6
|
+
export type PreparedInlineMessage = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier of the prepared message
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used
|
|
14
|
+
*/
|
|
15
|
+
expiration_date: number;
|
|
16
|
+
};
|
|
@@ -10,7 +10,7 @@ export type SuggestedPostPaid = {
|
|
|
10
10
|
* Optional. Message containing the suggested post. Note that the Message object in this field will not contain the
|
|
11
11
|
* reply_to_message field even if it itself is a reply.
|
|
12
12
|
*/
|
|
13
|
-
suggested_post_message
|
|
13
|
+
suggested_post_message?: Message;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins
|
|
@@ -10,7 +10,7 @@ export type SuggestedPostRefunded = {
|
|
|
10
10
|
* Optional. Message containing the suggested post. Note that the Message object in this field will not contain the
|
|
11
11
|
* reply_to_message field even if it itself is a reply.
|
|
12
12
|
*/
|
|
13
|
-
suggested_post_message
|
|
13
|
+
suggested_post_message?: Message;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Reason for the refund. Currently, one of “post_deleted” if the post was deleted within 24 hours of being posted or
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChatBoost } from "./";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ## UserChatBoosts
|
|
5
|
+
* This object represents a list of boosts added to a chat by a user.
|
|
6
|
+
* @see https://core.telegram.org/bots/api#userchatboosts
|
|
7
|
+
*/
|
|
8
|
+
export type UserChatBoosts = {
|
|
9
|
+
/**
|
|
10
|
+
* The list of boosts added to the chat by the user
|
|
11
|
+
*/
|
|
12
|
+
boosts: ChatBoost[];
|
|
13
|
+
};
|
package/@types/index.ts
CHANGED
|
@@ -208,6 +208,7 @@ export * from "./Poll";
|
|
|
208
208
|
export * from "./PollAnswer";
|
|
209
209
|
export * from "./PollOption";
|
|
210
210
|
export * from "./PreCheckoutQuery";
|
|
211
|
+
export * from "./PreparedInlineMessage";
|
|
211
212
|
export * from "./ProximityAlertTriggered";
|
|
212
213
|
export * from "./ReactionCount";
|
|
213
214
|
export * from "./ReactionType";
|
|
@@ -219,6 +220,10 @@ export * from "./ReplyKeyboardMarkup";
|
|
|
219
220
|
export * from "./ReplyKeyboardRemove";
|
|
220
221
|
export * from "./ReplyParameters";
|
|
221
222
|
export * from "./ResponseParameters";
|
|
223
|
+
export * from "./RevenueWithdrawalState";
|
|
224
|
+
export * from "./RevenueWithdrawalStateFailed";
|
|
225
|
+
export * from "./RevenueWithdrawalStatePending";
|
|
226
|
+
export * from "./RevenueWithdrawalStateSucceeded";
|
|
222
227
|
export * from "./SentWebAppMessage";
|
|
223
228
|
export * from "./SharedUser";
|
|
224
229
|
export * from "./ShippingAddress";
|
|
@@ -240,6 +245,7 @@ export * from "./StoryAreaTypeUniqueGift";
|
|
|
240
245
|
export * from "./StoryAreaTypeWeather";
|
|
241
246
|
export * from "./SuccessfulPayment";
|
|
242
247
|
export * from "./SuggestedPostApprovalFailed";
|
|
248
|
+
export * from "./SuggestedPostApproved";
|
|
243
249
|
export * from "./SuggestedPostDeclined";
|
|
244
250
|
export * from "./SuggestedPostInfo";
|
|
245
251
|
export * from "./SuggestedPostPaid";
|
|
@@ -265,6 +271,7 @@ export * from "./UniqueGiftModel";
|
|
|
265
271
|
export * from "./UniqueGiftSymbol";
|
|
266
272
|
export * from "./Update";
|
|
267
273
|
export * from "./User";
|
|
274
|
+
export * from "./UserChatBoosts";
|
|
268
275
|
export * from "./UserProfileAudios";
|
|
269
276
|
export * from "./UserProfilePhotos";
|
|
270
277
|
export * from "./UserRating";
|
package/biome.json
CHANGED
package/bun.lock
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "nyx-bot-client",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@biomejs/biome": "^2.
|
|
9
|
-
"@types/node": "^25.
|
|
10
|
-
"dotenv": "^17.
|
|
8
|
+
"@biomejs/biome": "^2.4.6",
|
|
9
|
+
"@types/node": "^25.3.5",
|
|
10
|
+
"dotenv": "^17.3.1",
|
|
11
11
|
"kysely": "^0.28.11",
|
|
12
|
-
"mysql2": "^3.
|
|
12
|
+
"mysql2": "^3.19.0",
|
|
13
13
|
"ts-debounce": "^4.0.0",
|
|
14
14
|
"zod": "^4.3.6",
|
|
15
15
|
},
|
|
@@ -22,27 +22,27 @@
|
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
"packages": {
|
|
25
|
-
"@biomejs/biome": ["@biomejs/biome@2.
|
|
25
|
+
"@biomejs/biome": ["@biomejs/biome@2.4.6", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.4.6", "@biomejs/cli-darwin-x64": "2.4.6", "@biomejs/cli-linux-arm64": "2.4.6", "@biomejs/cli-linux-arm64-musl": "2.4.6", "@biomejs/cli-linux-x64": "2.4.6", "@biomejs/cli-linux-x64-musl": "2.4.6", "@biomejs/cli-win32-arm64": "2.4.6", "@biomejs/cli-win32-x64": "2.4.6" }, "bin": { "biome": "bin/biome" } }, "sha512-QnHe81PMslpy3mnpL8DnO2M4S4ZnYPkjlGCLWBZT/3R9M6b5daArWMMtEfP52/n174RKnwRIf3oT8+wc9ihSfQ=="],
|
|
26
26
|
|
|
27
|
-
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.
|
|
27
|
+
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.4.6", "", { "os": "darwin", "cpu": "arm64" }, "sha512-NW18GSyxr+8sJIqgoGwVp5Zqm4SALH4b4gftIA0n62PTuBs6G2tHlwNAOj0Vq0KKSs7Sf88VjjmHh0O36EnzrQ=="],
|
|
28
28
|
|
|
29
|
-
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.
|
|
29
|
+
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.4.6", "", { "os": "darwin", "cpu": "x64" }, "sha512-4uiE/9tuI7cnjtY9b07RgS7gGyYOAfIAGeVJWEfeCnAarOAS7qVmuRyX6d7JTKw28/mt+rUzMasYeZ+0R/U1Mw=="],
|
|
30
30
|
|
|
31
|
-
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.
|
|
31
|
+
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.4.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-kMLaI7OF5GN1Q8Doymjro1P8rVEoy7BKQALNz6fiR8IC1WKduoNyteBtJlHT7ASIL0Cx2jR6VUOBIbcB1B8pew=="],
|
|
32
32
|
|
|
33
|
-
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.
|
|
33
|
+
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.4.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-F/JdB7eN22txiTqHM5KhIVt0jVkzZwVYrdTR1O3Y4auBOQcXxHK4dxULf4z43QyZI5tsnQJrRBHZy7wwtL+B3A=="],
|
|
34
34
|
|
|
35
|
-
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.
|
|
35
|
+
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.4.6", "", { "os": "linux", "cpu": "x64" }, "sha512-oHXmUFEoH8Lql1xfc3QkFLiC1hGR7qedv5eKNlC185or+o4/4HiaU7vYODAH3peRCfsuLr1g6v2fK9dFFOYdyw=="],
|
|
36
36
|
|
|
37
|
-
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.
|
|
37
|
+
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.4.6", "", { "os": "linux", "cpu": "x64" }, "sha512-C9s98IPDu7DYarjlZNuzJKTjVHN03RUnmHV5htvqsx6vEUXCDSJ59DNwjKVD5XYoSS4N+BYhq3RTBAL8X6svEg=="],
|
|
38
38
|
|
|
39
|
-
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.
|
|
39
|
+
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.4.6", "", { "os": "win32", "cpu": "arm64" }, "sha512-xzThn87Pf3YrOGTEODFGONmqXpTwUNxovQb72iaUOdcw8sBSY3+3WD8Hm9IhMYLnPi0n32s3L3NWU6+eSjfqFg=="],
|
|
40
40
|
|
|
41
|
-
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.
|
|
41
|
+
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.4.6", "", { "os": "win32", "cpu": "x64" }, "sha512-7++XhnsPlr1HDbor5amovPjOH6vsrFOCdp93iKXhFn6bcMUI6soodj3WWKfgEO6JosKU1W5n3uky3WW9RlRjTg=="],
|
|
42
42
|
|
|
43
43
|
"@types/bun": ["@types/bun@1.2.17", "", { "dependencies": { "bun-types": "1.2.17" } }, "sha512-l/BYs/JYt+cXA/0+wUhulYJB6a6p//GTPiJ7nV+QHa8iiId4HZmnu/3J/SowP5g0rTiERY2kfGKXEK5Ehltx4Q=="],
|
|
44
44
|
|
|
45
|
-
"@types/node": ["@types/node@25.
|
|
45
|
+
"@types/node": ["@types/node@25.3.5", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-oX8xrhvpiyRCQkG1MFchB09f+cXftgIXb3a7UUa4Y3wpmZPw5tyZGTLWhlESOLq1Rq6oDlc8npVU2/9xiCuXMA=="],
|
|
46
46
|
|
|
47
47
|
"aws-ssl-profiles": ["aws-ssl-profiles@1.1.2", "", {}, "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g=="],
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
"denque": ["denque@2.1.0", "", {}, "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw=="],
|
|
52
52
|
|
|
53
|
-
"dotenv": ["dotenv@17.
|
|
53
|
+
"dotenv": ["dotenv@17.3.1", "", {}, "sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA=="],
|
|
54
54
|
|
|
55
55
|
"generate-function": ["generate-function@2.3.1", "", { "dependencies": { "is-property": "^1.0.2" } }, "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ=="],
|
|
56
56
|
|
|
@@ -64,21 +64,19 @@
|
|
|
64
64
|
|
|
65
65
|
"lru.min": ["lru.min@1.1.4", "", {}, "sha512-DqC6n3QQ77zdFpCMASA1a3Jlb64Hv2N2DciFGkO/4L9+q/IpIAuRlKOvCXabtRW6cQf8usbmM6BE/TOPysCdIA=="],
|
|
66
66
|
|
|
67
|
-
"mysql2": ["mysql2@3.
|
|
67
|
+
"mysql2": ["mysql2@3.19.0", "", { "dependencies": { "aws-ssl-profiles": "^1.1.2", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.7.2", "long": "^5.3.2", "lru.min": "^1.1.4", "named-placeholders": "^1.1.6", "sql-escaper": "^1.3.3" }, "peerDependencies": { "@types/node": ">= 8" } }, "sha512-760Ay9HViAUT7V8QkYxrIx/LHJPGWtE+D/31VuiDm1eu2IFaUIqMcK7+hVHnmgnC7JnnwreFKsZoa8K6BnGl8Q=="],
|
|
68
68
|
|
|
69
69
|
"named-placeholders": ["named-placeholders@1.1.6", "", { "dependencies": { "lru.min": "^1.1.0" } }, "sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w=="],
|
|
70
70
|
|
|
71
71
|
"safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
|
|
72
72
|
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
"sql-escaper": ["sql-escaper@1.3.1", "", {}, "sha512-GLMJGWKzrr7BS5E5+8Prix6RGfBd4UokKMxkPSg313X0TvUyjdJU3Xg7FAhhcba4dHnLy81t4YeHETKLGVsDow=="],
|
|
73
|
+
"sql-escaper": ["sql-escaper@1.3.3", "", {}, "sha512-BsTCV265VpTp8tm1wyIm1xqQCS+Q9NHx2Sr+WcnUrgLrQ6yiDIvHYJV5gHxsj1lMBy2zm5twLaZao8Jd+S8JJw=="],
|
|
76
74
|
|
|
77
75
|
"ts-debounce": ["ts-debounce@4.0.0", "", {}, "sha512-+1iDGY6NmOGidq7i7xZGA4cm8DAa6fqdYcvO5Z6yBevH++Bdo9Qt/mN0TzHUgcCcKv1gmh9+W5dHqz8pMWbCbg=="],
|
|
78
76
|
|
|
79
77
|
"typescript": ["typescript@5.8.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="],
|
|
80
78
|
|
|
81
|
-
"undici-types": ["undici-types@7.
|
|
79
|
+
"undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="],
|
|
82
80
|
|
|
83
81
|
"zod": ["zod@4.3.6", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="],
|
|
84
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nyx-bot-client",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devDependencies": {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"typescript": "^5"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@biomejs/biome": "^2.
|
|
14
|
-
"@types/node": "^25.
|
|
15
|
-
"dotenv": "^17.
|
|
13
|
+
"@biomejs/biome": "^2.4.6",
|
|
14
|
+
"@types/node": "^25.3.5",
|
|
15
|
+
"dotenv": "^17.3.1",
|
|
16
16
|
"kysely": "^0.28.11",
|
|
17
|
-
"mysql2": "^3.
|
|
17
|
+
"mysql2": "^3.19.0",
|
|
18
18
|
"ts-debounce": "^4.0.0",
|
|
19
19
|
"zod": "^4.3.6"
|
|
20
20
|
}
|
package/utils/methods.ts
CHANGED
|
@@ -2095,3 +2095,12 @@ export type removeMyProfilePhotoParams = {
|
|
|
2095
2095
|
export const removeMyProfilePhoto = (
|
|
2096
2096
|
params: removeMyProfilePhotoParams,
|
|
2097
2097
|
): APIResponse => requestTelegramAPI("removeMyProfilePhoto", params);
|
|
2098
|
+
|
|
2099
|
+
export type setChatMemberTagParams = {
|
|
2100
|
+
chat_id: string | number;
|
|
2101
|
+
user_id: number;
|
|
2102
|
+
tag?: string;
|
|
2103
|
+
} & methodParams;
|
|
2104
|
+
|
|
2105
|
+
export const setChatMemberTag = (params: setChatMemberTagParams): APIResponse =>
|
|
2106
|
+
requestTelegramAPI("setChatMemberTag", params);
|