@grammyjs/types 3.22.0 → 3.22.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/message.d.ts +2 -2
- package/methods.d.ts +2 -2
- package/package.json +1 -1
package/message.d.ts
CHANGED
|
@@ -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
|
|
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. */
|