@grammyjs/types 2.4.1 → 2.4.5

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
@@ -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?: boolean;
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, empty for messages sent to channels */
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. The channel itself for channel messages. The supergroup itself for messages from anonymous group administrators. The linked channel for messages automatically forwarded to the discussion group */
14
+ /** Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "2.4.1",
3
+ "version": "2.4.5",
4
4
  "description": "Telegram Bot API type declarations for grammY",
5
5
  "main": "index.js",
6
6
  "repository": {
package/proxied.d.ts CHANGED
@@ -722,7 +722,7 @@ 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. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. 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. */
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;