Package it.tdlight.jni
Class TdApi.ToggleMessageSenderIsBlocked
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.ToggleMessageSenderIsBlocked
- Enclosing class:
- TdApi
public static class TdApi.ToggleMessageSenderIsBlocked extends TdApi.Function
Changes the block state of a message
sender. Currently, only users and
supergroup chats can be blocked.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
boolean
isBlocked
New value of isBlocked.TdApi.MessageSender
sender
Message Sender. -
Constructor Summary
Constructors Constructor Description ToggleMessageSenderIsBlocked()
Changes the block state of a message sender.ToggleMessageSenderIsBlocked(TdApi.MessageSender sender, boolean isBlocked)
Changes the block state of a message sender.ToggleMessageSenderIsBlocked(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
sender
Message Sender. -
isBlocked
public boolean isBlockedNew value of isBlocked. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
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
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
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-