Module tdlight.api

Class TdApi.ToggleMessageSenderIsBlocked

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Ok>
it.tdlight.jni.TdApi.ToggleMessageSenderIsBlocked
Enclosing class:
TdApi

public static final class TdApi.ToggleMessageSenderIsBlocked extends TdApi.Function<TdApi.Ok>
Changes the block state of a message sender. Currently, only users and supergroup chats can be blocked.

Returns Ok

  • Field Details

    • sender

      public TdApi.MessageSender sender
      Message Sender.
    • isBlocked

      public boolean isBlocked
      New value of isBlocked.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • ToggleMessageSenderIsBlocked

      public ToggleMessageSenderIsBlocked()
      Changes the block state of a message sender. Currently, only users and supergroup chats can be blocked.

      Returns Ok

    • ToggleMessageSenderIsBlocked

      public ToggleMessageSenderIsBlocked(TdApi.MessageSender sender, boolean isBlocked)
      Changes the block state of a message sender. Currently, only users and supergroup chats can be blocked.

      Returns Ok

      Parameters:
      sender - MessageSender Message Sender.
      isBlocked - boolean New value of isBlocked.
    • ToggleMessageSenderIsBlocked

      public ToggleMessageSenderIsBlocked(DataInput input) throws IOException
      Changes the block state of a message sender. Currently, only users and supergroup chats can be blocked.

      Returns Ok

      Throws:
      IOException
  • Method Details