@grammyjs/types 3.22.0 → 3.22.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
@@ -306,8 +306,8 @@ export declare namespace ChatFullInfo {
306
306
  pinned_message?: Message;
307
307
  /** Default chat member permissions, for groups and supergroups */
308
308
  permissions?: ChatPermissions;
309
- /** True, if gifts can be sent to the chat */
310
- can_send_gift?: true;
309
+ /** Information about types of gifts that are accepted by the chat or by the corresponding user for private chats */
310
+ accepted_gift_types: AcceptedGiftTypes;
311
311
  /** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */
312
312
  can_send_paid_media?: undefined;
313
313
  /** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds */
@@ -401,8 +401,8 @@ export declare namespace ChatFullInfo {
401
401
  pinned_message?: Message;
402
402
  /** Default chat member permissions, for groups and supergroups */
403
403
  permissions?: ChatPermissions;
404
- /** True, if gifts can be sent to the chat */
405
- can_send_gift?: true;
404
+ /** Information about types of gifts that are accepted by the chat or by the corresponding user for private chats */
405
+ accepted_gift_types: AcceptedGiftTypes;
406
406
  /** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */
407
407
  can_send_paid_media?: undefined;
408
408
  /** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds */
@@ -496,8 +496,8 @@ export declare namespace ChatFullInfo {
496
496
  pinned_message?: Message;
497
497
  /** Default chat member permissions, for groups and supergroups */
498
498
  permissions?: undefined;
499
- /** True, if gifts can be sent to the chat */
500
- can_send_gift?: true;
499
+ /** Information about types of gifts that are accepted by the chat or by the corresponding user for private chats */
500
+ accepted_gift_types: AcceptedGiftTypes;
501
501
  /** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */
502
502
  can_send_paid_media?: true;
503
503
  /** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds */
package/message.d.ts CHANGED
@@ -79,7 +79,7 @@ export declare namespace Message {
79
79
  /** True, if the message media is covered by a spoiler animation */
80
80
  has_media_spoiler?: true;
81
81
  }
82
- type TextMessage = CommonMessage & MsgWith<"text">;
82
+ type TextMessage = CommonMessage & MsgWith<"text"> & Partial<MsgWith<"entities">>;
83
83
  type AudioMessage = CaptionableMessage & MsgWith<"audio">;
84
84
  type DocumentMessage = CaptionableMessage & MsgWith<"document">;
85
85
  type AnimationMessage = DocumentMessage & MsgWith<"animation">;
@@ -195,7 +195,7 @@ export interface Message extends Message.MediaMessage {
195
195
  checklist_tasks_done?: ChecklistTasksDone;
196
196
  /** Service message: tasks were added to a checklist */
197
197
  checklist_tasks_added?: ChecklistTasksAdded;
198
- /** Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is a suggested post, then it can't be edited. */
198
+ /** Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited. */
199
199
  suggested_post_info?: SuggestedPostInfo;
200
200
  /** Service message: a suggested post was approved */
201
201
  suggested_post_approved?: SuggestedPostApproved;
@@ -1328,7 +1328,7 @@ export interface DirectMessagesTopic {
1328
1328
  export interface SuggestedPostParameters {
1329
1329
  /** Proposed price for the post. If the field is omitted, then the post is unpaid. */
1330
1330
  price?: SuggestedPostPrice;
1331
- /** Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it. */
1331
+ /** Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it. */
1332
1332
  send_date?: number;
1333
1333
  }
1334
1334
  export {};
package/methods.d.ts CHANGED
@@ -1067,7 +1067,7 @@ export type ApiMethods<F> = {
1067
1067
  chat_id: number;
1068
1068
  /** Identifier of a suggested post message to approve */
1069
1069
  message_id: number;
1070
- /** Point in time (Unix timestamp) when the post is expected to be published; omit if the date has already been specified when the suggested post was created */
1070
+ /** Point in time (Unix timestamp) when the post is expected to be published; omit if the date has already been specified when the suggested post was created. If specified, then the date must be not more than 2678400 seconds (30 days) in the future */
1071
1071
  send_date?: number;
1072
1072
  }): true;
1073
1073
  /** Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_manage_direct_messages' administrator right in the corresponding channel chat. Returns True on success. */
@@ -1076,7 +1076,7 @@ export type ApiMethods<F> = {
1076
1076
  chat_id: number;
1077
1077
  /** Identifier of a suggested post message to decline */
1078
1078
  message_id: number;
1079
- /** Comment for the creator of the suggested post */
1079
+ /** Comment for the creator of the suggested post; 0-128 characters */
1080
1080
  comment?: string;
1081
1081
  }): true;
1082
1082
  /** Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "3.22.0",
3
+ "version": "3.22.2",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "mod.js",
6
6
  "repository": {