@grammyjs/types 3.6.0 → 3.6.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/manage.d.ts +1 -1
- package/methods.d.ts +2 -0
- package/package.json +1 -1
- package/update.d.ts +6 -2
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/methods.d.ts
CHANGED
|
@@ -709,6 +709,8 @@ export type ApiMethods<F> = {
|
|
|
709
709
|
can_promote_members?: boolean;
|
|
710
710
|
/** Pass True if the administrator can change chat title, photo and other settings */
|
|
711
711
|
can_change_info?: boolean;
|
|
712
|
+
/** Pass True if the administrator can invite new users to the chat */
|
|
713
|
+
can_invite_users?: boolean;
|
|
712
714
|
/** True if the administrator can post stories to the chat */
|
|
713
715
|
can_post_stories?: boolean;
|
|
714
716
|
/** True if the administrator can edit stories posted by other users */
|
package/package.json
CHANGED
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. */
|