@grammyjs/types 3.2.0 → 3.2.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 +3 -3
- package/methods.d.ts +2 -2
- package/package.json +1 -1
package/manage.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ export declare namespace Chat {
|
|
|
130
130
|
interface PrivateGetChat extends PrivateChat, NonGroupGetChat, GetChat {
|
|
131
131
|
/** Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. */
|
|
132
132
|
emoji_status_custom_emoji_id?: string;
|
|
133
|
-
/** Expiration date of the emoji status of the other party in a private chat, if any. Returned only in getChat. */
|
|
133
|
+
/** Expiration date of the emoji status of the other party in a private chat in Unix time, if any. Returned only in getChat. */
|
|
134
134
|
emoji_status_expiration_date?: number;
|
|
135
135
|
/** Bio of the other party in a private chat. Returned only in getChat. */
|
|
136
136
|
bio?: string;
|
|
@@ -328,7 +328,7 @@ export interface ChatMemberRestricted {
|
|
|
328
328
|
can_pin_messages: boolean;
|
|
329
329
|
/** True, if the user is allowed to create forum topics */
|
|
330
330
|
can_manage_topics: boolean;
|
|
331
|
-
/** Date when restrictions will be lifted for this user;
|
|
331
|
+
/** Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever */
|
|
332
332
|
until_date: number;
|
|
333
333
|
}
|
|
334
334
|
/** Represents a chat member that isn't currently a member of the chat, but may join it themselves. */
|
|
@@ -344,7 +344,7 @@ export interface ChatMemberBanned {
|
|
|
344
344
|
status: "kicked";
|
|
345
345
|
/** Information about the user */
|
|
346
346
|
user: User;
|
|
347
|
-
/** Date when restrictions will be lifted for this user;
|
|
347
|
+
/** Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever */
|
|
348
348
|
until_date: number;
|
|
349
349
|
}
|
|
350
350
|
/** This object represents changes in the status of a chat member. */
|
package/methods.d.ts
CHANGED
|
@@ -589,7 +589,7 @@ export type ApiMethods<F> = {
|
|
|
589
589
|
chat_id: number | string;
|
|
590
590
|
/** Unique identifier of the target user */
|
|
591
591
|
user_id: number;
|
|
592
|
-
/** Date when the user will be unbanned
|
|
592
|
+
/** Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only. */
|
|
593
593
|
until_date?: number;
|
|
594
594
|
/** Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels. */
|
|
595
595
|
revoke_messages?: boolean;
|
|
@@ -613,7 +613,7 @@ export type ApiMethods<F> = {
|
|
|
613
613
|
permissions: ChatPermissions;
|
|
614
614
|
/** Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission. */
|
|
615
615
|
use_independent_chat_permissions?: boolean;
|
|
616
|
-
/** Date when restrictions will be lifted for the user
|
|
616
|
+
/** Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever */
|
|
617
617
|
until_date?: number;
|
|
618
618
|
}): true;
|
|
619
619
|
/** Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. Returns True on success. */
|