@telegram.ts/types 1.4.0 → 1.6.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/package.json +1 -1
- package/src/apiMethodsTypes.d.ts +113 -87
- package/src/index.d.ts +10 -10
- package/src/inlineTypes.d.ts +11 -6
- package/src/invoiceTypes.d.ts +1 -1
- package/src/manageTypes.d.ts +189 -62
- package/src/markupTypes.d.ts +40 -25
- package/src/messageTypes.d.ts +507 -51
- package/src/telegramTypes.d.ts +1 -5
- package/src/updateTypes.d.ts +25 -5
package/src/telegramTypes.d.ts
CHANGED
|
@@ -31,11 +31,7 @@ export interface ApiSuccess<T> {
|
|
|
31
31
|
* Describes additional parameters provided in an API error response.
|
|
32
32
|
*/
|
|
33
33
|
export interface ResponseParameters {
|
|
34
|
-
/**
|
|
35
|
-
* The group has been migrated to a supergroup with the specified identifier.
|
|
36
|
-
* This number may have more than 32 significant bits, and some programming languages may have difficulty/silent defects in interpreting it.
|
|
37
|
-
* However, it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type is safe for storing this identifier.
|
|
38
|
-
*/
|
|
34
|
+
/** The group has been migrated to a supergroup with the specified identifier. */
|
|
39
35
|
migrate_to_chat_id?: number;
|
|
40
36
|
/**
|
|
41
37
|
* In case of exceeding flood control, the number of seconds left to wait before the request can be repeated.
|
package/src/updateTypes.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import type { ChosenInlineResult, InlineQuery } from "./inlineTypes
|
|
1
|
+
import type { ChosenInlineResult, InlineQuery } from "./inlineTypes";
|
|
2
2
|
import type {
|
|
3
3
|
Chat,
|
|
4
4
|
ChatJoinRequest,
|
|
5
5
|
ChatMemberUpdated,
|
|
6
|
+
ChatBoostRemoved,
|
|
7
|
+
ChatBoostUpdated,
|
|
6
8
|
User,
|
|
7
|
-
} from "./manageTypes
|
|
8
|
-
import type { CallbackQuery } from "./markupTypes
|
|
9
|
-
import type {
|
|
10
|
-
|
|
9
|
+
} from "./manageTypes";
|
|
10
|
+
import type { CallbackQuery } from "./markupTypes";
|
|
11
|
+
import type {
|
|
12
|
+
Message,
|
|
13
|
+
MessageReactionCountUpdated,
|
|
14
|
+
MessageReactionUpdated,
|
|
15
|
+
Poll,
|
|
16
|
+
PollAnswer,
|
|
17
|
+
} from "./messageTypes";
|
|
18
|
+
import type { PreCheckoutQuery, ShippingQuery } from "./invoiceTypes";
|
|
11
19
|
|
|
12
20
|
/**
|
|
13
21
|
* Namespace used internally to define more accurate message update types.
|
|
@@ -71,6 +79,12 @@ export interface Update {
|
|
|
71
79
|
*/
|
|
72
80
|
edited_channel_post?: Message & Update.Edited & Update.Channel;
|
|
73
81
|
|
|
82
|
+
/** A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify "message_reaction" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots. */
|
|
83
|
+
message_reaction?: MessageReactionUpdated;
|
|
84
|
+
|
|
85
|
+
/** Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these updates. */
|
|
86
|
+
message_reaction_count?: MessageReactionCountUpdated;
|
|
87
|
+
|
|
74
88
|
/**
|
|
75
89
|
* New incoming inline query.
|
|
76
90
|
*/
|
|
@@ -125,4 +139,10 @@ export interface Update {
|
|
|
125
139
|
* The bot must have the can_invite_users administrator right in the chat to receive these updates.
|
|
126
140
|
*/
|
|
127
141
|
chat_join_request?: ChatJoinRequest;
|
|
142
|
+
|
|
143
|
+
/** A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates. */
|
|
144
|
+
chat_boost?: ChatBoostUpdated;
|
|
145
|
+
|
|
146
|
+
/** A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates. */
|
|
147
|
+
removed_chat_boost?: ChatBoostRemoved;
|
|
128
148
|
}
|