Class TdApi.SetMessageSenderBlockList
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.SetMessageSenderBlockList
- Enclosing class:
- TdApi
Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionNew block list for the message sender; pass null to unblock the message sender.static final int
Identifier uniquely determining type of the object.Identifier of a message sender to block/unblock. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which changes the block list of a message sender.SetMessageSenderBlockList
(TdApi.MessageSender senderId, TdApi.BlockList blockList) Creates a function, which changes the block list of a message sender. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
senderId
Identifier of a message sender to block/unblock. -
blockList
New block list for the message sender; pass null to unblock the message sender. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetMessageSenderBlockList
public SetMessageSenderBlockList()Default constructor for a function, which changes the block list of a message sender. Currently, only users and supergroup chats can be blocked.Returns
Ok
-
SetMessageSenderBlockList
Creates a function, which changes the block list 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.blockList
- New block list for the message sender; pass null to unblock the message sender.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-