Class BanChatSenderChat

  • All Implemented Interfaces:
    Validable

    public class BanChatSenderChat
    extends BotApiMethodBoolean
    Version:
    5.5 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.
    Author:
    Ruben Bermudez
    • Constructor Detail

      • BanChatSenderChat

        public BanChatSenderChat()
    • Method Detail

      • setChatId

        public void setChatId​(@NonNull
                              @NonNull Long chatId)
      • setUntilDateInstant

        public void setUntilDateInstant​(Instant instant)
      • setUntilDateDateTime

        public void setUntilDateDateTime​(ZonedDateTime date)
      • forTimePeriodDuration

        public void forTimePeriodDuration​(Duration duration)