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

    • senderId

      public TdApi.MessageSender senderId
      Identifier of a message sender to block/unblock.
    • 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 senderId, boolean isBlocked)
      Changes the block state of a message sender. Currently, only users and supergroup chats can be blocked. Returns Ok
      Parameters:
      senderId - MessageSender Identifier of a message sender to block/unblock.
      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