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