@grammyjs/types 3.3.0 → 3.3.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
@@ -208,13 +208,13 @@ export interface ChatInviteLink {
208
208
  export interface ChatAdministratorRights {
209
209
  /** True, if the user's presence in the chat is hidden */
210
210
  is_anonymous: boolean;
211
- /** True, if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
211
+ /** True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
212
212
  can_manage_chat: boolean;
213
213
  /** True, if the administrator can delete messages of other users */
214
214
  can_delete_messages: boolean;
215
215
  /** True, if the administrator can manage video chats */
216
216
  can_manage_video_chats: boolean;
217
- /** True, if the administrator can restrict, ban or unban chat members */
217
+ /** True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics */
218
218
  can_restrict_members: boolean;
219
219
  /** True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user) */
220
220
  can_promote_members: boolean;
@@ -222,7 +222,7 @@ export interface ChatAdministratorRights {
222
222
  can_change_info: boolean;
223
223
  /** True, if the user is allowed to invite new users to the chat */
224
224
  can_invite_users: boolean;
225
- /** True, if the administrator can post messages in the channel; channels only */
225
+ /** True, if the administrator can post messages in the channel, or access channel statistics; channels only */
226
226
  can_post_messages?: boolean;
227
227
  /** True, if the administrator can edit messages of other users and can pin messages; channels only */
228
228
  can_edit_messages?: boolean;
@@ -266,13 +266,13 @@ export interface ChatMemberAdministrator {
266
266
  can_be_edited: boolean;
267
267
  /** True, if the user's presence in the chat is hidden */
268
268
  is_anonymous: boolean;
269
- /** True, if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
269
+ /** True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
270
270
  can_manage_chat: boolean;
271
271
  /** True, if the administrator can delete messages of other users */
272
272
  can_delete_messages: boolean;
273
273
  /** True, if the administrator can manage video chats */
274
274
  can_manage_video_chats: boolean;
275
- /** True, if the administrator can restrict, ban or unban chat members */
275
+ /** True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics */
276
276
  can_restrict_members: boolean;
277
277
  /** True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user) */
278
278
  can_promote_members: boolean;
@@ -280,7 +280,7 @@ export interface ChatMemberAdministrator {
280
280
  can_change_info: boolean;
281
281
  /** True, if the user is allowed to invite new users to the chat */
282
282
  can_invite_users: boolean;
283
- /** True, if the administrator can post messages in the channel; channels only */
283
+ /** True, if the administrator can post messages in the channel, or access channel statistics; channels only */
284
284
  can_post_messages?: boolean;
285
285
  /** True, if the administrator can edit messages of other users and can pin messages; channels only */
286
286
  can_edit_messages?: boolean;
@@ -382,7 +382,7 @@ export interface ChatJoinRequest {
382
382
  chat: Chat.SupergroupChat | Chat.ChannelChat;
383
383
  /** User that sent the join request */
384
384
  from: User;
385
- /** Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 24 hours to send messages until the join request is processed, assuming no other administrator contacted the user. */
385
+ /** Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user. */
386
386
  user_chat_id: number;
387
387
  /** Date the request was sent in Unix time */
388
388
  date: number;
package/methods.d.ts CHANGED
@@ -624,23 +624,13 @@ export type ApiMethods<F> = {
624
624
  user_id: number;
625
625
  /** Pass True if the administrator's presence in the chat is hidden */
626
626
  is_anonymous?: boolean;
627
- /** Pass True if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
627
+ /** Pass True if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
628
628
  can_manage_chat?: boolean;
629
- /** Pass True if the administrator can post messages in the channel; channels only */
630
- can_post_messages?: boolean;
631
- /** Pass True if the administrator can edit messages of other users and can pin messages; channels only */
632
- can_edit_messages?: boolean;
633
629
  /** Pass True if the administrator can delete messages of other users */
634
630
  can_delete_messages?: boolean;
635
- /** Pass True if the administrator can post stories in the channel; channels only */
636
- can_post_stories?: boolean;
637
- /** Pass True if the administrator can edit stories posted by other users; channels only */
638
- can_edit_stories?: boolean;
639
- /** Pass True if the administrator can delete stories posted by other users; channels only */
640
- can_delete_stories?: boolean;
641
631
  /** Pass True if the administrator can manage video chats */
642
632
  can_manage_video_chats?: boolean;
643
- /** Pass True if the administrator can restrict, ban or unban chat members */
633
+ /** Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics */
644
634
  can_restrict_members?: boolean;
645
635
  /** Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by him) */
646
636
  can_promote_members?: boolean;
@@ -648,8 +638,18 @@ export type ApiMethods<F> = {
648
638
  can_change_info?: boolean;
649
639
  /** Pass True if the administrator can invite new users to the chat */
650
640
  can_invite_users?: boolean;
641
+ /** Pass True if the administrator can post messages in the channel, or access channel statistics; channels only */
642
+ can_post_messages?: boolean;
643
+ /** Pass True if the administrator can edit messages of other users and can pin messages; channels only */
644
+ can_edit_messages?: boolean;
651
645
  /** Pass True if the administrator can pin messages, supergroups only */
652
646
  can_pin_messages?: boolean;
647
+ /** Pass True if the administrator can post stories in the channel; channels only */
648
+ can_post_stories?: boolean;
649
+ /** Pass True if the administrator can edit stories posted by other users; channels only */
650
+ can_edit_stories?: boolean;
651
+ /** Pass True if the administrator can delete stories posted by other users; channels only */
652
+ can_delete_stories?: boolean;
653
653
  /** Pass True if the user is allowed to create, rename, close, and reopen forum topics, supergroups only */
654
654
  can_manage_topics?: boolean;
655
655
  }): true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {