@grammyjs/types 2.11.0 → 2.11.1
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/update.d.ts +2 -15
package/package.json
CHANGED
package/update.d.ts
CHANGED
|
@@ -9,29 +9,16 @@ export namespace Update {
|
|
|
9
9
|
/** Internal type holding properties that message updates in channels share. */
|
|
10
10
|
export interface Channel {
|
|
11
11
|
chat: Chat.ChannelChat;
|
|
12
|
-
author_signature?: string;
|
|
13
|
-
from?: never;
|
|
14
12
|
}
|
|
15
13
|
/** Internal type holding properties that message updates outside of channels share. */
|
|
16
14
|
export interface NonChannel {
|
|
17
15
|
chat: Exclude<Chat, Chat.ChannelChat>;
|
|
18
|
-
author_signature?: never;
|
|
19
16
|
from: User;
|
|
20
17
|
}
|
|
21
|
-
/** Internal type holding properties that updates about new messages share. */
|
|
22
|
-
export interface New {
|
|
23
|
-
edit_date?: never;
|
|
24
|
-
}
|
|
25
18
|
/** Internal type holding properties that updates about edited messages share. */
|
|
26
19
|
export interface Edited {
|
|
27
20
|
/** Date the message was last edited in Unix time */
|
|
28
21
|
edit_date: number;
|
|
29
|
-
forward_from?: never;
|
|
30
|
-
forward_from_chat?: never;
|
|
31
|
-
forward_from_message_id?: never;
|
|
32
|
-
forward_signature?: never;
|
|
33
|
-
forward_sender_name?: never;
|
|
34
|
-
forward_date?: never;
|
|
35
22
|
}
|
|
36
23
|
}
|
|
37
24
|
|
|
@@ -41,11 +28,11 @@ export interface Update {
|
|
|
41
28
|
/** The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially. */
|
|
42
29
|
update_id: number;
|
|
43
30
|
/** New incoming message of any kind - text, photo, sticker, etc. */
|
|
44
|
-
message?: Message & Update.
|
|
31
|
+
message?: Message & Update.NonChannel;
|
|
45
32
|
/** New version of a message that is known to the bot and was edited */
|
|
46
33
|
edited_message?: Message & Update.Edited & Update.NonChannel;
|
|
47
34
|
/** New incoming channel post of any kind - text, photo, sticker, etc. */
|
|
48
|
-
channel_post?: Message & Update.
|
|
35
|
+
channel_post?: Message & Update.Channel;
|
|
49
36
|
/** New version of a channel post that is known to the bot and was edited */
|
|
50
37
|
edited_channel_post?: Message & Update.Edited & Update.Channel;
|
|
51
38
|
/** New incoming inline query */
|