@grammyjs/types 2.4.1 → 2.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/proxied.d.ts +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grammyjs/types",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
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,14 @@ 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
+ /**
726
+ * 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:
727
+ *
728
+ * - Won't be able to send messages on behalf of any of their channels.
729
+ * - Won't be able to join live streams on behalf of the banned chat.
730
+ *
731
+ * 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.
732
+ */
726
733
  banChatSenderChat(args: {
727
734
  /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
728
735
  chat_id: number | string;