@grammyjs/types 2.4.0 → 2.4.4
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 +1 -1
- package/message.d.ts +2 -2
- package/package.json +1 -1
- package/proxied.d.ts +1 -3
package/manage.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export namespace Chat {
|
|
|
118
118
|
/** Default chat member permissions, for groups and supergroups. Returned only in getChat. */
|
|
119
119
|
permissions?: ChatPermissions;
|
|
120
120
|
/** True, if the bot can change the group sticker set. Returned only in getChat. */
|
|
121
|
-
can_set_sticker_set?:
|
|
121
|
+
can_set_sticker_set?: true;
|
|
122
122
|
}
|
|
123
123
|
/** Internal type holding properties that those supergroup and channel chats returned from `getChat` share. */
|
|
124
124
|
interface LargeGetChat extends NonPrivateGetChat {
|
package/message.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export namespace Message {
|
|
|
9
9
|
interface ServiceMessage {
|
|
10
10
|
/** Unique message identifier inside this chat */
|
|
11
11
|
message_id: number;
|
|
12
|
-
/** Sender
|
|
12
|
+
/** Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. */
|
|
13
13
|
from?: User;
|
|
14
|
-
/** Sender of the message, sent on behalf of a chat.
|
|
14
|
+
/** Sender of the message, sent on behalf of a chat. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. */
|
|
15
15
|
sender_chat?: Chat;
|
|
16
16
|
/** Date the message was sent in Unix time */
|
|
17
17
|
date: number;
|
package/package.json
CHANGED
package/proxied.d.ts
CHANGED
|
@@ -722,14 +722,12 @@ export interface InputFileProxy<F> {
|
|
|
722
722
|
custom_title: string;
|
|
723
723
|
}): true;
|
|
724
724
|
|
|
725
|
-
/** Use this method to ban a channel chat in a supergroup or a channel.
|
|
725
|
+
/** Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success. */
|
|
726
726
|
banChatSenderChat(args: {
|
|
727
727
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
728
728
|
chat_id: number | string;
|
|
729
729
|
/** Unique identifier of the target sender chat */
|
|
730
730
|
sender_chat_id: number;
|
|
731
|
-
/** Date when the sender chat will be unbanned, unix time. If the chat is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. */
|
|
732
|
-
until_date?: number;
|
|
733
731
|
}): true;
|
|
734
732
|
|
|
735
733
|
/** Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success. */
|