- Enclosing class:
- TdApi
Changes the block state of a message
sender. Currently, only users and
supergroup chats can be blocked.
Returns
Ok-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intbooleanNew value of isBlocked.Identifier of a message sender to block/unblock. -
Constructor Summary
ConstructorsConstructorDescriptionChanges 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
toStringMethods 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. ReturnsOk -
ToggleMessageSenderIsBlocked
Changes the block state of a message sender. Currently, only users and supergroup chats can be blocked. ReturnsOk- 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. ReturnsOk- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-