@grammyjs/types 2.11.0 → 2.11.2

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": "@grammyjs/types",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "index.js",
6
6
  "repository": {
package/proxied.d.ts CHANGED
@@ -1212,13 +1212,7 @@ export interface InputFileProxy<F> {
1212
1212
  media: InputFileProxy<F>["InputMedia"];
1213
1213
  /** An object for a new inline keyboard. */
1214
1214
  reply_markup?: InlineKeyboardMarkup;
1215
- }):
1216
- | (Update.Edited & Message.AnimationMessage)
1217
- | (Update.Edited & Message.AudioMessage)
1218
- | (Update.Edited & Message.DocumentMessage)
1219
- | (Update.Edited & Message.PhotoMessage)
1220
- | (Update.Edited & Message.VideoMessage)
1221
- | true;
1215
+ }): (Update.Edited & Message) | true;
1222
1216
 
1223
1217
  /** Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. */
1224
1218
  editMessageReplyMarkup(args: {
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.New & Update.NonChannel;
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.New & Update.Channel;
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 */