@@ -49,6 +49,8 @@ TelegramBot
49
49
* [ .restrictChatMember(chatId, userId, [ options] )] ( #TelegramBot+restrictChatMember ) ⇒ <code >Promise</code >
50
50
* [ .promoteChatMember(chatId, userId, [ options] )] ( #TelegramBot+promoteChatMember ) ⇒ <code >Promise</code >
51
51
* [ .setChatAdministratorCustomTitle(chatId, userId, customTitle, [ options] )] ( #TelegramBot+setChatAdministratorCustomTitle ) ⇒ <code >Promise</code >
52
+ * [ .banChatSenderChat(chatId, senderChatId, [ options] )] ( #TelegramBot+banChatSenderChat ) ⇒ <code >Boolean</code >
53
+ * [ .unbanChatSenderChat(chatId, senderChatId, [ options] )] ( #TelegramBot+unbanChatSenderChat ) ⇒ <code >Boolean</code >
52
54
* [ .setChatPermissions(chatId, chatPermissions, [ options] )] ( #TelegramBot+setChatPermissions ) ⇒ <code >Promise</code >
53
55
* [ .exportChatInviteLink(chatId, [ options] )] ( #TelegramBot+exportChatInviteLink ) ⇒ <code >Promise</code >
54
56
* [ .createChatInviteLink(chatId, [ options] )] ( #TelegramBot+createChatInviteLink ) ⇒ <code >Object</code >
@@ -703,6 +705,38 @@ Returns True on success.
703
705
| customTitle | <code >String</code > | New custom title for the administrator; 0-16 characters, emoji are not allowed |
704
706
| [ options] | <code >Object</code > | Additional Telegram query options |
705
707
708
+ <a name =" TelegramBot+banChatSenderChat " ></a >
709
+
710
+ ### telegramBot.banChatSenderChat(chatId, senderChatId, [ options] ) ⇒ <code >Promise</code >
711
+ Use this method to ban a channel chat in a supergroup or a channel.
712
+ 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.
713
+ Returns True on success.
714
+
715
+ ** Kind** : instance method of [ <code >TelegramBot</code >] ( #TelegramBot )
716
+ ** See** : https://core.telegram.org/bots/api#banchatsenderchat
717
+
718
+ | Param | Type | Description |
719
+ | --- | --- | --- |
720
+ | chatId | <code >Number</code > \| <code >String</code > | Unique identifier for the target chat or username of the target channel |
721
+ | senderChatId | <code >Number</code > | Unique identifier of the target sender chat |
722
+ | [ options] | <code >Object</code > | Additional Telegram query options |
723
+
724
+ <a name =" TelegramBot+unbanChatSenderChat " ></a >
725
+
726
+ ### telegramBot.unbanChatSenderChat(chatId, senderChatId, [ options] ) ⇒ <code >Promise</code >
727
+ Use this method to unban a previously banned channel chat in a supergroup or channel.
728
+ The bot must be an administrator for this to work and must have the appropriate administrator rights.
729
+ Returns True on success.
730
+
731
+ ** Kind** : instance method of [ <code >TelegramBot</code >] ( #TelegramBot )
732
+ ** See** : https://core.telegram.org/bots/api#unbanchatsenderchat
733
+
734
+ | Param | Type | Description |
735
+ | --- | --- | --- |
736
+ | chatId | <code >Number</code > \| <code >String</code > | Unique identifier for the target chat or username of the target channel |
737
+ | senderChatId | <code >Number</code > | Unique identifier of the target sender chat |
738
+ | [ options] | <code >Object</code > | Additional Telegram query options |
739
+
706
740
<a name =" TelegramBot+setChatPermissions " ></a >
707
741
708
742
### telegramBot.setChatPermissions(chatId, chatPermissions, [ options] ) ⇒ <code >Promise</code >
0 commit comments