Class TdApi.BlockMessageSenderFromReplies
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.BlockMessageSenderFromReplies
- Enclosing class:
- TdApi
Blocks an original sender of a message in the Replies chat.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass true to delete all messages from the same sender.boolean
Pass true to delete the message.long
The identifier of an incoming message in the Replies chat.boolean
Pass true to report the sender to the Telegram moderators. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which blocks an original sender of a message in the Replies chat.BlockMessageSenderFromReplies
(long messageId, boolean deleteMessage, boolean deleteAllMessages, boolean reportSpam) Creates a function, which blocks an original sender of a message in the Replies chat. -
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
-
messageId
public long messageIdThe identifier of an incoming message in the Replies chat. -
deleteMessage
public boolean deleteMessagePass true to delete the message. -
deleteAllMessages
public boolean deleteAllMessagesPass true to delete all messages from the same sender. -
reportSpam
public boolean reportSpamPass true to report the sender to the Telegram moderators. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
BlockMessageSenderFromReplies
public BlockMessageSenderFromReplies()Default constructor for a function, which blocks an original sender of a message in the Replies chat.Returns
Ok
-
BlockMessageSenderFromReplies
public BlockMessageSenderFromReplies(long messageId, boolean deleteMessage, boolean deleteAllMessages, boolean reportSpam) Creates a function, which blocks an original sender of a message in the Replies chat.Returns
Ok
- Parameters:
messageId
- The identifier of an incoming message in the Replies chat.deleteMessage
- Pass true to delete the message.deleteAllMessages
- Pass true to delete all messages from the same sender.reportSpam
- Pass true to report the sender to the Telegram moderators.
-
-
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
-