grammy 1.22.2 → 1.22.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/out/bot.d.ts +1 -1
- package/out/bot.js +4 -0
- package/out/convenience/constants.d.ts +12 -11
- package/out/convenience/constants.js +11 -10
- package/out/web.mjs +15 -10
- package/package.json +2 -2
package/out/bot.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Api } from "./core/api.js";
|
|
|
4
4
|
import { type ApiClientOptions, type WebhookReplyEnvelope } from "./core/client.js";
|
|
5
5
|
import { type Filter, type FilterQuery } from "./filter.js";
|
|
6
6
|
import { type ReactionType, type ReactionTypeEmoji, type Update, type UserFromGetMe } from "./types.js";
|
|
7
|
-
export declare const DEFAULT_UPDATE_TYPES: readonly ["message", "edited_message", "channel_post", "edited_channel_post", "inline_query", "chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer", "my_chat_member", "chat_join_request", "chat_boost", "removed_chat_boost"];
|
|
7
|
+
export declare const DEFAULT_UPDATE_TYPES: readonly ["message", "edited_message", "channel_post", "edited_channel_post", "business_connection", "business_message", "edited_business_message", "deleted_business_messages", "inline_query", "chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer", "my_chat_member", "chat_join_request", "chat_boost", "removed_chat_boost"];
|
|
8
8
|
/**
|
|
9
9
|
* Options that can be specified when running the bot via simple long polling.
|
|
10
10
|
*/
|
package/out/bot.js
CHANGED
|
@@ -17,6 +17,10 @@ exports.DEFAULT_UPDATE_TYPES = [
|
|
|
17
17
|
"edited_message",
|
|
18
18
|
"channel_post",
|
|
19
19
|
"edited_channel_post",
|
|
20
|
+
"business_connection",
|
|
21
|
+
"business_message",
|
|
22
|
+
"edited_business_message",
|
|
23
|
+
"deleted_business_messages",
|
|
20
24
|
"inline_query",
|
|
21
25
|
"chosen_inline_result",
|
|
22
26
|
"callback_query",
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { DEFAULT_UPDATE_TYPES } from "../bot.js";
|
|
2
|
-
declare const ALL_UPDATE_TYPES: readonly ["message", "edited_message", "channel_post", "edited_channel_post", "inline_query", "chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer", "my_chat_member", "chat_join_request", "chat_boost", "removed_chat_boost", "chat_member", "message_reaction", "message_reaction_count"];
|
|
2
|
+
declare const ALL_UPDATE_TYPES: readonly ["message", "edited_message", "channel_post", "edited_channel_post", "business_connection", "business_message", "edited_business_message", "deleted_business_messages", "inline_query", "chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer", "my_chat_member", "chat_join_request", "chat_boost", "removed_chat_boost", "chat_member", "message_reaction", "message_reaction_count"];
|
|
3
3
|
declare const ALL_CHAT_PERMISSIONS: {
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly can_send_voice_notes: true;
|
|
11
|
-
readonly can_send_polls: true;
|
|
12
|
-
readonly can_send_other_messages: true;
|
|
13
|
-
readonly can_add_web_page_previews: true;
|
|
4
|
+
readonly is_anonymous: true;
|
|
5
|
+
readonly can_manage_chat: true;
|
|
6
|
+
readonly can_delete_messages: true;
|
|
7
|
+
readonly can_manage_video_chats: true;
|
|
8
|
+
readonly can_restrict_members: true;
|
|
9
|
+
readonly can_promote_members: true;
|
|
14
10
|
readonly can_change_info: true;
|
|
15
11
|
readonly can_invite_users: true;
|
|
12
|
+
readonly can_post_stories: true;
|
|
13
|
+
readonly can_edit_stories: true;
|
|
14
|
+
readonly can_delete_stories: true;
|
|
15
|
+
readonly can_post_messages: true;
|
|
16
|
+
readonly can_edit_messages: true;
|
|
16
17
|
readonly can_pin_messages: true;
|
|
17
18
|
readonly can_manage_topics: true;
|
|
18
19
|
};
|
|
@@ -9,18 +9,19 @@ const ALL_UPDATE_TYPES = [
|
|
|
9
9
|
"message_reaction_count",
|
|
10
10
|
];
|
|
11
11
|
const ALL_CHAT_PERMISSIONS = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
can_send_voice_notes: true,
|
|
19
|
-
can_send_polls: true,
|
|
20
|
-
can_send_other_messages: true,
|
|
21
|
-
can_add_web_page_previews: true,
|
|
12
|
+
is_anonymous: true,
|
|
13
|
+
can_manage_chat: true,
|
|
14
|
+
can_delete_messages: true,
|
|
15
|
+
can_manage_video_chats: true,
|
|
16
|
+
can_restrict_members: true,
|
|
17
|
+
can_promote_members: true,
|
|
22
18
|
can_change_info: true,
|
|
23
19
|
can_invite_users: true,
|
|
20
|
+
can_post_stories: true,
|
|
21
|
+
can_edit_stories: true,
|
|
22
|
+
can_delete_stories: true,
|
|
23
|
+
can_post_messages: true,
|
|
24
|
+
can_edit_messages: true,
|
|
24
25
|
can_pin_messages: true,
|
|
25
26
|
can_manage_topics: true,
|
|
26
27
|
};
|
package/out/web.mjs
CHANGED
|
@@ -3188,6 +3188,10 @@ const DEFAULT_UPDATE_TYPES = [
|
|
|
3188
3188
|
"edited_message",
|
|
3189
3189
|
"channel_post",
|
|
3190
3190
|
"edited_channel_post",
|
|
3191
|
+
"business_connection",
|
|
3192
|
+
"business_message",
|
|
3193
|
+
"edited_business_message",
|
|
3194
|
+
"deleted_business_messages",
|
|
3191
3195
|
"inline_query",
|
|
3192
3196
|
"chosen_inline_result",
|
|
3193
3197
|
"callback_query",
|
|
@@ -3507,18 +3511,19 @@ const ALL_UPDATE_TYPES = [
|
|
|
3507
3511
|
"message_reaction_count"
|
|
3508
3512
|
];
|
|
3509
3513
|
const ALL_CHAT_PERMISSIONS = {
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
can_send_voice_notes: true,
|
|
3517
|
-
can_send_polls: true,
|
|
3518
|
-
can_send_other_messages: true,
|
|
3519
|
-
can_add_web_page_previews: true,
|
|
3514
|
+
is_anonymous: true,
|
|
3515
|
+
can_manage_chat: true,
|
|
3516
|
+
can_delete_messages: true,
|
|
3517
|
+
can_manage_video_chats: true,
|
|
3518
|
+
can_restrict_members: true,
|
|
3519
|
+
can_promote_members: true,
|
|
3520
3520
|
can_change_info: true,
|
|
3521
3521
|
can_invite_users: true,
|
|
3522
|
+
can_post_stories: true,
|
|
3523
|
+
can_edit_stories: true,
|
|
3524
|
+
can_delete_stories: true,
|
|
3525
|
+
can_post_messages: true,
|
|
3526
|
+
can_edit_messages: true,
|
|
3522
3527
|
can_pin_messages: true,
|
|
3523
3528
|
can_manage_topics: true
|
|
3524
3529
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grammy",
|
|
3
3
|
"description": "The Telegram Bot Framework.",
|
|
4
|
-
"version": "1.22.
|
|
4
|
+
"version": "1.22.4",
|
|
5
5
|
"author": "KnorpelSenf",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"engines": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"backport": "deno2node tsconfig.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@grammyjs/types": "3.6.
|
|
20
|
+
"@grammyjs/types": "3.6.2",
|
|
21
21
|
"abort-controller": "^3.0.0",
|
|
22
22
|
"debug": "^4.3.4",
|
|
23
23
|
"node-fetch": "^2.7.0"
|