Package org.drinkless.tdlib
Class TdApi.ToggleMessageSenderIsBlocked
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 intCONSTRUCTORIdentifier uniquely determining type of the object.booleanisBlockedNew value of isBlocked.TdApi.MessageSendersenderIdIdentifier of a message sender to block/unblock.
-
Constructor Summary
Constructors Constructor Description ToggleMessageSenderIsBlocked()Default constructor for a function, which changes the block state of a message sender.ToggleMessageSenderIsBlocked(TdApi.MessageSender senderId, boolean isBlocked)Creates a function, which changes the block state of a message sender.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
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
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToggleMessageSenderIsBlocked
public ToggleMessageSenderIsBlocked()
Default constructor for a function, which 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)
Creates a function, which changes the block state of a message sender. Currently, only users and supergroup chats can be blocked.Returns
Ok- Parameters:
senderId- Identifier of a message sender to block/unblock.isBlocked- New value of isBlocked.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-