@grammyjs/types 3.5.1 → 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 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
- /** For supergroups, the location to which the supergroup is connected. Returned only in getChat. */
169
- location?: ChatLocation;
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 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {