@grammyjs/types 3.6.0 → 3.6.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/manage.d.ts CHANGED
@@ -597,7 +597,7 @@ export interface BusinessMessagesDeleted {
597
597
  /** Unique identifier of the business connection */
598
598
  business_connection_id: string;
599
599
  /** Information about a chat in the business account. The bot may not have access to the chat or the corresponding user. */
600
- chat: Chat;
600
+ chat: Chat.PrivateChat;
601
601
  /** A JSON-serialized list of identifiers of deleted messages in the chat of the business account */
602
602
  message_ids: number[];
603
603
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {
package/update.d.ts CHANGED
@@ -5,6 +5,10 @@ import type { Message, MessageReactionCountUpdated, MessageReactionUpdated, Poll
5
5
  import type { PreCheckoutQuery, ShippingQuery } from "./payment.js";
6
6
  /** Internal namespace used to make some message types more accurate */
7
7
  export declare namespace Update {
8
+ /** Internal type holding properties that message updates in private chats share. */
9
+ interface Private {
10
+ chat: Chat.PrivateChat;
11
+ }
8
12
  /** Internal type holding properties that message updates in channels share. */
9
13
  interface Channel {
10
14
  chat: Chat.ChannelChat;
@@ -36,9 +40,9 @@ export interface Update {
36
40
  /** The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot */
37
41
  business_connection?: BusinessConnection;
38
42
  /** New non-service message from a connected business account */
39
- business_message?: Message;
43
+ business_message?: Message & Update.Private;
40
44
  /** New version of a message from a connected business account */
41
- edited_business_message?: Message;
45
+ edited_business_message?: Message & Update.Edited & Update.Private;
42
46
  /** Messages were deleted from a connected business account */
43
47
  deleted_business_messages?: BusinessMessagesDeleted;
44
48
  /** 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. */