@grammyjs/types 3.5.0 → 3.5.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 +6 -6
- package/message.d.ts +6 -5
- package/package.json +1 -1
package/manage.d.ts
CHANGED
|
@@ -120,8 +120,6 @@ export declare namespace Chat {
|
|
|
120
120
|
interface MultiUserGetChat {
|
|
121
121
|
/** Default chat member permissions, for groups and supergroups. Returned only in getChat. */
|
|
122
122
|
permissions?: ChatPermissions;
|
|
123
|
-
/** True, if the bot can change the group sticker set. Returned only in getChat. */
|
|
124
|
-
can_set_sticker_set?: true;
|
|
125
123
|
}
|
|
126
124
|
/** Internal type holding properties that those private and channel chats returned from `getChat` share. */
|
|
127
125
|
interface NonMultiUserGetChat {
|
|
@@ -159,18 +157,20 @@ export declare namespace Chat {
|
|
|
159
157
|
join_by_request?: true;
|
|
160
158
|
/** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds. Returned only in getChat. */
|
|
161
159
|
slow_mode_delay?: number;
|
|
160
|
+
/** For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. Returned only in getChat. */
|
|
161
|
+
unrestrict_boost_count?: number;
|
|
162
162
|
/** True, if new chat members will have access to old messages; available only to chat administrators. Returned only in getChat. */
|
|
163
163
|
has_visible_history?: boolean;
|
|
164
164
|
/** True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat. */
|
|
165
165
|
has_aggressive_anti_spam_enabled?: true;
|
|
166
166
|
/** For supergroups, name of group sticker set. Returned only in getChat. */
|
|
167
167
|
sticker_set_name?: string;
|
|
168
|
-
/**
|
|
169
|
-
|
|
170
|
-
/** For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. Returned only in getChat. */
|
|
171
|
-
unrestrict_boost_count?: number;
|
|
168
|
+
/** True, if the bot can change the group sticker set. Returned only in getChat. */
|
|
169
|
+
can_set_sticker_set?: true;
|
|
172
170
|
/** For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group. Returned only in getChat. */
|
|
173
171
|
custom_emoji_sticker_set_name?: string;
|
|
172
|
+
/** For supergroups, the location to which the supergroup is connected. Returned only in getChat. */
|
|
173
|
+
location?: ChatLocation;
|
|
174
174
|
}
|
|
175
175
|
/** Internal type representing channel chats returned from `getChat`. */
|
|
176
176
|
interface ChannelGetChat extends ChannelChat, GetChat, NonGroupGetChat, NonPrivateGetChat, NonMultiUserGetChat, LargeGetChat {
|
package/message.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export declare namespace Message {
|
|
|
21
21
|
is_topic_message?: boolean;
|
|
22
22
|
}
|
|
23
23
|
interface CommonMessage extends ServiceMessage {
|
|
24
|
+
/** If the sender of the message boosted the chat, the number of boosts added by the user */
|
|
25
|
+
sender_boost_count?: number;
|
|
24
26
|
/** Information about the original message for forwarded messages */
|
|
25
27
|
forward_origin?: MessageOrigin;
|
|
26
28
|
/** True, if the message is a channel post that was automatically forwarded to the connected discussion group */
|
|
@@ -94,6 +96,7 @@ export declare namespace Message {
|
|
|
94
96
|
type WriteAccessAllowedMessage = ServiceMessage & MsgWith<"write_access_allowed">;
|
|
95
97
|
type PassportDataMessage = ServiceMessage & MsgWith<"passport_data">;
|
|
96
98
|
type ProximityAlertTriggeredMessage = ServiceMessage & MsgWith<"proximity_alert_triggered">;
|
|
99
|
+
type BoostAddedMessage = ServiceMessage & MsgWith<"boost_added">;
|
|
97
100
|
type ForumTopicCreatedMessage = ServiceMessage & MsgWith<"forum_topic_created">;
|
|
98
101
|
type ForumTopicEditedMessage = ServiceMessage & MsgWith<"forum_topic_edited">;
|
|
99
102
|
type ForumTopicClosedMessage = ServiceMessage & MsgWith<"forum_topic_closed">;
|
|
@@ -188,6 +191,8 @@ export interface Message extends Message.MediaMessage {
|
|
|
188
191
|
passport_data?: PassportData;
|
|
189
192
|
/** Service message. A user in the chat triggered another user's proximity alert while sharing Live Location. */
|
|
190
193
|
proximity_alert_triggered?: ProximityAlertTriggered;
|
|
194
|
+
/** Service message: user boosted the chat */
|
|
195
|
+
boost_added?: ChatBoostAdded;
|
|
191
196
|
/** Service message: forum topic created */
|
|
192
197
|
forum_topic_created?: ForumTopicCreated;
|
|
193
198
|
/** Service message: forum topic edited */
|
|
@@ -200,10 +205,6 @@ export interface Message extends Message.MediaMessage {
|
|
|
200
205
|
general_forum_topic_hidden?: GeneralForumTopicHidden;
|
|
201
206
|
/** Service message: the 'General' forum topic unhidden */
|
|
202
207
|
general_forum_topic_unhidden?: GeneralForumTopicUnhidden;
|
|
203
|
-
/** The message is a service message about a user boosting the chat */
|
|
204
|
-
boost_added: ChatBoostAdded;
|
|
205
|
-
/** If the sender of the message boosted the chat, the number of boosts added by the user */
|
|
206
|
-
sender_boost_count: number;
|
|
207
208
|
/** Service message: a scheduled giveaway was created */
|
|
208
209
|
giveaway_created?: GiveawayCreated;
|
|
209
210
|
/** The message is a scheduled giveaway message */
|
|
@@ -729,7 +730,7 @@ export interface Venue {
|
|
|
729
730
|
/** Google Places type of the venue. (See supported types.) */
|
|
730
731
|
google_place_type?: string;
|
|
731
732
|
}
|
|
732
|
-
/** This object represents a
|
|
733
|
+
/** This object represents a story. */
|
|
733
734
|
export interface Story {
|
|
734
735
|
/** Chat that posted the story */
|
|
735
736
|
chat: Chat;
|