- Enclosing class:
- TdApi
Changes the block state of a message
sender. Currently, only users and
supergroup chats can be blocked.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
New value of isBlocked.Message Sender. -
Constructor Summary
ConstructorDescriptionChanges the block state of a message sender.ToggleMessageSenderIsBlocked
(TdApi.MessageSender sender, boolean isBlocked) Changes the block state of a message sender. -
Method Summary
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:
-
-
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()
-